CN111443903A - Software development file acquisition method and device, electronic equipment and storage medium - Google Patents
Software development file acquisition method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111443903A CN111443903A CN202010202839.9A CN202010202839A CN111443903A CN 111443903 A CN111443903 A CN 111443903A CN 202010202839 A CN202010202839 A CN 202010202839A CN 111443903 A CN111443903 A CN 111443903A
- Authority
- CN
- China
- Prior art keywords
- file
- party
- configuration information
- software development
- access
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
Abstract
The disclosure relates to a software development file acquisition method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring access requirements of an access medium; the access requirement comprises at least one third party providing access resources selected by the access media; and updating the configuration information of the preset software development file into the configuration information of the at least one third party, and taking the software development file with the updated configuration information as a target software development file corresponding to the access media. In the embodiment of the disclosure, the configuration information of the third party is formed in the software development file, and when the access requirement of the access media is acquired, the configuration information can be processed, so that the configuration information includes at least one selected third party of the access media, and the code of each third party in the software development file does not need to be adjusted, thereby shortening the adjustment time, being beneficial to improving the generation speed of the generated software development file, and improving the response speed.
Description
Technical Field
The present disclosure relates to the field of software technologies, and in particular, to a method and an apparatus for acquiring a software development file, an electronic device, and a storage medium.
Background
Most traffic platforms are provided with advertisement services, and in order to better access the services, the traffic platforms usually perform advertisement aggregation and are provided with corresponding advertisement aggregation sdks (software Development kits). Currently, the implementation manner of the advertisement aggregation SDK is as follows: writing the advertisement aggregation SDK codes of multiple platforms into the same system project (such as an Android project) for development and compilation, for example, writing the SDK codes into the system project, and then compiling into an aggregation SDK dependent file of an AAR file (the suffix file name of the aggregation SDK is AAR, for example, PluginAd-release _1.5.00. AAR). And then, after compiling the PluginAd-release _1.5.00.aar file, providing the compiled PluginAd-release _1.5.00.aar file to an access medium for secondary development (such as providing the compiled PluginAd-release _ 1.00. aar file to the access medium in a plug-in form), so that the access medium can conveniently and quickly use the content provided by the aggregate advertisement SDK.
In practical applications, the aggregated SDK may provide access to several traffic platforms, and the access medium usually desires to access advertisements of one or two traffic platforms, in which case, the developer needs to modify or delete the codes in the aggregated SDK. Since the coupling degree of the item code is high, the time required for modifying or deleting the code is long, the generation speed of the aggregated SDK is influenced, and the reduction of the response cost is not facilitated.
Disclosure of Invention
The present disclosure provides a software development file acquisition method and apparatus, an electronic device, and a storage medium, to solve the deficiencies of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a software development file acquisition method, including:
acquiring access requirements of an access medium; the access requirement comprises at least one third party providing access resources selected by the access media;
and updating the configuration information of the preset software development file into the configuration information of the at least one third party, and taking the software development file with the updated configuration information as a target software development file corresponding to the access media.
Optionally, updating the configuration information of the preset software development file to the configuration information of the at least one third party includes:
acquiring an information configuration file of a preset software development file; the configuration file comprises configuration information of a plurality of third parties which can provide access resources;
and deleting or adding the configuration information in the information configuration file to enable the configuration information to contain the configuration information of the at least one third party, so as to obtain the information configuration file with updated configuration information.
Optionally, the method further includes the step of obtaining a preset software development file, including:
sequentially constructing a root project, projects of all third parties and a target project; the target item is used for providing request logic for acquiring resources from each third party;
establishing an incidence relation among the access media, the projects of each third party and the target project in the project configuration file of the root project to obtain a target configuration file;
establishing configuration information of each third party in the target project, wherein the configuration information comprises a path for acquiring a code, a path for acquiring an image resource file, a path for reading and writing a path file and a path for reading a character string;
and combining the codes and/or resource files of the third parties according to the configuration information in the target project to obtain a preset software development file.
Optionally, constructing a project of a third party includes:
building a project of the third party; the items comprise a code folder, an image folder, a reading and writing folder and a character string folder;
storing a code requesting for accessing resources to the third party into the code file, storing an image resource file corresponding to the third party into the image folder, storing a path file of the third party into the read-write folder, and storing a character string file of the third party into the character string folder.
Optionally, the method further comprises:
providing the target software development file to the access medium to cause the access medium to add the target software development file to an application and generate a software installation package. According to a second aspect of the embodiments of the present disclosure, there is provided a software development file acquisition apparatus including:
an access requirement acquisition module for acquiring the access requirement of the access media; the access requirement comprises at least one third party providing access resources selected by the access media;
and the development file acquisition module is used for updating the configuration information of the preset software development file into the configuration information of the at least one third party and taking the software development file with the updated configuration information as a target software development file corresponding to the access media.
Optionally, the development file acquiring module includes:
the configuration file acquisition unit is used for acquiring an information configuration file of a preset software development file; the configuration file comprises configuration information of a plurality of third parties which can provide access resources;
and the configuration information processing unit is used for deleting or adding the configuration information in the information configuration file so that the configuration information comprises the configuration information of the at least one third party to obtain the information configuration file after the configuration information is updated.
Optionally, the system further comprises a development file generation module, configured to obtain a preset software development file, where the development file generation module includes:
the project construction unit is used for sequentially constructing a root project, projects of all third parties and a target project; the target item is used for providing request logic for acquiring resources from each third party;
the relationship establishing unit is used for establishing the incidence relationship among the access media, the projects of each third party and the target project in the project configuration file of the root project to obtain a target configuration file;
the information establishing unit is used for establishing configuration information of each third party in the target project, wherein the configuration information comprises a path for acquiring a code, a path for acquiring an image resource file, a path for reading and writing a path file and a path for reading a character string;
and the file merging unit is used for merging the codes and/or the resource files of the third parties according to the configuration information in the target project to obtain a preset software development file.
Optionally, the project building unit includes:
a construction subunit configured to construct a project of the third party; the items comprise a code folder, an image folder, a reading and writing folder and a character string folder;
and the storage subunit is used for storing the code requesting the third party to access the resource into the code file, storing the image resource file corresponding to the third party into the image folder, storing the path file of the third party into the read-write folder, and storing the character string file of the third party into the character string folder.
Optionally, the method further comprises:
and the development file distribution module is used for providing the target software development file to the access medium so that the access medium adds the target software development file to the application program and generates a software installation package.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute the computer program in the memory to implement the steps of any of the methods described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon an executable computer program which, when executed, performs the steps of any of the methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the foregoing embodiments, in the embodiments of the present disclosure, by forming the configuration information of the third party in the software development file, when the access requirement of the access media is obtained, the configuration information may be processed, so that the configuration information includes at least one third party selected by the access media, and it is not necessary to adjust codes of each third party in the software development file, which may shorten the adjustment time, and is beneficial to increasing the generation speed of the generated software development file and increasing the response speed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart illustrating a software development file acquisition method according to an example embodiment.
FIG. 2 is a flow diagram illustrating a method for obtaining a configuration file according to an example embodiment.
FIG. 3 is a flowchart illustrating obtaining a pre-set software development file, according to an example embodiment.
FIG. 4 is a flow diagram illustrating building a third party project, according to an example embodiment.
FIG. 5 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
FIGS. 6-9 are block diagrams illustrating a software development file acquisition apparatus according to an example embodiment
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary described embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
Fig. 1 is a flowchart illustrating a software development file acquisition method according to an exemplary embodiment, and may be applied to a service provider, such as a server or a service cluster. Referring to fig. 1, a software development file acquisition method includes steps 11 and 12, in which:
in step 11, acquiring an access requirement of an access medium; the access requirement comprises at least one third party providing access resources selected by the access media.
In this embodiment, the server may communicate with the access medium, and may acquire the access requirement of the access medium. For example, the user may fill in the requirement of the accessed resource on the side of the access medium, or fill in a third party that can provide the accessed resource, and then the access medium feeds back the access requirement to the server, so that the server can obtain the access requirement.
In step 12, the configuration information of the preset software development file is updated to the configuration information of the at least one third party, and the software development file after the configuration information is updated is used as a target software development file corresponding to the access medium.
In this embodiment, a preset Software Development file may be stored in the server, where the preset Software Development file may be understood as a Software Development tool (SDK) formed by aggregating a plurality of (adjustable in quantity) third parties that can provide access resources by a service provider, and an obtaining manner of the SDK is described in subsequent embodiments, which is not described herein first.
When the access requirement is acquired, the server customizes the access requirement to acquire a target software development file corresponding to the access requirement. Referring to fig. 2, in step 21, the server may obtain an information configuration file of a preset software development file; the profile includes configuration information for a plurality of third parties that may provide access to the resource. In step 22, the server may delete or add configuration information in the configuration file, so that the configuration information includes configuration information of at least one third party, and obtain the configuration file after updating the configuration information. In other words, in this embodiment, the configuration information of the at least one third party required by the access medium may be retained in the configuration information, so that the access medium may acquire the access resource provided by the at least one third party in a subsequent process.
In an embodiment, the server may obtain the preset software development file, referring to fig. 3, and in step 31, the server may sequentially construct a root project, projects of each third party, and a target project. Wherein:
in one example, the root project may be constructed using Grale tools, named TogetherAd, for associating third party projects with target projects, and accessing media.
In one example, building projects for third parties, referring to fig. 4, in step 41, the server may build projects for respective third parties, each project may include: code folders, image folders, read-write folders, and string folders. Wherein the code folder is used for storing codes for requesting the third party to access the resource. The image folder is used for storing image resource files corresponding to the third party. The read-write folder is used for storing path files depended by a third party. The string folder is used to store string files associated with the third party.
In step 42, the server may store the code requesting access to the resource from the third party to a code file, store an image resource file corresponding to the third party to an image folder, store a path file of the third party to a read-write folder, and store a string file of the third party to the string folder.
Taking the example that the access resource is an advertisement and the third party is a 'Baidu advertisement' SDK project, the server can establish a project through the following steps:
(1) establishing an android project with a file name of 'baidu';
(2) writing a request code for requesting advertisement information from the "hundred degree advertisement" to a code folder (e.g., java file);
(3) storing picture resource files (such as a hundred degree logo, an advertisement picture and the like) of the 'hundred degree advertisement' into an image folder (such as a res/drawable folder);
(4) storing a path file 'bd _ file _ paths.xml' which is required by the android system and depends on the SD card read-write authority into a read-write folder (such as res/xml);
(5) xml files in string files or items associated with third parties are stored in a string folder (e.g., res/values).
Based on the steps (1) to (5), an android project of a third-party 'Baidu advertisement' can be established.
It is understood that, other items of the third party may refer to the above steps (1) to (5), and are not described herein again.
In one example, the target item is used to provide request logic for obtaining resources to third parties, where the request logic may include, but is not limited to: the configuration information of the access resource, the access resource expression pattern and the logic related to the access media, which are sent by the server. For example, the server configures the request sequence of the third party to access the resource, each third party provides the number of the access resource, or the software development file supports the logic of caching several advertisements, etc. The request logic can be adjusted according to the requirements of third party, access media and service provider, and the corresponding scheme falls into the protection scope of the present disclosure.
In step 32, an association relationship between the access media, the items of each third party and the target item is established in the item configuration file of the root item, so as to obtain a target configuration file.
In this embodiment, the server may establish a project configuration file named "settings.gradle" in the root project, and establish an association relationship between the access media, the project of each third party, and the target project in the project configuration file. For example, the association includes: a, B, C1, C2, C3 and … … Cn show that the project configuration file comprises n +2 projects, wherein A represents access media, B represents target projects, and C1-Cn represent n third parties capable of providing access resources.
In step 33, configuration information of each third party is established in the target project, where the configuration information includes a path for acquiring a code, a path for acquiring an image resource file, a path for reading and writing a path file, and a path for reading a character string.
In this embodiment, the server may establish an information configuration file in the target project to associate the code, the picture resource file, the path file, and the character string file. For example, the server may have multiple arrays within the information profile, such as:
i.e., code within the array that includes third parties C1, C2, and C3.
I.e., resource files within the array including third parties C1, C2, and C3, including image resource files and character strings.
I.e., the library file storage address, i.e., path file, within the array including third parties C1, C2, and C3.
It is understood that the skilled person can set the number of the arrays according to the specific scenario, and the corresponding scheme falls within the scope of the present disclosure.
In step 34, combining the code and/or resource files of the third parties according to the configuration information in the target project to obtain a preset software development file.
In this embodiment, the server may find a target project by using a graph tool through a project configuration file settings under a root project, then find an information configuration file in the target project, find a corresponding directory according to each array in the information configuration file, merge codes and resources of each third party, and form a file in the form of ". aar", where the file in the form of ". aar" is a preset software development file.
In an embodiment, the server may provide the target software development file to the access medium after acquiring the target software development file, so that the access medium may add the target software development file to its own project, and may generate an APK file running on the electronic device through processes such as compiling.
Therefore, in the embodiment of the present disclosure, by forming the configuration information of the third party in the software development file, when the access requirement of the access media is obtained, the configuration information may be processed, so that the configuration information includes at least one third party selected by the access media, and it is not necessary to adjust codes of the third parties in the software development file, which may shorten the adjustment time, and is beneficial to increasing the generation speed of the generated software development file and increasing the response speed.
The software development file acquisition method is described below with reference to a scenario in which an access resource is an advertisement, with reference to fig. 5, and includes:
the server adopts a root item TogetherAd under an android scene constructed by a Gradle tool.
The server respectively establishes the projects of the third party 'Baidu advertisement', 'head advertisement' and 'Tencent advertisement'. Taking a 'Baidu advertisement' SDK project as an example, establishing a project on which the 'Baidu advertisement' SDK project depends, wherein the name of a folder is baidu; writing java codes requesting advertisement resources into java files of a folder baidu, placing picture resource files (such as logo) corresponding to 'Baidu advertisement' into a file folder with a res/drawable directory, placing an SD card read-write permission dependent bd _ file _ pages.xml file required by Android into the file folder with the res/xml directory, and placing a strings.xml file of character string contents in a project into the file folder with the res/values directory.
The server establishes an "syndicated ad" SDK project (i.e., a target project) with a folder name of plugginad. The file folder PluginAd is provided with a java file for storing java codes of advertisement request logics. Wherein the request logic comprises: the advertisement space id configuration information sent by the server, and the logic requested in the aggregated advertisement SDK project adjusted according to the configuration information, for example, the server configures a priority request of which advertisement is selected from the three advertisements, or each advertisement needs to request several advertisements, or the aggregated advertisement SDK project needs to support the logic of caching several advertisements, and the like.
The associated configuration of the item dependencies (include, ': SampleAd ', ': PluginAd ', ', ': ttad ', ': gdt ', ': baidu ') is performed in the item profiles settings of the root item TogetherAd. The project configuration file indicates that five standard Android projects are provided, and the SampleAd represents an access medium; PluginAd represents the logic realization of the SDK project of the aggregated advertisement, and is also a project which is finally packaged into an aar file and provided for the access media; 'ttad', 'gdt', 'baidu' three advertisers corresponding to the java code implementation project.
And performing association configuration of dependency relationships of java.srcdirs, res.srcdirs, assets.srcdirs and jni L ibs.srcdirs on the information configuration file build.gradle of the target project PluginAd, wherein the specific configuration is shown in Table 1.
TABLE 1
The third parties are configured in an array form through the java.srcdirs (java code), res.srcdirs (resource file), jni L ibs.srcdirs (dependent file, such as a suffix of jar package file), the grace tool can find the PluginAd project through the settings.gradle, then find the configuration information in sourceSets under android in the build.gradle file in the PluginAd project, read the array of java.srcdirs, res.srcdirs and jni L ibs.srcDirs, then search for the corresponding directory, perform error prompt when searching for an exception (such as the absence of the directory), merge corresponding to the current code or resource when finding the corresponding directory, and finally form the PluginAd.aar file, namely the target software development file.
The java, src dirs and res, src dirs and jni L ib, src dirs of sourceSets under the node of the item profile of root item, TogetherAd, modify the configuration, e.g. delete "Tencent Ad", the underlining under the code associated with "gdt" in Table 1, resource file, etc. indicates that the item was deleted, the result is shown in Table 1.
It can be understood that, in the embodiment, by aggregating the advertisement SDK items, the code structures of the third parties may be decoupled, which is beneficial to keeping the codes simple, so that the aggregated advertisement SDK meeting the requirements may be quickly constructed according to the access requirements of the access media. And moreover, the workload of technicians is reduced, the time for generating the SDK is shortened, and the speed for generating the SDK is improved.
Fig. 6 is a block diagram illustrating a software development file acquisition apparatus according to an example embodiment. Referring to fig. 6, a software development file acquisition apparatus includes:
an access requirement obtaining module 61, configured to obtain an access requirement for accessing a medium; the access requirement comprises at least one third party providing access resources selected by the access media;
the development file obtaining module 62 is configured to update configuration information of a preset software development file to the configuration information of the at least one third party, and use the software development file with the updated configuration information as a target software development file corresponding to the access medium.
In one embodiment, referring to fig. 7, the development file obtaining module 62 includes:
a configuration file obtaining unit 71, configured to obtain an information configuration file of a preset software development file; the configuration file comprises configuration information of a plurality of third parties which can provide access resources;
the configuration information processing unit 72 is configured to perform deletion processing or addition processing on the configuration information in the information configuration file, so that the configuration information includes the configuration information of the at least one third party, and an information configuration file with updated configuration information is obtained.
In an embodiment, referring to fig. 8, the method further includes a development file generating module, configured to obtain a preset software development file, where the development file generating module includes:
a project construction unit 81 configured to sequentially construct a root project, projects of each third party, and a target project; the target item is used for providing request logic for acquiring resources from each third party;
a relationship establishing unit 82, configured to establish an association relationship between the access media, the items of each third party, and the target item in the item configuration file of the root item, so as to obtain a target configuration file;
an information establishing unit 83, configured to establish configuration information of each third party in the target project, where the configuration information includes a path for acquiring a code, a path for acquiring an image resource file, a path for reading and writing a path file, and a path for reading a character string;
and a file merging unit 84, configured to merge the codes and/or resource files of the third parties according to the configuration information in the target project to obtain a preset software development file.
In one embodiment, referring to fig. 9, the project building unit 81 includes:
a construction subunit 91, configured to construct a project of the third party; the items comprise a code folder, an image folder, a reading and writing folder and a character string folder;
the storage subunit 92 is configured to store a code requesting the third party to access the resource into the code file, store an image resource file corresponding to the third party into the image folder, store a path file of the third party into the read-write folder, and store a string file of the third party into the string folder.
In one embodiment, the method further comprises:
and the development file distribution module is used for providing the target software development file to the access medium so that the access medium adds the target software development file to the application program and generates a software installation package.
It can be understood that the apparatuses provided in the embodiments of the present disclosure correspond to the embodiments of the methods described above, and specific contents may refer to the contents of the embodiments of the methods, which are not described herein again.
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 1000 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 10, electronic device 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, communication component 1016, and image capture component 1018.
The processing component 1002 generally operates the electronic device 1000 as a whole, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute computer programs. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the electronic device 1000. Examples of such data include computer programs for any application or method operating on the electronic device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the electronic device 1000. The power components 1006 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 1000. The power supply assembly 1006 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn on or off the switching device, so that the battery supplies power or does not supply power to the motherboard circuit.
The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the target object in some embodiments, the screen may include a liquid crystal display (L CD) and a Touch Panel (TP). if the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the target object.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 may include a Microphone (MIC) configured to receive external audio signals when the electronic device 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1014 may detect an open/closed state of the electronic device 1000, a relative positioning of components, such as a display and keypad of the electronic device 1000, a change in position of the electronic device 1000 or a component, a presence or absence of a target object in contact with the electronic device 1000, an orientation or acceleration/deceleration of the electronic device 1000, and a change in temperature of the electronic device 1000.
The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), programmable logic devices (P L D), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
In an exemplary embodiment, a non-transitory readable storage medium is also provided, such as the memory 1004 including instructions, that includes an executable computer program that is executable by the processor. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (12)
1. A software development file acquisition method is characterized by comprising the following steps:
acquiring access requirements of an access medium; the access requirement comprises at least one third party providing access resources selected by the access media;
and updating the configuration information of the preset software development file into the configuration information of the at least one third party, and taking the software development file with the updated configuration information as a target software development file corresponding to the access media.
2. The method of claim 1, wherein updating the configuration information of the preset software development file to the configuration information of the at least one third party comprises:
acquiring an information configuration file of a preset software development file; the configuration file comprises configuration information of a plurality of third parties which can provide access resources;
and deleting or adding the configuration information in the information configuration file to enable the configuration information to contain the configuration information of the at least one third party, so as to obtain the information configuration file with updated configuration information.
3. The method of claim 1, further comprising the step of obtaining a pre-defined software development file, comprising:
sequentially constructing a root project, projects of all third parties and a target project; the target item is used for providing request logic for acquiring resources from each third party;
establishing an incidence relation among the access media, the projects of each third party and the target project in the project configuration file of the root project to obtain a target configuration file;
establishing configuration information of each third party in the target project, wherein the configuration information comprises a path for acquiring a code, a path for acquiring an image resource file, a path for reading and writing a path file and a path for reading a character string;
and combining the codes and/or resource files of the third parties according to the configuration information in the target project to obtain a preset software development file.
4. The method of claim 3, wherein building a third party project comprises:
building a project of the third party; the items comprise a code folder, an image folder, a reading and writing folder and a character string folder;
storing a code requesting for accessing resources to the third party into the code file, storing an image resource file corresponding to the third party into the image folder, storing a path file of the third party into the read-write folder, and storing a character string file of the third party into the character string folder.
5. The method of claim 1, further comprising:
providing the target software development file to the access medium to cause the access medium to add the target software development file to an application and generate a software installation package.
6. A software development file acquisition apparatus, comprising:
an access requirement acquisition module for acquiring the access requirement of the access media; the access requirement comprises at least one third party providing access resources selected by the access media;
and the development file acquisition module is used for updating the configuration information of the preset software development file into the configuration information of the at least one third party and taking the software development file with the updated configuration information as a target software development file corresponding to the access media.
7. The apparatus of claim 6, wherein the development file acquisition module comprises:
the configuration file acquisition unit is used for acquiring an information configuration file of a preset software development file; the configuration file comprises configuration information of a plurality of third parties which can provide access resources;
and the configuration information processing unit is used for deleting or adding the configuration information in the information configuration file so that the configuration information comprises the configuration information of the at least one third party to obtain the information configuration file after the configuration information is updated.
8. The apparatus of claim 6, further comprising a development file generation module for obtaining a preset software development file, wherein the development file generation module comprises:
the project construction unit is used for sequentially constructing a root project, projects of all third parties and a target project; the target item is used for providing request logic for acquiring resources from each third party;
the relationship establishing unit is used for establishing the incidence relationship among the access media, the projects of each third party and the target project in the project configuration file of the root project to obtain a target configuration file;
the information establishing unit is used for establishing configuration information of each third party in the target project, wherein the configuration information comprises a path for acquiring a code, a path for acquiring an image resource file, a path for reading and writing a path file and a path for reading a character string;
and the file merging unit is used for merging the codes and/or the resource files of the third parties according to the configuration information in the target project to obtain a preset software development file.
9. The apparatus of claim 8, wherein the item construction unit comprises:
a construction subunit configured to construct a project of the third party; the items comprise a code folder, an image folder, a reading and writing folder and a character string folder;
and the storage subunit is used for storing the code requesting the third party to access the resource into the code file, storing the image resource file corresponding to the third party into the image folder, storing the path file of the third party into the read-write folder, and storing the character string file of the third party into the character string folder.
10. The apparatus of claim 6, further comprising:
and the development file distribution module is used for providing the target software development file to the access medium so that the access medium adds the target software development file to the application program and generates a software installation package.
11. An electronic device, comprising:
a processor;
a memory for storing a computer program executable by the processor;
the processor is configured to execute the computer program in the memory to implement the steps of the method of any of claims 1 to 5.
12. A readable storage medium having stored thereon an executable computer program, wherein the computer program when executed implements the steps of the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010202839.9A CN111443903A (en) | 2020-03-20 | 2020-03-20 | Software development file acquisition method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010202839.9A CN111443903A (en) | 2020-03-20 | 2020-03-20 | Software development file acquisition method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111443903A true CN111443903A (en) | 2020-07-24 |
Family
ID=71650798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010202839.9A Pending CN111443903A (en) | 2020-03-20 | 2020-03-20 | Software development file acquisition method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111443903A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778394A (en) * | 2021-08-18 | 2021-12-10 | 北京城市网邻信息技术有限公司 | SDK adaptation method, device, electronic equipment and storage medium |
WO2022088940A1 (en) * | 2020-10-28 | 2022-05-05 | 华为技术有限公司 | Data processing system and method, terminal device, and server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160154644A1 (en) * | 2014-08-29 | 2016-06-02 | Ram Chhawchharia | Real-time previewing and modifying an application under development |
CN107589947A (en) * | 2017-08-02 | 2018-01-16 | 成都极娱网络科技有限公司 | A kind of SDK cut-in methods, client and system |
CN107704260A (en) * | 2017-10-31 | 2018-02-16 | 广东小天才科技有限公司 | A kind of method and system for the SDK for updating application software |
CN109240733A (en) * | 2017-07-03 | 2019-01-18 | Tcl集团股份有限公司 | A kind of method and terminal updating advertisement SDK based on Android system |
-
2020
- 2020-03-20 CN CN202010202839.9A patent/CN111443903A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160154644A1 (en) * | 2014-08-29 | 2016-06-02 | Ram Chhawchharia | Real-time previewing and modifying an application under development |
CN109240733A (en) * | 2017-07-03 | 2019-01-18 | Tcl集团股份有限公司 | A kind of method and terminal updating advertisement SDK based on Android system |
CN107589947A (en) * | 2017-08-02 | 2018-01-16 | 成都极娱网络科技有限公司 | A kind of SDK cut-in methods, client and system |
CN107704260A (en) * | 2017-10-31 | 2018-02-16 | 广东小天才科技有限公司 | A kind of method and system for the SDK for updating application software |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022088940A1 (en) * | 2020-10-28 | 2022-05-05 | 华为技术有限公司 | Data processing system and method, terminal device, and server |
CN113778394A (en) * | 2021-08-18 | 2021-12-10 | 北京城市网邻信息技术有限公司 | SDK adaptation method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110688232B (en) | Application program calling method, terminal equipment and computer readable storage medium | |
CN109032606B (en) | Native application compiling method and device and terminal | |
US8719280B1 (en) | Person-based information aggregation | |
WO2020052337A1 (en) | Information processing method and apparatus, storage medium, and electronic device | |
US9817984B2 (en) | Providing access to application data | |
CN105701122A (en) | Log collection method, apparatus and system | |
CN107533618A (en) | Protect data from unwarranted access | |
US20190220329A1 (en) | Multi-application-oriented user data management method and system | |
CN109271211A (en) | Method, apparatus of attending to anything else, equipment and the medium of application program | |
CN111443903A (en) | Software development file acquisition method and device, electronic equipment and storage medium | |
CN105468606B (en) | Webpage saving method and device | |
CN112114804A (en) | Application program generation method, device and system | |
US8819495B2 (en) | Application harnessing system and method | |
CA2945505C (en) | Electronic device and method of searching data records | |
CN112445414B (en) | Data processing method and device | |
CN112860625A (en) | Data acquisition method, data storage method, device, equipment and storage medium | |
CN113360704A (en) | Voice playing method and device and electronic equipment | |
CN113378022A (en) | In-station search platform, search method and related device | |
CN110989987A (en) | Portal webpage generation method, portal webpage generation device, client, server and storage medium | |
CN111273910B (en) | Method, device and storage medium for acquiring resource number identifier | |
CN113641966B (en) | Application integration method, system, equipment and medium | |
CN110995767B (en) | Request processing method and device | |
CN110334329B (en) | Risk report generation method and system based on risk management system | |
RU2715287C1 (en) | Method, terminal and server for displaying information | |
KR20120129570A (en) | Method, mobile terminal, and recording medium for providing sound source service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |