RN-based application update method and device

Through the RN-based application update method, version difference information and device attributes are used to download incremental packages for application updates, which solves the problem of slow complete update packages and improves update efficiency and resource utilization.

CN114398073BActive Publication Date: 2024-09-17QILIN HESHENG NETWORK TECH INC
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210036590.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2024-09-17
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

When updating existing applications, the complete update package needs to be downloaded, resulting in slow speed and affecting update efficiency.

Method used

The RN-based application update method is used to obtain the network side and client version information, determine the version difference information, and download the matching incremental package from the network side for update to generate a full package.

Benefits of technology

It improves the application update speed, reduces traffic resource consumption, and achieves flexible and accurate application updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114398073B
    Figure CN114398073B
Patent Text Reader

Abstract

The present application discloses an RN-based application update method and device to solve the current problem of slow update speed for application updates. It includes: obtaining the network-side version information corresponding to the target application, and the client version information of the target application; comparing the network-side version information and the client version information, and determining the version difference information corresponding to the target application according to the comparison result; and obtaining the device attribute information corresponding to the client; screening and downloading the incremental package that matches the version difference information and the device attribute information from the network side; updating the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network-side version information and the device attribute information. The RN-based application update method provided by this technical solution can improve the application update speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an RN-based application update method and device. Background Art

[0002] With the prevalence of the Internet, people's work and life are increasingly inseparable from electronic devices. Various applications on electronic devices can meet users' needs for shopping, entertainment, work, and study, bringing users a convenient experience.

[0003] As people's needs change day by day, the update iterations of various applications are becoming more and more frequent. At present, when clients update applications, they generally download the complete update package corresponding to the application from the network side. Since the complete update package includes all the contents of the application, the complete update package is large, resulting in a slow download speed of the complete update package, which seriously affects the update speed of the application. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an RN-based application update method and device to solve the current problem of slow update speed for application updates.

[0005] To solve the above technical problems, the embodiments of the present application are implemented as follows:

[0006] On the one hand, an embodiment of the present application provides an RN-based application update method, which is applied to a client; the method includes:

[0007] Obtain the network version information corresponding to the target application and the client version information of the target application; the network version information or the client version information includes the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package;

[0008] Compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0009] Filter and download an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0010] An update operation is performed on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0011] On the other hand, an embodiment of the present application provides an RN-based application update method, which is applied to a network side; the method includes:

[0012] Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0013] According to the incremental package acquisition request, searching for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0014] The incremental package is sent to the client so that the client updates the target Bundle package according to the incremental package and generates a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0015] On the other hand, an embodiment of the present application provides an RN-based application update device, which is applied to a client; the device includes:

[0016] A first acquisition module is used to acquire the network side version information corresponding to the target application and the client version information of the target application; the network side version information or the client version information includes an application version number and an RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package;

[0017] A first execution module is used to compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0018] A download module, used to filter and download an incremental package matching the version difference information and the device attribute information from the network side; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of a target Bundle package to be updated;

[0019] An update and generation module is used to update the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0020] On the other hand, an embodiment of the present application provides an RN-based application update device, which is applied to a network side; the device includes:

[0021] The first receiving module is used to receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a public Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0022] A search module, configured to search, according to the incremental package acquisition request, for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0023] The sending module is used to send the incremental package to the client so that the client can update the target Bundle package according to the incremental package and generate a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0024] On the other hand, an embodiment of the present application provides an RN-based application update device, including a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor is used to call and execute the computer program from the memory to implement:

[0025] Obtain the network version information corresponding to the target application and the client version information of the target application; the network version information or the client version information includes the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package;

[0026] Compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0027] Filter and download an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0028] An update operation is performed on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0029] On the other hand, an embodiment of the present application provides an RN-based application update device, including a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor is used to call and execute the computer program from the memory to implement:

[0030] Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0031] According to the incremental package acquisition request, searching for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0032] The incremental package is sent to the client so that the client updates the target Bundle package according to the incremental package and generates a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0033] On the other hand, an embodiment of the present application provides a storage medium for storing a computer program, wherein the computer program is executed by a processor to implement the following process:

[0034] Obtain the network version information corresponding to the target application and the client version information of the target application; the network version information or the client version information includes the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package;

[0035] Compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0036] Filter and download an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0037] An update operation is performed on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0038] On the other hand, an embodiment of the present application provides a storage medium for storing a computer program, wherein the computer program is executed by a processor to implement the following process:

[0039] Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0040] According to the incremental package acquisition request, searching for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0041] The incremental package is sent to the client so that the client updates the target Bundle package according to the incremental package and generates a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0042] By adopting the technical solution of the embodiment of the present application, the client obtains the network side version information corresponding to the target application, as well as the client version information of the target application and the device attribute information corresponding to the client, compares the network side version information with the client version information, and determines the version difference information corresponding to the target application according to the comparison result, thereby filtering and downloading the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) that matches the version difference information and the device attribute information from the network side, and then updating the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the client can filter and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information of the application and the network side version information, as well as the device attribute information of the client, so as to accurately update the application according to the incremental package, and achieve the effect of flexibly updating the application, and since the incremental package mainly includes the incremental content related to the application update, the speed of downloading the incremental package is faster than downloading the complete update package, thereby improving the application update speed.

[0043] Furthermore, the network side receives the incremental package acquisition request for the target application sent by the client, and then searches for the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) corresponding to the target application and matching the version difference information and device attribute information according to the identification information of the target application carried in the incremental package acquisition request, the version difference information between the network side version information and the client version information corresponding to the target application, and the device attribute information corresponding to the client, and sends the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the network side can search for the incremental package that matches the version difference information and the device attribute information of the application according to the incremental package acquisition request sent by the client, and send the incremental package to the client, thereby achieving the effect of sending the incremental package flexibly and in a targeted manner. Since the incremental package mainly includes the incremental content related to the application update, compared with sending the complete update package, sending the incremental package consumes less traffic resources, thereby reducing the traffic resources consumed during the application update process. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 is a schematic flow chart of an RN-based application update method according to an embodiment of the present application;

[0046] Figure 2 is a schematic flowchart of an RN-based application update method according to another embodiment of the present application;

[0047] Figure 3 is a schematic flowchart of an RN-based application update method according to another embodiment of the present application;

[0048] Figure 4 is a structural diagram of an RN-based application update device according to an embodiment of the present application;

[0049] Figure 5 is a structural diagram of an RN-based application update device according to another embodiment of the present application;

[0050] Figure 6It is a hardware structure diagram of an RN-based application update device according to an embodiment of the present application. DETAILED DESCRIPTION

[0051] The embodiments of the present application provide an RN-based application update method and device to solve the current problem of slow update speed for application updates.

[0052] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0053] Figure 1 FIG. 1 is a schematic flow chart of an RN-based application update method according to an embodiment of the present application, and the method is applied to a client. Figure 1 As shown, the RN-based application update method may include:

[0054] S102, obtaining network side version information corresponding to the target application and client side version information of the target application.

[0055] Among them, the network side can be the application server corresponding to the target application, and the client can be the electronic device that has downloaded the target application. The network side version information or the client version information may include the application version number and the RN version number. The target application may include a public Bundle package and a module Bundle package of each functional module. The RN version number is used to identify the update level of the public Bundle package and / or the module Bundle package.

[0056] In this embodiment, the execution time of obtaining the network side version information corresponding to the target application can be: when the target application is started on the client, or when the preset update cycle of the target application on the client is reached, or when the user selects the setting option for updating the target application on the client. The client can obtain the network side version information corresponding to the target application from the network side, or obtain the network side version information corresponding to the target application from a third-party application store.

[0057] Among them, RN (React Native) is a cross-platform application development framework. When developing applications based on RN, RN can package the application's scripting language (JavaScript, JS) files (i.e. script code) into a Bundle package, which is a folder containing executable code and resources required by the code, combined in a specific standard hierarchical structure. After the client downloads the application, it can load the Bundle package, parse the Bundle package and render the corresponding application interface.

[0058] In one embodiment, the application version number may be the version number released by the application, and the RN version number may be the updated version number based on the RN release after the application is released. Both the application version number and the RN version number are set by the application developer when developing the application or releasing the update according to the set version number rule. One application version number may include multiple RN version numbers. For example, if the application version number is 1.0, the RN version number may be 1.0.0, 1.0.1, 1.0.9, and so on.

[0059] Continuing with the previous example, when the RN version number increases with the update of the application, it should be understood that when the RN version number is 1.0.0, the update level of the public Bundle package and / or the module Bundle package is lower than the update level of the public Bundle package and / or the module Bundle package when the RN version number is 1.0.9.

[0060] S104, comparing the network side version information with the client side version information, and determining the version difference information corresponding to the target application according to the comparison result; and obtaining the device attribute information corresponding to the client.

[0061] The device attribute information may include device location information, device network status information, device performance information, etc. The device location information may be information about the country or region where the client is located, the device network status information may be information about whether the network quality is good or poor, etc., and the device performance information may be information about the client's memory size, the model of the central processor, the device model of the client, the operating system of the client, etc. The device attribute information may also include information about whether forced application updates are allowed, and the information about whether forced application updates are allowed may include allowing forced application updates or not allowing forced application updates.

[0062] S106, screening and downloading an incremental package that matches the version difference information and the device attribute information from the network side, the incremental package including at least one of incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated.

[0063] The incremental package may include incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated. The target Bundle package to be updated may be the Bundle package of the current version of the client, that is, the old version of the Bundle package corresponding to the incremental package. The identification information of the target Bundle package to be updated may be the package name of the target Bundle package to be updated.

[0064] Optionally, the incremental package may include incremental content, incremental mode and incremental location information. The incremental location information includes identification information of the target Bundle package to be updated and the location to be updated in the target Bundle package.

[0065] S108, performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information.

[0066] By adopting the technical solution of the embodiment of the present application, the client obtains the network side version information corresponding to the target application, as well as the client version information of the target application and the device attribute information corresponding to the client, compares the network side version information with the client version information, and determines the version difference information corresponding to the target application according to the comparison result, thereby filtering and downloading the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) that matches the version difference information and the device attribute information from the network side, and then updating the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the client can filter and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information of the application and the network side version information, as well as the device attribute information of the client, so as to accurately update the application according to the incremental package, and achieve the effect of flexibly updating the application, and since the incremental package mainly includes the incremental content related to the application update, the speed of downloading the incremental package is faster than downloading the complete update package, thereby improving the application update speed.

[0067] In one embodiment, when the application developer develops the target application based on RN, RN can package the script language (JavaScript, JS) files of the target application into a Bundle package. Specifically, after the application developer has written the JS file of the target application, RN can use automated packaging commands to package repeated React Native codes and commonly used basic third-party libraries into a basic package (common.bundle). The basic package is the public Bundle package of the target application, and based on each functional module, the corresponding script code is packaged separately to obtain the module Bundle package of each functional module.

[0068] For example, create an empty JS file that only includes the React Native header file common.ios.js:

[0069] import React from 'react';

[0070] import{}from'react-native';

[0071] The above JS files are packaged to obtain a Bundle package that only contains the React Native basic framework, which can be called common.bundle. Among them, after the client installs the target application for the first time, common.bundle needs to be loaded first when loading the Bundle package in the bridge (the code used to load the Bundle package).

[0072] In this embodiment, each functional module corresponds to its own script code (index.business.js). When each script code is packaged, the entry file is index, and the module Bundle package (business.bundle) corresponding to each functional module can be obtained.

[0073] In this embodiment, RN packages the JS files of the target application into a public Bundle package and a module Bundle package through an automated packaging command, which can be regarded as an unpacking process. Unpacking can prevent the Bundle package from being too large, which is conducive to speeding up the download speed of the Bundle package.

[0074] Optionally, the automated packaging command can be react-native bundle --entry-fileindex.bussiness.js --bundle-output . / bundle / index.android.bundle --platformandroid --assets-dest . / bundle --dev false.

[0075] Optionally, RN can use Metro tools for packaging. For Android applications, packaging is to output each functional module to a single file and name it with the functional module ID (Identity Document, unique code). For iOS applications, packaging is to package the functional modules into a file in the form of a stream. Packaging using Metro tools can include the following three stages:

[0076] Phase 1, Resolution: This phase requires the use of the Metro parser to build a graph of all the modules required from the entry point and find the required files from another file. In real development, this phase is parallel to the Transformation phase.

[0077] Phase 2, Transformation: All modules go through the Transformation phase, which is responsible for converting the module into a format that the target platform (such as React Native) can understand. The module transformation is based on the number of cores it has.

[0078] Phase 3, Serialization: All modules will be serialized once converted. Serialization will combine these modules to generate one or more packages. A package is a package that combines modules into a JavaScript file. During serialization, a series of methods are provided to allow application developers to customize some content, such as module ID, module filtering, etc.

[0079] Optionally, after generating the public Bundle package and module Bundle package of the target application, the public Bundle package and module Bundle package of the target application can be automatically uploaded to the network side through a visual operation interface, so that the application developer can intuitively understand the release status of the target application.

[0080] In one embodiment, the network side version information corresponding to the target application and the client side version information of the target application are obtained, the network side version information and the client side version information are compared, and the version difference information corresponding to the target application is determined according to the comparison result (i.e., S102-S104). It can be executed as follows: when the target application is started, the client sends an update request to the network side, and the network side responds to the update request by sending the network side version information corresponding to the target application to the client, and the client compares the network side version information corresponding to the target application with the obtained client side version information of the target application, and determines the version difference information corresponding to the target application according to the comparison result.

[0081] Optionally, the client may send an update request to the network side through the checkUpdate interface.

[0082] In this embodiment, when the client starts the target application, the client interacts with the network side to determine the version difference information corresponding to the target application, which is conducive to timely updating of the target application.

[0083] In one embodiment, the network side version information and the client version information are compared, and the version difference information corresponding to the target application is determined according to the comparison result (i.e., S104), which can be specifically performed as follows: the network side version information and the client version information are compared, and whether the target application meets the update condition according to the comparison result is determined; if so, the version difference information corresponding to the target application is determined. In addition, if it is determined according to the comparison result that the target application does not meet the update condition, it can be determined that the target application does not need to be updated.

[0084] Optionally, the update condition may be that the network side version information is different from the client side version information. Accordingly, the comparison result may be that the network side version information is the same as the client side version information, or that the network side version information is different from the client side version information.

[0085] The difference between the network side version information and the client version information may be: the application version number in the network side version information is different from the application version number in the client version information, the RN version number in the network side version information is different from the RN version number in the client version information, etc.

[0086] Among them, the network side version information and the client version information are compared. When the comparison result is that the network side version information is the same as the client version information, it can be determined that the target application does not meet the update conditions; when the comparison result is that the network side version information and the client version information are different, it can be determined that the target application meets the update conditions.

[0087] In this embodiment, by comparing the network side version information with the client version information, it is determined whether the target application meets the update conditions based on the comparison result, and when it is determined that the target application meets the update conditions, the version difference information corresponding to the target application is determined. This allows the version difference information corresponding to the target application that needs to be updated to be determined in a targeted manner, avoiding the operation of determining the version difference information for the target application that does not meet the update conditions, thereby saving computing resources.

[0088] In one embodiment, the version difference information may include application version difference information and RN version difference information. In this embodiment, the network side version information and the client version information are compared, and the version difference information corresponding to the target application is determined according to the comparison result (ie, S104), which can be specifically performed as follows: Steps A1-A3:

[0089] Step A1: compare the application version number in the network version information with the application version number in the client version information to obtain application version difference information.

[0090] For example, when the application version number in the network side version information is 3.0 and the application version number in the client version information is 2.0, the application version number in the network side version information and the application version number in the client version information are compared, and the obtained application version difference information is the difference between application version number 2.0 and application version number 3.0.

[0091] Step A2: compare the RN version number in the network side version information with the RN version number in the client version information to obtain RN version difference information.

[0092] Continuing with the above example, when the RN version number in the network side version information is 3.0.10 and the RN version number in the client version information is 2.0.3, the RN version number in the network side version information and the RN version number in the client version information are compared, and the obtained RN version difference information is the difference between RN version number 2.0.3 and RN version number 3.0.10.

[0093] Step A3: Generate version difference information corresponding to the target application according to the application version difference information and the RN version difference information.

[0094] In this embodiment, by determining the application version difference information between the network side version information and the client version information, as well as the RN version difference information, the version difference information corresponding to the target application is obtained, so that the determined version difference information is more accurate, which is conducive to accurately screening and downloading incremental packages from the network side to accurately update the application.

[0095] Since application updates require the consumption of traffic resources, in order to minimize the consumption of traffic resources during the application update process, the embodiment of the present application adopts an incremental approach to implement application updates. The client can filter and download incremental packages that match the version difference information and device attribute information from the network side.

[0096] The increment for the script code part (i.e., the bundle package) refers to the modified script code, and the increment for the image part (i.e., the assets) refers to the newly added images and the modified images.

[0097] Among them, for the image part, the network side can use the assets incremental algorithm to determine the increment of the image part. The assets incremental algorithm can be understood as a comparison, which can compare newly added files and different files. For the script code part, the network side can use the Bundle incremental algorithm, which can compare (diff) large strings and generate patches (patch). Optionally, the generated incremental package can be represented by patch_make, and the generated full package can be represented by patch_apply.

[0098] In one embodiment, the target Bundle package in the target application is updated according to the incremental package (ie, S108), which can be specifically performed as follows: Steps B1-B3:

[0099] Step B1: determine the target Bundle package to be updated according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package.

[0100] Step B2: Determine the location to be updated in the target Bundle package according to the incremental location information.

[0101] Step B3: updating the script of the target Bundle package at the location to be updated according to the incremental content and incremental mode included in the incremental package.

[0102] The incremental method may include adding, deleting, replacing, etc. The script of the target Bundle package is updated, which may be an update operation on the script code corresponding to assets or index.business.bundle.

[0103] In this embodiment, the updated target Bundle package and other local Bundle packages except the target Bundle package can be merged through the nodediffpatch patbundle merge algorithm to generate a full package corresponding to the target application and matching the network side version information and device attribute information.

[0104] In this embodiment, by determining the target Bundle package to be updated, and determining the position to be updated in the target Bundle package based on the incremental position information included in the incremental package, the script of the target Bundle package is updated at the position to be updated based on the incremental content and incremental method included in the incremental package, thereby achieving the effect of accurately updating the target Bundle package based on the incremental package.

[0105] In one embodiment, after the target Bundle package in the target application is updated according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and device attribute information (i.e., S108), the update information of the target application can be counted and uploaded to the network side so that the network side can store the update information.

[0106] Among them, the update information may include the download time of the incremental package, the number of downloads, the package size, the reason for download failure, the execution time of the update operation, the update duration, etc.

[0107] In this embodiment, after updating the target Bundle package in the target application according to the incremental package and generating a full package corresponding to the target application that matches the network side version information and device attribute information, the update information of the target application is counted and uploaded to the network side so that the network side can store the update information, thereby realizing a closed loop of application updates and providing a data basis for the network side to optimize the incremental package based on the update information.

[0108] Figure 2 FIG. 1 is a schematic flow chart of an RN-based application update method according to another embodiment of the present application, and the method is applied to the network side. Figure 2 As shown, the RN-based application update method may include:

[0109] S202, receiving an incremental package acquisition request for a target application sent by a client, the incremental package acquisition request carries identification information of the target application, version difference information between network side version information corresponding to the target application and client version information, and device attribute information corresponding to the client.

[0110] The target application may include a common Bundle package and module Bundle packages of each functional module. The identification information of the target application may be the name of the target application, the application ID of the target application, and other information that can uniquely identify the target application.

[0111] The device attribute information may include device location information, device network status information, device performance information, etc. The device location information may be the country and region information where the client is located, the device network status information may be information such as good network quality or poor network quality, and the device performance information may be information such as the client's memory size, the model of the central processor, the client's device model, and the client's operating system.

[0112] S204, according to the incremental package acquisition request, search for the incremental package corresponding to the target application and matching the version difference information and device attribute information, the incremental package including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated.

[0113] The incremental package may include incremental content, incremental mode, incremental location information, identification information of the target Bundle package to be updated, etc. The target Bundle package to be updated may be the Bundle package of the current version of the client, that is, the old version of the Bundle package corresponding to the incremental package. The identification information of the target Bundle package to be updated may be the package name of the target Bundle package to be updated.

[0114] S206, sending the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application and matching the network side version information and device attribute information.

[0115] By adopting the technical solution of the embodiment of the present application, the network side receives an incremental package acquisition request for the target application sent by the client, and thereby searches for an incremental package (including at least one of the incremental content, incremental method, incremental location information, and identification information of the target Bundle package to be updated) corresponding to the target application and matching the version difference information and device attribute information based on the identification information of the target application carried in the incremental package acquisition request, the version difference information between the network side version information corresponding to the target application and the client version information, and the device attribute information corresponding to the client, and sends the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the network side can find the incremental package that matches the version difference information and device attribute information of the application based on the incremental package acquisition request sent by the client, and send the incremental package to the client, thereby achieving the effect of flexibly and targetedly sending incremental packages. Since the incremental package mainly includes incremental content related to the application update, compared with sending a complete update package, sending an incremental package consumes less traffic resources, thereby reducing the traffic resources consumed during the application update process.

[0116] In one embodiment, before receiving the incremental package acquisition request for the target application sent by the client (ie, S202), the following steps C1-C4 may be performed first:

[0117] Step C1, obtaining a first Bundle package to be updated in a target application and a published target Bundle package.

[0118] The first Bundle is a newly created Bundle by the developer of the application, and the first Bundle corresponds to the target Bundle. The correspondence between the first Bundle and the target Bundle can be any of the following: the first Bundle and the target Bundle are both public Bundles; the first Bundle and the target Bundle are both module Bundles of the same functional module.

[0119] Step C2, compare the first Bundle package with the target Bundle package, determine the incremental information of the first Bundle package relative to the target Bundle package according to the comparison result, and generate incremental packages corresponding to each type of device attribute information according to the incremental information.

[0120] Optionally, the first Bundle package and the target Bundle package are compared by performing a diff algorithm on the first Bundle package and the target Bundle package to find the difference (i.e., incremental information), and generating an incremental package according to the difference. Optionally, the diff algorithm can be a google-diff-match-patch algorithm, which can compare, match, and generate patches for text files.

[0121] The incremental information may include incremental content, incremental mode, incremental location information, identification information of the target Bundle package, etc. The incremental mode may include addition, deletion, replacement, etc. The incremental content may include the specific content of the first Bundle package added, deleted, and replaced relative to the target Bundle package. The identification information of the target Bundle package may be the package name of the target Bundle package.

[0122] Among them, generating incremental packages corresponding to various types of device attribute information may include: generating incremental packages corresponding to the operating system of each client and the country and region information where the client is located. For example, the client's operating system includes the Android operating system and the iOS operating system, and the country and region information where the client is located includes country A, region a of country B, and region b of country B. Then, the incremental packages corresponding to various types of device attribute information may include: the incremental package corresponding to the Android operating system and country A, the incremental package corresponding to the Android operating system and region a of country B, the incremental package corresponding to the Android operating system and region b of country B, the incremental package corresponding to the iOS operating system and country A, the incremental package corresponding to the iOS operating system and region a of country B, and the incremental package corresponding to the iOS operating system and region b of country B.

[0123] In one embodiment, after the network side generates incremental packages corresponding to each type of device attribute information, it can fuse the incremental packages, the target Bundle package and other published Bundle packages except the target Bundle package through the nodediffpatch patbundle merge algorithm to generate full packages corresponding to each type of device attribute information. This is conducive to the network side to fully record the application updates and facilitate the client that has not installed the target application to install the application according to the generated full package.

[0124] Step C3: determine the first version information corresponding to the first Bundle package and the second version information corresponding to the target Bundle package, and determine the version difference information between the first version information and the second version information.

[0125] The first version information or the second version information may include an application version number and an RN version number. Determining the version difference information between the first version information and the second version information may be specifically performed as follows: comparing the application version number in the first version information with the application version number in the second version information to obtain application version difference information; comparing the RN version number in the first version information with the RN version number in the second version information to obtain RN version difference information; and generating the version difference information between the first version information and the second version information according to the application version difference information and the RN version difference information.

[0126] Step C4, the incremental packages, version difference information and target applications corresponding to each type of device attribute information are associated and stored on the network side.

[0127] Optionally, the incremental packages corresponding to each type of device attribute information may be compressed and then stored on the network side in association with version difference information and target applications, thereby saving storage costs for the incremental packages and traffic resources when downloading the incremental packages.

[0128] In this embodiment, the first Bundle package to be updated in the target application is compared with the published target Bundle package, and the incremental information of the first Bundle package relative to the target Bundle package is determined according to the comparison result. According to the incremental information, incremental packages corresponding to each type of device attribute information are generated, and the first version information corresponding to the first Bundle package and the second version information corresponding to the target Bundle package are determined, and the version difference information between the first version information and the second version information is determined. The incremental packages corresponding to each type of device attribute information, the version difference information and the target application are associated and stored on the network side, which provides a data basis for the network side in subsequent embodiments to accurately search and send the incremental package according to the received incremental package acquisition request, which is conducive to the accurate execution of subsequent steps.

[0129] In one embodiment, after the incremental package is sent to the client (ie, S206), update information for the target application sent by the client can be received, and the update information can be associated with the target application and stored so that the developer of the target application can optimize the incremental package based on the update information.

[0130] Among them, the update information may include the download time of the incremental package, the number of downloads, the package size, the reason for download failure, the execution time of the update operation, the update duration, etc.

[0131] In this embodiment, by receiving update information for the target application sent by the client after sending the incremental package to the client, and storing the update information in association with the target application, a closed loop of application update is achieved, which is beneficial for the developer of the target application to optimize the incremental package based on the update information, thereby making application updates more efficient.

[0132] To facilitate understanding of the RN-based application update method provided in the embodiment of the present application, the following will introduce the RN-based application update method provided in the embodiment of the present application in the form of interaction between the client and the network side. Figure 3 . Figure 3 is a schematic flow chart of an RN-based application update method according to another embodiment of the present application, such as Figure 3 As shown, the RN-based application update method may include:

[0133] S301, the client obtains the network side version information corresponding to the target application and the client version information of the target application.

[0134] The network version information or the client version information may include the application version number and the RN version number. The target application may include a public Bundle package and a module Bundle package of each functional module. The RN version number is used to identify the update level of the public Bundle package and / or the module Bundle package.

[0135] S302, the client compares the network side version information with the client version information, determines the version difference information corresponding to the target application according to the comparison result; and obtains the device attribute information corresponding to the client.

[0136] Among them, device attribute information may include device location information, device network status information, device performance information, etc.

[0137] In one embodiment, the network side version information and the client side version information are compared, and the version difference information corresponding to the target application is determined according to the comparison result. The specific implementation is as follows: the network side version information and the client side version information are compared, and it is determined whether the target application meets the update condition according to the comparison result; if so, the version difference information corresponding to the target application is determined. If not, it is determined that the target application does not need to be updated.

[0138] In one embodiment, the version difference information may include application version difference information and RN version difference information. Comparing the network side version information with the client version information, and determining the version difference information corresponding to the target application according to the comparison result, can be specifically performed as follows: comparing the application version number in the network side version information with the application version number in the client version information to obtain the application version difference information; comparing the RN version number in the network side version information with the RN version number in the client version information to obtain the RN version difference information; generating the version difference information corresponding to the target application according to the application version difference information and the RN version difference information.

[0139] S303, the client sends an incremental package acquisition request to the network side, the incremental package acquisition request carries the identification information of the target application, the version difference information between the network side version information corresponding to the target application and the client version information, and the device attribute information corresponding to the client.

[0140] The incremental package may include incremental content, incremental mode, incremental location information, identification information of the target Bundle package to be updated, etc. The incremental mode may include addition, deletion, replacement, etc.

[0141] S304: The network side receives an incremental package acquisition request for the target application sent by the client.

[0142] In one embodiment, before the network side receives the incremental package acquisition request for the target application sent by the client, it can first obtain the first Bundle package to be updated in the target application and the published target Bundle package, and the first Bundle package corresponds to the target Bundle package; secondly, the first Bundle package and the target Bundle package are compared, and the incremental information of the first Bundle package relative to the target Bundle package is determined according to the comparison result, and according to the incremental information, incremental packages corresponding to various types of device attribute information are generated respectively; thirdly, the first version information corresponding to the first Bundle package and the second version information corresponding to the target Bundle package are determined, and the version difference information between the first version information and the second version information is determined; thereby, the incremental packages corresponding to various types of device attribute information, the version difference information and the target application are associated and stored on the network side.

[0143] S305: The network side searches for an incremental package corresponding to the target application and matching the version difference information and the device attribute information according to the incremental package acquisition request.

[0144] S306: The network side sends the incremental package to the client.

[0145] S307, the client downloads the incremental package sent by the network side, and updates the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and device attribute information.

[0146] In one embodiment, the update operation of the target Bundle package in the target application according to the incremental package can be specifically executed as follows: the target Bundle package to be updated is determined according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package, and the location to be updated in the target Bundle package is determined according to the incremental location information, so as to update the script of the target Bundle package at the location to be updated according to the incremental content and incremental method included in the incremental package.

[0147] S308: The client collects statistics on update information of the target application.

[0148] Among them, the update information may include the download time of the incremental package, the number of downloads, the package size, the reason for download failure, the execution time of the update operation, the update duration, etc.

[0149] S309, the client uploads the update information to the network side.

[0150] S310: The network side receives update information for the target application sent by the client.

[0151] S311, the network side associates and stores the update information with the target application, so that the developer of the target application optimizes the incremental package based on the update information.

[0152] The specific process of S301-S311 has been described in detail in the above embodiment and will not be repeated here.

[0153] By adopting the technical solution of the embodiment of the present application, the client obtains the network side version information corresponding to the target application, as well as the client version information of the target application and the device attribute information corresponding to the client, compares the network side version information with the client version information, and determines the version difference information corresponding to the target application according to the comparison result, thereby filtering and downloading the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) that matches the version difference information and the device attribute information from the network side, and then updating the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the client can filter and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information of the application and the network side version information, as well as the device attribute information of the client, so as to accurately update the application according to the incremental package, and achieve the effect of flexibly updating the application, and since the incremental package mainly includes the incremental content related to the application update, the speed of downloading the incremental package is faster than downloading the complete update package, thereby improving the application update speed.

[0154] Furthermore, the network side receives the incremental package acquisition request for the target application sent by the client, and then searches for the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) corresponding to the target application and matching the version difference information and device attribute information according to the identification information of the target application carried in the incremental package acquisition request, the version difference information between the network side version information and the client version information corresponding to the target application, and the device attribute information corresponding to the client, and sends the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the network side can search for the incremental package that matches the version difference information and the device attribute information of the application according to the incremental package acquisition request sent by the client, and send the incremental package to the client, thereby achieving the effect of sending the incremental package flexibly and in a targeted manner. Since the incremental package mainly includes the incremental content related to the application update, compared with sending the complete update package, sending the incremental package consumes less traffic resources, thereby reducing the traffic resources consumed during the application update process.

[0155] In summary, specific embodiments of the present subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0156] The above is an RN-based application update method provided in an embodiment of the present application. Based on the same idea, an RN-based application update device is also provided in an embodiment of the present application.

[0157] Figure 4 This is a schematic diagram of a structure of an RN-based application update device according to an embodiment of the present application. The device is applied to the client, please refer to Figure 4 , the RN-based application updating device may include:

[0158] The first acquisition module 410 is used to obtain the network side version information corresponding to the target application and the client version information of the target application; the network side version information or the client version information includes the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package;

[0159] The first execution module 420 is used to compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, where the device attribute information includes at least one of the device location information, the device network status information, and the device performance information;

[0160] The download module 430 is used to filter and download the incremental package matching the version difference information and the device attribute information from the network side; the incremental package includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0161] The update and generation module 440 is used to update the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and device attribute information.

[0162] In one embodiment, the first execution module 420 includes:

[0163] A comparison and judgment unit, used to compare the network side version information with the client side version information, and judge whether the target application meets the update conditions according to the comparison result;

[0164] The first determining unit is configured to determine version difference information corresponding to the target application.

[0165] In one embodiment, the version difference information includes application version difference information and RN version difference information;

[0166] The first execution module 420 includes:

[0167] A first comparison unit, used to compare the application version number in the network side version information with the application version number in the client version information to obtain application version difference information;

[0168] A second comparison unit is used to compare the RN version number in the network side version information with the RN version number in the client version information to obtain RN version difference information;

[0169] The generating unit is used to generate version difference information corresponding to the target application according to the application version difference information and the RN version difference information.

[0170] In one embodiment, the update and generation module 440 includes:

[0171] A second determining unit, configured to determine a target Bundle package to be updated according to the incremental position information and / or the identification information of the target Bundle package included in the incremental package;

[0172] A third determining unit, configured to determine a position to be updated in a target Bundle package according to the incremental position information;

[0173] The updating unit is used to update the script of the target Bundle package at the location to be updated according to the incremental content and incremental mode included in the incremental package; the incremental mode includes at least one of adding, deleting and replacing.

[0174] In one embodiment, the RN-based application update device further includes:

[0175] A statistics module, used to collect statistics on update information of the target application; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package;

[0176] The upload module is used to upload the update information to the network side so that the network side can store the update information.

[0177] Using the device of the embodiment of the present application, the client obtains the network side version information corresponding to the target application, as well as the client version information of the target application and the device attribute information corresponding to the client, compares the network side version information with the client version information, and determines the version difference information corresponding to the target application according to the comparison result, thereby filtering and downloading the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) that matches the version difference information and the device attribute information from the network side, and then updates the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the client can filter and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information of the application and the network side version information, as well as the device attribute information of the client, so as to accurately update the application according to the incremental package, thereby achieving the effect of flexibly updating the application, and since the incremental package mainly includes the incremental content related to the application update, the speed of downloading the incremental package is faster than downloading the complete update package, thereby improving the application update speed.

[0178] Figure 5 This is a schematic diagram of a structure of an RN-based application update device according to another embodiment of the present application. The device is applied to the network side, please refer to Figure 5 , the RN-based application updating device may include:

[0179] The first receiving module 510 is used to receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a public Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0180] The search module 520 is used to search for an incremental package corresponding to the target application and matching the version difference information and the device attribute information according to the incremental package acquisition request; the incremental package includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0181] The sending module 530 is used to send the incremental package to the client, so that the client can update the target Bundle package according to the incremental package and generate a full package corresponding to the target application that matches the network side version information and device attribute information.

[0182] In one embodiment, the RN-based application update device further includes:

[0183] A second acquisition module is used to acquire a first Bundle package to be updated in a target application and a published target Bundle package; the first Bundle package corresponds to the target Bundle package;

[0184] The second execution module is used to compare the first Bundle package with the target Bundle package, determine the incremental information of the first Bundle package relative to the target Bundle package according to the comparison result, and generate incremental packages corresponding to various types of device attribute information according to the incremental information; the incremental information includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package;

[0185] A determination module, used to determine the first version information corresponding to the first Bundle package and the second version information corresponding to the target Bundle package; and determine the version difference information between the first version information and the second version information;

[0186] The first storage module is used to associate and store the incremental packages, version difference information and target applications corresponding to each type of device attribute information on the network side.

[0187] In one embodiment, the RN-based application update device further includes:

[0188] The second receiving module is used to receive update information for the target application sent by the client; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package;

[0189] The second storage module is used to store the update information in association with the target application so that the developer of the target application can optimize the incremental package based on the update information.

[0190] By adopting the apparatus of the embodiment of the present application, the network side receives an incremental package acquisition request for the target application sent by the client, and thereby searches for an incremental package (including at least one of the incremental content, incremental method, incremental location information, and identification information of the target Bundle package to be updated) corresponding to the target application and matching the version difference information and device attribute information based on the identification information of the target application carried in the incremental package acquisition request, the version difference information between the network side version information corresponding to the target application and the client version information, and the device attribute information corresponding to the client, and sends the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the network side can find the incremental package that matches the version difference information and device attribute information of the application based on the incremental package acquisition request sent by the client, and send the incremental package to the client, thereby achieving the effect of flexibly and targetedly sending incremental packages. Since the incremental package mainly includes incremental content related to the application update, compared with sending a complete update package, sending an incremental package consumes less traffic resources, thereby reducing the traffic resources consumed during the application update process.

[0191] Those skilled in the art should understand that Figure 4 and Figure 5 The RN-based application update device can be used to implement the RN-based application update method described above, and the detailed description should be similar to the description of the method part above. To avoid tediousness, it will not be repeated here.

[0192] Based on the same idea, the embodiment of the present application also provides an RN-based application update device, such as Figure 6 As shown. The RN-based application update device may have relatively large differences due to different configurations or performances, and may include one or more processors 601 and a memory 602, and the memory 602 may store one or more application programs or data. Among them, the memory 602 may be a short-term storage or a persistent storage. The application stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the RN-based application update device. Furthermore, the processor 601 may be configured to communicate with the memory 602 to execute a series of computer executable instructions in the memory 602 on the RN-based application update device. The RN-based application update device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, and one or more keyboards 606.

[0193] In one embodiment, the RN-based application update device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the RN-based application update device, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following:

[0194] Obtain the network version information corresponding to the target application and the client version information of the target application; the network version information or the client version information includes the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update level of the public Bundle package and / or the module Bundle package;

[0195] Compare the network side version information with the client side version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, where the device attribute information includes at least one of the device location information, the device network status information, and the device performance information;

[0196] Filter and download an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0197] The target Bundle package in the target application is updated according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and device attribute information.

[0198] Optionally, when the computer executable instructions are executed, the processor may also:

[0199] Compare the network version information with the client version information, and determine whether the target application meets the update conditions based on the comparison results;

[0200] If so, determine the version difference information corresponding to the target application.

[0201] Optionally, the version difference information includes application version difference information and RN version difference information; when the computer executable instructions are executed, the processor may also:

[0202] Compare the application version number in the network version information with the application version number in the client version information to obtain application version difference information;

[0203] Compare the RN version number in the network version information with the RN version number in the client version information to obtain RN version difference information;

[0204] According to the application version difference information and the RN version difference information, the version difference information corresponding to the target application is generated.

[0205] Optionally, when the computer executable instructions are executed, the processor may also:

[0206] Determine the target Bundle package to be updated according to the incremental position information and / or the identification information of the target Bundle package included in the incremental package;

[0207] According to the incremental location information, determine the location to be updated in the target Bundle package;

[0208] According to the incremental content and incremental mode included in the incremental package, the script of the target Bundle package is updated at the location to be updated; the incremental mode includes at least one of adding, deleting, and replacing.

[0209] Optionally, when the computer executable instructions are executed, the processor may also:

[0210] After performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network-side version information and device attribute information, statistics are collected on the update information of the target application; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package;

[0211] The update information is uploaded to the network side so that the network side stores the update information.

[0212] Using the device of the embodiment of the present application, the client obtains the network side version information corresponding to the target application, as well as the client version information of the target application and the device attribute information corresponding to the client, compares the network side version information with the client version information, and determines the version difference information corresponding to the target application according to the comparison result, thereby filtering and downloading the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) that matches the version difference information and the device attribute information from the network side, and then performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the client can filter and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information of the application and the network side version information, as well as the device attribute information of the client, so as to accurately update the application according to the incremental package, thereby achieving the effect of flexibly updating the application, and since the incremental package mainly includes the incremental content related to the application update, the speed of downloading the incremental package is faster than downloading the complete update package, thereby improving the application update speed.

[0213] In one embodiment, the RN-based application update device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the RN-based application update device, and the one or more programs are configured to be executed by one or more processors, including computer-executable instructions for performing the following:

[0214] Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0215] According to the incremental package acquisition request, search for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes at least one of the following: incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0216] The incremental package is sent to the client so that the client can update the target Bundle package according to the incremental package and generate a full package corresponding to the target application that matches the network side version information and device attribute information.

[0217] Optionally, when the computer executable instructions are executed, the processor may also:

[0218] Before receiving the incremental package acquisition request for the target application sent by the client, a first Bundle package to be updated in the target application and a published target Bundle package are acquired; the first Bundle package corresponds to the target Bundle package;

[0219] Compare the first Bundle package with the target Bundle package, determine the incremental information of the first Bundle package relative to the target Bundle package according to the comparison result, and generate incremental packages corresponding to various types of device attribute information according to the incremental information; the incremental information includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package;

[0220] Determine the first version information corresponding to the first Bundle package and the second version information corresponding to the target Bundle package; determine the version difference information between the first version information and the second version information;

[0221] The incremental packages, version difference information and target applications corresponding to each type of device attribute information are associated and stored on the network side.

[0222] Optionally, when the computer executable instructions are executed, the processor may also:

[0223] After sending the incremental package to the client, receiving update information for the target application sent by the client; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package;

[0224] The update information is associated with the target application and stored so that the developer of the target application can optimize the incremental package based on the update information.

[0225] Using the device of the embodiment of the present application, the network side receives an incremental package acquisition request for the target application sent by the client, and thereby searches for an incremental package (including at least one of the incremental content, incremental method, incremental location information, and identification information of the target Bundle package to be updated) corresponding to the target application and matching the version difference information and device attribute information based on the identification information of the target application carried in the incremental package acquisition request, the version difference information between the network side version information corresponding to the target application and the client version information, and the device attribute information corresponding to the client, and sends the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the network side can find the incremental package that matches the version difference information and device attribute information of the application based on the incremental package acquisition request sent by the client, and send the incremental package to the client, thereby achieving the effect of flexibly and targetedly sending incremental packages. Since the incremental package mainly includes incremental content related to the application update, compared with sending a complete update package, sending an incremental package consumes less traffic resources, thereby reducing the traffic resources consumed during the application update process.

[0226] The embodiment of the present application further proposes a storage medium, which stores one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the above-mentioned RN-based application update method applied to the client, and is specifically used to execute:

[0227] Obtain the network version information corresponding to the target application and the client version information of the target application; the network version information or the client version information includes the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update level of the public Bundle package and / or the module Bundle package;

[0228] Compare the network side version information with the client side version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, where the device attribute information includes at least one of the device location information, the device network status information, and the device performance information;

[0229] Filter and download an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0230] The target Bundle package in the target application is updated according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and device attribute information.

[0231] Optionally, when the instruction is executed by an electronic device including multiple applications, the electronic device can also execute:

[0232] Compare the network version information with the client version information, and determine whether the target application meets the update conditions based on the comparison results;

[0233] If so, determine the version difference information corresponding to the target application.

[0234] Optionally, the version difference information includes application version difference information and RN version difference information; when the instruction is executed by an electronic device including multiple application programs, the electronic device can also execute:

[0235] Compare the application version number in the network version information with the application version number in the client version information to obtain application version difference information;

[0236] Compare the RN version number in the network version information with the RN version number in the client version information to obtain RN version difference information;

[0237] According to the application version difference information and the RN version difference information, the version difference information corresponding to the target application is generated.

[0238] Optionally, when the instruction is executed by an electronic device including multiple applications, the electronic device can also execute:

[0239] Determine the target Bundle package to be updated according to the incremental position information and / or the identification information of the target Bundle package included in the incremental package;

[0240] According to the incremental location information, determine the location to be updated in the target Bundle package;

[0241] According to the incremental content and incremental mode included in the incremental package, the script of the target Bundle package is updated at the location to be updated; the incremental mode includes at least one of adding, deleting, and replacing.

[0242] Optionally, when the instruction is executed by an electronic device including multiple applications, the electronic device can also execute:

[0243] After performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network-side version information and device attribute information, statistics are collected on the update information of the target application; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package;

[0244] The update information is uploaded to the network side so that the network side stores the update information.

[0245] By adopting the storage medium of the embodiment of the present application, the client obtains the network side version information corresponding to the target application, as well as the client version information of the target application and the device attribute information corresponding to the client, compares the network side version information with the client version information, and determines the version difference information corresponding to the target application according to the comparison result, thereby filtering and downloading the incremental package (including at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated) that matches the version difference information and the device attribute information from the network side, and then updating the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the client can filter and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information of the application and the network side version information, as well as the device attribute information of the client, so as to accurately update the application according to the incremental package, and achieve the effect of flexibly updating the application, and since the incremental package mainly includes the incremental content related to the application update, the speed of downloading the incremental package is faster than downloading the complete update package, thereby improving the application update speed.

[0246] The embodiment of the present application further proposes a storage medium, which stores one or more computer programs, and the one or more computer programs include instructions. When the instructions are executed by an electronic device including multiple application programs, the electronic device can execute the above-mentioned RN-based application update method applied to the network side, and is specifically used to execute:

[0247] Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information;

[0248] According to the incremental package acquisition request, search for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes at least one of the following: incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated;

[0249] The incremental package is sent to the client so that the client can update the target Bundle package according to the incremental package and generate a full package corresponding to the target application that matches the network side version information and device attribute information.

[0250] Optionally, when the instruction is executed by an electronic device including multiple applications, the electronic device can also execute:

[0251] Before receiving the incremental package acquisition request for the target application sent by the client, a first Bundle package to be updated in the target application and a published target Bundle package are acquired; the first Bundle package corresponds to the target Bundle package;

[0252] Compare the first Bundle package with the target Bundle package, determine the incremental information of the first Bundle package relative to the target Bundle package according to the comparison result, and generate incremental packages corresponding to various types of device attribute information according to the incremental information; the incremental information includes at least one of the incremental content, incremental mode, incremental location information, and identification information of the target Bundle package;

[0253] Determine the first version information corresponding to the first Bundle package and the second version information corresponding to the target Bundle package; determine the version difference information between the first version information and the second version information;

[0254] The incremental packages, version difference information and target applications corresponding to each type of device attribute information are associated and stored on the network side.

[0255] Optionally, when the instruction is executed by an electronic device including multiple applications, the electronic device can also execute:

[0256] After sending the incremental package to the client, receiving update information for the target application sent by the client; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package;

[0257] The update information is associated with the target application and stored so that the developer of the target application can optimize the incremental package based on the update information.

[0258] By adopting the storage medium of the embodiment of the present application, the network side receives an incremental package acquisition request for the target application sent by the client, and thereby searches for the incremental package corresponding to the target application and matching the version difference information and the device attribute information based on the identification information of the target application carried in the incremental package acquisition request, the version difference information between the network side version information corresponding to the target application and the client version information, and the device attribute information corresponding to the client (including at least one of the incremental content, incremental method, incremental location information, and identification information of the target Bundle package to be updated), and sends the incremental package to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application that matches the network side version information and the device attribute information. It can be seen that the network side can find the incremental package that matches the version difference information and device attribute information of the application based on the incremental package acquisition request sent by the client, and send the incremental package to the client, thereby achieving the effect of flexibly and targetedly sending incremental packages. Since the incremental package mainly includes incremental content related to the application update, compared with sending a complete update package, sending an incremental package consumes less traffic resources, thereby reducing the traffic resources consumed during the application update process.

[0259] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0260] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0261] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0262] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0263] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0264] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0265] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0266] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0267] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0268] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0269] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0270] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0271] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An application update method based on RN, characterized in that: Applied to a client; the method comprises: Obtain the network side version information corresponding to the target application and the client version information of the target application; the network side version information and the client version information include the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package; Compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information; Filtering and downloading an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated; Performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information; The updating operation of the target Bundle package in the target application according to the incremental package includes: determining the target Bundle package to be updated according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package; determining the location to be updated in the target Bundle package according to the incremental location information; and updating the script of the target Bundle package at the location to be updated according to the incremental content and the incremental method included in the incremental package.

2. The method according to claim 1, characterized in that The comparing the network side version information with the client version information and determining the version difference information corresponding to the target application according to the comparison result includes: Compare the network side version information with the client side version information, and determine whether the target application meets the update condition according to the comparison result; If so, determine the version difference information corresponding to the target application.

3. The method according to claim 1, characterized in that The version difference information includes application version difference information and RN version difference information; The comparing the network side version information with the client version information and determining the version difference information corresponding to the target application according to the comparison result includes: Compare the application version number in the network side version information with the application version number in the client version information to obtain the application version difference information; Compare the RN version number in the network side version information with the RN version number in the client version information to obtain the RN version difference information; The version difference information corresponding to the target application is generated according to the application version difference information and the RN version difference information.

4. The method according to claim 1, characterized in that The incremental method includes at least one of adding, deleting, and replacing.

5. The method according to claim 1, characterized in that: After performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information, the method further includes: Collecting statistics on update information of the target application; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package; The update information is uploaded to the network side so that the network side stores the update information.

6. An application update method based on RN, characterized in that: Applied to the network side; the method comprises: Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information; According to the incremental package acquisition request, searching for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes incremental content, incremental mode, incremental location information and identification information of the target Bundle package to be updated; The incremental package is sent to the client, so that the client updates the target Bundle package according to the incremental package, and generates a full package corresponding to the target application and matching the network side version information and the device attribute information; the client updates the target Bundle package according to the incremental package, including: determining the target Bundle package to be updated according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package; determining the location to be updated in the target Bundle package according to the incremental location information; and updating the script of the target Bundle package at the location to be updated according to the incremental content and the incremental method included in the incremental package.

7. The method according to claim 6, characterized in that Before receiving the incremental package acquisition request for the target application sent by the client, the method further includes: Acquire a first Bundle package to be updated in the target application and a published target Bundle package; the first Bundle package corresponds to the target Bundle package; Compare the first Bundle package with the target Bundle package, determine the incremental information of the first Bundle package relative to the target Bundle package according to the comparison result, and generate the incremental packages corresponding to each type of device attribute information according to the incremental information; the incremental information includes at least one of the incremental content, the incremental mode, the incremental location information, and the identification information of the target Bundle package; Determine first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package; determine the version difference information between the first version information and the second version information; The incremental packages, the version difference information and the target application corresponding to each type of device attribute information are associated and stored on the network side.

8. The method according to claim 6, characterized in that After sending the incremental package to the client, the method further includes: receiving update information for the target application sent by the client; the update information includes at least one of the download time, download times, package size, download failure reason, execution time of the update operation, and update duration of the incremental package; The update information is associated with the target application and stored so that the developer of the target application can optimize the incremental package based on the update information.

9. An application updating device based on RN, characterized in that: Applied to the client; The device comprises: A first acquisition module is used to acquire the network side version information corresponding to the target application and the client version information of the target application; the network side version information and the client version information include an application version number and an RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package; A first execution module is used to compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information; A download module, used to filter and download an incremental package matching the version difference information and the device attribute information from the network side; the incremental package includes incremental content, incremental mode, incremental location information and identification information of the target Bundle package to be updated; An update and generation module, configured to update the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information; The update and generation module includes: a second determination unit, used to determine the target Bundle package to be updated according to the incremental position information included in the incremental package and / or the identification information of the target Bundle package; a third determination unit, used to determine the position to be updated in the target Bundle package according to the incremental position information; and an update unit, used to update the script of the target Bundle package at the position to be updated according to the incremental content and the incremental method included in the incremental package.

10. An application updating device based on RN, characterized in that: Applied to the network side; the device comprises: The first receiving module is used to receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a public Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information; A search module, configured to search for an incremental package corresponding to the target application and matching the version difference information and the device attribute information according to the incremental package acquisition request; the incremental package includes incremental content, incremental mode, incremental location information and identification information of the target Bundle package to be updated; A sending module, used for sending the incremental package to the client, so that the client updates the target Bundle package according to the incremental package and generates a full package corresponding to the target application and matching the network side version information and the device attribute information; the client updates the target Bundle package according to the incremental package, including: determining the target Bundle package to be updated according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package; determining the location to be updated in the target Bundle package according to the incremental location information; and updating the script of the target Bundle package at the location to be updated according to the incremental content and the incremental method included in the incremental package.

11. An application update device based on RN, characterized in that: The invention comprises a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being used to call and execute the computer program from the memory to implement: Obtain the network side version information corresponding to the target application and the client version information of the target application; the network side version information and the client version information include the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package; Compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information; Filtering and downloading an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated; Performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information; The updating operation on the target Bundle package in the target application according to the incremental package includes: determining the target Bundle package to be updated according to the incremental position information and / or the identification information of the target Bundle package included in the incremental package; According to the incremental position information, the position to be updated in the target Bundle package is determined; according to the incremental content and the incremental mode included in the incremental package, the script of the target Bundle package is updated at the position to be updated.

12. An RN-based application update device, characterized in that: The invention comprises a processor and a memory electrically connected to the processor, the memory storing a computer program, and the processor being used to call and execute the computer program from the memory to implement: Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information; According to the incremental package acquisition request, searching for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes incremental content, incremental mode, incremental location information and identification information of the target Bundle package to be updated; Sending the incremental package to the client, so that the client updates the target Bundle according to the incremental package, and generates a full package corresponding to the target application and matching the network side version information and the device attribute information; The client performs an update operation on the target Bundle package according to the incremental package, including: determining the target Bundle package to be updated according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package; According to the incremental position information, the position to be updated in the target Bundle package is determined; according to the incremental content and the incremental mode included in the incremental package, the script of the target Bundle package is updated at the position to be updated.

13. A storage medium, characterized in that: The storage medium is used to store a computer program, and when the computer program is executed by the processor, the following process is implemented: Obtain the network side version information corresponding to the target application and the client version information of the target application; the network side version information and the client version information include the application version number and the RN version number; the target application includes a public Bundle package and a module Bundle package of each functional module; the RN version number is used to identify the update degree of the public Bundle package and / or the module Bundle package; Compare the network side version information with the client version information, and determine the version difference information corresponding to the target application according to the comparison result; and obtain the device attribute information corresponding to the client, wherein the device attribute information includes at least one of device location information, device network status information, and device performance information; Filtering and downloading an incremental package that matches the version difference information and the device attribute information from the network side; the incremental package includes incremental content, incremental mode, incremental location information, and identification information of the target Bundle package to be updated; Performing an update operation on the target Bundle package in the target application according to the incremental package to generate a full package corresponding to the target application and matching the network side version information and the device attribute information; The updating operation on the target Bundle package in the target application according to the incremental package includes: determining the target Bundle package to be updated according to the incremental position information and / or the identification information of the target Bundle package included in the incremental package; According to the incremental position information, the position to be updated in the target Bundle package is determined; according to the incremental content and the incremental mode included in the incremental package, the script of the target Bundle package is updated at the position to be updated.

14. A storage medium, characterized in that: The storage medium is used to store a computer program, and when the computer program is executed by the processor, the following process is implemented: Receive an incremental package acquisition request for a target application sent by a client; the incremental package acquisition request carries identification information of the target application, version difference information between network-side version information corresponding to the target application and client version information, and device attribute information corresponding to the client; the target application includes a common Bundle package and module Bundle packages of each functional module; the device attribute information includes at least one of device location information, device network status information, and device performance information; According to the incremental package acquisition request, searching for an incremental package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package includes incremental content, incremental mode, incremental location information and identification information of the target Bundle package to be updated; Sending the incremental package to the client, so that the client updates the target Bundle according to the incremental package, and generates a full package corresponding to the target application and matching the network side version information and the device attribute information; The client performs an update operation on the target Bundle package according to the incremental package, including: determining the target Bundle package to be updated according to the incremental location information and / or the identification information of the target Bundle package included in the incremental package; According to the incremental position information, the position to be updated in the target Bundle package is determined; according to the incremental content and the incremental mode included in the incremental package, the script of the target Bundle package is updated at the position to be updated.

Citation Information

Patent Citations

  • Hot update method, client and server

    CN106789249A

  • Application test method, electronic equipment and storage medium

    CN111694752A

  • Application version updating method and device, equipment and medium

    CN113326058A

  • Method and a system for quickly hot-updating application program

    CN113448611A

  • Method and System for Updating Software

    US20150100955A1