CN111722857A - Updating method and device of software development kit, electronic equipment and storage medium - Google Patents

Updating method and device of software development kit, electronic equipment and storage medium Download PDF

Info

Publication number
CN111722857A
CN111722857A CN201910213733.6A CN201910213733A CN111722857A CN 111722857 A CN111722857 A CN 111722857A CN 201910213733 A CN201910213733 A CN 201910213733A CN 111722857 A CN111722857 A CN 111722857A
Authority
CN
China
Prior art keywords
updated
plug
functional
sdk
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910213733.6A
Other languages
Chinese (zh)
Inventor
阮景春
曹辰显
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Berlin Interactive Technology Co ltd
Original Assignee
Beijing Berlin Interactive Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Berlin Interactive Technology Co ltd filed Critical Beijing Berlin Interactive Technology Co ltd
Priority to CN201910213733.6A priority Critical patent/CN111722857A/en
Publication of CN111722857A publication Critical patent/CN111722857A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The application provides a software development kit updating method and device, electronic equipment and a storage medium. Determining functional plug-ins to be updated in the SDK according to upgrade control parameters, wherein the upgrade control parameters comprise the Pluginid of each functional plug-in the SDK; and sending the updated version of the functional plug-in to be updated to the terminal equipment so that the terminal equipment updates the functional plug-in to be updated according to the updated version. In the embodiment of the application, the functional plug-in to be updated can be determined based on the Pluginid of each functional plug-in the SDK, and the updated version of the functional plug-in to be updated can be sent to the terminal device, so that the terminal device can update the functional plug-in to be updated only after receiving the updated version, and does not depend on an updating mechanism of a host application program, thereby simplifying the updating process, reducing the updating time and further improving the experience of a user.

Description

Updating method and device of software development kit, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for updating a software development kit, an electronic device, and a storage medium.
Background
With the rapid development of networks, various mobile terminal devices are widely used, various information can be directly displayed to users through various application programs on mobile terminals, and a common method for displaying various information to users through application programs is to embed a Software Development Kit (SDK) into an application program as a whole.
In order to meet the requirements of users, the SDK needs to be updated continuously, so that the functions are more complete. However, since the SDK is embedded in the application as a whole and is then embedded as part of the application, an update mechanism that depends on the client of the host application is required when the SDK is updated. Obviously, the updating mode not only causes the updating process to be more complicated, increases the updating time, but also reduces the experience of the user.
Disclosure of Invention
The application provides an updating method and device of a software development kit, electronic equipment and a storage medium, and the technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an updating method for a software development kit, where the method includes:
determining functional plug-ins to be updated in an SDK (Software Development Kit) according to upgrade control parameters, wherein the upgrade control parameters comprise plug-ins (plug-in identifiers) of all the functional plug-ins in the SDK;
and sending the updated version of the functional plug-in to be updated to the terminal equipment so that the terminal equipment updates the functional plug-in to be updated according to the updated version.
In an embodiment optional in the first aspect, before determining, according to the upgrade control parameter, a functional plug-in to be updated in the SDK, the method further includes:
acquiring the current version number of each functional plug-in of the SDK in the terminal equipment;
determining a functional plug-in to be updated in the SDK according to the upgrade control parameter, further comprising:
and determining the functional plug-ins to be updated in the SDK according to the current version numbers of the functional plug-ins of the SDK.
In an embodiment optional in the first aspect, before determining, according to the upgrade control parameter, a functional plug-in to be updated in the SDK, the method further includes:
acquiring a channel identifier of an SDK in terminal equipment;
determining a functional plug-in to be updated in the SDK according to the upgrade control parameter, further comprising:
and determining the functional plug-ins to be updated in the SDK according to the plug-ins of the functional plug-ins in the SDK and the channel identification of the SDK.
In an optional embodiment of the first aspect, the SDK includes at least two functional plugins, where the at least two functional plugins are obtained based on functional partitioning of service logic, and the at least two functional plugins include a functional plugin to be updated.
In a second aspect, an embodiment of the present application further provides an updating method of a software development kit, where the method includes:
receiving an update version of a functional plug-in to be updated sent by a server, wherein the functional plug-in to be updated is determined by the server based on an update control parameter, and the update control parameter comprises the plug-in id of each functional plug-in the SDK;
and updating the functional plug-in to be updated according to the updated version.
In an embodiment of the second aspect, in which the updated version includes the plugin of the functional plugin to be updated, updating the functional plugin to be updated according to the updated version includes:
determining an agent function plug-in corresponding to the Pluginid based on the mapping relation between the Pluginid and the agent function plug-in, wherein the agent function plug-in is a part of function plug-ins with a life cycle and built in the terminal equipment;
updating the functional plug-in to be updated based on the determined proxy functional plug-in and the updated version.
In an embodiment of the second aspect, before updating the to-be-updated functional plug-in according to the updated version, the method further includes:
loading a preset upgrade control function plug-in, wherein the upgrade control function plug-in is used for controlling the terminal equipment to automatically update the function plug-in to be updated according to the update version after receiving the update version;
updating the functional plug-in to be updated according to the updated version, comprising:
and updating the functional plug-in to be updated based on the upgrading control functional plug-in and the updating version.
In an embodiment of the second aspect, in an alternative embodiment, if there is an exception when the to-be-updated functional plug-in is updated according to the updated version, the method further includes:
and stopping updating the functional plug-in to be updated according to the updated version, and loading the original version of the functional plug-in to be updated.
In an embodiment of the second aspect that is optional, after the loading the original version of the functional plug-in to be updated, the method further includes:
and sending a reminding message of abnormal update of the functional plug-in to be updated to the server.
In a third aspect, a software development kit is provided, where the software development kit includes a self-updating module, and the self-updating module is specifically configured to:
receiving an update version of a functional plug-in to be updated sent by a server, wherein the functional plug-in to be updated is determined by the server based on an update control parameter, and the update control parameter comprises the plug-in id of each functional plug-in the SDK; and after receiving the update version of the functional plug-in to be updated sent by the server, updating the functional plug-in to be updated according to the update version.
In an embodiment of the third aspect, the updated version includes a plugin of the to-be-updated function plug-in, and when the self-updating module updates the to-be-updated function plug-in according to the updated version, the self-updating module is specifically configured to:
determining an agent function plug-in corresponding to the Pluginid based on the mapping relation between the Pluginid and the agent function plug-in, wherein the agent function plug-in is a part of function plug-ins with a life cycle and built in the terminal equipment; and updating the function plug-in to be updated based on the determined proxy function plug-in and the update version.
In an optional embodiment of the third aspect, the self-updating module is further configured to:
loading a preset upgrade control function plug-in before updating the function plug-in to be updated according to the update version, wherein the upgrade control function plug-in is used for controlling the terminal equipment to automatically update the function plug-in to be updated according to the update version after receiving the update version;
the self-updating module is specifically configured to: and updating the functional plug-in to be updated based on the upgrading control functional plug-in and the updating version.
In an optional embodiment of the third aspect, the self-updating module is further configured to:
and when the functional plug-in to be updated is updated according to the updated version and is abnormal, stopping updating the functional plug-in to be updated according to the updated version and loading the original version of the functional plug-in to be updated.
In an optional embodiment of the third aspect, the self-updating module is further configured to:
and after loading the original version of the functional plug-in to be updated, sending a reminding message of abnormal update of the functional plug-in to be updated to the server.
In a fourth aspect, an embodiment of the present application further provides an apparatus for updating a software development kit, where the apparatus includes:
the system comprises a function plug-in to be updated determining module, a function plug-in to be updated determining module and a function plug-in updating module, wherein the function plug-in to be updated determining module is used for determining the function plug-ins to be updated in the SDK according to an upgrading control parameter, and the upgrading control parameter comprises the Pluginid of each function plug-in the SDK;
and the update version sending module is used for sending the update version of the functional plug-in to be updated to the terminal equipment so as to update the functional plug-in to be updated according to the update version by the terminal equipment.
In an embodiment of the optional fourth aspect, the apparatus further includes an information obtaining module, where the information obtaining module is specifically configured to:
before determining the functional plug-ins to be updated in the SDK according to the upgrading control parameters, acquiring the current version numbers of the functional plug-ins of the SDK in the terminal equipment;
the function plug-in to be updated determining module is further configured to, when determining the function plug-in to be updated in the SDK according to the upgrade control parameter:
and determining the functional plug-ins to be updated in the SDK according to the current version numbers of the functional plug-ins of the SDK.
In an optional embodiment of the fourth aspect, the information obtaining module is further configured to:
acquiring a channel identifier of the SDK in the terminal equipment before determining the functional plug-in to be updated in the SDK according to the upgrading control parameter;
the function plug-in to be updated determining module is further configured to, when determining the function plug-in to be updated in the SDK according to the upgrade control parameter:
and determining the functional plug-ins to be updated in the SDK according to the plug-ins of the functional plug-ins in the SDK and the channel identification of the SDK.
In an alternative embodiment of the fourth aspect, the SDK includes at least two functional plugins, where the at least two functional plugins are obtained based on functional partitioning of service logic, and the at least two functional plugins include a functional plugin to be updated.
In a fifth aspect, an electronic device is provided, which includes:
one or more processors and memory;
wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: the updating method of the software development kit described in the first and second aspects is performed.
In a sixth aspect, there is provided a computer readable storage medium storing at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the method for updating a software development kit described in the first and second aspects.
The beneficial effect that technical scheme that this application provided brought is:
in the embodiment of the application, the functional plug-in to be updated can be determined based on the Pluginid of each functional plug-in the SDK, and the updated version of the functional plug-in to be updated can be sent to the terminal device, so that the terminal device can update the functional plug-in to be updated only after receiving the updated version, and does not depend on an updating mechanism of a host application program, thereby simplifying the updating process, reducing the updating time and further improving the experience of a user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of an updating method of a software development kit according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another software development kit updating method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an updating apparatus of a software development kit according to an embodiment of the present application;
FIG. 4 is a diagram illustrating a system architecture according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" include plural referents unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or functional modules, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, functional modules, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms referred to in this application will first be introduced and explained:
SDK (Software Development Kit), refers to a collection of Development tools that build application Software for a particular Software package, Software framework, hardware platform, operating system, etc.
With the rapid development of networks, various mobile terminal devices are widely used, and a software development kit can be generally embedded into an application program as a whole, so that the purpose of directly showing various information to a user on a mobile terminal through various application programs is achieved. Then, in order to make the function of the software development kit better meet the requirement of the user, the SDK needs to be updated continuously, but since the SDK is embedded into the application program as a whole and then is part of the application program, when the SDK is updated, an update mechanism of the client side depending on the host application program is needed. Obviously, the updating mode not only causes the updating process to be more complicated, increases the updating time, but also reduces the experience of the user.
The application provides an updating method of a software development kit, an electronic device and a storage medium, and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the present application provides an update method of a software development kit, as shown in fig. 1, the method includes:
step S110, determining the functional plug-ins to be updated in the SDK according to the upgrading control parameters, wherein the upgrading control parameters comprise the Pluginid of each functional plug-in the SDK.
The upgrade control parameter refers to a parameter for determining the functional plug-in the SDK that needs to be updated, that is, which functional plug-in or plug-ins in the SDK need to be updated can be determined based on the upgrade control parameter.
In the embodiment of the present application, the SDK may be embedded in any application, and the SDK is not limited to a set of development tools of any application software.
In an alternative embodiment of the present application, the SDK includes at least two functional plugins, the at least two functional plugins are obtained based on functional partitioning of service logic, and the at least two functional plugins include a functional plugin to be updated.
In practical applications, since the service logic included in the SDK corresponds to different functions, that is, the SDK may be granular based on the functions of the service logic, that is, the SDK may be divided into different functional plug-ins based on the functions of the service logic.
In one example, assuming that the functions of the service logic included in the SDK correspond to executing a payment function, a login function, and a registration function, respectively, the SDK package may be divided into a payment function plug-in, a login registration function plug-in, and a registration function plug-in.
The Pluginid is used to uniquely identify a functional plug-in, that is, it can be determined which functional plug-in is based on the Pluginid. In practical applications, the server may pre-store information of each SDK in each terminal device, such as the plugin id of each functional plugin in the SDK and the current version information of each functional plugin. Further, when determining whether the functional plug-in to be updated exists in the SDK, it may be determined which functional plug-in is specifically in the SDK based on the plugin id, and the current version information of each functional plug-in is determined based on the pre-stored information, at this time, if it is determined that a certain functional plug-in has a version higher than the queried current version information, the functional plug-in is the functional plug-in to be updated in the SDK.
Step S120, sending the updated version of the functional plug-in to be updated to the terminal device, so that the terminal device updates the functional plug-in to be updated according to the updated version.
That is to say, after determining the functional plug-in to be updated in the SDK, the update version of the functional plug-in to be updated may be sent to the terminal device, and after receiving the update version, the terminal device may update the functional plug-in to be updated based on the update version, and after the terminal device successfully updates the functional plug-in to be updated according to the update version, modify the version information in the pre-stored information of the functional plug-in to be updated into the currently updated version.
The embodiment of the present application is not limited to when the update version of the functional plug-in to be updated is sent to the terminal device, for example, the update version may be sent to the terminal device after an update instruction sent by the terminal device is received, or the update version may be directly sent to the terminal device after the update version of the functional plug-in to be updated is determined to exist.
In the embodiment of the application, the functional plug-in to be updated can be determined based on the Pluginid of each functional plug-in the SDK, and the updated version of the functional plug-in to be updated can be sent to the terminal device, so that the terminal device can update the functional plug-in to be updated only after receiving the updated version, and does not depend on an updating mechanism of a host application program, thereby simplifying the updating process, reducing the updating time and further improving the experience of a user.
In an optional embodiment of the present application, before determining, according to the upgrade control parameter, a functional plug-in to be updated in the SDK, the method further includes:
and acquiring the current version number of each functional plug-in of the SDK in the terminal equipment.
In this embodiment of the present application, if the current version number of each functional plug-in of the SDK in the terminal device is obtained before determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, when determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, the method may further include:
and determining the functional plug-ins to be updated in the SDK according to the current version numbers of the functional plug-ins of the SDK.
In practical application, before determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, the current version number of each functional plug-in of the SDK may also be obtained from the terminal device, at this time, after determining which functional plug-in the SDK is specifically based on the plugin id, whether the functional plug-in to be updated exists in the SDK is determined according to the obtained current version number of each functional plug-in of the SDK, and if it is determined that a certain functional plug-in of the SDK has a version higher than the current version number based on the obtained current version number, the functional plug-in is the functional plug-in to be updated in the SDK. That is to say, when the terminal device can send the current version number of each functional plug-in the SDK to the server, the current version information of each functional plug-in the SDK may not be saved in advance, and the current version information of each functional plug-in the SDK, which is obtained by querying the information saved in advance based on the plugin of each functional plug-in the SDK, may not be needed, so that the data processing amount of the server may be effectively reduced.
In an optional embodiment of the present application, before determining, according to the upgrade control parameter, a functional plug-in to be updated in the SDK, the method further includes:
and acquiring the channel identifier of the SDK in the terminal equipment.
In an optional embodiment of the present application, if the channel identifier of the SDK in the terminal device is obtained before determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, when determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, the method may further include:
and determining the functional plug-ins to be updated in the SDK according to the plug-ins of the functional plug-ins in the SDK and the channel identification of the SDK.
The channel identifier of the SDK is used to identify which application the SDK is embedded in, for example, when the SDK is embedded in the application a, the channel identifier of the SDK is used to identify the application a.
That is to say, in practical application, when determining a functional plug-in to be updated in the SDK based on the plugin id of each functional plug-in the SDK, a channel identifier of the SDK may be further obtained from the terminal device, and it may be known which application program the SDK is specifically embedded in based on the obtained channel identifier, at this time, in the determined application program, each functional plug-in may be determined based on the plugin id, and the current version information of each functional plug-in the SDK of the application program may be determined based on the pre-stored information, and at this time, if it is determined that a certain functional plug-in the SDK of the application program has a version higher than the current version number, the functional plug-in is the functional plug-in to be updated in the SDK.
Correspondingly, after the functional plug-in to be updated exists in the SDK, the updating version of the functional plug-in to be updated is sent to the terminal equipment.
Based on this, an embodiment of the present application further provides an updating method of a software development kit, as shown in fig. 2, the method includes:
step S210, receiving an update version of the functional plug-in to be updated sent by the server, wherein the functional plug-in to be updated is determined by the server based on the upgrade control parameters, and the upgrade control parameters comprise the Pluginid of each functional plug-in the SDK.
For the descriptions of the plugin and the upgrade control parameter, and the specific implementation manner of determining, by the server, the functional plug to be updated according to the plugin, reference may be made to the descriptions in the above embodiments, and the embodiments of the present application are not described herein again. The embodiment of the present application is not limited to a manner in which the terminal device receives the updated version of the functional plug-in to be updated sent by the server, for example, the terminal device may periodically send an update instruction to the server, determine that the updated version of the functional plug-in to be updated exists in the server, and send the updated version to the terminal device, or the server may directly send the updated version to the terminal device after determining that the updated version of the functional plug-in to be updated exists.
And step S220, updating the functional plug-in to be updated according to the updated version.
That is to say, after determining the functional plug-in to be updated in the SDK based on the plugin of each functional plug-in the SDK, the server may send the update version of the functional plug-in to be updated to the terminal device, and after receiving the update version, the terminal device may update the functional plug-in to be updated according to the received update version.
When the functional plug-in to be updated is updated according to the updated version, the specific updating manner is not limited in the embodiment of the present application, for example, the current version of the functional plug-in to be updated may be directly replaced with the updated version, or specific information in the current version may be compared with information in the updated version, and only changed information is replaced.
In the embodiment of the application, after the terminal device sends the plugin of each functional plugin in the SDK to the server, the terminal device may receive the update version of the functional plugin to be updated, and based on the update version, only the functional plugin to be updated may be updated without depending on an update mechanism of the host application program, so that not only is the update process simplified, but also the update time is reduced, and the user experience is further improved.
In an optional embodiment of the present application, before receiving an updated version of a functional plug-in to be updated sent by a server, the method further includes:
and sending the current version number of each functional plug-in of the SDK to the server so that the server determines the functional plug-ins to be updated in the SDK according to the current version number of each functional plug-in of the SDK.
That is to say, in order to reduce the data processing amount of the server, before receiving an update version of a functional plug-in to be updated sent by the server, the current version number of each functional plug-in of the SDK may be sent to the server, and at this time, the server may directly determine whether a functional plug-in to be updated exists based on the obtained current version number of each functional plug-in of the SDK, where, according to the current version number of each functional plug-in of the SDK, a description in the above embodiment may be referred to for a realization manner of determining the functional plug-in to be updated, and this embodiment of the present application is not described herein again.
In an optional embodiment of the present application, before receiving an updated version of a functional plug-in to be updated sent by a server, the method further includes:
and sending the channel identification of the SDK to the server so that the server determines the functional plug-ins to be updated in the SDK according to the channel identification of the SDK and the plug-ins of the functional plug-ins in the SDK.
Similarly, in order to reduce the data processing amount of the server in practical application, before receiving the update version of the functional plug-in to be updated sent by the server, the server may also send a channel identifier of the SDK to the server, and at this time, the server may determine the functional plug-in to be updated in the SDK based on the obtained channel identifier of the SDK and the plug-ins of the functional plug-ins in the SDK, where, according to the plug-ins of the functional plug-ins in the SDK and the channel identifier of the SDK, the implementation manner of determining the functional plug-ins to be updated in the SDK may be referred to the description in the above embodiment, and this embodiment of the present application is not described herein again.
In an optional embodiment of the present application, the update version includes a plugin of the functional plugin to be updated, and updating the functional plugin to be updated according to the update version includes:
determining an agent function plug-in corresponding to the Pluginid based on the mapping relation between the Pluginid and the agent function plug-in, wherein the agent function plug-in is a part of function plug-ins with a life cycle and built in the terminal equipment;
updating the functional plug-in to be updated based on the determined proxy functional plug-in and the updated version.
In practical application, because the update version for updating the functional plug-in to be updated is a functional plug-in without a life cycle, in the embodiment of the present application, the functional plug-in to be updated may be updated in a static proxy manner, for example, a mapping relationship between the Pluginid and the proxy functional plug-in may be preset, after the update version is received, the proxy functional plug-in corresponding to the Pluginid included in the update version is determined, and then the functional plug-in to be updated may be updated based on the determined proxy functional plug-in and the update version.
The determined proxy function plug-in can execute the function corresponding to the function plug-in to be updated, and the proxy function plug-in is a function plug-in component in a function plug-in with a life cycle and built in the terminal equipment.
In the embodiment of the application, because some functional plugins in the functional plugins with life cycles built in the terminal device and the updated version can be used for updating the functional plugins to be updated, compared with a hook scheme adopted in the prior art, the problem that the whole function is lost because a host application program uses a set of hook scheme and the updated version uses a set of hook scheme can be effectively avoided.
In an optional embodiment of the present application, before updating the to-be-updated functional plug-in according to the updated version, the method further includes:
loading a preset upgrade control function plug-in, wherein the upgrade control function plug-in is used for controlling the terminal equipment to automatically update the function plug-in to be updated according to the update version after receiving the update version;
updating the functional plug-in to be updated according to the updated version, comprising:
and updating the functional plug-in to be updated based on the upgrading control functional plug-in and the updating version.
In practical application, a preset upgrade control function plug-in (which may be loaded into a system of the terminal device by default) may be loaded, so that after receiving an update version sent by the server, the functional plug-in to be updated may be automatically updated based on the update version, and passive loading is no longer required.
In an optional embodiment of the present application, if there is an exception when the to-be-updated functional plug-in is updated according to the updated version, the method further includes:
and stopping updating the functional plug-in to be updated according to the updated version, and loading the original version of the functional plug-in to be updated.
In practical application, due to different versions of the terminal device, when the functional plug-in to be updated is updated according to the updated version, a situation of abnormal loading may occur, for example, a situation of incapability of running occurs, at this time, updating of the functional plug-in to be updated according to the updated version may be stopped, and the original version of the functional plug-in to be updated may be loaded, so as to ensure that the function corresponding to the functional plug-in to be updated can be normally used.
Specifically, which original version of the functional plug-in to be updated is loaded, which is not limited in the embodiment of the present disclosure. A possible implementation manner may be that which version is specifically loaded is determined according to the version level of the original version of the functional plug-in to be updated, for example, the 1.0 version and the 2.0 version of the functional plug-in to be updated are currently stored in the terminal device, at this time, the 2.0 version of the functional plug-in to be updated may be loaded, and if an exception also occurs when the 2.0 version is loaded, the 1.0 version of the functional plug-in to be updated may be loaded.
In an optional embodiment of the present application, after loading the original version of the functional plug-in to be updated, the method further includes:
and sending a reminding message of abnormal update of the functional plug-in to be updated to the server.
In practical application, after the original version of the functional plug-in to be updated is loaded, a reminding message of abnormal update of the functional plug-in to be updated can be sent to the server to inform the server that the functional plug-in to be updated fails to be updated. Of course, in order to better analyze the reason of the update failure, the reason of the update failure may also be sent to the server, where the reason of the update failure may be carried in the alert message, or may be sent to the server separately.
Based on this, the present application provides a software development kit, where the software development kit includes a self-updating module, where:
the self-updating module is used for receiving an updating version of the functional plug-in to be updated sent by the server, the functional plug-in to be updated is determined by the server based on an updating control parameter, and the updating control parameter comprises the Pluginid of each functional plug-in the SDK; and after receiving the updated version of the functional plug-in to be updated sent by the server, updating the functional plug-in to be updated according to the updated version.
In an optional embodiment of the present application, the update version includes a plugin of the to-be-updated functional plugin, and when the self-update module updates the to-be-updated functional plugin according to the update version, the self-update module is specifically configured to:
determining an agent function plug-in corresponding to the Pluginid based on the mapping relation between the Pluginid and the agent function plug-in, wherein the agent function plug-in is a part of function plug-ins with a life cycle and built in the terminal equipment; and updating the function plug-in to be updated based on the determined proxy function plug-in and the update version.
In an optional embodiment of the present application, the self-updating module is further configured to:
loading a preset upgrade control function plug-in before updating the function plug-in to be updated according to the update version, wherein the upgrade control function plug-in is used for controlling the terminal equipment to automatically update the function plug-in to be updated according to the update version after receiving the update version;
the self-updating module is specifically configured to: and updating the functional plug-in to be updated based on the upgrading control functional plug-in and the updating version.
In an optional embodiment of the present application, the self-updating module is further configured to:
and when the functional plug-in to be updated is updated according to the updated version and is abnormal, stopping updating the functional plug-in to be updated according to the updated version and loading the original version of the functional plug-in to be updated.
In an optional embodiment of the present application, the self-updating module is further configured to:
and after loading the original version of the functional plug-in to be updated, sending a reminding message of abnormal update of the functional plug-in to be updated to the server.
An embodiment of the present application further provides an updating apparatus of a software development kit, as shown in fig. 3, the software development kit includes a to-be-updated function plug-in determining module 310 and an update version sending module 320, where:
the function plug-in to be updated determining module 310 is configured to determine a function plug-in to be updated in the SDK according to an upgrade control parameter, where the upgrade control parameter includes a plugin id of each function plug-in the SDK;
the update version sending module 320 is configured to send the update version of the functional plug-in to be updated to the terminal device, so that the terminal device updates the functional plug-in to be updated according to the update version.
In an optional embodiment of the present application, the apparatus further includes an information obtaining module, where the information obtaining module is specifically configured to:
before determining the functional plug-ins to be updated in the SDK according to the upgrading control parameters, acquiring the current version numbers of the functional plug-ins of the SDK in the terminal equipment;
the function plug-in to be updated determining module is further configured to, when determining the function plug-in to be updated in the SDK according to the upgrade control parameter:
and determining the functional plug-ins to be updated in the SDK according to the current version numbers of the functional plug-ins of the SDK.
In an optional embodiment of the present application, the information obtaining module is further configured to:
acquiring a channel identifier of the SDK in the terminal equipment before determining the functional plug-in to be updated in the SDK according to the upgrading control parameter;
the function plug-in to be updated determining module is further configured to, when determining the function plug-in to be updated in the SDK according to the upgrade control parameter:
and determining the functional plug-ins to be updated in the SDK according to the plug-ins of the functional plug-ins in the SDK and the channel identification of the SDK.
In an optional embodiment of the present application, the SDK includes at least two functional plugins, the at least two functional plugins are obtained based on functional partitioning of service logic, and the at least two functional plugins include a functional plugin to be updated.
As shown in fig. 4, an embodiment of the present application further provides a system architecture diagram for updating a software development kit, where the system architecture diagram includes a server 410 and an SDK420, where the SDK420 may be embedded in any application, and the SDK420 includes a self-updating module 4201 and at least one functional plug-in 4202, and the self-updating module 4201 may update the functional plug-in 4202 according to an updated version sent by the server 410.
In practical application, after determining that the functional plug-in the SDK needs to be updated, the server sends the updated version of the functional plug-in to be updated to the SDK, and when the self-updating module in the SDK receives the updated version sent by the server, the self-updating module updates the functional plug-in to be updated according to the received updated version.
An embodiment of the present application further provides an electronic device, including: one or more processors and memory; wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: an update method of the software development kit is performed.
Embodiments of the present application also provide a computer-readable storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement an update method of a software development kit.
In an alternative embodiment, an electronic device is provided, as shown in fig. 5, the electronic device 5000 shown in fig. 5 includes: a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are coupled, such as via a bus 5002. Optionally, the electronic device 5000 may also include a transceiver 5004. It should be noted that the transceiver 5004 is not limited to one in practical application, and the structure of the electronic device 5000 is not limited to the embodiment of the present application.
The Processor 5001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application specific integrated Circuit), an FPGA (field programmable Gate Array) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 5001 may also be a combination of processors implementing computing functionality, e.g., a combination comprising one or more microprocessors, a combination of DSPs and microprocessors, or the like.
Bus 5002 may include a path that conveys information between the functional modules. The bus 5002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (extended industry Standard Architecture) bus, or the like. The bus 5002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 5003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically erasable programmable Read Only Memory), a CD-ROM (Compact disk Read Only Memory) or other optical disk storage, optical disk storage (including Compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 5003 is used for storing application program codes for executing the present solution, and the execution is controlled by the processor 5001. The processor 5001 is configured to execute application program code stored in the memory 5003 to implement the teachings of any of the foregoing method embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. A method for updating a software development kit, the method comprising:
determining functional plugins to be updated in a Software Development Kit (SDK) according to upgrade control parameters, wherein the upgrade control parameters comprise plugin identifiers (Pluginid) of all functional plugins in the SDK;
and sending the updated version of the functional plug-in to be updated to the terminal equipment so that the terminal equipment updates the functional plug-in to be updated according to the updated version.
2. The method of claim 1, wherein before determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, the method further comprises:
acquiring the current version number of each functional plug-in of the SDK in the terminal equipment;
the determining the functional plug-in to be updated in the SDK according to the upgrade control parameter further comprises:
and determining the functional plug-ins to be updated in the SDK according to the current version numbers of the functional plug-ins of the SDK.
3. The method of claim 1, wherein before determining the functional plug-in to be updated in the SDK according to the upgrade control parameter, the method further comprises:
acquiring a channel identifier of the SDK in the terminal equipment;
the determining the functional plug-in to be updated in the SDK according to the upgrade control parameter further comprises:
and determining the functional plug-ins to be updated in the SDK according to the plug-ins of the functional plug-ins in the SDK and the channel identification of the SDK.
4. The method according to any of claims 1 to 3, wherein the SDK comprises at least two functional plugins, the at least two functional plugins are obtained based on functional partitioning of service logic, and the at least two functional plugins comprise the functional plugins to be updated.
5. A method for updating a software development kit, the method comprising:
receiving an update version of a functional plug-in to be updated sent by a server, wherein the functional plug-in to be updated is determined by the server based on an update control parameter, and the update control parameter comprises the plug-in id of each functional plug-in the SDK;
and updating the functional plug-in to be updated according to the update version.
6. The method according to claim 5, wherein the updated version includes a Pluginid of a functional plugin to be updated, and the updating the functional plugin to be updated according to the updated version includes:
determining an agent function plug-in corresponding to the Pluginid based on the mapping relation between the Pluginid and the agent function plug-in, wherein the agent function plug-in is a part of function plug-ins with a life cycle and built in the terminal equipment;
updating the functional plug-in to be updated based on the determined proxy functional plug-in and the updated version.
7. The method according to claim 5 or 6, wherein before the updating the function plug-in to be updated according to the updated version, the method further comprises:
loading a preset upgrade control function plug-in, wherein the upgrade control function plug-in is used for controlling the terminal equipment to automatically update the function plug-in to be updated according to the update version after receiving the update version;
the updating the functional plug-in to be updated according to the update version comprises:
and updating the functional plug-in to be updated based on the upgrading control functional plug-in and the updating version.
8. The method according to claim 5 or 6, wherein if there is an exception when the functional plug-in to be updated is updated according to the updated version, the method further comprises:
and stopping updating the functional plug-in to be updated according to the updated version, and loading the original version of the functional plug-in to be updated.
9. The method of claim 8, after loading the native version of the to-be-updated function plug-in, further comprising:
and sending a reminding message of abnormal update of the functional plug-in to be updated to the server.
10. An apparatus for updating a software development kit, the apparatus comprising:
the system comprises a to-be-updated function plug-in determining module, a to-be-updated function plug-in determining module and a to-be-updated function plug-in determining module, wherein the to-be-updated function plug-ins in the SDK are determined according to an upgrade control parameter, and the upgrade control parameter comprises the Pluginid of each function plug-in the SDK;
and the update version sending module is used for sending the update version of the functional plug-in to be updated to the terminal equipment so that the terminal equipment updates the functional plug-in to be updated according to the update version.
11. A software development kit, comprising a self-updating module, wherein the self-updating module is specifically configured to:
receiving an update version of a functional plug-in to be updated sent by a server, wherein the functional plug-in to be updated is determined by the server based on an update control parameter, and the update control parameter comprises the plug-in id of each functional plug-in the SDK; and after receiving the update version of the functional plug-in to be updated sent by the server, updating the functional plug-in to be updated according to the update version.
12. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
one or more applications stored in the memory and configured for execution by the one or more processors, the one or more applications configured to: executing the update method of the software development kit according to any one of claims 1 to 9.
13. A computer-readable storage medium storing at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method for updating a software development kit according to any one of claims 1 to 9.
CN201910213733.6A 2019-03-20 2019-03-20 Updating method and device of software development kit, electronic equipment and storage medium Pending CN111722857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910213733.6A CN111722857A (en) 2019-03-20 2019-03-20 Updating method and device of software development kit, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910213733.6A CN111722857A (en) 2019-03-20 2019-03-20 Updating method and device of software development kit, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111722857A true CN111722857A (en) 2020-09-29

Family

ID=72563354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910213733.6A Pending CN111722857A (en) 2019-03-20 2019-03-20 Updating method and device of software development kit, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111722857A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698858A (en) * 2021-01-13 2021-04-23 郑州阿帕斯数云信息科技有限公司 Plug-in updating method, device and system
CN112882732A (en) * 2021-01-22 2021-06-01 支付宝(杭州)信息技术有限公司 Method and device for updating function codes in Software Development Kit (SDK)
CN113961226A (en) * 2021-10-20 2022-01-21 北京字节跳动网络技术有限公司 Software development kit repairing method, terminal, server and equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867963A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Application updating method and apparatus
CN106020843A (en) * 2016-05-31 2016-10-12 乐视控股(北京)有限公司 System function updating method and system, terminal device and server
CN106095486A (en) * 2016-05-31 2016-11-09 乐视控股(北京)有限公司 Online updating method, system, terminal unit and the server of application program
CN106445601A (en) * 2016-09-29 2017-02-22 乐视控股(北京)有限公司 Device and method for plugin upgrading
CN106686420A (en) * 2016-12-09 2017-05-17 广州华多网络科技有限公司 Live streaming application program management method and apparatus
US20170147323A1 (en) * 2015-11-25 2017-05-25 Le Holding (Beijing) Co., Ltd. Method and electronic device for upgrading software development kit of an application
CN108111330A (en) * 2017-11-06 2018-06-01 北京趣拿软件科技有限公司 The acquisition of updated data package, the update method of application component and device
CN108170485A (en) * 2016-12-05 2018-06-15 腾讯科技(深圳)有限公司 A kind of plug-in loading method, device and mobile terminal
CN108881393A (en) * 2018-05-22 2018-11-23 北京达佳互联信息技术有限公司 A kind of data distributing method, device, computer and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170147323A1 (en) * 2015-11-25 2017-05-25 Le Holding (Beijing) Co., Ltd. Method and electronic device for upgrading software development kit of an application
CN105867963A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Application updating method and apparatus
CN106020843A (en) * 2016-05-31 2016-10-12 乐视控股(北京)有限公司 System function updating method and system, terminal device and server
CN106095486A (en) * 2016-05-31 2016-11-09 乐视控股(北京)有限公司 Online updating method, system, terminal unit and the server of application program
CN106445601A (en) * 2016-09-29 2017-02-22 乐视控股(北京)有限公司 Device and method for plugin upgrading
CN108170485A (en) * 2016-12-05 2018-06-15 腾讯科技(深圳)有限公司 A kind of plug-in loading method, device and mobile terminal
CN106686420A (en) * 2016-12-09 2017-05-17 广州华多网络科技有限公司 Live streaming application program management method and apparatus
CN108111330A (en) * 2017-11-06 2018-06-01 北京趣拿软件科技有限公司 The acquisition of updated data package, the update method of application component and device
CN108881393A (en) * 2018-05-22 2018-11-23 北京达佳互联信息技术有限公司 A kind of data distributing method, device, computer and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698858A (en) * 2021-01-13 2021-04-23 郑州阿帕斯数云信息科技有限公司 Plug-in updating method, device and system
CN112698858B (en) * 2021-01-13 2023-02-07 郑州阿帕斯数云信息科技有限公司 Plug-in updating method, device and system
CN112882732A (en) * 2021-01-22 2021-06-01 支付宝(杭州)信息技术有限公司 Method and device for updating function codes in Software Development Kit (SDK)
CN113961226A (en) * 2021-10-20 2022-01-21 北京字节跳动网络技术有限公司 Software development kit repairing method, terminal, server and equipment
CN113961226B (en) * 2021-10-20 2023-11-07 抖音视界有限公司 Software development kit repairing method, terminal, server and equipment

Similar Documents

Publication Publication Date Title
CN109814524B (en) Vehicle diagnosis method, device and system
CN111722857A (en) Updating method and device of software development kit, electronic equipment and storage medium
US20130152069A1 (en) Method, apparatus and system for initiating terminal operation
CN107844306B (en) Application program repairing method and device, storage medium and terminal
US10715628B2 (en) Attribute operating method and device
CN108563472B (en) Service plug-in loading method and device based on multi-open application
CN111143031A (en) Method and device for changing capacity of virtual machine
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN103885802A (en) Driver installation method and device and client
CN107831887B (en) Application starting method and device
CN106603125B (en) Method and device for data interaction with Bluetooth equipment
CN115658042A (en) Hybrid application component type development method, system, device and storage medium
CN104765624A (en) Update processing method and device for virtual machine application
CN107967192B (en) System crash processing method and device for intelligent terminal
CN106293814B (en) Upgrading method and device
CN109739868B (en) Data processing method and related equipment thereof
CN108170493B (en) System module loading method, system and device
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN114449030A (en) Internet service system, method, electronic equipment and storage medium
CN114546842A (en) Interface test method and device, storage medium and electronic equipment
CN110365839B (en) Shutdown method, shutdown device, shutdown medium and electronic equipment
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN111078571A (en) Test method for simulation response, terminal device and computer readable storage medium
CN111427603A (en) Application program upgrading method and device
CN110825406A (en) Software upgrading method and related equipment

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