CN112035163A - Software development kit configuration method, device and storage medium - Google Patents

Software development kit configuration method, device and storage medium Download PDF

Info

Publication number
CN112035163A
CN112035163A CN202010915509.4A CN202010915509A CN112035163A CN 112035163 A CN112035163 A CN 112035163A CN 202010915509 A CN202010915509 A CN 202010915509A CN 112035163 A CN112035163 A CN 112035163A
Authority
CN
China
Prior art keywords
software development
development kit
configuration file
configuration
target software
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.)
Granted
Application number
CN202010915509.4A
Other languages
Chinese (zh)
Other versions
CN112035163B (en
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010915509.4A priority Critical patent/CN112035163B/en
Publication of CN112035163A publication Critical patent/CN112035163A/en
Application granted granted Critical
Publication of CN112035163B publication Critical patent/CN112035163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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 relates to a software development kit configuration method, equipment and a storage medium. The method stores the configuration parameters of each configuration item of the target software development kit into a configuration file in advance, and stores the configuration file into 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.

Description

Software development kit configuration method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a storage medium for configuring an SDK (Software Development Kit).
Background
In order to provide more abundant and diversified functions, a software development kit calling a third-party application to realize the target function is accessed in the application program. For example, an account software development kit is accessed to an application, and the account software development kit communicates with a server of a third-party application, so that the application can be logged in by using an account password of the third-party application.
Usually, a plurality of software development kits of third parties need to be accessed into one application program, the access modes of the software development kits are different, and an access party worker needs to perform parameter configuration on each configuration item of the software development kit needing to be accessed in the application program according to the description of an access document. The access document describes the access sequence of the software development kit, the configuration requirements of each configuration item, the packaging requirements of the software development kit and the interface function setting requirements.
The access mode of the software development kit causes the access efficiency to be low, and the access failure of the software development kit is easily caused by human errors. As versions of an application iterate, access failures are easily caused by confusion.
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.
Drawings
Fig. 1 is a flowchart of a software development kit configuration method according to an embodiment of the present application;
fig. 2 is a flowchart of a software development kit configuration method according to another embodiment of the present application;
FIG. 3 is a flow chart of a software development kit configuration method according to yet another embodiment of the present application;
FIG. 4 is a schematic diagram of a first display state of a configuration interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a second display state of a configuration interface according to an embodiment of the present application;
FIG. 6 is a block diagram of an electronic device provided by an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to another embodiment of the present application.
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.

Claims (10)

1. A method for configuring a software development kit, the method comprising:
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.
2. The method according to claim 1, wherein the access 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 obtaining the configuration file of the target software development kit from the application program, the method further comprises: searching the configuration file according to the index of the configuration file;
before the passing the configuration parameters into the target software development kit, the method further comprises: and searching the target software development kit from the application program according to the index of the target software development kit.
3. The method of claim 1, wherein the validating the configuration file;
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.
4. The method according to any one of claims 1 to 3, wherein the configuration file is generated in a manner that 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.
5. A method for configuring a software development kit, the method comprising:
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.
6. The software development kit configuration method of claim 5, further comprising:
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.
7. An electronic device, comprising a management software development package module, wherein the management software development package module comprises 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.
8. An electronic device, characterized in that the electronic device comprises:
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.
9. An electronic device comprising a processor and a memory;
the memory is used for storing a program for executing the method of any one of claims 1 to 6;
the processor is configured to execute programs stored in the memory.
10. A computer-readable storage medium in which a program for executing the method of any one of claims 1 to 6 is stored.
CN202010915509.4A 2020-09-03 2020-09-03 Software development kit configuration method, device and storage medium Active CN112035163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010915509.4A CN112035163B (en) 2020-09-03 2020-09-03 Software development kit configuration method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010915509.4A CN112035163B (en) 2020-09-03 2020-09-03 Software development kit configuration method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112035163A true CN112035163A (en) 2020-12-04
CN112035163B CN112035163B (en) 2023-08-22

Family

ID=73592306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010915509.4A Active CN112035163B (en) 2020-09-03 2020-09-03 Software development kit configuration method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112035163B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631694A (en) * 2020-12-11 2021-04-09 远光软件股份有限公司 API (application programming interface) packaging calling method and system
CN112817601A (en) * 2021-02-24 2021-05-18 深圳壹账通智能科技有限公司 Configurable program generation method and device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140372963A1 (en) * 2013-06-18 2014-12-18 Ciambella Ltd. Method and apparatus for customized software development kit (sdk) generation
CN104363264A (en) * 2014-10-22 2015-02-18 北京棱镜云桥科技有限公司 Multi-channel SDK (software development kit) access system and multi-channel SDK access system for mobile terminal software
US20150095874A1 (en) * 2013-09-30 2015-04-02 Applifier Oy Software development kit for capturing graphical image data
US9921894B1 (en) * 2017-03-17 2018-03-20 Accenture Global Solutions Limited Extensible single point orchestration system for application program interfaces
CN108037927A (en) * 2017-12-29 2018-05-15 有米科技股份有限公司 Kit packaging method, system, readable storage medium storing program for executing and computer equipment
US20180365004A1 (en) * 2017-06-14 2018-12-20 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for calling software development kit
CN109240733A (en) * 2017-07-03 2019-01-18 Tcl集团股份有限公司 A kind of method and terminal updating advertisement SDK based on Android system
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment
CN110955434A (en) * 2019-10-31 2020-04-03 苏宁云计算有限公司 Software development kit processing method and device, computer equipment and storage medium
CN111262819A (en) * 2018-11-30 2020-06-09 中移(杭州)信息技术有限公司 VOIP SDK access control method and device
CN111443939A (en) * 2020-04-16 2020-07-24 视若飞信息科技(上海)有限公司 Configuration method and device of software development kit and storage medium
CN111611025A (en) * 2020-05-20 2020-09-01 浩云科技股份有限公司 Equipment access method and device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140372963A1 (en) * 2013-06-18 2014-12-18 Ciambella Ltd. Method and apparatus for customized software development kit (sdk) generation
US20150095874A1 (en) * 2013-09-30 2015-04-02 Applifier Oy Software development kit for capturing graphical image data
CN104363264A (en) * 2014-10-22 2015-02-18 北京棱镜云桥科技有限公司 Multi-channel SDK (software development kit) access system and multi-channel SDK access system for mobile terminal software
US9921894B1 (en) * 2017-03-17 2018-03-20 Accenture Global Solutions Limited Extensible single point orchestration system for application program interfaces
US20180365004A1 (en) * 2017-06-14 2018-12-20 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for calling software development kit
CN109240733A (en) * 2017-07-03 2019-01-18 Tcl集团股份有限公司 A kind of method and terminal updating advertisement SDK based on Android system
CN108037927A (en) * 2017-12-29 2018-05-15 有米科技股份有限公司 Kit packaging method, system, readable storage medium storing program for executing and computer equipment
CN111262819A (en) * 2018-11-30 2020-06-09 中移(杭州)信息技术有限公司 VOIP SDK access control method and device
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment
CN110955434A (en) * 2019-10-31 2020-04-03 苏宁云计算有限公司 Software development kit processing method and device, computer equipment and storage medium
CN111443939A (en) * 2020-04-16 2020-07-24 视若飞信息科技(上海)有限公司 Configuration method and device of software development kit and storage medium
CN111611025A (en) * 2020-05-20 2020-09-01 浩云科技股份有限公司 Equipment access method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹铭斌: "游戏客户端基于XSDK在云端自动化打包方法的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 2, pages 138 - 2555 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112631694A (en) * 2020-12-11 2021-04-09 远光软件股份有限公司 API (application programming interface) packaging calling method and system
CN112631694B (en) * 2020-12-11 2023-08-11 远光软件股份有限公司 API (application program interface) encapsulation calling method and system
CN112817601A (en) * 2021-02-24 2021-05-18 深圳壹账通智能科技有限公司 Configurable program generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112035163B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN108415832B (en) Interface automation test method, device, equipment and storage medium
CN109829286B (en) User authority management system and method for WEB application
CN108881111B (en) Method and device for realizing multi-tenant system
CN109558320B (en) System testing method, device, system, equipment and computer readable storage medium
CN112416353A (en) Channel package packaging method and device and computer equipment
CN108804399B (en) Form verification method and device
CN112035163A (en) Software development kit configuration method, device and storage medium
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
CN109254765B (en) Timing task management method, device, computer equipment and storage medium
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
CN113672441A (en) Method and device for testing intelligent equipment
CN112699034A (en) Virtual login user construction method, device, equipment and storage medium
CN112559352A (en) Interface test method, device, equipment and storage medium
CN112235124A (en) Method and device for configuring pico-cell, storage medium and electronic device
CN115733666A (en) Password management method and device, electronic equipment and readable storage medium
CN112631694B (en) API (application program interface) encapsulation calling method and system
CN111488286B (en) Method and device for independently developing Android modules
CN113760688A (en) Remote debugging method, system, webpage server, equipment and storage medium
CN111506846A (en) Web page generation method and device, electronic equipment and storage medium
CN114116520B (en) Algorithm evaluation method, device, gateway and storage medium
CN112738112B (en) Access method, device and medium for third-party component based on Ambari
CN113608996B (en) Mirror image compiling test method, system, device and readable storage medium
CN113901377B (en) Service calling method, device, storage medium and equipment of legacy system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant