CN112035163B - 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
CN112035163B
CN112035163B CN202010915509.4A CN202010915509A CN112035163B CN 112035163 B CN112035163 B CN 112035163B CN 202010915509 A CN202010915509 A CN 202010915509A CN 112035163 B CN112035163 B CN 112035163B
Authority
CN
China
Prior art keywords
software development
development kit
configuration
configuration file
application program
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.)
Active
Application number
CN202010915509.4A
Other languages
Chinese (zh)
Other versions
CN112035163A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision 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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a software development kit configuration method, a device and a storage medium. The method includes the steps that configuration parameters of each configuration item of a target software development kit are stored in a configuration file in advance, and the configuration file is stored in an application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error.

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
To provide a richer and more diverse functionality, a software development kit in an application program may invoke a third party application to achieve a target functionality. For example, an account software development kit is accessed in the application program, and the account software development kit communicates through a server of the third party application program, so that the account password of the third party application program can be used to log in to the application program.
In general, software development packages of a plurality of third parties need to be accessed in an application program, the access modes of all the software development packages are different, and personnel of the access party need to carry out parameter configuration on all configuration items of the software development packages needing to be accessed in the application program according to the description of access documents. The access document describes the access sequence of the software development kit, the configuration requirement of each configuration item, the encapsulation requirement of the software development kit and the interface function setting requirement.
The access efficiency of the software development package access mode is lower, and the software development package access failure is easy to be caused by human errors. As versions of applications iterate, access failures are easily caused by confusion.
Disclosure of Invention
In order to solve the problems that the existing software development package is low in access efficiency and can cause access failure due to human errors and confusion, the embodiment of the application provides a software development package configuration method, equipment and a storage medium.
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 package is a software development package for calling a third party application to realize a target function, the configuration file comprises configuration parameters required by the target software development package for accessing, 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 into 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 steps: a method requiring callback of the third party application and a method requiring realization of the third party application.
The method provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
The implementation manner of accessing the management software development kit into 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 interface functions for specified methods in the target software development kit and encapsulating non-specified methods in the target software development kit, the specified methods comprising at least one of: a callback method of the third party application is needed, and a method implemented by the third party application is needed.
Optionally, the initialization instruction carries an index of a 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 can 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 of the following information corresponding to the configuration file: terminal operating system, application program version number, application program identification;
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;
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;
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 kit module, where the management software development kit module includes a configuration file reading sub-module and a software development kit access sub-module:
the configuration file reading sub-module 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 package is a software development package for calling a third party application to realize a target function, the configuration file comprises configuration parameters required by the target software development package for accessing, and the configuration file is uniformly configured in advance through a target configuration system;
The software development kit access submodule 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 into 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 steps: a method requiring callback of the third party application and a method requiring realization of the third party application.
The electronic equipment provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
The software development packet access module is specifically configured to:
reading configuration parameters from the configuration file, and transmitting the configuration parameters into a target software development kit;
generating interface functions for specified methods in the target software development kit and encapsulating non-specified methods in the target software development kit, the specified methods comprising at least one of: a callback method of the third party application is needed, and a method implemented by the third party application is needed.
Optionally, the initializing instruction carries an index of a 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 engineering file of the application program, the configuration file reading submodule may further 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 submodule is configured to: searching at least one of the following information corresponding to the configuration file: terminal operating system, application program version number, application program identification; 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; 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;
generating a configuration file containing the configuration parameters.
In a third aspect, 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 of the first aspect;
the processor is configured to execute a program stored in the memory.
The electronic equipment provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a program for implementing any of the method embodiments of the first aspect.
The program stored in the computer readable storage medium provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program 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 sending the configuration file in response to a configuration file acquisition request, so that a receiver 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 into the target software development kit.
The method provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and sends the configuration file according to the request of the receiver so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
Optionally, the method further comprises:
acquiring at least one of the following configuration file management instructions through a human-computer interaction interface: the configuration file management instruction is used for searching the target configuration file and modifying the configuration file management instruction of 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 the human-computer interaction interface;
the configuration file generation module is used for generating a configuration file containing the configuration information;
and the configuration file sending module is used for responding to a configuration file acquisition request and sending the configuration file so that a receiver 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 into the target software development kit.
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 receiver, so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
In a seventh aspect, 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 an embodiment of the method of any fifth aspect;
the processor is configured to execute a program stored in the memory.
The electronic equipment provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and sends the configuration file according to the request of the receiver so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
In an eighth aspect, an embodiment of the present application 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 by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and sends the configuration file according to the request of the receiver so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
Drawings
FIG. 1 is a flow chart of a software development kit configuration method provided by 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 flowchart of a software development kit configuration method according to another embodiment of the present application;
FIG. 4 is a schematic view of a first display state of a configuration interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating 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 according to one 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
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In some of the procedures described in the specification and claims of the present application and the above figures, a plurality of operations appearing in a particular order are included, but it should be clearly understood that the procedures may include more or less operations, and that the operations may be performed in order 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 by a management software development kit in an application program of the terminal device, and 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 package is a software development package for calling a third party application to realize a target function, the configuration file comprises configuration parameters required by the target software development package for accessing, and the configuration file is configured uniformly in advance through a target configuration system.
The access instruction may be issued by an application program or 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.
Step 102, verifying the configuration file.
And step 103, if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters into the target software development kit.
If the verification is not passed, the access processing is not performed on the target software development package. Further, if the verification fails, a prompt message of the failure can be sent out through a human-computer interaction interface, or the prompt message of the failure can be sent to the target network equipment through the Internet.
Step 104, 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 steps: a method requiring callback of the third party application and a method requiring realization of the third party application.
The specified method refers to a method which is required to be called by a third party or realized by the third party, and the unspecified method refers to a method which is not required to be called by the third party and is not required 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 sharing software development kit, or a push software development kit.
The management software development kit is pre-installed in the application program, and has the main functions of reading the configuration file of the target software development kit, checking the accuracy of the configuration file and realizing the automatic access of the target software development kit.
The method provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
Furthermore, the initialization instruction may carry identification information of the specified method, and the management software development package identifies the specified method according to the identification information.
On the basis of any of the method embodiments, the initialization instruction may further carry an index of a 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 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 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 the target software development kit corresponding to the configuration file, the name of the terminal operating system corresponding to the configuration file and the version number of the application program corresponding to the configuration file. Wherein, the index of the target software development kit can comprise at least one of the following information: the name of the target software development kit, the name of the terminal operating system corresponding to the target software development kit, and the version number of the application program corresponding to the target software development kit.
On the basis of any of the method embodiments, 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 validity. The implementation manner 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. 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 version number of the application program corresponding to the configuration file is consistent with the version number of the application system, the validity check is passed, otherwise, the validity check is not passed.
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 includes the following operations:
step 201, obtaining configuration information of a target software development kit through a man-machine 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.
And 203, sending the configuration file in response to the configuration file acquisition request, so that the receiver can save the configuration file to the application program, wherein the configuration file is used for accessing the management software development kit in the application program into the target software development kit.
The server is used as a cloud configuration platform, so that a user can configure some parameters on the platform according to the characteristics and requirements of a target software development kit to generate a configuration file, and an access party can download and view a history configuration file on the cloud configuration platform.
The method provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and sends the configuration file according to the request of the receiver so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
As shown in fig. 3, in the software development kit configuration method provided by the embodiment of the present application: providing a configuration interface by a cloud configuration platform for a configuration administrator to input configuration information of a 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 realize the access of the target software development kit (such as pushing the software development kit, sharing the software development kit, deep linking the software development kit and the like), wherein in the adaptation process, the management software development kit adapts each target software development kit to be accessed, encapsulates parameters required by registration of the target software development kit, realizes callback required by part of the target software development kit, and exposes callback or a method required by an access party.
The method provided by the embodiment of the application is described below with reference to a specific application scenario.
In this scenario, a configuration administrator accesses a software development kit configuration server (also referred to as 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 configuration file generation of push (push) software development kit as an example, the configuration interface shown in fig. 4 is displayed on the browser of the terminal device by accessing the software development kit configuration server, and a basic configuration input control and a personalized configuration adding control are loaded through the configuration interface. For the target software development kit, the configuration information may include basic configuration information and personality configuration information, where the basic configuration information includes information related to an application program in which the software development kit is located, a running environment of a terminal operating system, and the like, and the personality configuration information is configuration information related to a 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 inputting basic configuration information by a user. The category object (category) configuration adding control in fig. 4 belongs to a personality configuration adding control for a user to input personality configuration information.
If the user clicks the classified object configuration adding control, as shown in fig. 5, the classified object configuration information and the corresponding control are loaded on the configuration interface, including: a class name input control, a class object style selection control, a summary format input control, and a button add control.
After the user inputs configuration information through the configuration interface, clicking a control for generating the configuration file, responding to the configuration file generation instruction by the software development kit configuration server, generating the configuration file from the configuration information input by the user, and storing the configuration file in association with configuration file index information such as the name of the push software development kit, the name of the terminal operating system, the version number of the application program and the like. Configuration files of a plurality of software development packages are stored in a software development package configuration server.
Correspondingly, the software development kit configuration manager can also access the software development kit configuration server to modify, delete, download and the like the generated configuration files.
Therefore, the software development package configuration server generates and manages configuration files, so that software development package management personnel can manage different software development packages and different versions of the same software development package in an orderly manner, and the management and maintenance difficulty is reduced.
In addition, for the general basic configuration of a plurality of software development packages, the automatic addition of basic configuration information can be realized, and the processing efficiency is further improved.
When the push software development kit is required to be accessed in the application program A, an access side management personnel can access the software development kit configuration server, request to acquire the configuration file of the push 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 side. The access party manager stores the acquired configuration file into an engineering file of the application program A, the application program A is operated, and an initialization instruction is sent to the management SDK by the application program A, wherein the initialization instruction carries an index of the push SDK, an index of the configuration file and identification information of a designated method. And the management SDK responds to the initialization instruction, searches the configuration file from the engineering file, performs validity check on the searched configuration file, takes the configuration parameters in the configuration file after the verification is passed, and injects the configuration parameters into the push SDK, encapsulates a non-designated method, generates the designated 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, the embodiment of the present application further provides an electronic device, as shown in fig. 6, where the electronic device includes a management software development kit module, and the management software development kit module includes a configuration file reading sub-module 601 and a software development kit accessing sub-module 602:
The profile reading submodule 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 package is a software development package for calling a third party application to realize a target function, the configuration file comprises configuration parameters required by the target software development package for accessing, and the configuration file is uniformly configured in advance through a target configuration system;
the software development kit access submodule 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 into 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 steps: a method requiring callback of the third party application and a method requiring realization of the third party application.
The electronic equipment provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
The software development packet access module is specifically configured to:
reading configuration parameters from the configuration file, and transmitting the configuration parameters into a target software development kit;
generating interface functions for specified methods in the target software development kit and encapsulating non-specified methods in the target software development kit, the specified methods comprising at least one of: a callback method of the third party application is needed, and a method implemented by the third party application is needed.
Optionally, the initializing instruction carries an index of a 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 engineering file of the application program, the configuration file reading submodule may further 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 submodule is configured to: searching at least one of the following information corresponding to the configuration file: terminal operating system, application program version number, application program identification; 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; 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;
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, including:
the configuration information acquisition module 701 is configured to acquire 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;
and the configuration file sending module 703 is configured to send the configuration file in response to a configuration file obtaining request, so that the receiver saves the configuration file to an application program, where the configuration file is used for accessing a management software development kit in the application program into the target software development kit.
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 receiver, so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
It will 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, which is not repeated herein.
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 of the method embodiments based on fig. 1;
the processor is configured to execute a program stored in the memory.
The electronic equipment provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
Based on the same inventive concept as the method shown in fig. 1, an embodiment of the present application provides a computer-readable storage medium storing a program implementing any of the method embodiments based on fig. 1.
The program stored in the computer readable storage medium provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and stores the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program 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, including a processor and a memory;
The memory is used for storing a program for executing any of the method embodiments based on fig. 2;
the processor is configured to execute a program stored in the memory.
The electronic equipment provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and sends the configuration file according to the request of the receiver so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the application program, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
Based on the same inventive concept as the method shown in fig. 2, an embodiment of the present application provides a computer-readable storage medium storing a program implementing any of the method embodiments based on fig. 2.
The program stored in the computer readable storage medium provided by the embodiment of the application stores the configuration parameters of each configuration item of the target software development kit in the configuration file in advance, and sends the configuration file according to the request of the receiver so that the receiver can store the configuration file in the application program. When the target software development kit is required to be accessed, the configuration file is read from the engineering file, and the management software development kit automatically accesses the target software development kit according to the configuration parameters in the configuration file. Compared with manual access software development kit, the automatic access software development kit has higher efficiency, and avoids access failure caused by human error. In addition, the configuration parameters of each configuration item are prestored in the configuration file, and verification is carried out in the process of automatically accessing the software development kit, so that access failure caused by confusion in the process of changing the version of the application program can be avoided.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The embodiments described above are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.

Claims (8)

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 for calling a third party application to realize a target function, the configuration files comprise configuration parameters required by the target software development kit for access, the configuration files are configured uniformly in advance through a target configuration system, the running environment information of the configuration files are configured uniformly in advance by the target configuration system, and the configuration files comprise historical configuration files in a cloud configuration platform;
verifying the configuration file, and searching at least one of the following information corresponding to the configuration file: terminal operating system, application program version number, application program identification;
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;
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;
if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters into 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 steps: a method requiring callback of the third party application and a method requiring realization of the third party application.
2. The method of claim 1, wherein the access instruction carries an index of a configuration file of the target software development kit and an index of the target software development kit, and wherein before the configuration file of the target software development kit is obtained from the application program, the method further comprises: searching the configuration file according to the index of the configuration file;
Before the configuration parameters are transmitted 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 according to any one of claims 1 to 2, wherein the generating means of the configuration file includes:
acquiring configuration parameters of the target software development kit through a human-computer interaction interface;
generating a configuration file containing the configuration parameters.
4. The method according to claim 1, characterized in that the method comprises:
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, and the configuration information comprises running environment information;
generating a configuration file of the target software development kit based on the configuration information, wherein the configuration file comprises a history configuration file in a cloud configuration platform;
and sending the configuration file in response to a configuration file acquisition request, so that a receiver 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 into the target software development kit.
5. The software development kit configuration method of claim 4, further comprising:
acquiring at least one of the following configuration file management instructions through a human-computer interaction interface: the configuration file management instruction is used for searching the target configuration file and modifying the configuration file management instruction of the target configuration file;
and processing the target configuration file according to the configuration file management instruction.
6. An electronic device, comprising a management software development kit module comprising a profile reading sub-module and a software development kit access sub-module:
the configuration file reading sub-module 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 for calling a third party application to realize a target function, the configuration files comprise configuration parameters required by the target software development kit for access, the configuration files are configured uniformly in advance through a target configuration system, the running environment information of the configuration files are configured uniformly in advance by the target configuration system, and the configuration files comprise historical configuration files in a cloud configuration platform;
The software development kit access submodule is used for: verifying the configuration file, and searching at least one of the following information corresponding to the configuration file: terminal operating system, application program version number, application program identification;
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;
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;
if the verification is passed, reading the configuration parameters from the configuration file, and transmitting the configuration parameters into 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 steps: a method requiring callback of the third party application and a method requiring realization of the third party application.
7. 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 5;
the processor is configured to execute a program stored in the memory.
8. A computer-readable storage medium, characterized in that a program for executing the method of any one of claims 1 to 5 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 CN112035163A (en) 2020-12-04
CN112035163B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN113220275B (en) * 2021-05-25 2024-10-01 北京小米移动软件有限公司 Software acquisition method and device
CN116541058A (en) * 2023-04-12 2023-08-04 浙江优创信息技术有限公司 Management system and method for software development configuration parameters

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108037927A (en) * 2017-12-29 2018-05-15 有米科技股份有限公司 Kit packaging method, system, readable storage medium storing program for executing and computer equipment
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DK3011442T3 (en) * 2013-06-18 2021-01-04 Ciambella Ltd METHOD AND DEVICE FOR GENERATING A CUSTOM SOFTWARE DEVELOPMENT KIT (SDK)
US9430251B2 (en) * 2013-09-30 2016-08-30 Unity Technologies Finland Oy Software development kit for capturing graphical image data
CN107329742B (en) * 2017-06-14 2021-01-29 北京小米移动软件有限公司 Software development kit calling method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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在云端自动化打包方法的研究;曹铭斌;《中国优秀硕士学位论文全文数据库 信息科技辑》(第2期);I138-2555 *

Also Published As

Publication number Publication date
CN112035163A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN112035163B (en) Software development kit configuration method, device and storage medium
US8656417B2 (en) Interface for telecommunication services using uniform resource identifiers
US8978023B2 (en) Canonical mechanism for securely assembling features into a mobile application
US7865528B2 (en) Software, devices and methods facilitating execution of server-side applications at mobile devices
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
CN109558320B (en) System testing method, device, system, equipment and computer readable storage medium
WO2006089390A1 (en) Facilitating mobile device awareness of the availability of new or updated server-side applications
US20210097476A1 (en) Container Management Method, Apparatus, and Device
US11847509B2 (en) Infrastructure base model API
CN114726632B (en) Login method, login equipment and storage medium
CN112699034A (en) Virtual login user construction method, device, equipment and storage medium
CN112543109B (en) Cloud host creation method, cloud host creation system, server and storage medium
CN116257438A (en) Updating method of interface test case and related equipment
CN107547217B (en) Router service configuration method and router
CN108595160B (en) Method and storage medium for calling native object by JS
CN115878860A (en) Menu generation method, device, server equipment and medium
CN115982257A (en) Interface creation method and related device
CN114124766B (en) Test method and device based on simulation data
CN115357298A (en) Calling method of third-party interface, processor and storage medium
CN114721929A (en) Test method, test device, storage medium and equipment
KR101351867B1 (en) Method of handling step execution result in software and application control management object
KR102258241B1 (en) Server side data component for support of development and management and method for perform the data component
CN113986207B (en) Software architecture generating and calling method and device
CN114398082B (en) Compatible operation method and device for frame type block chain application
CN117827176A (en) Code generation method and device, electronic equipment and storage medium

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