CN114398073A - Application updating method and device based on RN - Google Patents

Application updating method and device based on RN Download PDF

Info

Publication number
CN114398073A
CN114398073A CN202210036590.8A CN202210036590A CN114398073A CN 114398073 A CN114398073 A CN 114398073A CN 202210036590 A CN202210036590 A CN 202210036590A CN 114398073 A CN114398073 A CN 114398073A
Authority
CN
China
Prior art keywords
information
package
version
target application
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210036590.8A
Other languages
Chinese (zh)
Inventor
尹东东
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qilin Hesheng Network Technology Inc
Original Assignee
Qilin Hesheng Network Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qilin Hesheng Network Technology Inc filed Critical Qilin Hesheng Network Technology Inc
Priority to CN202210036590.8A priority Critical patent/CN114398073A/en
Publication of CN114398073A publication Critical patent/CN114398073A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Abstract

The application discloses an application updating method and device based on an RN (relay node), which are used for solving the problem that the updating speed of updating an application is low at present. The method comprises the following steps: acquiring network side version information corresponding to the target application and client version information of the target application; comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring equipment attribute information corresponding to the client; screening and downloading an increment package matched with the version difference information and the equipment attribute information from a network side; and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information. The application updating method based on the RN provided by the technical scheme can improve the application updating speed.

Description

Application updating method and device based on RN
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application updating method and apparatus based on RN.
Background
Today, people are increasingly unable to work and live with electronic devices while the internet is prevalent. Various application programs on the electronic equipment can meet the requirements of users on shopping, entertainment, working, learning and the like, and convenient use experience is brought to the users.
With the increasing change of the demand of people, the update iteration of various application programs is more and more frequent. At present, when an application program is updated by a client, a complete update package corresponding to the application program is generally downloaded from a network side, and the complete update package is large due to the fact that the complete update package comprises all contents of the application program, so that the downloading speed of the complete update package is low, and the updating speed of the application program is seriously influenced.
Disclosure of Invention
An object of the embodiments of the present application is to provide an RN-based application updating method and apparatus, so as to solve the problem that the updating speed of the current application is slow.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
on one hand, the embodiment of the application provides an application updating method based on RN, which is applied to a client; the method comprises the following steps:
acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
screening and downloading an incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
On the other hand, the embodiment of the application provides an application updating method based on the RN, which is applied to a network side; the method comprises the following steps:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client performs updating operation on the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
In another aspect, an embodiment of the present application provides an application updating apparatus based on an RN, which is applied to a client; the device comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
the first execution module is used for comparing the network side version information with the client side version information and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
the download module is used for screening and downloading the incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and the updating and generating module is used for updating the target Bundle packet in the target application according to the increment packet so as to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
In another aspect, an embodiment of the present application provides an application update apparatus based on an RN, which is applied to a network side; the device comprises:
the first receiving module is used for receiving an increment package obtaining request aiming at a target application and sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
the searching module is used for searching the increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package obtaining request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and the issuing module is used for issuing the increment package to the client so that the client updates the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
In another aspect, an embodiment of the present application provides an RN-based application update apparatus, including a processor and a memory electrically connected to the processor, where the memory stores a computer program, and the processor is configured to call and execute the computer program from the memory to implement:
acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
screening and downloading an incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
In another aspect, an embodiment of the present application provides an RN-based application update apparatus, including a processor and a memory electrically connected to the processor, where the memory stores a computer program, and the processor is configured to call and execute the computer program from the memory to implement:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client performs updating operation on the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
In another aspect, an embodiment of the present application provides a storage medium for storing a computer program, where the computer program is executed by a processor to implement the following processes:
acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
screening and downloading an incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
In another aspect, an embodiment of the present application provides a storage medium for storing a computer program, where the computer program is executed by a processor to implement the following processes:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client performs updating operation on the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
By adopting the technical scheme of the embodiment of the application, the client side obtains the network side version information corresponding to the target application, the client side version information of the target application and the equipment attribute information corresponding to the client side, compares the network side version information with the client side version information, and determines the version difference information corresponding to the target application according to the comparison result, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) matched with the version difference information and the equipment attribute information is screened and downloaded from the network side, and the target Bundle package in the target application is updated according to the increment package, so that the full package corresponding to the target application and matched with the network side version information and the equipment attribute information is generated. Therefore, the client can screen and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information and the network side version information of the application and the equipment attribute information of the client, so that the application is accurately updated according to the incremental package, the effect of flexibly updating the application is realized, and the incremental package mainly comprises the incremental content related to the application updating, so that the speed of downloading the incremental package is higher compared with the speed of downloading a complete updating package, and the application updating speed can be increased.
Further, the network side receives an increment package acquisition request aiming at the target application sent by the client, so that according to the identification information of the target application carried by the increment 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 equipment attribute information corresponding to the client, an increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) corresponding to the target application and matched with the version difference information and the equipment attribute information is searched, and the increment package is sent to the client, so that the client performs updating operation on the target Bundle package according to the increment package, and generates a full package corresponding to the target application and matched with the network side version information and the equipment attribute information. Therefore, the network side can search the incremental packet matched with the version difference information and the equipment attribute information of the application according to the incremental packet acquisition request sent by the client, and issue the incremental packet to the client, so that the effect of flexibly and pertinently issuing the incremental packet is realized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a schematic flow chart diagram of an RN-based application update method according to an embodiment of the present application;
fig. 2 is a schematic flow chart diagram of an RN-based application update method according to another embodiment of the present application;
fig. 3 is a schematic flow chart diagram of an RN-based application update method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an RN-based application update apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an RN-based application update apparatus according to another embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an RN-based application update apparatus according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides an application updating method and device based on an RN (relay node), which are used for solving the problem that the updating speed of updating an application is low at present.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flowchart of an RN-based application update method applied to a client according to an embodiment of the present application. As shown in fig. 1, the RN-based application update method may include:
s102, network side version information corresponding to the target application and client side version information of the target application are obtained.
The network side may be an application server corresponding to the target application, and the client may be an electronic device downloading the target application. The network side version information or the client version information may include an application version number and an RN version number. The target application may include a common Bundle package and a module Bundle package of each function module. The RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package.
In this embodiment, the execution time for obtaining the network side version information corresponding to the target application may be: when the target application is started on the client, or a preset updating period of the target application on the client is reached, or a selection operation of a user on a setting option for updating the target application on the client is received. The client can acquire the network side version information corresponding to the target application from the network side or acquire the network side version information corresponding to the target application from a third-party application store.
Wherein, rn (read native) is a cross-platform application development framework. When an application is developed based on the RN, the RN can pack script language (JavaScript, JS) files (namely script codes) of the application into a Bundle package, and the Bundle package is a folder which contains executable codes and resources required by the codes and is combined by a hierarchy structure of a specific standard. After the client downloads the application, the Bundle package can be loaded, analyzed and a corresponding application program interface can be rendered.
In one embodiment, the application version number may be a version number of an application release, and the RN version number may be a version number of an update based on the RN release after the application release. The application version number and the RN version number are both set according to a set version number rule when an application developer develops an application or issues an update. A plurality of RN version numbers may be included under one application version number, 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.
Following the above example, where the RN version number is incremented with an update of the application, it should be understood that the extent of update of the public Bundle package and/or the module Bundle package is lower when the RN version number is 1.0.0 than when the RN version number is 1.0.9.
S104, comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; and acquiring the device attribute information corresponding to the client.
The device attribute information may include device location information, device network status information, device performance information, and the like. The device location information may be information of a country and a region where the client is located, the device network condition information may be information of better network quality, poorer network quality, and the like, and the device performance information may be information of a memory size of the client, a model of a central processing unit, a device model of the client, an operating system of the client, and the like. The device attribute information may further include information on whether the forced update of the application is allowed, and the information on whether the forced update of the application is allowed may include allowing the forced update of the application or not allowing the forced update of the application.
S106, screening and downloading an increment package matched with the version difference information and the equipment attribute information from the network side, wherein the increment package comprises at least one item of increment content, an increment mode, increment position information and identification information of a target Bundle package to be updated.
The incremental package can include incremental content, an incremental mode, incremental position information and identification information of the target Bundle package to be updated. The target Bundle package to be updated may be a Bundle package of the current version of the client, that is, a Bundle package of an old version corresponding to the incremental package. The identification information of the target Bundle package to be updated may be a package name of the target Bundle package to be updated.
Optionally, the delta package may include delta content, delta mode, and delta location information. The incremental position information comprises identification information of a target Bundle package to be updated and a position to be updated in the target Bundle package.
And S108, updating the target Bundle packet in the target application according to the increment packet to generate a total packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
By adopting the technical scheme of the embodiment of the application, the client side obtains the network side version information corresponding to the target application, the client side version information of the target application and the equipment attribute information corresponding to the client side, compares the network side version information with the client side version information, and determines the version difference information corresponding to the target application according to the comparison result, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) matched with the version difference information and the equipment attribute information is screened and downloaded from the network side, and the target Bundle package in the target application is updated according to the increment package, so that the full package corresponding to the target application and matched with the network side version information and the equipment attribute information is generated. Therefore, the client can screen and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information and the network side version information of the application and the equipment attribute information of the client, so that the application is accurately updated according to the incremental package, the effect of flexibly updating the application is realized, and the incremental package mainly comprises the incremental content related to the application updating, so that the speed of downloading the incremental package is higher compared with the speed of downloading a complete updating package, and the application updating speed can be increased.
In an embodiment, when an application developer develops a target application based on an RN, the RN can pack a scripting language (JavaScript, JS) file of the target application into a Bundle package, specifically, after the application developer writes the JS file of the target application, the RN can make a repeated read Native code and a common basic third party library into a common Bundle package (common Bundle) through an automatic packing command, where the common Bundle package is a common Bundle package of the target application, and pack corresponding scripting codes based on each function module, respectively, so as to obtain a module Bundle package of each function module.
For example, an empty JS file is created, containing only the read Native header file common.
import React from'react';
import{}from'react-native';
And packaging the JS file to obtain a Bundle package which only contains a real Native basic framework and can be called common. After a client installs a target application for the first time, when a bridge (code for loading a Bundle package) loads the Bundle package, common.
In this embodiment, each function module corresponds to a respective script code (index).
In this embodiment, the RN packs the JS file of the target application into the public Bundle package and the module Bundle package through the automatic packing command, which can be regarded as an unpacking process, and can avoid the Bundle package from being too large through unpacking, which is beneficial to accelerating the downloading speed of the Bundle package.
Alternatively, the automation packaging command may be a real-native bundle-entry-file index. distribution. js-bundle-output./bundle/index. android. bundle-platform android./aggregate-estimate-delete./bundle-dev false.
Alternatively, the RN may use the Metro tool for bundling. For Android applications, packaging refers to outputting each function module to a single file and naming the function module with an Identity Document (ID), and for iOS applications, packaging refers to packaging the function modules into a file in a streaming manner. Packing using the Metro tool may include the following three stages:
phase 1, Resolution: this phase requires the use of a Metro parser to build a map of all modules required from the entry point and to find the required file from another file. In real-world development, this phase is concurrent with the Transformation phase.
Stage 2, Transformation: all modules go through a Transformation phase, which is responsible for converting the modules into a format that can be understood by the target platform (e.g., read Naitve). The conversion of modules is based on the number of cores owned.
Stage 3, Serialization: all modules are serialized once converted, Serialization combines the modules to generate one or more packages, namely packages combining the modules into one JavaScript file, and a series of methods are provided during Serialization so that an application developer can customize contents, such as module IDs, module filtering and the like.
Optionally, after the public Bundle package and the module Bundle package of the target application are generated, the public Bundle package and the module Bundle package of the target application can be automatically uploaded to a network side through a visual operation interface, so that an application developer can intuitively know the release condition of the target application.
In one embodiment, the network side version information corresponding to the target application and the client version information of the target application are obtained, the network side version information and the client version information are compared, and version difference information corresponding to the target application is determined according to a comparison result (i.e., S102-S104), and the method may be implemented as follows: the method comprises the steps that when a target application is started, a client sends an updating request to a network side, the network side responds to the updating request and sends network side version information corresponding to the target application to the client, the client compares the network side version information corresponding to the target application with the obtained client version information of the target application, and version difference information corresponding to the target application is determined according to a comparison result.
Optionally, the client may send an update request to the network side through the interface checkUpdate.
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 beneficial to updating the target application in time.
In one embodiment, comparing the network-side version information with the client-side version information, and determining version difference information corresponding to the target application according to the comparison result (i.e. S104), may specifically be performed as: comparing the network side version information with the client side version information, and judging whether the target application meets the updating condition according to the comparison result; if so, determining the version difference information corresponding to the target application. In addition, if the target application is determined not to meet the updating condition according to the comparison result, the target application can be determined not to need to be updated.
Alternatively, the update condition may be that the network-side version information is different from the client version information. Correspondingly, the comparison result may be that the network-side version information is the same as the client version information, or that the network-side version information is different from the client version information.
The version information of the network side and the version information of the client side may be different from each other: the application version number in the network side version information is different from the application version number in the client side version information, the RN version number in the network side version information is different from the RN version number in the client side version information, and the like.
Comparing the network side version information with the client side version information, and determining that the target application does not meet the updating condition when the comparison result is that the network side version information is the same as the client side version information; and when the comparison result shows that the network side version information is different from the client side version information, determining that the target application meets the updating condition.
In the embodiment, the network-side version information and the client version information are compared, whether the target application meets the updating condition is judged according to the comparison result, and the version difference information corresponding to the target application is determined when the target application meets the updating condition, so that the version difference information corresponding to the target application to be updated can be determined in a targeted manner, the operation of determining the version difference information on the target application which does not meet the updating condition is avoided, and the computing resources are saved.
In one embodiment, the version difference information may include application version difference information and RN version difference information. In this embodiment, comparing the network version information with the client version information, and determining the version difference information corresponding to the target application according to the comparison result (i.e., S104), may specifically perform the following steps a 1-A3:
step A1, comparing the application version number in the network side version information with the application version number in the client side version information to obtain application version difference information.
For example, when the application version number in the network-side version information is 3.0 and the application version number in the client-side version information is 2.0, the application version number in the network-side version information and the application version number in the client-side version information are compared, and the obtained application version difference information is the difference between the application version number 2.0 and the application version number 3.0.
Step A2, comparing the RN version number in the network side version information with the RN version number in the client side version information to obtain RN version difference information.
Continuing with the above example, in the case that the RN version number in the network side version information is 3.0.10 and the RN version number in the client side version information is 2.0.3, the RN version number in the network side version information and the RN version number in the client side version information are compared, and the obtained RN version difference information is the difference between the RN version number 2.0.3 and the RN version number 3.0.10.
And step A3, generating version difference information corresponding to the target application according to the application version difference information and the RN version difference information.
In this embodiment, the version difference information corresponding to the target application is obtained by determining the application version difference information between the network side version information and the client side version information and the RN version difference information, so that the determined version difference information is more accurate, which is beneficial to accurately screening and downloading the incremental package from the network side, so as to accurately update the application.
Because the application update needs to consume the traffic resource, in order to minimize the traffic resource consumption in the application update process, the application update is realized in an incremental manner in the embodiment of the application, and the client can screen and download the incremental package matched with the version difference information and the device attribute information from the network side.
Wherein, the increment for the script code part (i.e. Bundle package) refers to the changed script code. The increments for picture portions (i.e., assets) refer to both the newly added picture and the picture with the changes.
For the picture part, the network side can determine the increment of the picture part by adopting an assets increment algorithm. The assets increment algorithm can be understood as comparison, and can compare a newly added file with a different file. For the script code portion, the network side may employ a Bundle increment algorithm that is capable of comparing (diff) large strings and generating patches (patch). Alternatively, the generated delta package may be characterized by a patch _ make and the generated full package may be characterized by a patch _ apply.
In one embodiment, the update operation (i.e., S108) of the target Bundle package in the target application according to the delta package may be specifically performed as the following steps B1-B3:
and step B1, determining the target Bundle package to be updated according to the increment position information and/or the identification information of the target Bundle package included in the increment package.
And step B2, determining the position to be updated in the target Bundle package according to the incremental position information.
And step B3, updating the script of the target Bundle package at the position to be updated according to the incremental content and the incremental mode included in the incremental package.
The incremental manner may include adding, deleting, replacing, etc. The updating operation of the script of the target Bundle package may be an updating operation of a script code corresponding to assets or index.
In this embodiment, the updated target Bundle package and the other local Bundle packages except the target Bundle package may be fused by the nondiffpitch patch merge algorithm, so as to generate a full package corresponding to the target application and matching with the network side version information and the device attribute information.
In this embodiment, the target Bundle package to be updated is determined, and the position to be updated in the target Bundle package is determined according to the incremental position information included in the incremental package, so that the script of the target Bundle package is updated at the position to be updated according to the incremental content and the incremental manner included in the incremental package, and the effect of accurately updating the target Bundle package according to the incremental package is achieved.
In one embodiment, after the target Bundle packet in the target application is updated according to the incremental packet to generate a full packet (i.e., S108) corresponding to the target application and matching with the network side version information and the device attribute information, the update information of the target application may be counted and uploaded to the network side, so that the network side stores the update information.
The update information may include download time, download times, package volume, download failure reason, execution time of update operation, update duration, and the like of the incremental package.
In this embodiment, after the target Bundle packet in the target application is updated according to the increment packet and a full packet corresponding to the target application and matched with the version information of the network side and the device attribute information is generated, the update information of the target application is counted and uploaded to the network side, so that the network side stores the update information, a closed loop of application update is realized, and a data basis is provided for the network side to optimize the increment packet based on the update information.
Fig. 2 is a schematic flowchart of an RN-based application update method according to another embodiment of the present application, which is applied to a network side. As shown in fig. 2, the RN-based application update method may include:
s202, receiving an increment package obtaining request aiming at the target application sent by the client, wherein the increment package obtaining request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client.
The target application can comprise a public Bundle package and a module Bundle package of each functional module. The identification information of the target application may be a name of the target application, an application ID of the target application, or the like, which can uniquely identify the target application.
The device attribute information may include device location information, device network status information, device performance information, and the like. The device location information may be information of a country and a region where the client is located, the device network condition information may be information of better network quality, poorer network quality, and the like, and the device performance information may be information of a memory size of the client, a model of a central processing unit, a device model of the client, an operating system of the client, and the like.
And S204, searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request, wherein the increment package comprises at least one item of increment content, an increment mode, increment position information and identification information of the target Bundle package to be updated.
The incremental package may include incremental content, an incremental manner, incremental position information, identification information of the target Bundle package to be updated, and the like. The target Bundle package to be updated may be a Bundle package of the current version of the client, that is, a Bundle package of an old version corresponding to the incremental package. The identification information of the target Bundle package to be updated may be a package name of the target Bundle package to be updated.
And S206, issuing the increment package to the client so that the client updates the target Bundle package according to the increment package and generates a full package corresponding to the target application and matched with the network side version information and the equipment attribute information.
By adopting the technical scheme of the embodiment of the application, the network side receives the increment package acquisition request aiming at the target application sent by the client side, so that the increment package (comprising at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) corresponding to the target application and matched with the version difference information and the equipment attribute information is searched according to the identification information of the target application carried by the increment package acquisition request, the version difference information between the network side version information and the client side version information corresponding to the target application and the equipment attribute information corresponding to the client side, and the increment package is issued to the client side, so that the client side carries out updating operation on the target Bundle package according to the increment package, and generates the full package corresponding to the target application and matched with the network side version information and the equipment attribute information. Therefore, the network side can search the incremental packet matched with the version difference information and the equipment attribute information of the application according to the incremental packet acquisition request sent by the client, and issue the incremental packet to the client, so that the effect of flexibly and pertinently issuing the incremental packet is realized.
In one embodiment, before receiving the delta package get request (i.e., S202) sent by the client for the target application, the following steps C1-C4 may be performed first:
and step C1, acquiring the first Bundle package to be updated and the issued target Bundle package in the target application.
The first Bundle package is a newly created Bundle package of an application developer, and corresponds to the target Bundle package. The first Bundle package and the target Bundle package may correspond to any one of the following cases: the first Bundle package and the target Bundle package are both public Bundle packages; the first Bundle package and the target Bundle package are module Bundle packages of the same functional module.
And step C2, comparing the first Bundle package with the target Bundle package, determining the increment information of the first Bundle package relative to the target Bundle package according to the comparison result, and generating the increment packages corresponding to the various equipment attribute information respectively according to the increment information.
Optionally, the first Bundle package and the target Bundle package are compared, a diff algorithm may be performed on the first Bundle package and the target Bundle package, a difference (i.e., incremental information) is obtained, and an incremental package is generated according to the difference. Alternatively, the diff algorithm may be a google-diff-match-patch algorithm, which can compare, match, and generate a patch (patch) on the text file.
The incremental information may include incremental content, incremental mode, incremental position information, identification information of the target Bundle package, and the like. Incremental approaches may include addition, deletion, replacement, and the like. The incremental content may include specific content that the first Bundle package adds, deletes, and replaces with respect to the target Bundle package. The identification information of the target Bundle package may be a package name of the target Bundle package.
The generating of the increment packs respectively corresponding to the various types of device attribute information may include: and respectively generating incremental packages corresponding to the operating systems of the clients and the information of the country and the region where the clients are located. For example, the operating system of the client includes an Android operating system and an iOS operating system, and the country region information where the client is located includes a country a, a country B, and a country B, so that the incremental packages corresponding to the generated various types of device attribute information respectively may include: the Android operating system and the increment package corresponding to the country A, the Android operating system and the increment package corresponding to the country B a area, the Android operating system and the increment package corresponding to the country B B area, the iOS operating system and the increment package corresponding to the country A, the iOS operating system and the increment package corresponding to the country B a area, and the iOS operating system and the increment package corresponding to the country B B area.
In one embodiment, after the network side generates the incremental packages corresponding to the various types of device attribute information, the incremental package, the target Bundle package and other issued Bundle packages except the target Bundle package can be fused through the nondiffpitch patch merge algorithm to generate the full package corresponding to the various types of device attribute information, which is beneficial to the network side to completely record the application update and is convenient for the client side not installed with the target application to install the application according to the generated full package.
Step C3, determining first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package, and determining version difference information between the first version information and the second version information.
Wherein, the first version information or the second version information may include an application version number and an RN version number. Determining version difference information between the first version information and the second version information may be specifically performed as: 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 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.
And step C4, storing the incremental packages, the version difference information and the target application association corresponding to the various types of equipment attribute information in the network side.
Optionally, the incremental packets corresponding to the various types of device attribute information may be compressed, and then stored in the network side in association with the version difference information and the target application, so that the storage cost of the incremental packets and the traffic resource when downloading the incremental packets can be saved.
In the embodiment, the first Bundle package to be updated in the target application is compared with the issued target Bundle package, the incremental information of the first Bundle package relative to the target Bundle package is determined according to the comparison result, the incremental packages corresponding to various types of equipment attribute information are generated according to the incremental information, 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, so that the incremental package, the version difference information and the target application corresponding to various types of equipment attribute information are stored in the network side in an associated manner, a data base is provided for the network side in the subsequent embodiment to accurately search and issue the incremental package according to the received incremental package acquisition request, and the accurate execution of the subsequent steps is facilitated.
In one embodiment, after the incremental package is sent to the client (i.e., S206), the update information for the target application sent by the client may be received, and the update information and the target application are stored in association, so that the developer of the target application optimizes the incremental package based on the update information.
The update information may include download time, download times, package volume, download failure reason, execution time of update operation, update duration, and the like of the incremental package.
In this embodiment, after the increment package is issued to the client, the update information for the target application sent by the client is received, and the update information and the target application are stored in an associated manner, so that a closed loop of application update is realized, and a developer of the target application can optimize the increment package based on the update information, thereby promoting more efficient application update.
To facilitate understanding of the RN-based application updating method provided in the embodiment of the present application, the RN-based application updating method provided in the embodiment of the present application will be described below in a manner that a client interacts with a network side, and specifically, reference may be made to fig. 3. Fig. 3 is a schematic flowchart of an RN-based application updating method according to another embodiment of the present application, and as shown in fig. 3, the RN-based application updating method may include:
s301, the client acquires 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 side version information may include an application version number and an RN version number. The target application may include a common Bundle package and a module Bundle package of each function module. The RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package.
S302, the client compares the network side version information with the client version information, and determines version difference information corresponding to the target application according to a comparison result; and acquiring the device attribute information corresponding to the client.
The device attribute information may include device location information, device network status information, device performance information, and the like.
In one embodiment, comparing the network-side version information with the client version information, and determining version difference information corresponding to the target application according to the comparison result, may be specifically implemented as: comparing the network side version information with the client side version information, and judging whether the target application meets the updating condition according to the comparison result; if so, determining the version difference information corresponding to the target application. If not, determining that the target application does not need to be updated.
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 side version information, determining version difference information corresponding to the target application according to a comparison result, and specifically executing the following steps: comparing the application version number in the network side version information with the application version number in the client side version information to obtain application version difference information; comparing the RN version number in the network side version information with the RN version number in the client side version information to obtain RN version difference information; and generating version difference information corresponding to the target application according to the application version difference information and the RN version difference information.
S303, the client sends an increment package obtaining request to the network side, wherein the increment package obtaining request carries the identification information of the target application, the version difference information between the network side version information and the client side version information corresponding to the target application, and the device attribute information corresponding to the client.
The incremental package may include incremental content, an incremental manner, incremental position information, identification information of the target Bundle package to be updated, and the like. Incremental approaches may include addition, deletion, replacement, and the like.
S304, the network side receives an increment package acquisition request aiming at the target application sent by the client.
In one embodiment, before receiving an increment package acquisition request for a target application sent by a client, a network side may first acquire a first Bundle package to be updated and a published target Bundle package in the target application, where the first Bundle package corresponds to the target Bundle package; secondly, comparing the first Bundle package with the target Bundle package, determining increment information of the first Bundle package relative to the target Bundle package according to a comparison result, and generating increment packages corresponding to various equipment attribute information respectively according to the increment information; determining first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package, and determining version difference information between the first version information and the second version information; therefore, the incremental package, the version difference information and the target application corresponding to the various types of equipment attribute information are stored in the network side in an associated mode.
S305, the network side searches the increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package obtaining request.
And S306, the network side issues the increment package to the client.
S307, the client downloads the increment package issued by the network side, and updates the target Bundle package in the target application according to the increment package to generate a full package corresponding to the target application and matched with the version information of the network side and the equipment attribute information.
In an embodiment, the updating operation of the target Bundle package in the target application according to the delta package may be specifically performed as: and determining a target Bundle package to be updated according to the incremental position information and/or the identification information of the target Bundle package, and determining the position to be updated in the target Bundle package according to the incremental position information, so that the script of the target Bundle package is updated at the position to be updated according to the incremental content and the incremental mode included in the incremental package.
S308, the client side counts the updating information of the target application.
The update information may include download time, download times, package volume, download failure reason, execution time of update operation, update duration, and the like of the incremental package.
S309, the client uploads the updated information to the network side.
S310, the network side receives the update information aiming at the target application sent by the client.
S311, the network side stores the updating information and the target application in a correlation mode, so that a developer of the target application optimizes the incremental package based on the updating information.
The specific processes of S301 to S311 are described in detail in the above embodiments, and are not described herein again.
By adopting the technical scheme of the embodiment of the application, the client side obtains the network side version information corresponding to the target application, the client side version information of the target application and the equipment attribute information corresponding to the client side, compares the network side version information with the client side version information, and determines the version difference information corresponding to the target application according to the comparison result, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) matched with the version difference information and the equipment attribute information is screened and downloaded from the network side, and the target Bundle package in the target application is updated according to the increment package, so that the full package corresponding to the target application and matched with the network side version information and the equipment attribute information is generated. Therefore, the client can screen and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information and the network side version information of the application and the equipment attribute information of the client, so that the application is accurately updated according to the incremental package, the effect of flexibly updating the application is realized, and the incremental package mainly comprises the incremental content related to the application updating, so that the speed of downloading the incremental package is higher compared with the speed of downloading a complete updating package, and the application updating speed can be increased.
Further, the network side receives an increment package acquisition request aiming at the target application sent by the client, so that according to the identification information of the target application carried by the increment 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 equipment attribute information corresponding to the client, an increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) corresponding to the target application and matched with the version difference information and the equipment attribute information is searched, and the increment package is sent to the client, so that the client performs updating operation on the target Bundle package according to the increment package, and generates a full package corresponding to the target application and matched with the network side version information and the equipment attribute information. Therefore, the network side can search the incremental packet matched with the version difference information and the equipment attribute information of the application according to the incremental packet acquisition request sent by the client, and issue the incremental packet to the client, so that the effect of flexibly and pertinently issuing the incremental packet is realized.
In summary, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
Based on the same idea, the application updating method based on the RN provided in the embodiments of the present application further provides an application updating apparatus based on the RN.
Fig. 4 is a schematic structural diagram of an RN-based application update apparatus according to an embodiment of the present application. The apparatus is applied to a client, please refer to fig. 4, and the RN-based application updating apparatus may include:
a first obtaining module 410, configured to obtain network-side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
the first execution module 420 is configured to compare the network-side version information with the client version information, and determine version difference information corresponding to the target application according to a comparison result; acquiring equipment attribute information corresponding to the client, wherein the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
a downloading module 430, configured to filter and download the incremental package matched with the version difference information and the device attribute information from the network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and the updating and generating module 440 is configured to perform an updating operation on the target Bundle packet in the target application according to the increment packet, so as to generate a full-amount packet corresponding to the target application and matched with the network-side version information and the device attribute information.
In one embodiment, the first execution module 420 includes:
the comparison and judgment unit is used for comparing the network side version information with the client side version information and judging whether the target application meets the updating condition according to the comparison result;
and the first determining unit is used for determining the version difference information corresponding to the target application if the version difference information is positive.
In one embodiment, the version difference information includes application version difference information and RN version difference information;
the first execution module 420 includes:
the first comparison unit is used for comparing the application version number in the network side version information with the application version number in the client side version information to obtain application version difference information;
the second comparison unit is used for comparing the RN version number in the network side version information with the RN version number in the client side version information to obtain RN version difference information;
and the generating unit is used for generating the version difference information corresponding to the target application according to the application version difference information and the RN version difference information.
In one embodiment, the update and generation module 440 includes:
the second determining unit is used for determining the target Bundle package to be updated according to the increment position information and/or the identification information of the target Bundle package included in the increment package;
the third determining unit is used for determining the position to be updated in the target Bundle package according to the incremental position information;
the updating unit is used for updating the script of the target Bundle package at the position to be updated according to the increment content and the increment mode included in the increment package; the incremental mode comprises at least one of addition, deletion and replacement.
In one embodiment, the RN-based application update apparatus further includes:
the statistical module is used for counting the updating information of the target application; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
and the uploading module is used for uploading the updated information to the network side so that the network side stores the updated information.
By adopting the device of the embodiment of the application, the client side obtains the network side version information corresponding to the target application, the client side version information of the target application and the equipment attribute information corresponding to the client side, compares the network side version information with the client side version information, and determines the version difference information corresponding to the target application according to the comparison result, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) matched with the version difference information and the equipment attribute information is screened and downloaded from the network side, and the target Bundle package in the target application is updated according to the increment package, so that the full package corresponding to the target application and matched with the network side version information and the equipment attribute information is generated. Therefore, the client can screen and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information and the network side version information of the application and the equipment attribute information of the client, so that the application is accurately updated according to the incremental package, the effect of flexibly updating the application is realized, and the incremental package mainly comprises the incremental content related to the application updating, so that the speed of downloading the incremental package is higher compared with the speed of downloading a complete updating package, and the application updating speed can be increased.
Fig. 5 is a schematic structural diagram of an RN-based application update apparatus according to another embodiment of the present application. The apparatus is applied to the network side, and referring to fig. 5, the RN-based application updating apparatus may include:
a first receiving module 510, configured to receive an increment package obtaining request for a target application sent by a client; the incremental package obtains a request carrying identification information of a target application, version difference information between network side version information and client version information corresponding to the target application and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
the searching module 520 is configured to search, according to the increment package obtaining request, an increment package corresponding to the target application and matching the version difference information and the device attribute information; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and the issuing module 530 is configured to issue the increment package to the client, so that the client performs an update operation on the target Bundle package according to the increment package and generates a full package corresponding to the target application and matched with the network side version information and the device attribute information.
In one embodiment, the RN-based application update apparatus further includes:
the second acquisition module is used for acquiring a first Bundle package to be updated and a released target Bundle package in the target application; the first Bundle package corresponds to the target Bundle package;
the second execution module is used for comparing the first Bundle package with the target Bundle package, determining the increment information of the first Bundle package relative to the target Bundle package according to the comparison result, and generating increment packages corresponding to various equipment attribute information respectively according to the increment information; the incremental information comprises at least one item of incremental content, incremental mode, incremental position information and identification information of the target Bundle package;
the determining module is used for determining first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package; determining version difference information between the first version information and the second version information;
and the first storage module is used for storing the incremental package, the version difference information and the target application association which correspond to the various equipment attribute information respectively in a network side.
In one embodiment, the RN-based application update apparatus further includes:
the second receiving module is used for receiving the update information aiming at the target application sent by the client; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
and the second storage module is used for storing the update information and the target application in a correlation mode so that a developer of the target application optimizes the increment package based on the update information.
By adopting the device of the embodiment of the application, the network side receives the increment package acquisition request aiming at the target application sent by the client, so that the increment package (comprising at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) corresponding to the target application and matched with the version difference information and the equipment attribute information is searched according to the identification information of the target application carried by the increment 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 equipment attribute information corresponding to the client, and the increment package is issued to the client, so that the client performs updating operation on the target Bundle package according to the increment package, and generates the full package corresponding to the target application and matched with the network side version information and the equipment attribute information. Therefore, the network side can search the incremental packet matched with the version difference information and the equipment attribute information of the application according to the incremental packet acquisition request sent by the client, and issue the incremental packet to the client, so that the effect of flexibly and pertinently issuing the incremental packet is realized.
It should be understood by those skilled in the art that the RN-based application updating apparatus in fig. 4 and 5 can be used to implement the RN-based application updating method described above, wherein the detailed description thereof should be similar to that of the method described above, and in order to avoid complexity, the detailed description thereof is omitted here.
Based on the same idea, an embodiment of the present application further provides an application update device based on an RN, as shown in fig. 6. The RN-based application update apparatus may have a relatively large difference due to different configurations or performances, and may include one or more processors 601 and a memory 602, where one or more stored applications or data may be stored in the memory 602. Wherein the memory 602 may be transient or persistent storage. The application program stored in memory 602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a device for updating RN-based applications. Still further, the processor 601 may be configured to communicate with the memory 602, and execute a series of computer-executable instructions in the memory 602 on the RN-based application update apparatus. The RN-based application update apparatus may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input-output interfaces 605, and one or more keyboards 606.
In one embodiment, the RN-based application update apparatus comprises 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 comprise one or more modules, and each module may comprise a series of computer-executable instructions for the RN-based application update apparatus, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
acquiring network side version information corresponding to the target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring equipment attribute information corresponding to the client, wherein the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
screening and downloading an increment package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
comparing the network side version information with the client side version information, and judging whether the target application meets the updating condition according to the comparison result;
if so, determining the version difference information corresponding to the target application.
Optionally, the version difference information includes application version difference information and RN version difference information; the computer executable instructions, when executed, may further cause the processor to:
comparing the application version number in the network side version information with the application version number in the client side version information to obtain application version difference information;
comparing the RN version number in the network side version information with the RN version number in the client side version information to obtain RN version difference information;
and generating version difference information corresponding to the target application according to the application version difference information and the RN version difference information.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
determining a target Bundle package to be updated according to the increment position information and/or the identification information of the target Bundle package included in the increment package;
determining a position to be updated in the target Bundle package according to the incremental position information;
updating the script of the target Bundle package at the position to be updated according to the increment content and the increment mode included in the increment package; the incremental mode comprises at least one of addition, deletion and replacement.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
after updating operation is carried out on a target Bundle packet in the target application according to the increment packet so as to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information, the updating information of the target application is counted; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
and uploading the updated information to the network side so that the network side stores the updated information.
By adopting the device of the embodiment of the application, the client side obtains the network side version information corresponding to the target application, the client side version information of the target application and the device attribute information corresponding to the client side, compares the network side version information with the client side version information, and determines the version difference information corresponding to the target application according to the comparison result, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) matched with the version difference information and the device attribute information is screened and downloaded from the network side, and the target Bundle package in the target application is updated according to the increment package, so that the full package corresponding to the target application and matched with the network side version information and the device attribute information is generated. Therefore, the client can screen and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information and the network side version information of the application and the equipment attribute information of the client, so that the application is accurately updated according to the incremental package, the effect of flexibly updating the application is realized, and the incremental package mainly comprises the incremental content related to the application updating, so that the speed of downloading the incremental package is higher compared with the speed of downloading a complete updating package, and the application updating speed can be increased.
In one embodiment, the RN-based application update apparatus comprises 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 comprise one or more modules, and each module may comprise a series of computer-executable instructions for the RN-based application update apparatus, and the one or more programs configured to be executed by the one or more processors include computer-executable instructions for:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the incremental package obtains a request carrying identification information of a target application, version difference information between network side version information and client version information corresponding to the target application and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package corresponding to the target application and matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client updates the target Bundle package according to the increment package and generates a full package corresponding to the target application and matched with the network side version information and the equipment attribute information.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
before receiving an increment package acquisition request aiming at a target application sent by a client, acquiring a first Bundle package to be updated and a published target Bundle package in the target application; the first Bundle package corresponds to the target Bundle package;
comparing the first Bundle package with the target Bundle package, determining incremental information of the first Bundle package relative to the target Bundle package according to a comparison result, and generating incremental packages corresponding to various equipment attribute information respectively according to the incremental information; the incremental information comprises at least one item of incremental content, incremental mode, incremental position information and identification information of the target Bundle package;
determining first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package; determining version difference information between the first version information and the second version information;
and respectively storing the incremental packages, the version difference information and the target application association corresponding to the various equipment attribute information in a network side.
Optionally, the computer executable instructions, when executed, may further cause the processor to:
after the increment package is issued to the client, receiving update information aiming at the target application sent by the client; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
the update information is stored in association with the target application such that a developer of the target application optimizes the delta package based on the update information.
By adopting the device of the embodiment of the application, the network side receives the increment package acquisition request aiming at the target application sent by the client, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) corresponding to the target application and matched with the version difference information and the device attribute information is searched according to the identification information of the target application carried by the increment 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 the increment package is issued to the client, so that the client performs updating operation on the target Bundle package according to the increment package, and generates the full package corresponding to the target application and matched with the network side version information and the device attribute information. Therefore, the network side can search the incremental packet matched with the version difference information and the equipment attribute information of the application according to the incremental packet acquisition request sent by the client, and issue the incremental packet to the client, so that the effect of flexibly and pertinently issuing the incremental packet is realized.
An embodiment of the present application further provides a storage medium storing one or more computer programs, where the one or more computer programs include instructions, which, when executed by an electronic device including a plurality of application programs, enable the electronic device to perform the RN-based application update method applied to a client, and are specifically configured to perform:
acquiring network side version information corresponding to the target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring equipment attribute information corresponding to the client, wherein the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
screening and downloading an increment package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
Optionally, the instructions, when executed by an electronic device comprising a plurality of application programs, are further capable of causing the electronic device to perform:
comparing the network side version information with the client side version information, and judging whether the target application meets the updating condition according to the comparison result;
if so, determining the version difference information corresponding to the target application.
Optionally, the version difference information includes application version difference information and RN version difference information; the instructions, when executed by an electronic device comprising a plurality of application programs, are further capable of causing the electronic device to perform:
comparing the application version number in the network side version information with the application version number in the client side version information to obtain application version difference information;
comparing the RN version number in the network side version information with the RN version number in the client side version information to obtain RN version difference information;
and generating version difference information corresponding to the target application according to the application version difference information and the RN version difference information.
Optionally, the instructions, when executed by an electronic device comprising a plurality of application programs, are further capable of causing the electronic device to perform:
determining a target Bundle package to be updated according to the increment position information and/or the identification information of the target Bundle package included in the increment package;
determining a position to be updated in the target Bundle package according to the incremental position information;
updating the script of the target Bundle package at the position to be updated according to the increment content and the increment mode included in the increment package; the incremental mode comprises at least one of addition, deletion and replacement.
Optionally, the instructions, when executed by an electronic device comprising a plurality of application programs, are further capable of causing the electronic device to perform:
after updating operation is carried out on a target Bundle packet in the target application according to the increment packet so as to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information, the updating information of the target application is counted; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
and uploading the updated information to the network side so that the network side stores the updated information.
By adopting the storage medium of the embodiment of the application, the client side obtains the network side version information corresponding to the target application, the client side version information of the target application and the equipment attribute information corresponding to the client side, compares the network side version information with the client side version information, and determines the version difference information corresponding to the target application according to the comparison result, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) matched with the version difference information and the equipment attribute information is screened and downloaded from the network side, and the target Bundle package in the target application is updated according to the increment package, so that the full package corresponding to the target application and matched with the network side version information and the equipment attribute information is generated. Therefore, the client can screen and download the corresponding incremental package from the network side in a targeted manner according to the version difference between the client version information and the network side version information of the application and the equipment attribute information of the client, so that the application is accurately updated according to the incremental package, the effect of flexibly updating the application is realized, and the incremental package mainly comprises the incremental content related to the application updating, so that the speed of downloading the incremental package is higher compared with the speed of downloading a complete updating package, and the application updating speed can be increased.
An embodiment of the present application further provides a storage medium, where the storage medium stores one or more computer programs, where the one or more computer programs include instructions, and when the instructions are executed by an electronic device including multiple application programs, the instructions enable the electronic device to perform the RN-based application update method applied to the network side, and are specifically configured to perform:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the incremental package obtains a request carrying identification information of a target application, version difference information between network side version information and client version information corresponding to the target application and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package corresponding to the target application and matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client updates the target Bundle package according to the increment package and generates a full package corresponding to the target application and matched with the network side version information and the equipment attribute information.
Optionally, the instructions, when executed by an electronic device comprising a plurality of application programs, are further capable of causing the electronic device to perform:
before receiving an increment package acquisition request aiming at a target application sent by a client, acquiring a first Bundle package to be updated and a published target Bundle package in the target application; the first Bundle package corresponds to the target Bundle package;
comparing the first Bundle package with the target Bundle package, determining incremental information of the first Bundle package relative to the target Bundle package according to a comparison result, and generating incremental packages corresponding to various equipment attribute information respectively according to the incremental information; the incremental information comprises at least one item of incremental content, incremental mode, incremental position information and identification information of the target Bundle package;
determining first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package; determining version difference information between the first version information and the second version information;
and respectively storing the incremental packages, the version difference information and the target application association corresponding to the various equipment attribute information in a network side.
Optionally, the instructions, when executed by an electronic device comprising a plurality of application programs, are further capable of causing the electronic device to perform:
after the increment package is issued to the client, receiving update information aiming at the target application sent by the client; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
the update information is stored in association with the target application such that a developer of the target application optimizes the delta package based on the update information.
By adopting the storage medium of the embodiment of the application, the network side receives the increment package acquisition request aiming at the target application sent by the client, so that the increment package (including at least one of increment content, increment mode, increment position information and identification information of the target Bundle package to be updated) corresponding to the target application and matched with the version difference information and the equipment attribute information is searched according to the identification information of the target application carried by the increment 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 equipment attribute information corresponding to the client, and the increment package is issued to the client, so that the client performs updating operation on the target Bundle package according to the increment package, and generates the full package corresponding to the target application and matched with the network side version information and the equipment attribute information. Therefore, the network side can search the incremental packet matched with the version difference information and the equipment attribute information of the application according to the incremental packet acquisition request sent by the client, and issue the incremental packet to the client, so that the effect of flexibly and pertinently issuing the incremental packet is realized.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, 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.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. 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 (14)

1. An application updating method based on RN is characterized in that the method is applied to a client; the method comprises the following steps:
acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
screening and downloading an incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
2. The method according to claim 1, wherein the comparing the version information of the network side with the version information of the client side, and determining the version difference information corresponding to the target application according to the comparison result comprises:
comparing the network side version information with the client side version information, and judging whether the target application meets an updating condition according to the comparison result;
and if so, determining the version difference information corresponding to the target application.
3. The method of claim 1, wherein the version difference information comprises application version difference information and RN version difference information;
the comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result includes:
comparing the application version number in the network side version information with the application version number in the client side 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 side version information to obtain RN version difference information;
and generating the version difference information corresponding to the target application according to the application version difference information and the RN version difference information.
4. The method according to claim 1, wherein the updating the target Bundle package in the target application according to the delta package comprises:
determining the target Bundle package to be updated according to the increment position information and/or the identification information of the target Bundle package included in the increment package;
determining a position to be updated in the target Bundle package according to the incremental position information;
updating the script of the target Bundle package at the position to be updated according to the incremental content and the incremental mode included in the incremental package; the incremental mode comprises at least one of addition, deletion and replacement.
5. The method according to claim 1, wherein after the updating operation is performed on the target Bundle packet in the target application according to the delta packet to generate a full packet corresponding to the target application and matching with the network-side version information and the device attribute information, the method further comprises:
counting the updating information of the target application; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
and uploading the updated information to the network side so that the network side stores the updated information.
6. An application updating method based on RN is characterized in that the method is applied to a network side; the method comprises the following steps:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client performs updating operation on the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
7. The method of claim 6, wherein before receiving the delta packet get request for the target application sent by the client, the method further comprises:
acquiring a first Bundle package to be updated and a released target Bundle package in the target application; the first Bundle package corresponds to the target Bundle package;
comparing the first Bundle package with the target Bundle package, determining increment information of the first Bundle package relative to the target Bundle package according to a comparison result, and generating the increment packages corresponding to various types of equipment attribute information respectively according to the increment information; the incremental information comprises at least one item of the incremental content, the incremental mode, the incremental position information and the identification information of the target Bundle package;
determining first version information corresponding to the first Bundle package and second version information corresponding to the target Bundle package; determining the version difference information between the first version information and the second version information;
and storing the incremental package, the version difference information and the target application association which respectively correspond to each type of the equipment attribute information in the network side.
8. The method of claim 6, wherein after sending the delta packet to the client, further comprising:
receiving update information aiming at the target application sent by the client; the updating information comprises at least one of the downloading time, the downloading times, the package volume, the downloading failure reason, the execution time of the updating operation and the updating duration of the incremental package;
storing the update information in association with the target application to enable a developer of the target application to optimize the delta package based on the update information.
9. An application updating device based on RN is characterized in that the device is applied to a client; the device comprises:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
the first execution module is used for comparing the network side version information with the client side version information and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
the download module is used for screening and downloading the incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and the updating and generating module is used for updating the target Bundle packet in the target application according to the increment packet so as to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
10. An application updating device based on RN is characterized in that the device is applied to a network side; the device comprises:
the first receiving module is used for receiving an increment package obtaining request aiming at a target application and sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
the searching module is used for searching the increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package obtaining request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and the issuing module is used for issuing the increment package to the client so that the client updates the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
11. An RN-based application update apparatus comprising a processor and a memory electrically connected to the processor, the memory storing a computer program, the processor being configured to invoke and execute the computer program from the memory to implement:
acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
screening and downloading an incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
12. An RN-based application update apparatus comprising a processor and a memory electrically connected to the processor, the memory storing a computer program, the processor being configured to invoke and execute the computer program from the memory to implement:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client performs updating operation on the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
13. A storage medium for storing a computer program which, when executed by a processor, implements the following:
acquiring network side version information corresponding to a target application and client version information of the target application; the network side version information or the client side version information comprises an application version number and an RN version number; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the RN version number is used for identifying the updating degree of the public Bundle package and/or the module Bundle package;
comparing the network side version information with the client side version information, and determining version difference information corresponding to the target application according to a comparison result; acquiring device attribute information corresponding to the client, wherein the device attribute information comprises at least one of device position information, device network condition information and device performance information;
screening and downloading an incremental package matched with the version difference information and the equipment attribute information from a network side; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and updating the target Bundle packet in the target application according to the increment packet to generate a full packet which corresponds to the target application and is matched with the network side version information and the equipment attribute information.
14. A storage medium for storing a computer program which, when executed by a processor, implements the following:
receiving an increment package acquisition request aiming at a target application, which is sent by a client; the increment package acquisition request carries identification information of the target application, version difference information between network side version information and client version information corresponding to the target application, and equipment attribute information corresponding to the client; the target application comprises a public Bundle package and module Bundle packages of all the functional modules; the equipment attribute information comprises at least one item of equipment position information, equipment network condition information and equipment performance information;
searching an increment package which corresponds to the target application and is matched with the version difference information and the equipment attribute information according to the increment package acquisition request; the incremental package comprises at least one item of incremental content, an incremental mode, incremental position information and identification information of a target Bundle package to be updated;
and issuing the increment package to the client so that the client performs updating operation on the target Bundle package according to the increment package and generates a total package corresponding to the target application and matched with the network side version information and the equipment attribute information.
CN202210036590.8A 2022-01-13 2022-01-13 Application updating method and device based on RN Pending CN114398073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210036590.8A CN114398073A (en) 2022-01-13 2022-01-13 Application updating method and device based on RN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210036590.8A CN114398073A (en) 2022-01-13 2022-01-13 Application updating method and device based on RN

Publications (1)

Publication Number Publication Date
CN114398073A true CN114398073A (en) 2022-04-26

Family

ID=81231645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210036590.8A Pending CN114398073A (en) 2022-01-13 2022-01-13 Application updating method and device based on RN

Country Status (1)

Country Link
CN (1) CN114398073A (en)

Similar Documents

Publication Publication Date Title
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
CN108964968B (en) Service access management method and system in container cloud environment
CN111324359B (en) Plug-in deployment method and device
CN111399840B (en) Module development method and device
CN111930382B (en) Application page access method, device and equipment
CN111045683A (en) Applet code compiling method, device, equipment and medium
CN109062906B (en) Translation method and device for program language resources
CN111625260A (en) Method and system based on mixed mobile application program upgrading
CN113873013B (en) Offline package reorganization method and system
CN111984259A (en) Interface creating method, device, equipment and storage medium
CN112286706A (en) Remote and rapid acquisition method for application information of android application and related equipment
CN109857374B (en) Development method and device of mobile application
CN109068286B (en) Information analysis method, medium and equipment
CN114398073A (en) Application updating method and device based on RN
CN110502251B (en) Application installation method and device
CN115390944A (en) Algorithm service calling method and device, electronic equipment and storage medium
CN114816816A (en) Collapse stack information processing method, device, equipment and storage medium
CN111488286B (en) Method and device for independently developing Android modules
CN114237736A (en) Page resource loading method, system, device, computer equipment and storage medium
CN114675872A (en) Data processing method, device and equipment for application program and storage medium
CN110007937B (en) System updating method and system
CN108920658B (en) Mobile device desktop moving method and device and electronic device
CN111625232B (en) Method and device for generating application program installation package, readable medium and electronic equipment
CN113127054B (en) File processing method and related device
CN116599946A (en) Thermal updating method and device based on real Native, intelligent device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination