Software development file acquisition method and device, electronic device, and storage medium
By updating and merging the configuration information and resource files of the advertising aggregation SDK, the problem of high code coupling is solved, the aggregation advertising SDK that meets the needs is quickly generated, and the response cost and generation time are reduced.
Patent Information
- Application Number
- CN202010202839.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-20
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing advertising aggregation SDK has a high degree of code coupling, which requires a long time to modify or delete the code, affects the generation speed of the aggregation SDK, and increases response costs.
By obtaining the access requirements of the access media, the configuration information of the software development file is updated to form the configuration information of the third party, and the code and resource files of each third party are merged to generate the target software development file, reducing code adjustments and increasing the generation speed. .
There is no need to adjust third-party codes, the adjustment time is shortened, the speed of generating software development files is improved, the response speed is improved, and the workload of technical personnel and the time of generating SDK are reduced.
Smart Images

Figure CN111443903B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of software technology, and in particular to a method and device for acquiring software development files, an electronic device, and a storage medium. Background Art
[0002] Most traffic platforms are equipped with advertising services. In order to better access the services, traffic platforms usually perform advertising aggregation and set up corresponding advertising aggregation SDKs (Software Development Kits). At present, the implementation method of the advertising aggregation SDK is to write the advertising aggregation SDK codes of multiple platforms into the same system project (such as an Android project) for development and compilation. For example, after the SDK code is written into the system project, it is compiled into an aggregation SDK dependency file of an AAR file (the suffix file name of the aggregation SDK is .aar, for example: PluginAd-release_1.5.00.aar). Afterwards, after the compilation of the PluginAd-release_1.5.00.aar file, it can be provided to the access media for secondary development (such as providing it to the access media in the form of a plug-in), so that the access media can quickly use the content provided by the aggregated advertising SDK.
[0003] In actual applications, the aggregation SDK can provide access to several traffic platforms, and the access media usually expects to access advertisements from one or two traffic platforms. In this case, the developer needs to modify or delete the code in the aggregation SDK. Due to the high degree of coupling of project codes, it takes a long time to modify or delete the code, which affects the generation speed of the aggregation SDK and is not conducive to reducing the response cost. Summary of the invention
[0004] The present invention provides a method and device for acquiring software development files, an electronic device, and a storage medium to address the deficiencies of related technologies.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for acquiring software development files is provided, comprising:
[0006] Acquiring access requirements of an access medium; the access requirements including at least one third party providing access resources selected by the access medium;
[0007] 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 updated configuration information is used as the target software development file corresponding to the access medium.
[0008] Optionally, updating the configuration information of the preset software development file to the configuration information of the at least one third party includes:
[0009] Obtaining a preset information configuration file of a software development file; the configuration file includes configuration information of multiple third parties that can provide access resources;
[0010] The configuration information in the information configuration file is deleted or added so that the configuration information includes the configuration information of the at least one third party, thereby obtaining an information configuration file with updated configuration information.
[0011] Optionally, the step of obtaining a preset software development file includes:
[0012] Constructing the root project, the projects of each third party and the target project in sequence; the target project is used to provide the request logic for obtaining resources from each third party;
[0013] Establishing associations among access media, third-party projects, and a target project in a project configuration file of the root project to obtain a target configuration file;
[0014] Establishing configuration information of each third party in the target project, the configuration information includes a path for obtaining code, a path for obtaining image resource files, a path for reading and writing path files, and a path for reading character strings;
[0015] The code and / or resource files of each third party are merged according to the configuration information in the target project to obtain a preset software development file.
[0016] Optionally, build third-party projects, including:
[0017] Build the third-party project; the project includes a code folder, an image folder, a read-write folder, and a string folder;
[0018] The code for requesting the third party to access resources is stored in the code file, the image resource file corresponding to the third party is stored in the image folder, the path file of the third party is stored in the read-write folder, and the string file of the third party is stored in the string folder.
[0019] Optionally, it also includes:
[0020] The target software development file is provided to the access medium so that the access medium adds the target software development file to the application and generates a software installation package. According to a second aspect of an embodiment of the present disclosure, a software development file acquisition device is provided, comprising:
[0021] An access requirement acquisition module, used to acquire access requirements of an access medium; the access requirements include at least one third party providing access resources selected by the access medium;
[0022] The development file acquisition module is used to update the configuration information of the 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 the target software development file corresponding to the access medium.
[0023] Optionally, the development file acquisition module includes:
[0024] A configuration file acquisition unit, used to acquire an information configuration file of a preset software development file; the configuration file includes configuration information of multiple third parties that can provide access resources;
[0025] The configuration information processing unit is used to delete or add 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 obtain the information configuration file with updated configuration information.
[0026] Optionally, a development file generation module is further included, which is used to obtain a preset software development file. The development file generation module includes:
[0027] A project construction unit, used to sequentially construct a root project, projects of each third party, and a target project; the target project is used to provide request logic for obtaining resources from each third party;
[0028] A relationship establishing unit, used to establish an association relationship between the access media, the third-party projects and the target project in the project configuration file of the root project to obtain the target configuration file;
[0029] An information establishment unit, used to establish configuration information of each third party in the target project, wherein the configuration information includes a path for obtaining code, a path for obtaining image resource files, a path for reading and writing path files, and a path for reading character strings;
[0030] The file merging unit is used to merge the code and / or resource files of each third party according to the configuration information in the target project to obtain a preset software development file.
[0031] Optionally, the project construction unit includes:
[0032] A construction subunit, used for building the third-party project; the project includes a code folder, an image folder, a read-write folder and a string folder;
[0033] The storage subunit is used to store the code for requesting access to resources from the third party in the code file, store the image resource file corresponding to the third party in the image folder, store the path file of the third party in the read-write folder, and store the string file of the third party in the string folder.
[0034] Optionally, it also includes:
[0035] The development file distribution module is used to provide the target software development file to the access medium so that the access medium adds the target software development file to the application and generates a software installation package.
[0036] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0037] processor;
[0038] a memory for storing a computer program executable by the processor;
[0039] The processor is configured to execute the computer program in the memory to implement the steps of any one of the above methods.
[0040] According to a fourth aspect of an embodiment of the present disclosure, there is provided a readable storage medium on which an executable computer program is stored, and the computer program implements the steps of any of the above methods when executed.
[0041] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0042] It can be seen from the above embodiments that 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 can be processed so that the configuration information contains at least one third party selected by the access media. There is no need to adjust the codes of each third party in the software development file, which can shorten the adjustment time and is conducive to improving the generation speed of the software development file and improving the response speed.
[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] 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 present disclosure.
[0045] Figure 1 The present invention is a flowchart of a method for acquiring software development files according to an exemplary embodiment.
[0046] Figure 2 The figure is a flowchart of obtaining a configuration file according to an exemplary embodiment.
[0047] Figure 3 The present invention is a flowchart of obtaining a preset software development file according to an exemplary embodiment.
[0048] Figure 4 The invention is a flowchart of building a third-party project according to an exemplary embodiment.
[0049] Figure 5 This is an application scenario diagram shown according to an exemplary embodiment.
[0050] Figure 6 to Figure 9 is a block diagram of a software development file acquisition device according to an exemplary embodiment
[0051] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described below by way of example do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.
[0053] The present disclosure provides a method for obtaining software development files. Figure 1 The flowchart of a method for obtaining software development files according to an exemplary embodiment is shown, which can be applied to a service provider, such as a server or a service cluster. Figure 1 , a method for obtaining software development files includes steps 11 and 12, wherein:
[0054] In step 11, access requirements of the access medium are obtained; the access requirements include at least one third party providing access resources selected by the access medium.
[0055] In this embodiment, the server can communicate with the access medium and obtain the access requirements of the access medium. For example, the user can fill in the requirements of the accessed resources on the access medium side, or fill in the third party that can provide the access resources, and then the access medium feeds back the access requirements to the server, so that the server can obtain the access requirements.
[0056] 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 updated configuration information is used as the target software development file corresponding to the access medium.
[0057] In this embodiment, the server can store preset software development files. The preset software development files can be understood as a software development tool (Software Development Kit, SDK) formed by the service provider aggregating multiple (adjustable number) third parties that can provide access resources. The method of obtaining the software development tool is described in subsequent embodiments and will not be explained here.
[0058] When the access requirement is obtained, the server customizes the access requirement and obtains the target software development file corresponding to the access requirement. Figure 2 In step 21, the server may obtain an information configuration file of a preset software development file; the configuration file includes configuration information of multiple third parties that can provide access resources. 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 a configuration file after the configuration information is updated. In other words, in this embodiment, the configuration information of at least one third party required by the access media may be retained in the configuration information, so that the access media can obtain the access resources provided by the at least one third party in the subsequent process.
[0059] In one embodiment, the server can obtain the above-mentioned preset software development files, see Figure 3 In step 31, the server may sequentially construct the root project, third-party projects, and the target project.
[0060] In one example, a root project may be built using a Grale tool and named TogetherAd, and used to associate a third-party project with a target project and access media.
[0061] In an example, build a third-party project, see Figure 4 In step 41, the server may build projects for each third party, each of which may include: a code folder, an image folder, a read-write folder, and a string folder. The code folder is used to store the code for requesting access to resources from the third party. The image folder is used to store image resource files corresponding to the third party. The read-write folder is used to store path files that the third party depends on. The string folder is used to store string files related to the third party.
[0062] In step 42, the server may store the code for requesting access to resources from a third party into a code file, store the image resource file corresponding to the third party into an image folder, store the path file of the third party into a read-write folder, and store the string file of the third party into the string folder.
[0063] For example, if the access resource is advertising, and the third party is the "Baidu Advertising" SDK project, the server can establish a project through the following steps:
[0064] (1) Create an Android project named "baidu";
[0065] (2) Write the request code for requesting advertising information from "Baidu Ads" into the code folder (such as a java file);
[0066] (3) Save the image resource files of "Baidu Ads" (such as Baidu logo, ad images, etc.) into the image folder (such as res / drawable folder);
[0067] (4) Save the path file "bd_file_paths.xml" that the Android system requires the SD card read and write permissions to in the read and write folder (such as res / xml);
[0068] (5) Save the third-party related string files or the strings.xml file in the project into the string folder (such as res / values).
[0069] Based on steps (1) to (5), a third-party "Baidu Advertising" Android project can be established.
[0070] It is understandable that other third-party projects can refer to the above steps (1) to (5), which will not be repeated here.
[0071] In one example, the target project is used to provide request logic for obtaining resources from third parties, where the request logic may include, but is not limited to: configuration information of access resources sent by the server, access resource presentation style, and logic related to access media. For example, the server configures the request order of third-party access resources, the number of access resources provided by each third party, or the software development file supports caching several advertisements and other logic. The request logic can be adjusted according to the requirements of the third party, access media, and service provider, and the corresponding scheme falls within the protection scope of this disclosure.
[0072] In step 32, an association relationship among access media, third-party projects and the target project is established in the project configuration file of the root project to obtain a target configuration file.
[0073] In this embodiment, the server can create a project configuration file named "settings.gradle" in the root project, and establish the association relationship between the access media, the third-party projects and the target project in the project configuration file. For example, the association relationship includes: A, B, C1, C2, C3, ... Cn, indicating that the project configuration file includes n+2 projects, where A represents the access media, B represents the target project, and C1 to Cn represent n third parties that can provide access resources.
[0074] In step 33, configuration information of each third party is established in the target project, and the configuration information includes a path for obtaining code, a path for obtaining image resource files, a path for reading and writing path files, and a path for reading character strings.
[0075] In this embodiment, the server can establish an information configuration file in the target project to associate the code, image resource files, path files and string files. For example, the server can have multiple arrays in the information configuration file, such as:
[0076]
[0077] That is, the array includes the codes of third parties C1, C2, and C3.
[0078]
[0079] That is, the array includes resource files of third parties C1, C2 and C3, including image resource files and strings.
[0080]
[0081] That is, the array includes the storage addresses of the third-party C1, C2 and C3 library files, that is, the path files.
[0082] It is understandable that technicians can set the number of arrays according to specific scenarios, and the corresponding solutions fall within the protection scope of this disclosure.
[0083] In step 34, the code and / or resource files of each third party are merged according to the configuration information in the target project to obtain a preset software development file.
[0084] In this embodiment, the server can use the Gradle tool to find the target project through the project configuration file settings.gradle under the root project, and then find the information configuration file in the target project, search for the corresponding directory according to each array in the information configuration file, merge the code and resources of each third party, and form a ".aar" file, which is the preset software development file.
[0085] In one embodiment, after acquiring the target software development file, the server can provide it to the access medium, so that the access medium can add it to its own project, and after a compilation process, an APK file that runs on the electronic device can be generated.
[0086] At this point, 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 can be processed so that the configuration information contains at least one third party selected by the access media. There is no need to adjust the codes of each third party in the software development file, which can shorten the adjustment time and help improve the generation speed of the software development file and improve the response speed.
[0087] The following describes the method for obtaining the above software development files in conjunction with the scenario where the access resource is an advertisement. Figure 5 ,include:
[0088] The server uses the root project TogetherAd in the Android scenario built by the Gradle tool.
[0089] The server sets up third-party projects for "Baidu Ads", "Toutiao Ads" and "Tencent Ads". Taking the "Baidu Ads" SDK project as an example, set up a project that the "Baidu Ads" SDK project depends on, with the folder name baidu; write the java code for requesting ad resources in the java file in the folder baidu, put the image resource files related to "Baidu Ads" (such as logo) in the folder res / drawable, put the bd_file_paths.xml file that Android requires for SD card read and write permissions in the folder res / xml, and put the strings.xml file of the string content in the project in the folder res / values.
[0090] The server creates an "aggregate advertising" SDK project (i.e., the target project) with a folder named PluginAd. A java file is set in the folder PluginAd to store the java code of the advertising request logic. The request logic includes: the ad slot id configuration information sent by the server, and the request logic in the aggregate advertising SDK project adjusted according to the configuration information, such as which of the three ads is prioritized by the server, or how many ads each ad needs to request, or how many ads the aggregate advertising SDK project needs to support caching.
[0091] In the project configuration file settings.gradle of the root project TogetherAd, configure the project dependencies (include, ':SampleAd', ':PluginAd', ', ':ttad', ':gdt', ':baidu'). The above project configuration file shows that there are five standard Android projects: SampleAd represents access media; PluginAd represents the logical implementation of the aggregated advertising SDK project, which is also the project that is finally packaged into an aar file and provided to the access media; ':ttad', ':gdt', ':baidu' are the Java code implementation projects corresponding to the three advertisers.
[0092] In the build.gradle information configuration file of the target project PluginAd, the associated configuration of java.srcDirs, res.srcDirs, assets.srcDirs, and jniLibs.srcDirs dependencies is performed. The specific configuration is shown in Table 1.
[0093] Table 1
[0094]
[0095]
[0096] Through the above java.srcDirs (java code), res.srcDirs (resource file), jniLibs.srcDirs (dependency file, such as the suffix .jar package file) to configure the third party array, the Gradle tool can find the PluginAd project through settings.gradle, and then find the configuration information in sourceSets under android in the build.gradle file in the PluginAd project, read the java.srcDirs, res.srcDirs, jniLibs.srcDirs arrays, and then search for the corresponding directory. When the search is abnormal (for example, the directory does not exist), an error prompt will be given. When the corresponding directory is found, the corresponding current code or resources will be merged to form the PluginAd.aar file, which is the target software development file.
[0097] If two third parties are required to access the media, one third party can be removed. In the root project TogetherAd's project configuration file build.gradle, modify the java.srcDirs, res.srcDirs, and jniLibs.srcDirs of sourceSets under the android node. For example, delete "Tencent Advertising". The underline under the code and resource files related to "gdt" in Table 1 indicates that the item has been deleted. The result is shown in Table 1.
[0098] It is understandable that, in this embodiment, through the aggregated advertising SDK project, the code structure of each third party can be decoupled, which is conducive to keeping the code simple, so that an aggregated advertising SDK that meets the requirements can be quickly built according to the access requirements of each access media. In addition, it is also conducive to reducing the workload of technical personnel, shortening the time for generating SDK, and increasing the speed of generating SDK.
[0099] Figure 6 is a block diagram of a software development file acquisition device according to an exemplary embodiment. Figure 6 , a software development file acquisition device, comprising:
[0100] An access requirement acquisition module 61 is used to acquire access requirements of an access medium; the access requirements include at least one third party providing access resources selected by the access medium;
[0101] The development file acquisition module 62 is used to update the configuration information of the 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 the target software development file corresponding to the access medium.
[0102] In one embodiment, see Figure 7 , the development file acquisition module 62 includes:
[0103] The configuration file acquisition unit 71 is used to acquire the information configuration file of the preset software development file; the configuration file includes the configuration information of multiple third parties that can provide access resources;
[0104] The configuration information processing unit 72 is used to delete or add configuration information in the information configuration file so that the configuration information includes the configuration information of the at least one third party, thereby obtaining an information configuration file with updated configuration information.
[0105] In one embodiment, see Figure 8 , further comprising a development file generation module, for obtaining a preset software development file step, the development file generation module comprising:
[0106] A project construction unit 81 is used to sequentially construct a root project, projects of each third party, and a target project; the target project is used to provide request logic for obtaining resources from each third party;
[0107] A relationship establishing unit 82, configured to establish an association relationship between the access media, the third-party projects and the target project in the project configuration file of the root project, and obtain the target configuration file;
[0108] An information establishment unit 83, used to establish configuration information of each third party in the target project, wherein the configuration information includes a path for obtaining code, a path for obtaining image resource files, a path for reading and writing path files, and a path for reading character strings;
[0109] The file merging unit 84 is used to merge the code and / or resource files of each third party according to the configuration information in the target project to obtain a preset software development file.
[0110] In one embodiment, see Fig. 9 , the project construction unit 81 includes:
[0111] A construction subunit 91 is used to construct the third party project; the project includes a code folder, an image folder, a read-write folder and a string folder;
[0112] The storage subunit 92 is used to store the code for requesting access to resources from the third party in the code file, store the image resource file corresponding to the third party in the image folder, store the path file of the third party in the read-write folder, and store the string file of the third party in the string folder.
[0113] In one embodiment, it further includes:
[0114] The development file distribution module is used to provide the target software development file to the access medium so that the access medium adds the target software development file to the application and generates a software installation package.
[0115] It is understandable that the device provided in the embodiment of the present disclosure corresponds to the above-mentioned method embodiment. The specific content can refer to the content of each method embodiment, which will not be repeated here.
[0116] Fig.10 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1000 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0117] Reference Fig.10, the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , a communication component 1016 , and an image acquisition component 1018 .
[0118] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute computer programs. In addition, the processing component 1002 may include one or more modules to facilitate interaction between the 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.
[0119] The memory 1004 is configured to store various types of data to support operations on the electronic device 1000. Examples of such data include computer programs for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0120] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 1000. The power supply component 1006 may include a power supply chip, and the controller may communicate with the power supply chip to control the power supply chip to turn on or off a switch device, so that the battery supplies power to the mainboard circuit or not.
[0121] 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 (LCD) 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 touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0122] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0123] The I / O interface 1012 provides an interface between the processing component 1002 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.
[0124] 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 can detect the open / closed state of the electronic device 1000, the relative positioning of components, such as the display screen and keypad of the electronic device 1000, and the sensor assembly 1014 can also detect the position change of the electronic device 1000 or a component, the presence or absence of contact between the target object and the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000.
[0125] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can 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 communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0126] 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 (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0127] In an exemplary embodiment, a non-temporary readable storage medium including an executable computer program is also provided, such as a memory 1004 including instructions, and the executable computer program can be executed by a processor. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0128] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0129] It should be understood that the present disclosure is not limited to the exact structures that have been 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
1. A method for obtaining software development files, characterized in that: include: Acquiring access requirements of an access medium; the access requirements including at least one third party providing access resources selected by the access medium; Updating the configuration information of the preset software development file to the configuration information of at least one third party, and using the software development file after the updated configuration information as the target software development file corresponding to the access medium; Updating the configuration information of the preset software development file to the configuration information of the at least one third party includes: Obtaining a preset information configuration file of a software development file; the information configuration file includes configuration information of multiple third parties that can provide access resources; the preset software development file is a software development tool formed by a service provider aggregating multiple third parties that provide access resources; The configuration information in the information configuration file is deleted so that the configuration information consists of the configuration information of at least one third party that accesses the media requirement, thereby obtaining an information configuration file with updated configuration information.
2. The method according to claim 1, characterized in that Also included are steps for obtaining preset software development files, including: Constructing the root project, the projects of each third party and the target project in sequence; the target project is used to provide the request logic for obtaining resources from each third party; Establishing associations among access media, third-party projects, and a target project in a project configuration file of the root project to obtain a target configuration file; Establishing configuration information of each third party in the target project, the configuration information includes a path for obtaining code, a path for obtaining image resource files, a path for reading and writing path files, and a path for reading character strings; The code and / or resource files of each third party are merged according to the configuration information in the target project to obtain a preset software development file.
3. The method according to claim 2, characterized in that Build third-party projects, including: Build the third-party project; the project includes a code folder, an image folder, a read-write folder, and a string folder; The code for requesting the third party to access resources is stored in the code folder, the image resource file corresponding to the third party is stored in the image folder, the path file of the third party is stored in the read-write folder, and the string file of the third party is stored in the string folder.
4. The method according to claim 1, characterized in that: Also includes: The target software development file is provided to the access medium so that the access medium adds the target software development file to an application program and generates a software installation package.
5. A software development file acquisition device, characterized in that: include: An access requirement acquisition module, used to acquire access requirements of an access medium; the access requirements include at least one third party providing access resources selected by the access medium; A development file acquisition module, used to update the configuration information of the preset software development file to the configuration information of the at least one third party, and use the software development file after the updated configuration information as the target software development file corresponding to the access medium; The development file acquisition module includes: A configuration file acquisition unit, used to acquire an information configuration file of a preset software development file; the information configuration file includes configuration information of multiple third parties that can provide access resources; the preset software development file is a software development tool formed by a service provider aggregating multiple third parties that provide access resources; The configuration information processing unit is used to delete the configuration information in the information configuration file so that the configuration information is composed of the configuration information of at least one third party of the access media demand, and obtain the information configuration file after the configuration information is updated.
6. The device according to claim 5, characterized in that The method further includes a development file generation module for obtaining a preset software development file, wherein the development file generation module includes: A project construction unit, used to sequentially construct a root project, projects of each third party, and a target project; the target project is used to provide request logic for obtaining resources from each third party; A relationship establishing unit, used to establish an association relationship between the access media, the third-party projects and the target project in the project configuration file of the root project to obtain the target configuration file; An information establishment unit, used to establish configuration information of each third party in the target project, wherein the configuration information includes a path for obtaining code, a path for obtaining image resource files, a path for reading and writing path files, and a path for reading character strings; The file merging unit is used to merge the code and / or resource files of each third party according to the configuration information in the target project to obtain a preset software development file.
7. The device according to claim 6, characterized in that The project construction unit includes: A construction subunit is used to build the third-party project; the project includes a code folder, an image folder, a read-write folder and a string folder; The storage subunit is used to store the code for requesting access to resources from the third party in the code folder, store the image resource file corresponding to the third party in the image folder, store the path file of the third party in the read-write folder, and store the string file of the third party in the string folder.
8. The device according to claim 5, characterized in that Also includes: The development file distribution module is used to provide the target software development file to the access medium so that the access medium adds the target software development file to the application and generates a software installation package.
9. An electronic device, characterized in that: include: 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 according to any one of claims 1 to 4.
10. A readable storage medium having an executable computer program stored thereon, characterized in that: When the computer program is executed, the steps of the method according to any one of claims 1 to 4 are implemented.
