[go: up one dir, main page]

CN110347445B - SDK calling method, device, server and storage medium - Google Patents

SDK calling method, device, server and storage medium Download PDF

Info

Publication number
CN110347445B
CN110347445B CN201910631634.XA CN201910631634A CN110347445B CN 110347445 B CN110347445 B CN 110347445B CN 201910631634 A CN201910631634 A CN 201910631634A CN 110347445 B CN110347445 B CN 110347445B
Authority
CN
China
Prior art keywords
sdk
function
program
interface
calling
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
CN201910631634.XA
Other languages
Chinese (zh)
Other versions
CN110347445A (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.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment 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 Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201910631634.XA priority Critical patent/CN110347445B/en
Publication of CN110347445A publication Critical patent/CN110347445A/en
Application granted granted Critical
Publication of CN110347445B publication Critical patent/CN110347445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

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

Abstract

本发明公开了一种SDK调用方法、装置、服务器及存储介质,属于计算机技术领域。所述方法包括:获取软件开发工具包SDK,所述SDK包括多端对应的接口配置信息和功能程序;基于所述SDK包括的当前端对应的接口配置信息和功能程序,对目标接口进行配置;基于所述目标接口,调用所述SDK的功能程序,以执行所述SDK对应的功能。本发明实施例通过采用调用SDK的方式,在多端实现相同的功能,在调用过程中可以根据功能程序和各端对应的接口配置信息,对接口进行配置,从而可以直接对SDK的功能程序进行调用,以实现相应的功能,无需针对不同端各自开发一个工程文件,大大减少了开发时间和人工成本,该SDK调用方式的通用性好。

The present invention discloses an SDK calling method, device, server and storage medium, and belongs to the field of computer technology. The method comprises: obtaining a software development kit SDK, wherein the SDK comprises interface configuration information and function programs corresponding to multiple terminals; configuring a target interface based on the interface configuration information and function programs corresponding to the current terminal included in the SDK; and calling the function program of the SDK based on the target interface to execute the function corresponding to the SDK. The embodiment of the present invention realizes the same function on multiple terminals by adopting the method of calling SDK. During the calling process, the interface can be configured according to the function program and the interface configuration information corresponding to each terminal, so that the function program of the SDK can be directly called to realize the corresponding function. There is no need to develop a project file for each terminal, which greatly reduces the development time and labor cost. The SDK calling method has good versatility.

Description

SDK calling method, device, server and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a server, and a storage medium for calling an SDK.
Background
With the development of computer technology, multi-terminal isomorphic technology is increasingly used, and in many scenarios, it is generally required to implement the same function on multiple terminals. For example, the same advertisement function can be accessed at the webpage end, the application end and the applet end. In order to meet the requirement of multi-terminal isomorphism, engineering files for realizing the same functions need to be deployed on the servers corresponding to the multi-terminals, and the engineering files can comprise functional programs.
Currently, the operating environments of different terminals are different, and if the same function needs to be implemented at multiple terminals, a technical personnel needs to develop an engineering file for each terminal. The development time required in the process is long, great labor cost is required to be consumed, and the universality of engineering files is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a server and a storage medium for calling a software development kit (Software Development Kit, SDK), which can solve the problems of long development time, high labor cost and poor universality in the related technology. The technical scheme is as follows:
in one aspect, there is provided an SDK calling method, the method including:
Acquiring a Software Development Kit (SDK) which comprises a functional program and interface configuration information corresponding to multiple ends;
configuring a target interface based on a function program included in the SDK and interface configuration information corresponding to a current end;
And calling a function program of the SDK based on the target interface to execute the function corresponding to the SDK.
In one aspect, there is provided an SDK calling device, the device including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a Software Development Kit (SDK) which comprises a function program and interface configuration information corresponding to multiple ends;
The configuration module is used for configuring a target interface based on the functional program included in the SDK and interface configuration information corresponding to the current end;
And the calling module is used for calling the function program of the SDK based on the target interface so as to execute the function corresponding to the SDK.
In one possible implementation, the plurality of functional programs includes a style configuration program and a business logic program;
The configuration module is used for:
Configuring a display interface based on a style configuration program included in the SDK and interface configuration information corresponding to a current end;
And configuring a service processing interface based on the service logic program included in the SDK and the interface configuration information corresponding to the current end.
In one possible implementation, the apparatus further includes:
and the updating module is used for updating the function program included in the SDK when receiving the updating request of the SDK.
In one possible implementation, the functional program included in the SDK may be implemented based on a syntax abstract tree;
and the updating module is used for updating the structure of the grammar abstract tree based on the content of the updating request when receiving the updating request of the SDK.
In one possible implementation, the apparatus further includes:
The acquiring module, the configuring module or the calling module is further configured to execute the steps of acquiring the software development kit SDK, configuring and calling when a call request to the SDK is received, where the call request is triggered based on an interaction operation performed on a plugin corresponding to any function program of the SDK, and the call request includes information of the plugin;
the calling module is used for calling any function program corresponding to the plug-in of the SDK based on the information of the target interface and the plug-in, and executing the function corresponding to the any function program.
In one aspect, a server is provided that includes one or more processors and one or more memories having at least one instruction stored therein, the instructions loaded and executed by the one or more processors to implement operations performed by the SDK invocation method.
In one aspect, a computer-readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the operations performed by the SDK calling method is provided.
The embodiment of the invention realizes the same function at multiple ends by adopting the mode of calling the SDK, and can configure the interfaces according to the function program and the interface configuration information corresponding to each end in the calling process, thereby directly calling the function program of the SDK to realize the corresponding function, and the development time and the labor cost are greatly reduced without developing an engineering file for each of different ends.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an implementation environment of an SDK calling method provided by an embodiment of the present invention;
FIG. 2 is a flowchart of an SDK calling method provided by an embodiment of the present invention;
FIG. 3 is a flowchart of an SDK calling method provided by an embodiment of the present invention;
FIG. 4 is a flowchart of an SDK calling method provided by an embodiment of the present invention;
FIG. 5 is a flowchart of an SDK calling method provided by an embodiment of the present invention;
FIG. 6 is a flow chart of construction and deployment of engineering files in the related art;
fig. 7 is a schematic structural diagram of an SDK calling device according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
Fig. 1 is an implementation environment of an SDK call method provided in an embodiment of the present invention, and referring to fig. 1, the implementation environment may include a plurality of servers 101 and a code repository 102. Wherein the code repository 102 may be stored in one or more servers. Each server 101 may serve respective ends of the same network service. For example, the respective terminals may include a Web page (Web) terminal, an applet terminal, a light Application terminal, and an Application (APP) terminal.
In the embodiment of the present invention, the code repository 102 is used to provide a Software Development Kit (SDK), and each server 101 may obtain the SDK from the code repository 102 and call the SDK in the running process to implement the same function at different ends.
Fig. 2 is a flowchart of an SDK calling method according to an embodiment of the present invention, where the method may be applied to a server, and the server may be the server 101 shown in fig. 1. Referring to fig. 2, the method may include the steps of:
201. each server obtains the SDK from the code repository.
Wherein each server may refer to each end of the same network service. In the embodiment of the present invention, only the SDK is obtained from the code repository by each end, and the SDK is called for illustration, and for any end, the steps of the same principle can be executed, which is not limited by the embodiment of the present invention.
The SDK may include a function program and multi-terminal corresponding interface configuration information. The function program is a program corresponding to a function that can be realized by the SDK, and by executing the function program, a corresponding function can be realized. The SDK is suitable for multiple terminals, and can be called and function realized on a server where the multiple terminals are located through the interface configuration information corresponding to the multiple terminals.
For example, in some scenarios, the SDK may create a collection of application software development tools for a software package, software framework, hardware platform, operating system, etc. provided by a third party developer, and the SDK may be applied as a plug-in to existing products, such as advertisement plug-ins, chart plug-ins, voting plug-ins, weather plug-ins, or other custom plug-ins, etc. to corresponding projects and products.
The steps required to be executed by each server can also be different when the SDK is called because the running environments of different ends are different. Therefore, each server can acquire the information of each end first, and a corresponding processing mode is adopted based on the information of each end. For a server, the information of the current end can be acquired first, and corresponding steps are adopted based on the information of the current end.
In one possible implementation, the obtaining of the SDK from the code repository by the respective servers may be triggered based on a call request to the SDK, and for either end, the user may perform an operation, and the server detects the operation of the user, and calls the SDK based on the operation.
In a specific possible embodiment, the SDK may include one function program or may include a plurality of function programs, and each function program may correspond to one function. Any function program can be displayed in a display interface provided by the server in a corresponding plug-in mode, so that a user can perform interactive operation on the plug-in, and further trigger the call request for the SDK.
The call request can be triggered based on the interaction operation performed on the plugin corresponding to any function program of the SDK, and the call request comprises the information of the plugin. Thus, in the steps 201 to 203, each server may call any one of the function programs corresponding to the plug-in of the SDK based on the information of the target interface and the plug-in, and execute the function corresponding to the any one of the function programs.
202. Each server configures the target interface based on the function program included in the SDK and the interface configuration information corresponding to each end.
After each server obtains the SDK, the function program of the SDK is encapsulated in the SDK, and if the function program of the SDK is required to be called, the configuration is required.
In one possible implementation, after each server obtains the SDK, the SDK may be initialized before executing the function program, before this step 202. For example, in the initialization process, the execution environment of the SDK may be initialized, header files required for calling the SDK may be imported, execution parameters may be initialized, and then the target interface may be configured after the SDK is initialized.
In a specific possible embodiment of step 201, the SDK may include a plurality of functional programs. Wherein each functional program may correspond to a different target interface. The step 202 may be that each server configures each target interface in the multiple target interfaces based on each function program included in the SDK and the interface configuration information corresponding to each end, where each target interface corresponds to each function program. For any end, the server at the end can configure each target interface in the multiple target interfaces based on each function program included in the SDK and the interface configuration information corresponding to the current end.
When the target interface is configured, the interface configuration information of the SDK can be written into the target interface, parameters of the target interface can be adjusted through the writing step, and then the SDK can be called through the target interface after the parameters are adjusted. Of course, if the SDK includes a plurality of functional programs, when configuring a plurality of target interfaces, information of each functional program may be written into a corresponding target interface, and a corresponding relationship is established between the two, and the corresponding functional program may be called based on the target interface.
In a specific possible embodiment, the plurality of functional programs includes a style configuration program and a business logic program. The style configuration program may be used to indicate a display style. The business logic program is used to indicate the processing logic that needs to be executed. For example, if a display style of a certain plug-in is determined, its display style may be determined based on the style configuration program. From a server perspective, after the user performs an interactive operation, the server may determine an interactive result of feedback required for the interactive operation based on the business logic program.
In this embodiment, the server may perform different configuration processing for different functional programs, where the server may configure the display interface based on the style configuration program included in the SDK and the interface configuration information corresponding to the current end, and configure the service processing interface based on the service logic program included in the SDK and the interface configuration information corresponding to the current end.
203. And each server calls the function program of the SDK based on the target interface so as to execute the function corresponding to the SDK.
After each server configures the target interface, the function program of the SDK can be called based on the target interface to realize the corresponding function.
In the implementation manner that the SDK includes a plurality of functional programs, each server may call, based on any one of the target interfaces, a functional program corresponding to the any one of the target interfaces according to the configuration parameters of the any one of the target interfaces, and execute a function corresponding to the functional program. For one end, the server at the end can be based on any target interface, and can call the function program corresponding to any target interface according to the configuration parameters of any target interface, and execute the function corresponding to the function program.
For example, in a specific example, as shown in fig. 3, taking the example of invoking the SDK at the Web side, after the SDK is initialized, the target interface may be configured. In this example, each function program is taken as a function module, and the SDK includes a User Interface (UI) rendering module, an event binding module, a service logic module, and a data reporting module, and may further include a morphological configuration. For the plurality of functional modules, the morphological configuration is the style configuration program, and based on the morphological configuration, a display style when UI rendering is performed can be determined. For the plug-in unit of UI rendering display, if the user carries out interactive operation on the plug-in unit, the processing mode of the event binding of the interactive operation can be determined according to the event configuration module, so that the business logic module is called to carry out corresponding business processing, and after the processing, data can be reported to a server or fed back to a user interaction result. The Web interfaces (target interfaces) may include a display interface (Render Application Programming Interface, RENDER API), an event binding interface (API), a business logic API, and a data reporting API. And when the target interfaces are configured, the corresponding relation between each functional module and the API can be configured, and each functional module can be called through each target interface to realize the corresponding function.
In the above specific example, as shown in fig. 4, the specific flow of the SDK call may specifically be the following steps, and in the following flow, the Web end is taken as an example, and the functions of the server are named according to the different functions executed by the server. The method comprises the following steps:
Step one, a user accesses a Web end product and enables a specific plug-in. The specific plug-in is the functional plug-in corresponding to the SDK.
Step two, the SDK initializing module initializes the SDK environment of the plug-in, namely, initializes the SDK, and after the initialization is successful, the SDK initializing module can return the initialization success.
And thirdly, initializing a framework by the SDK initializing module through a Web interface.
And fourthly, the SDK initialization module registers the multi-terminal isomorphic framework in a Web interface.
The third and fourth steps are the steps of configuring the target interface.
And fifthly, after the configuration is successful, the multi-terminal isomorphic framework can read the style configuration to perform UI rendering and event binding.
And step six, the UI rendering is successful, namely, the plug-in is displayed for the user to watch, and the user can perform interactive operation on the plug-in.
And step seven, the functional modules in the multi-terminal isomorphic framework can determine to respond to the event of the interactive operation, process the event according to the service logic and report the data to the server.
And step eight, returning an interaction result to the user based on the Web interface.
With the above, as shown in fig. 5, the call procedure of the SDK may support multi-port call, for example, a WEB port, a applet port, and other platforms. The SDK can be installed on each platform as a plug-in, and is used for realizing a certain service. The SDK can be initialized, and the interface realization of each platform can be carried out, and in the calling process carried out by any platform, the SDK provides the interface realization of the current platform according to the specification of the multi-terminal isomorphic framework. For example, a WEB interface implementation, a applet interface implementation, a small game interface implementation or other interface implementation, through which registration and call of a multi-terminal isomorphic framework can be completed, so as to realize call of an SDK, wherein the multi-terminal shares the same SDK, or the multi-terminal shares the same multi-terminal isomorphic framework, and unified service logic can be realized.
In contrast, as shown in fig. 6, in the related art, a developer typically develops a framework, where the framework may include front-end logic codes, and uses an abstract syntax tree to disassemble the code conversion into a template (template) file, a business logic file, and a style configuration file, so that the files are constructed as a process by an engineering builder and deployed at different ends. When in deployment, frame conversion is needed according to the end to be deployed, a frame applicable to the end is constructed, and deployment is completed. The framework must be developed in its entirety in the deployment process usage field Jing Shouxian in the related art, and cannot be applied to the product development of plug-in classes as the SDK calling method provided by the embodiment of the present invention, and cannot be introduced into existing products. And the development of the framework in the related technology is generally aimed at a certain platform or a certain platforms, and some platforms are not supported, so that a developer needs to re-develop a new framework. The access of new features in the related technology is limited, and for the new features newly supported by each platform, a developer can only wait for updating of a frame version or can only manually modify the existing frame source code, and the complexity of the frame source code is extremely high, so that the developer is difficult to modify.
The method provided by the embodiment of the invention uniformly manages the universal business logic in the framework, is beneficial to reducing the development time and labor cost, and is beneficial to the maintenance of program codes and the long-term development of products. For example, in an application scenario of an advertisement plug-in, assuming that the advertisement plug-in supports three different platforms, respectively, 5 persons/day are required to develop a new advertisement style or a new function on each platform on average, the sum of the development amounts of the three platforms is 15 persons/day by means of the above-described related art. In the method provided by the embodiment of the invention, as the style configuration and the business logic are uniformly managed by the isomorphic framework, a developer only needs to realize a new advertisement style or a new function in the framework, and the total development amount only needs 5 people/day.
In addition, in the method provided by the embodiment of the invention, each platform respectively provides the realization of the interface, and the framework is only responsible for unified scheduling, so that the method is beneficial to the access of a new platform and new characteristics and the rapid development of products.
204. When receiving the update request of the SDK, each server updates the function program included in the SDK.
If the function program in the SDK is updated, each server can directly update the function program in the SDK without waiting for platform version update or redevelopment as in the related art, and the update is convenient and quick.
In one possible implementation, the function program included in the SDK may be further implemented based on a syntax abstract tree, and this step 204 may be that, when receiving the update request of the SDK, each server updates the structure of the syntax abstract tree based on the content of the update request. The abstract grammar tree mode is very beneficial to the updating of the functional program by a developer specially developing the business logic program. For any end, the steps of the same principle can be performed, which will not be repeated.
The embodiment of the invention realizes the same function at multiple ends by adopting the mode of calling the SDK, and can configure the interfaces according to the function program and the interface configuration information corresponding to each end in the calling process, thereby directly calling the function program of the SDK to realize the corresponding function, and the development time and the labor cost are greatly reduced without developing an engineering file for each of different ends.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present invention, which is not described herein.
Fig. 7 is a schematic structural diagram of an SDK calling device according to an embodiment of the present invention, referring to fig. 7, the device may include:
An obtaining module 701, configured to obtain a software development kit SDK, where the SDK includes a function program and interface configuration information corresponding to multiple ends;
a configuration module 702, configured to configure a target interface based on a function program included in the SDK and interface configuration information corresponding to a current end;
And a calling module 703, configured to call a function program of the SDK based on the target interface, so as to execute a function corresponding to the SDK.
In one possible implementation, the SDK includes a plurality of functional programs;
the configuration module 702 is configured to configure each target interface of the plurality of target interfaces based on each function program included in the SDK and interface configuration information corresponding to the current end, where each target interface corresponds to each function program.
In one possible implementation, the plurality of functional programs includes a style configuration program and a business logic program;
The configuration module 702 is configured to:
Configuring a display interface based on a style configuration program included in the SDK and interface configuration information corresponding to a current end;
And configuring a service processing interface based on the service logic program included in the SDK and the interface configuration information corresponding to the current end.
In one possible implementation, the apparatus further includes:
and the updating module is used for updating the function program included in the SDK when receiving the updating request of the SDK.
In one possible implementation, the functional program included in the SDK may be implemented based on a syntax abstract tree;
and the updating module is used for updating the structure of the grammar abstract tree based on the content of the updating request when receiving the updating request of the SDK.
In one possible implementation, the apparatus further includes:
The obtaining module 701, the configuring module 702 or the calling module 703 is further configured to execute the steps of obtaining the software development kit SDK, configuring and calling when a call request to the SDK is received, where the call request is triggered based on an interaction performed on a plug-in corresponding to any function program of the SDK, and the call request includes information of the plug-in;
The calling module 703 is configured to call, based on the information of the target interface and the plug-in, the arbitrary function program corresponding to the plug-in of the SDK, and execute a function corresponding to the arbitrary function program.
The device provided by the embodiment of the invention realizes the same function at multiple ends by adopting the mode of calling the SDK, and can configure the interfaces according to the function program and the interface configuration information corresponding to each end in the calling process, thereby directly calling the function program of the SDK to realize the corresponding function, and the development time and the labor cost are greatly reduced without developing an engineering file for each of different ends.
It should be noted that, when the SDK is called, the SDK calling device provided in the foregoing embodiment only uses the division of the foregoing functional modules to illustrate, in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the SDK calling device and the SDK calling method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and are not described herein again.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 800 may include one or more processors (central processing units, CPU) 801 and one or more memories 802, where the one or more memories 802 store at least one instruction, and the at least one instruction is loaded and executed by the one or more processors 801 to implement the SDK calling method provided in the foregoing method embodiments. Of course, the server 800 may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a computer readable storage medium, such as a memory including instructions executable by a processor to perform the SDK invocation method of the above embodiments is also provided. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (12)

1. A software development kit, SDK, invoking method, the method comprising:
acquiring a Software Development Kit (SDK) which comprises a plurality of functional programs and interface configuration information corresponding to a plurality of ends;
Configuring each target interface in a plurality of target interfaces based on each functional program and interface configuration information corresponding to a current end included in the SDK, wherein each target interface corresponds to each functional program;
And calling a function program of the SDK based on the target interface to execute the function corresponding to the SDK.
2. The method of claim 1, wherein the plurality of function programs includes a style configuration program and a business logic program;
the configuring each target interface of the multiple target interfaces based on each function program included in the SDK and the interface configuration information corresponding to the current end includes:
Configuring a display interface based on a style configuration program included in the SDK and interface configuration information corresponding to a current end;
And configuring a service processing interface based on the service logic program included in the SDK and the interface configuration information corresponding to the current end.
3. The method according to claim 1, wherein the method further comprises:
And when receiving the update request of the SDK, updating the function programs included in the SDK.
4. The method of claim 3, wherein the function included in the SDK is implemented based on a syntax abstraction tree;
when receiving the update request of the SDK, the method updates the function program included in the SDK, and comprises the following steps:
And when receiving the update request of the SDK, updating the structure of the grammar abstract tree based on the content of the update request.
5. The method according to claim 1, wherein the method further comprises:
Executing the steps of acquiring a Software Development Kit (SDK), configuring and calling when a call request for the SDK is received, wherein the call request is triggered based on the interactive operation of a plugin corresponding to any function program of the SDK, and the call request comprises information of the plugin;
The calling the function program of the SDK based on the target interface to execute the function corresponding to the SDK comprises the following steps:
And calling any function program corresponding to the plug-in of the SDK based on the information of the target interface and the plug-in, and executing the function corresponding to the any function program.
6. A software development kit, SDK, invoking apparatus, the apparatus comprising:
The system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a Software Development Kit (SDK) which comprises a plurality of functional programs and interface configuration information corresponding to a plurality of ends;
The configuration module is used for configuring each target interface in a plurality of target interfaces based on each functional program included in the SDK and the interface configuration information corresponding to the current end, and each target interface corresponds to each functional program;
And the calling module is used for calling the function program of the SDK based on the target interface so as to execute the function corresponding to the SDK.
7. The apparatus of claim 6, wherein the plurality of function programs comprises a style configuration program and a business logic program, and wherein the configuration module is configured to:
Configuring a display interface based on a style configuration program included in the SDK and interface configuration information corresponding to a current end;
And configuring a service processing interface based on the service logic program included in the SDK and the interface configuration information corresponding to the current end.
8. The apparatus of claim 6, wherein the apparatus further comprises:
and the updating module is used for updating the function program included in the SDK when receiving the updating request of the SDK.
9. The apparatus of claim 8, wherein the SDK comprises a functional program based on a syntax abstraction tree implementation;
And the updating module is used for updating the structure of the grammar abstract tree based on the content of the updating request when the updating request of the SDK is received.
10. The apparatus of claim 6, wherein the apparatus further comprises:
The acquiring module, the configuring module or the calling module is further configured to execute steps of acquiring a Software Development Kit (SDK), configuring and calling when a call request to the SDK is received, where the call request is triggered based on an interaction operation performed on a plugin corresponding to any function program of the SDK, and the call request includes information of the plugin;
And the calling module is used for calling any function program corresponding to the plug-in of the SDK based on the information of the target interface and the plug-in and executing the function corresponding to the any function program.
11. A server comprising one or more processors and one or more memories, the one or more memories having stored therein at least one instruction that is loaded and executed by the one or more processors to implement the operations performed by the software development kit SDK invocation method of any of claims 1-5.
12. A computer-readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the operations performed by the software development kit SDK invocation method of any one of claims 1 to 5.
CN201910631634.XA 2019-07-12 2019-07-12 SDK calling method, device, server and storage medium Active CN110347445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910631634.XA CN110347445B (en) 2019-07-12 2019-07-12 SDK calling method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910631634.XA CN110347445B (en) 2019-07-12 2019-07-12 SDK calling method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN110347445A CN110347445A (en) 2019-10-18
CN110347445B true CN110347445B (en) 2024-12-27

Family

ID=68176080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910631634.XA Active CN110347445B (en) 2019-07-12 2019-07-12 SDK calling method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN110347445B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061523B (en) * 2019-11-25 2023-12-15 北京奇艺世纪科技有限公司 Software package calling management method, system, device and storage medium
CN111736785B (en) * 2020-05-29 2023-12-22 阿波罗智联(北京)科技有限公司 Method, device, equipment and computer storage medium for controlling screen throwing playing
CN112714161A (en) * 2020-12-22 2021-04-27 北京金山云网络技术有限公司 Video access method, device and system
CN113778394B (en) * 2021-08-18 2024-08-20 北京城市网邻信息技术有限公司 SDK adaptation method, device, electronic equipment and storage medium
CN114637525A (en) * 2022-03-10 2022-06-17 中国银联股份有限公司 Method, device, equipment and medium for compatibility of SDK and access application

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710340A (en) * 2019-01-18 2019-05-03 北京顺丰同城科技有限公司 Software tool call method and device, software tool packaging method and device
CN109814943A (en) * 2018-12-21 2019-05-28 北京城市网邻信息技术有限公司 Service construction method, loading method and device, electronic equipment, storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923470A (en) * 2010-08-20 2010-12-22 华南理工大学 A DMA-SDK implementation method supporting UPnP and IGRS dual protocols
WO2016061762A1 (en) * 2014-10-22 2016-04-28 刘大澎 Multi-channel sdk access system and method for mobile terminal software
CN108733991B (en) * 2017-04-19 2021-04-06 腾讯科技(深圳)有限公司 Webpage application access method and device and storage medium
CN108363574B (en) * 2018-01-23 2021-07-16 平安普惠企业管理有限公司 Front-end customization method and device based on SDK, terminal equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109814943A (en) * 2018-12-21 2019-05-28 北京城市网邻信息技术有限公司 Service construction method, loading method and device, electronic equipment, storage medium
CN109710340A (en) * 2019-01-18 2019-05-03 北京顺丰同城科技有限公司 Software tool call method and device, software tool packaging method and device

Also Published As

Publication number Publication date
CN110347445A (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN110347445B (en) SDK calling method, device, server and storage medium
CN107391114B (en) Page visual rendering method and device
CN109325195B (en) Rendering method and system for browser, computer device and computer storage medium
CN108829378B (en) Application software development method and device and electronic equipment
WO2018228211A1 (en) Application conversion method, apparatus and device
CN105872083A (en) Method and system supporting server access by different types of clients as well as server
CN109885355A (en) A kind of application starting method and relevant apparatus
CN105354014A (en) Application interface rendering display method and apparatus
CN111399897A (en) Application issuing method and system based on kubernets
CN111399840A (en) Module development method and device
CN111176629A (en) Application development method and device
CN104111855A (en) A method for dynamic updating of iOS client functions based on Lua
CN113296758B (en) Front-end component library construction method and device and storage medium
CN110955409B (en) Method and device for creating resources on cloud platform
CN109669692B (en) Source code sharing method, server, computer readable storage medium and system
CN108170430B (en) Interface display method and system
CN114185551B (en) Applet compiling method, applet running method and device and storage medium
CN112035112A (en) Application program development method, system, medium and electronic device
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN115934093A (en) Applet cross-terminal application method, related device and computer storage medium
CN111813407A (en) Game development method, game running device and electronic equipment
CN114610598A (en) Test method, test device, electronic equipment and computer readable storage medium
CN107239265B (en) Binding method and device of Java function and C function
CN113238739A (en) Plug-in development and data acquisition method, device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment