Disclosure of Invention
In order to solve the problems that the existing software development kit has low access efficiency and can cause access failure due to human errors and confusion, the embodiment of the application provides a configuration method, equipment and a storage medium of the software development kit.
In a first aspect, an embodiment of the present application provides a software development kit configuration method, including:
responding to an access instruction of a target software development kit, and acquiring a configuration file of the target software development kit from an application program; the target software development kit is a software development kit which calls a third-party application to realize a target function, the configuration file comprises configuration parameters required by the access of the target software development kit, and the configuration file is uniformly configured in advance through a target configuration system;
verifying the configuration file;
if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters to the target software development kit;
generating an interface function for a specified method in the target software development kit, and packaging a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following: and the method needs the callback of the third-party application and the method needs the implementation of the third-party application.
According to the method provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is stored in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
The implementation manner of accessing the management software development kit to the target software development kit according to the configuration file may include:
reading configuration parameters from the configuration file, and transmitting the configuration parameters into a target software development kit;
generating an interface function for a specified method in a target software development kit, and packaging a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following methods: methods for third-party application callback are needed, and methods for third-party application implementation are needed.
Optionally, the initialization instruction carries an index of the configuration file of the target software development kit and an index of the target software development kit, and before the configuration file of the target software development kit is read from the engineering file of the application program, the configuration file may be searched according to the index of the configuration file; before the configuration parameters are transmitted into the target software development kit, the target software development kit can be searched according to the index of the target software development kit.
Optionally, the verifying the configuration file includes:
searching at least one piece of information corresponding to the configuration file: a terminal operating system, an application program version number and an application program identifier;
if the terminal operating system corresponding to the configuration file is found, comparing the terminal operating system corresponding to the configuration file with the operating system of the terminal where the application program is located;
if the application program version number corresponding to the configuration file is found, comparing the application program version number corresponding to the configuration file with the application program version number;
and if the application program identifier corresponding to the configuration file is found, comparing the identifier corresponding to the configuration file with the identifier of the application program.
Optionally, the generating manner of the configuration file includes:
acquiring configuration parameters of the target software development kit through a human-computer interaction interface;
and generating a configuration file containing the configuration parameters.
In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a management software development package module, where the management software development package module includes a configuration file reading sub-module and a software development package access sub-module:
the configuration file reading submodule is used for: responding to an access instruction of a target software development kit, and acquiring a configuration file of the target software development kit from an application program; the target software development kit is a software development kit which calls a third-party application to realize a target function, the configuration file comprises configuration parameters required by the access of the target software development kit, and the configuration file is uniformly configured in advance through a target configuration system;
the software development kit access sub-module is used for: verifying the configuration file; if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters to the target software development kit; generating an interface function for a specified method in the target software development kit, and packaging a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following: and the method needs the callback of the third-party application and the method needs the implementation of the third-party application.
According to the electronic device provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is stored in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
The software development kit access module is specifically used for:
reading configuration parameters from the configuration file, and transmitting the configuration parameters into a target software development kit;
generating an interface function for a specified method in a target software development kit, and packaging a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following methods: methods for third-party application callback are needed, and methods for third-party application implementation are needed.
Optionally, the initialization instruction carries an index of the configuration file of the target software development kit and an index of the target software development kit, and before the configuration file of the target software development kit is read from the engineering file of the application program, the configuration file reading sub-module may also search the configuration file according to the index of the configuration file; before the configuration parameters are transmitted into the target software development kit, the SDK access sub-module can also search the target software development kit according to the index of the target software development kit.
Optionally, the software development kit access sub-module is configured to: searching at least one piece of information corresponding to the configuration file: a terminal operating system, an application program version number and an application program identifier; if the terminal operating system corresponding to the configuration file is found, comparing the terminal operating system corresponding to the configuration file with the operating system of the terminal where the application program is located; if the application program version number corresponding to the configuration file is found, comparing the application program version number corresponding to the configuration file with the application program version number; and if the application program identifier corresponding to the configuration file is found, comparing the identifier corresponding to the configuration file with the identifier of the application program.
Optionally, the generating manner of the configuration file includes:
acquiring configuration parameters of the target software development kit through a human-computer interaction interface;
and generating a configuration file containing the configuration parameters.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing any of the method embodiments of the first aspect;
the processor is configured to execute programs stored in the memory.
According to the electronic device provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is stored in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program for implementing any of the method embodiments of the first aspect.
The program stored in the computer-readable storage medium provided in the embodiment of the present application stores the configuration parameters of each configuration item of the target software development kit in a configuration file in advance, and stores the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
In a fifth aspect, an embodiment of the present application provides a software development kit configuration method, including:
acquiring configuration information of a target software development kit through a human-computer interaction interface, wherein the target software development kit is a software development kit for calling a third-party application to realize a target function;
generating a configuration file of the target software development kit based on the configuration information;
and responding to a configuration file acquisition request, sending the configuration file so that a receiving party can store the configuration file to an application program, wherein the configuration file is used for accessing a management software development kit in the application program to the target software development kit.
According to the method provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is sent according to the request of the receiving party, so that the receiving party can store the configuration file in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Optionally, the method further includes:
acquiring at least one of the following configuration file management instructions through a human-computer interaction interface: a configuration file management instruction for searching the target configuration file and a configuration file management instruction for modifying the target configuration file;
and processing the target configuration file according to the configuration file management instruction.
In a sixth aspect, an embodiment of the present application provides an electronic device, including:
the configuration information acquisition module is used for acquiring the configuration information of the target software development kit through a human-computer interaction interface;
the configuration file generating module is used for generating a configuration file containing the configuration information;
the configuration file sending module is used for responding to a configuration file obtaining request and sending the configuration file so that a receiving party can store the configuration file to an application program, and the configuration file is used for accessing a management software development kit in the application program to the target software development kit.
The configuration parameters of each configuration item of the target software development kit are stored in a configuration file in advance, and the configuration file is sent according to the request of a receiving party, so that the receiving party can store the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing any of the method embodiments of the fifth aspect;
the processor is configured to execute programs stored in the memory.
The electronic device provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit into a configuration file in advance, and sends the configuration file according to the request of the receiving party, so that the receiving party can store the configuration file into the application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium storing a program for implementing any of the method embodiments of the fifth aspect.
The program stored in the computer-readable storage medium provided in the embodiment of the present application stores the configuration parameters of each configuration item of the target software development kit in a configuration file in advance, and sends the configuration file according to a request of a receiving party, so that the receiving party stores the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some of the flows described in the specification and claims of the present application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that the flows may include more or less operations, and that the operations may be performed sequentially or in parallel.
As shown in fig. 1, an embodiment of the present application provides a software development kit access method, which may be implemented on a terminal device, specifically implemented by a management software development kit in an application program of the terminal device, and the method includes the following operations:
step 101, responding to an access instruction of a target software development kit, and acquiring a configuration file of the target software development kit from an application program; the target software development kit is a software development kit which calls a third-party application to realize a target function, the configuration file comprises configuration parameters required by the access of the target software development kit, and the configuration file is uniformly configured in advance through a target configuration system.
The access instruction may be sent by an application program or sent by a network device, and is used for triggering the management software development kit to access the target software development kit.
The third-party application may refer to a third-party application program, or may refer to a server of the third-party application program.
And 102, verifying the configuration file.
And 103, if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters to the target software development kit.
And if the verification fails, the target software development kit is not accessed. Further, if the verification fails, prompt information that the verification fails can be sent through a human-computer interaction interface, or prompt information that the verification fails can be sent to the target network device through the internet.
Step 104, generating an interface function for a specified method in the target software development kit, and encapsulating a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following methods: and the method needs the callback of the third-party application and the method needs the implementation of the third-party application.
The designated method is a method which needs to be called by a third party or is realized by the third party, and the non-designated method is a method which does not need to be called by the third party and does not need to be realized by the third party. Specifically, the third-party application calls back or implements the specified method through the encapsulated interface function.
By way of example and not limitation, the target software development kit may be an account software development kit, a shared software development kit, or a pushed software development kit.
The management software development kit is pre-installed in the application program, and mainly functions to read the configuration file of the target software development kit, verify the accuracy of the configuration file, and realize the automatic access of the target software development kit.
According to the method provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is stored in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Furthermore, the initialization instruction may carry identification information of the specified method, and the management software development kit identifies the specified method according to the identification information.
On the basis of any of the above method embodiments, the initialization instruction may also carry an index of the configuration file of the target software development kit and an index of the target software development kit, and before reading the configuration file of the target software development kit from the application program, the configuration file may also be searched according to the index of the configuration file; before the configuration parameters are transmitted into the target software development kit, the target software development kit can be searched from the application program according to the index of the target software development kit.
Wherein the index of the configuration file may include at least one of the following information: the name of the configuration file, the name of a target software development kit corresponding to the configuration file, the name of a terminal operating system corresponding to the configuration file, and the version number of an application program corresponding to the configuration file. Wherein the index of the target software development kit may include at least one of the following information: the name of the target software development kit, the name of a terminal operating system corresponding to the target software development kit, and the version number of an application program corresponding to the target software development kit.
On the basis of any method embodiment, before the configuration parameters are transmitted into the target software development kit, the configuration file can be verified; and if the verification is passed, transmitting the configuration parameters into the target software development kit.
Wherein the verification of the configuration file may include legitimacy. The implementation of the validity check may include: and checking information such as a terminal operating system, an application program version number and the like corresponding to the configuration file. And if the terminal operating system corresponding to the configuration file is consistent with the operating system of the terminal where the application program is located, and the application program version number corresponding to the configuration file is consistent with the version number of the application system, passing the validity check, otherwise, failing to pass the validity check.
As shown in fig. 2, an embodiment of the present application provides a software development kit configuration method, which may be implemented on a server, and the method includes the following operations:
step 201, obtaining configuration information of a target software development kit through a human-computer interaction interface, wherein the target software development kit is a software development kit for calling a third-party application to realize a target function.
Step 202, generating a configuration file containing the configuration information.
Step 203, responding to the configuration file acquisition request, sending the configuration file so that the receiver can store the configuration file to the application program, wherein the configuration file is used for accessing the management software development kit in the application program to the target software development kit.
The server serves as a cloud configuration platform, a user can configure some parameters on the platform according to the characteristics and the requirement pertinence of the target software development kit to generate a configuration file, and an access party can download and check the historical configuration file on the cloud configuration platform.
According to the method provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is sent according to the request of the receiving party, so that the receiving party can store the configuration file in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
As shown in fig. 3, in the configuration method for a software development kit provided in the embodiment of the present application: providing a configuration interface by a cloud configuration platform for a configuration administrator to input configuration information of the target software development kit; the cloud configuration platform generates a configuration file of the target software development kit according to the configuration information; the management software development kit acquires a configuration file of the target software development kit from the cloud configuration platform and verifies the configuration file; the management software development kit adapts the target software development kit according to the configuration file to achieve access of the target software development kit (such as a pushing software development kit, a sharing software development kit, a deep link software development kit and the like), wherein in the adaptation process, the management software development kit adapts each target software development kit needing to be accessed, encapsulates parameters needed by registration of the target software development kit, achieves call-back needed by part of the target software development kit, and exposes call-back or a method needed to be achieved by an access party.
The method provided by the embodiment of the present application is described below with reference to specific application scenarios.
In this scenario, a configuration administrator accesses a software development kit configuration server (also called a cloud configuration platform) through a browser of a terminal device, sends configuration information to the software development kit configuration server, and the software development kit configuration server generates a configuration file according to the received configuration information. Taking the generation of a configuration file of a push (push) software development kit as an example, by accessing a configuration server of the software development kit, a configuration interface shown in fig. 4 is displayed on a browser of a terminal device, and a basic configuration input control and a personalized configuration addition control are loaded through the configuration interface. For a target software development kit, the configuration information may include basic configuration information and personalized configuration information, the basic configuration information includes information related to the operating environments of the application program, the terminal operating system, and the like where the software development kit is located, and the personalized configuration information is configuration information related to the specific function of the software development kit. The operating system selection control, the machine room selection control, the domain name input control, and the user setting permission switch control in fig. 4 all belong to basic configuration input controls, and are used for a user to input basic configuration information. The category object (category) configuration adding control in fig. 4 belongs to a personality configuration adding control, and is used for a user to input personality configuration information.
If the user clicks the classification object configuration addition control, as shown in fig. 5, loading the classification object configuration information and the corresponding control on the configuration interface includes: the system comprises a classification name input control, a classification object style selection control, an abstract format input control and a button adding control.
After the user inputs the configuration information through the configuration interface, a control for generating the configuration file is clicked, the software development kit configuration server responds to a configuration file generation instruction, the configuration information input by the user is generated into the configuration file, and the configuration file is stored in a manner of being associated with configuration file index information such as the name of a pushed software development kit, the name of a terminal operating system, the version number of an application program and the like. The configuration server stores configuration files of a plurality of software development kits.
Correspondingly, the software development kit configuration administrator can also access the software development kit configuration server to modify, delete, download and the like the generated configuration file.
Therefore, the configuration server of the software development kit generates and manages the configuration files, so that software development kit managers can manage different software development kits and different versions of the same software development kit orderly, and the difficulty of management and maintenance is reduced.
In addition, for the general basic configuration of a plurality of software development kits, the automatic addition of the basic configuration information can be realized, and the processing efficiency is further improved.
When the pushing software development kit needs to be accessed into the application program A, an access party administrator can access the software development kit configuration server to request to acquire the configuration file of the pushing SDK from the SDK configuration server, and the SDK configuration server receives the configuration file acquisition request and sends the corresponding configuration file to a requesting party. And the access side management personnel saves the acquired configuration file into an engineering file of the application program A, runs the application program A, and sends an initialization instruction to the management SDK by the application program A, wherein the initialization instruction carries the index of the pushed SDK, the index of the configuration file and the identification information of the specified method. And the management SDK responds to the initialization instruction, searches the configuration file from the engineering file, verifies the legality of the searched configuration file, extracts the configuration parameters and injects the configuration parameters into the push SDK after the verification is passed, encapsulates the non-specified method, generates the specified method into an interface function, and completes the access of the push SDK.
Based on the same inventive concept as the method shown in fig. 1, an embodiment of the present application further provides an electronic device, as shown in fig. 6, the electronic device includes a management software development package module, where the management software development package module includes a configuration file reading sub-module 601 and a software development package accessing sub-module 602:
the configuration file reading sub-module 601 is configured to: responding to an access instruction of a target software development kit, and acquiring a configuration file of the target software development kit from an application program; the target software development kit is a software development kit which calls a third-party application to realize a target function, the configuration file comprises configuration parameters required by the access of the target software development kit, and the configuration file is uniformly configured in advance through a target configuration system;
the software development kit access sub-module 602 is configured to: verifying the configuration file; if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters to the target software development kit; generating an interface function for a specified method in the target software development kit, and packaging a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following: and the method needs the callback of the third-party application and the method needs the implementation of the third-party application.
According to the electronic device provided by the embodiment of the application, the configuration parameters of each configuration item of the target software development kit are stored in the configuration file in advance, and the configuration file is stored in the application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
The software development kit access module is specifically used for:
reading configuration parameters from the configuration file, and transmitting the configuration parameters into a target software development kit;
generating an interface function for a specified method in a target software development kit, and packaging a non-specified method in the target software development kit, wherein the specified method comprises at least one of the following methods: methods for third-party application callback are needed, and methods for third-party application implementation are needed.
Optionally, the initialization instruction carries an index of the configuration file of the target software development kit and an index of the target software development kit, and before the configuration file of the target software development kit is read from the engineering file of the application program, the configuration file reading sub-module may also search the configuration file according to the index of the configuration file; before the configuration parameters are transmitted into the target software development kit, the SDK access sub-module can also search the target software development kit according to the index of the target software development kit.
Optionally, the software development kit access sub-module is configured to: searching at least one piece of information corresponding to the configuration file: a terminal operating system, an application program version number and an application program identifier; if the terminal operating system corresponding to the configuration file is found, comparing the terminal operating system corresponding to the configuration file with the operating system of the terminal where the application program is located; if the application program version number corresponding to the configuration file is found, comparing the application program version number corresponding to the configuration file with the application program version number; and if the application program identifier corresponding to the configuration file is found, comparing the identifier corresponding to the configuration file with the identifier of the application program.
Optionally, the generating manner of the configuration file includes:
acquiring configuration parameters of the target software development kit through a human-computer interaction interface;
and generating a configuration file containing the configuration parameters.
Based on the same inventive concept as the method shown in fig. 2, an embodiment of the present application further provides an electronic device, as shown in fig. 7, the electronic device includes:
the configuration information acquisition module 701 is used for acquiring configuration information of a target software development kit through a human-computer interaction interface;
a configuration file generating module 702, configured to generate a configuration file containing the configuration information;
a configuration file sending module 703, configured to send, in response to a configuration file obtaining request, the configuration file so that a receiving party stores the configuration file to an application program, where the configuration file is used for accessing a management software development kit in the application program to the target software development kit.
The configuration parameters of each configuration item of the target software development kit are stored in a configuration file in advance, and the configuration file is sent according to the request of a receiving party, so that the receiving party can store the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the module of the electronic device described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Based on the same inventive concept as the method shown in fig. 1, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing any method embodiment based on the method of FIG. 1;
the processor is configured to execute programs stored in the memory.
The electronic device provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in a configuration file in advance, and stores the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Based on the same inventive concept as the method shown in fig. 1, the embodiment of the present application provides a computer-readable storage medium storing a program for implementing any of the method embodiments based on fig. 1.
The program stored in the computer-readable storage medium provided in the embodiment of the present application stores the configuration parameters of each configuration item of the target software development kit in a configuration file in advance, and stores the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Based on the same inventive concept as the method shown in fig. 2, an embodiment of the present application provides an electronic device, which includes a processor and a memory;
the memory is used for storing a program for executing any method embodiment based on the method of FIG. 2;
the processor is configured to execute programs stored in the memory.
The electronic device provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit into a configuration file in advance, and sends the configuration file according to the request of the receiving party, so that the receiving party can store the configuration file into the application program. And when the target software development kit needs to be accessed, reading the configuration file from the application program, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Based on the same inventive concept as the method shown in fig. 2, the embodiment of the present application provides a computer-readable storage medium storing a program for implementing any of the method embodiments based on fig. 2.
The program stored in the computer-readable storage medium provided in the embodiment of the present application stores the configuration parameters of each configuration item of the target software development kit in a configuration file in advance, and sends the configuration file according to a request of a receiving party, so that the receiving party stores the configuration file in an application program. And when the target software development kit needs to be accessed, reading the configuration file from the engineering file, and automatically accessing the target software development kit by the management software development kit according to the configuration parameters in the configuration file. Compared with the manual access of the software development kit, the automatic access of the software development kit is higher in efficiency, and the access failure caused by human errors is avoided. In addition, the configuration parameters of each configuration item are stored in the configuration file in advance, and verification is performed in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the application program version can be avoided.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The embodiments described above are only a part of the embodiments of the present invention, and not all of them. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.