CN116185401A - Integration method and device of software development kit and nonvolatile storage medium - Google Patents

Integration method and device of software development kit and nonvolatile storage medium Download PDF

Info

Publication number
CN116185401A
CN116185401A CN202211732283.XA CN202211732283A CN116185401A CN 116185401 A CN116185401 A CN 116185401A CN 202211732283 A CN202211732283 A CN 202211732283A CN 116185401 A CN116185401 A CN 116185401A
Authority
CN
China
Prior art keywords
file
software development
target
application program
development kit
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
Application number
CN202211732283.XA
Other languages
Chinese (zh)
Inventor
岳亚辉
李成钢
蒋思玉
杨燚豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211732283.XA priority Critical patent/CN116185401A/en
Publication of CN116185401A publication Critical patent/CN116185401A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses an integration method and device of a software development kit and a nonvolatile storage medium. Wherein the method comprises the following steps: acquiring a plurality of software development kits corresponding to the application program, and determining a target script corresponding to the application program; executing the target script under the target directory; in running the target script, the target file and code statements are inserted into project files of the application to integrate a plurality of software development kits. The method and the device solve the technical problem that errors are easy to occur in the software development kit integration process due to the fact that the software development kit integration process is complex in the prior art.

Description

Integration method and device of software development kit and nonvolatile storage medium
Technical Field
The present application relates to the field of mobile application technologies, and in particular, to an integration method and apparatus of a software development kit, and a nonvolatile storage medium.
Background
Currently, the common mobile terminal software development kit is integrated by means of an integrated document, codes are added into projects step by step according to document flows, and a certain link is easily missed under the condition that the software development kit is more in access steps, or the whole software development kit is failed to integrate due to modification errors. Due to the numerous steps, it is difficult to remove the positioning problem when it occurs. In addition, the current common software development tool package monitors appointed scenes such as login, registration and the like, and a developer is required to actively call a method in the software development tool package to carry out statistical reporting under the appointed business scenes, so that customized statistical reporting of certain business scenes is more complicated.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides an integration method and device of a software development kit and a nonvolatile storage medium, which at least solve the technical problem that errors are easy to occur in the integration process of the software development kit due to the fact that the integration process of the software development kit is complex in the prior art.
According to an aspect of the embodiments of the present application, there is provided an integration method of a software development kit, including: acquiring a plurality of software development kits corresponding to the application program, and determining a target script corresponding to the application program; executing the target script under the target directory; in the process of running the target script, inserting a target file and code sentences into project files of the application program to integrate a plurality of software development kits, wherein the target file is a file required by integrating the plurality of software development kits.
Optionally, determining the target script corresponding to the application program includes: determining identification information of the application program according to a first file of the application program, wherein the first file is used for authenticating the application program; and replacing the first parameter of the template script by the identification information to determine a target script corresponding to the application program, wherein the first parameter is a parameter of a code added when the application program is initialized in the template script.
Optionally, executing the target script under the target directory includes: searching a main module in the target directory, and searching a manifest file under the main module; adding a first code in the manifest file, wherein the first code is used for requesting the authority of the manifest file; searching whether an entry class file exists in the list file; adding a second code at a first location of the ingress class file in the manifest file, wherein the second code is used to initialize a software development kit; searching a constructed class file which is positioned under the same main module as the inlet class file; adding the dependency information of the software development kit at a second position of the constructed class file; and executing the target script under the target directory according to the first code, the second code and the dependency information.
Optionally, in the event that no portal class file exists in the manifest file, generating a portal class file with a software development kit initialization statement.
Optionally, building the class file includes: build. Gradle file.
Optionally, after inserting the object file and the code statement into the project file of the application program to integrate the plurality of software development kits during the running of the object script, the method further comprises: when an application program runs for the first time, loading an acquisition configuration file of the application program, wherein the acquisition configuration file is used for acquiring events of the application program; uploading the acquisition configuration file to a server in communication with the application program, wherein the server is used for receiving the acquisition configuration file, adding marks to part of the events to obtain target events, and sending the target events to the application program; and when the application program runs for the nth time, the target event is sent to the server, wherein n is a positive integer greater than 1.
Optionally, the target directory is a source code directory of the application development environment.
According to still another aspect of the embodiments of the present application, there is further provided a non-volatile storage medium, where the storage medium includes a stored program, and when the program runs, the device on which the storage medium is controlled to execute the above method for integrating the software development kit.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device, including: the system comprises a memory and a processor, wherein the processor is used for running a program stored in the memory, and the program runs to execute the integration method of the software development kit.
In the embodiment of the application, a plurality of software development kits corresponding to the application program are acquired, and a target script corresponding to the application program is determined; executing the target script under the target directory; in the process of operating the target script, the target file and the code statement are inserted into project files of the application program to integrate a plurality of software development kits, wherein the target file is a file required by integrating the plurality of software development kits.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 is a flow chart of a method of integration of a software development kit according to an embodiment of the present application;
FIG. 2 is a flow chart of another method of integration of a software development kit according to an embodiment of the present application;
FIG. 3 is a flow chart of another method of integration of a software development kit according to an embodiment of the present application;
FIG. 4 is a flow chart of data acquisition for an application according to an embodiment of the present application;
FIG. 5 is a block diagram of an integrated device of a software development kit according to an embodiment of the present application;
fig. 6 is a block diagram of a hardware structure of a computer terminal (or an electronic device) of an integration method of a software development kit according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with the embodiments of the present application, there is provided a method embodiment of an integration method for a software development kit, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
FIG. 1 is a flowchart of a method of integrating a software development kit, as shown in FIG. 1, according to an embodiment of the present application, the method comprising the steps of:
step S102, a plurality of software development kits corresponding to the application program are obtained, and a target script corresponding to the application program is determined.
According to an alternative embodiment of the present application, a software development kit is a collection of development tools that are used by a software engineer to create application software for a particular software package, software framework, hardware platform, operating system, or the like. The software development kits facilitate creation of applications through compilers, debuggers, software frameworks, and the like. It may simply be some file that provides an application programming interface for a programming language, but may also include complex hardware that can communicate with an embedded system. Common tools include utilities for debugging and other uses. Software development kits also often include example code, supporting technical notes, or other supporting documents that clarify the suspects for the underlying reference material. For example, the software development kit includes a login module, a registration module, and the like.
Step S104, executing the target script under the target catalog.
According to another optional embodiment of the application, the target script searches the source code directory of the project, locates the path of the main module in the source code directory, searches the manifest file under the main module, and adds the relevant code for requesting the authority of the manifest file under the manifest file. Searching an entry class file in the list file, adding an initialization code of a software development kit at a designated position of the entry class file, searching a build. Gradle file under the same module as the entry class file in the entry class file, adding dependency information of the software development kit at the designated position, and finally compiling and packaging the program.
Step S106, inserting the target file and the code statement into the project file of the application program in the process of running the target script to integrate a plurality of software development kits, wherein the target file is a file required for integrating the plurality of software development kits.
The integration work of the software development kit does not need to manually add the software development kit file at the corresponding position in the project code according to the integrated file by a developer in the field of mobile development characteristics, and the software development kit relies on configuration and initialization sentences, so that any developer or a person skilled in using a computer can operate to complete the integration work of the software development kit; meanwhile, the problem of gradually checking according to the integrated document is not required to be solved because of lack of certain steps, and the software development kit does not work as expected.
According to the steps, the target file and the code statement are inserted into the project file of the application program in the process of running the target script so as to integrate a plurality of software development kits, thereby achieving the purpose of simplifying the integration process of the software development kits, and further achieving the technical effect of reducing errors easily occurring in the integration process of the software development kits.
According to an alternative embodiment of the present application, determining a target script corresponding to an application program includes the following steps: determining identification information of the application program according to a first file of the application program, wherein the first file is used for authenticating the application program; and replacing the first parameter of the template script by the identification information to determine a target script corresponding to the application program, wherein the first parameter is a parameter of a code added when the application program is initialized in the template script.
According to another optional embodiment of the application, a mobile terminal operating system (Android, ios and the like) and a PC terminal operating system (Mac, windows, linux and the like) where source codes of a software development kit are located are selected, then the PC terminal replaces parameters of codes added in the template script when the application program is initialized according to application identifications such as AppKey and the like generated when project files of the application program are created, and then a developer can download an automation integrated script file corresponding to the application program created by the developer.
In some alternative embodiments of the present application, executing the target script under the target directory may be implemented by: searching a main module in the target directory, and searching a manifest file under the main module; adding a first code in the manifest file, wherein the first code is used for requesting the authority of the manifest file; searching whether an entry class file exists in the list file; adding a second code at a first location of the ingress class file in the manifest file, wherein the second code is used to initialize a software development kit; searching a constructed class file which is positioned under the same main module as the inlet class file; adding the dependency information of the software development kit at a second position of the constructed class file; and executing the target script under the target directory according to the first code, the second code and the dependency information.
In further alternative embodiments of the present application, the portal class file is generated with the software development kit initialization statement in the absence of the portal class file in the manifest file.
As another alternative embodiment of the present application, constructing the class file includes: build. Gradle file.
gradle is a building tool used to build processes including compilation, packaging, etc. For example, the Android Studio uses gradle by default to complete the application program construction.
In an alternative embodiment, after inserting the object file and the code statement into the project file of the application program to integrate the plurality of software development kits in the process of running the object script, there is a need to: when an application program runs for the first time, loading an acquisition configuration file of the application program, wherein the acquisition configuration file is used for acquiring events of the application program; uploading the acquisition configuration file to a server in communication with the application program, wherein the server is used for receiving the acquisition configuration file, adding marks to part of the events to obtain target events, and sending the target events to the application program; and when the application program runs for the nth time, the target event is sent to the server, wherein n is a positive integer greater than 1.
After the application program integrated software development kit is successful, the application program integrated software development kit interacts with a server side in the starting operation process, the software development kit is initialized through parameters such as AppKey generated when the application is registered, the server side verifies the application program, whether the application program is a trusted authorized application or not, an acquisition configuration file of the current application is loaded after the application program authorization verification is passed, whether the current detected event needs to be reported to the server side or not is judged through the configuration file, and when the acquisition configuration file is not set for the application, the default event is reported in a full quantity. The server sees the collected event total data in the application management background, then adds a mark to a certain event and configures the mark into a collection configuration file. And then, the application can only collect marked events according to the configuration in the next starting process, so that the operation work of operators is facilitated, and the operators can modify the configuration according to the requirement during the period without modifying the source codes of the application program.
According to an alternative embodiment of the present application, the target directory is a source code directory of the application development environment.
FIG. 2 is a flow chart of another method of integration of a software development kit according to an embodiment of the present application, as shown in FIG. 2, the method comprising the steps of:
registering an account number in a software development kit application management platform, registering a mobile application in the software development kit application management platform, and acquiring application identifiers such as an AppKey, wherein the software development kit application management platform interacts with a server;
selecting a mobile terminal operating system (Android, ios and the like) and a PC terminal operating system (Mac, windows, linux and the like) where source codes of a software development kit are located, replacing parameters of codes added in the initialization of an application program in a template script by the PC terminal according to application identifications such as an AppKey and the like generated when project files of the application program are created, and downloading an automatic integrated script file corresponding to the application created by a developer;
executing an automatic integrated script file, and generating a project for completing the integration of the software development kit by combining the mobile application project file and the data acquisition software development kit file;
the software development kit server receives data uploading from the data acquisition software development kit, and needs to issue customized configuration data to the software development kit to complete customized acquisition service;
the software development kit application management platform issues an AppKey and a secret and customized configuration information to the software development kit server according to the information of the registered application, and meanwhile, data acquired by the software development kit is displayed to a user.
FIG. 3 is a flow chart of another method of integration of a software development kit according to an embodiment of the present application, as shown in FIG. 3, the method comprising the steps of:
step S302, aiming at the mobile application project code, an automatic integration script file applicable to the project structure is written, and AppKey and secret parameter information required by integration are added. For example: aiming at the Android project, the automation script can put the software development kit file under a project compiling specified path, add a dependency statement in a corresponding position in the configuration file, and add a software development kit initializing statement carrying initializing parameters in a corresponding function of a program entry class.
Step S304, mobile application project code of the integrated data collection software development kit is required.
And step S306, placing the automatic integration script file under the appointed path of the mobile application program, executing the script, and automatically integrating. For example: aiming at the Android project, a folder containing an automatic integrated script file (Shell script), a software development tool kit file and a program entry class (not specified in the original application) is placed under the catalog of the same level as the main module in the project, the script is executed under a Linux or Windows platform, and the software development tool kit is integrated into a required file and code statement to be inserted into the project file, so that integration is completed.
Step S308, after the automatic integration script is successfully executed, a mobile application project file with integration completed is generated.
Fig. 4 is a flowchart of data acquisition for an application program according to an embodiment of the present application, and as shown in fig. 4, the method includes the following steps:
step S402, necessary information such as package names of applications is filled in a data acquisition software development kit integration platform, and after the information such as AppKey (application identifier) and secret (secret key) of the software development kit is checked by the platform, the information is acquired for acquiring configuration information for use when the software development kit is initialized.
In step S404, the operator to which the application belongs configures customized information such as a data collection range, a data uploading period, etc. in the application management background of the data collection software development kit integration platform, so as to achieve the purpose of customized collection of application operation data.
And step S406, after the data acquisition software development kit is integrated into a project, appKey and secret information are transmitted in the process of initialization, and the software development kit integration platform verifies the identity of the software development kit and pulls the identity of the software development kit to the corresponding customized data acquisition configuration and transmits the information to the application.
In step S408, in the application running process, the required program running data is collected according to the customized configuration information and uploaded to the server.
In step S410, the server pulls up the program running data, and stores the data in the database in the classification.
Step S412, the application operator formulates the relevant rules, takes out the needed data from the database for viewing, and makes the proper operation strategy according to the data condition.
In summary, the data collection software development kit integrating work does not need to manually add the software development kit file at the corresponding position in the project code according to the integrated file by a developer (for example, android or ios) in the field of mobile development characteristics, and the software development kit depends on configuration and initialization sentences, so that any developer or a person skilled in using a computer can operate to complete the software development kit integrating work; meanwhile, the problem is not required to be checked step by step according to the integrated document due to the fact that certain steps are not needed, and time is wasted. The automatic integrated script is only needed to be executed once again, and the integrated process becomes simple and quick.
FIG. 5 is a block diagram of an integrated device of a software development kit, according to an embodiment of the present application, as shown in FIG. 5, the device comprising:
the determining module 50 is configured to obtain a plurality of software development kits corresponding to an application program, and determine a target script corresponding to the application program;
an execution module 52 for executing the target script under a target directory;
and an integration module 54, configured to insert a target file and a code statement into a project file of the application program during the process of running the target script, so as to integrate the plurality of software development kits, where the target file is a file required for integrating the plurality of software development kits.
Note that each module in fig. 5 may be a program module (for example, a set of program instructions for implementing a specific function), or may be a hardware module, and for the latter, it may be represented by the following form, but is not limited thereto: the expression forms of the modules are all a processor, or the functions of the modules are realized by one processor.
It should be noted that, the preferred implementation manner of the embodiment shown in fig. 5 may refer to the related description of the embodiment shown in fig. 1, which is not repeated herein.
Fig. 6 shows a hardware block diagram of a computer terminal (or mobile device) for implementing an integration method of a software development kit. As shown in fig. 6, the computer terminal 60 (or mobile device 60) may include one or more processors 602 (shown in the figures as 602a, 602b, … …,602 n) (the processor 602 may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, etc.) a memory 604 for storing data, and a transmission module 606 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 6 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 60 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
It should be noted that the one or more processors 602 and/or other data processing circuits described above may be referred to herein generally as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 60 (or mobile device). As referred to in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination to interface).
The memory 604 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the integration method of the software development kit in the embodiments of the present application, and the processor 602 executes the software programs and modules stored in the memory 604, thereby performing various functional applications and data processing, that is, implementing the integration method of the software development kit described above. Memory 604 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 604 may further comprise memory located remotely from processor 602, which may be connected to computer terminal 60 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 606 is used to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 60. In one example, the transmission module 606 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission module 606 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 60 (or mobile device).
It should be noted here that, in some alternative embodiments, the computer device (or the electronic device) shown in fig. 6 may include hardware elements (including circuits), software elements (including computer code stored on a computer readable medium), or a combination of both hardware elements and software elements. It should be noted that fig. 6 is only one example of a specific example, and is intended to illustrate the types of components that may be present in the computer device (or electronic device) described above.
It should be noted that, the electronic device shown in fig. 6 is used for executing the integration method of the software development kit shown in fig. 1, so the explanation of the execution method of the command is also applicable to the electronic device, and will not be repeated here.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored program, wherein the program is used for controlling the equipment where the storage medium is located to execute the integration method of the software development kit.
The nonvolatile storage medium executes a program of the following functions: acquiring a plurality of software development kits corresponding to the application program, and determining a target script corresponding to the application program; executing the target script under the target directory; in the process of running the target script, inserting a target file and code sentences into project files of the application program to integrate a plurality of software development kits, wherein the target file is a file required by integrating the plurality of software development kits.
The embodiment of the application also provides electronic equipment, which comprises: the system comprises a memory and a processor, wherein the processor is used for running a program stored in the memory, and the program runs to execute the integration method of the software development kit.
The processor is configured to execute a program that performs the following functions: acquiring a plurality of software development kits corresponding to the application program, and determining a target script corresponding to the application program; executing the target script under the target directory; in the process of running the target script, inserting a target file and code sentences into project files of the application program to integrate a plurality of software development kits, wherein the target file is a file required by integrating the plurality of software development kits.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be essentially or a part contributing to the related art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for integrating a software development kit, comprising:
acquiring a plurality of software development kits corresponding to an application program, and determining a target script corresponding to the application program;
executing the target script under a target directory;
and inserting a target file and code sentences into project files of the application program in the process of running the target script so as to integrate the plurality of software development kits, wherein the target file is a file required for integrating the plurality of software development kits.
2. The method of claim 1, wherein determining the target script for the application comprises:
determining identification information of the application program according to a first file of the application program, wherein the first file is used for authenticating the application program;
and replacing a first parameter of the template script through the identification information, and determining a target script corresponding to the application program, wherein the first parameter is a parameter of a code added when the application program is initialized in the template script.
3. The method of claim 1, wherein executing the target script under a target directory comprises:
searching a main module in the target directory, and searching a manifest file under the main module;
adding a first code in the manifest file, wherein the first code is used for requesting the authority of the manifest file;
searching whether an entry class file exists in the list file;
adding a second code in a first position of the portal class file in the condition that the portal class file exists in the manifest file, wherein the second code is used for initializing the software development kit;
searching a construction class file which is positioned under the same main module as the entry class file;
adding the dependency information of the software development kit at a second location of the build class file;
and executing the target script under the target directory according to the first code, the second code and the dependency information.
4. A method according to claim 3, characterized in that the method further comprises:
and generating the portal class file with the software development kit initialization statement in the case that the portal class file does not exist in the manifest file.
5. The method of claim 3, wherein constructing a class file comprises: build. Gradle file.
6. The method of claim 1, wherein, during execution of the target script, after inserting a target file and code statements into project files of the application to integrate the plurality of software development kits, the method further comprises:
when the application program runs for the first time, loading an acquisition configuration file of the application program, wherein the acquisition configuration file is used for acquiring events of the application program;
uploading the acquisition configuration file to a server in communication with the application program, wherein the server is used for receiving the acquisition configuration file, adding a mark to part of the events to obtain target events, and sending the target events to the application program;
and when the application program runs for the nth time, the target event is sent to the server, wherein n is a positive integer greater than 1.
7. The method of claim 1, wherein the target directory is a source code directory of the application development environment.
8. An integrated device of a software development kit, comprising:
the determining module is used for acquiring a plurality of software development kits corresponding to the application program and determining a target script corresponding to the application program;
the execution module is used for executing the target script under the target catalog;
and the integration module is used for inserting a target file and code sentences into project files of the application program in the process of running the target script so as to integrate the plurality of software development kits, wherein the target file is a file required for integrating the plurality of software development kits.
9. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the method of integrating the software development kit of any one of claims 1 to 7.
10. An electronic device, comprising: a memory and a processor for executing a program stored in the memory, wherein the program is executed to perform the method of integrating a software development kit according to any one of claims 1 to 7.
CN202211732283.XA 2022-12-30 2022-12-30 Integration method and device of software development kit and nonvolatile storage medium Pending CN116185401A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211732283.XA CN116185401A (en) 2022-12-30 2022-12-30 Integration method and device of software development kit and nonvolatile storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211732283.XA CN116185401A (en) 2022-12-30 2022-12-30 Integration method and device of software development kit and nonvolatile storage medium

Publications (1)

Publication Number Publication Date
CN116185401A true CN116185401A (en) 2023-05-30

Family

ID=86435820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211732283.XA Pending CN116185401A (en) 2022-12-30 2022-12-30 Integration method and device of software development kit and nonvolatile storage medium

Country Status (1)

Country Link
CN (1) CN116185401A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463863A (en) * 2020-11-05 2021-03-09 深圳市和讯华谷信息技术有限公司 Cloud platform data acquisition method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463863A (en) * 2020-11-05 2021-03-09 深圳市和讯华谷信息技术有限公司 Cloud platform data acquisition method and device

Similar Documents

Publication Publication Date Title
CN109474977A (en) A kind of monitoring method of equipment, apparatus and system
KR102341154B1 (en) High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices
CN105389263B (en) Application software authority monitoring method, system and equipment
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN104811979B (en) Method for testing pressure based on FOTA upgrading and device
CN104978258A (en) Software automation test method and system
CN105871794A (en) Distributed file system date storage method and system, client and server
CN105630569A (en) Software source code processing method and device and electronic equipment
CN102970342A (en) Automatic update method of embedded terminal based on over the air (OTA) technology
CN116185401A (en) Integration method and device of software development kit and nonvolatile storage medium
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN107395666B (en) Method and device for operating upgrading data packet of numerical control machine tool
CN106452937A (en) Router automatic test method and test apparatus
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN106708494A (en) JAR upgrading method and apparatus
CN116028077A (en) Application installation method based on mobile terminal, ecological service system and electronic equipment
CN112416796B (en) Software upgrading test method and device
CN112131065A (en) Method, device and system for verifying DAC (digital-to-analog converter) interface
White et al. Model-driven product-line architectures for mobile devices
CN114172832A (en) Internet of things testing method and device, central control equipment and computer equipment
CN115544521B (en) Method and device for generating checksum of offline installation file
CN112306843A (en) Test method, test device and storage medium
CN112445513A (en) Installation package processing method and device
CN115391147A (en) Application data dynamic acquisition method and device
CN115357258B (en) Application deployment method and device, storage medium and electronic device

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