CN108762800A - The dynamic updating method and device of application program - Google Patents

The dynamic updating method and device of application program Download PDF

Info

Publication number
CN108762800A
CN108762800A CN201810504114.8A CN201810504114A CN108762800A CN 108762800 A CN108762800 A CN 108762800A CN 201810504114 A CN201810504114 A CN 201810504114A CN 108762800 A CN108762800 A CN 108762800A
Authority
CN
China
Prior art keywords
application program
version
service packs
script file
catalogue
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
CN201810504114.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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201810504114.8A priority Critical patent/CN108762800A/en
Publication of CN108762800A publication Critical patent/CN108762800A/en
Pending legal-status Critical Current

Links

Classifications

    • 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 embodiment of the present invention provides a kind of dynamic updating method and device of application program, and this method includes:After application program launching, obtain the resource packet of application program, it verifies and whether there is new JS service packs under the catalogue of resource packet, if in the presence of, then whether the script file version in determining JS service packs and application program script file version currently in use are identical, if it is different, then loading the script file in JS service packs, application program is run.The program carries out verification to service packs in program loading procedure and determines using the script file or original script file operation application program in service packs, it can not depend on and issue new version to realize the mobilism of logic function and interface, newest version can timely be covered, it can ensure enough stability and compatibility, not influenced as possible by system version.

Description

The dynamic updating method and device of application program
Technical field
The present invention relates to the dynamic updating methods and device of field of computer technology more particularly to a kind of application program.
Background technology
With the extensive use of intelligent terminal, application program (Application, APP) on terminal device also with The demand shift of user, APP needs to carry out resource updates according to the demand of user.
In the prior art, it provides a kind of mode of plug-in unit to update APP into Mobile state, which can not again pacify In the case of the new packet of dress, dynamically to change the content of application program.Cardinal principle using Android inside ClassLoader carrys out the new class of dynamic load, to realize mobilism.Many application programs can download optional plug-in unit to extend The content of program.It also provides a kind of mode that hot repair is multiple to update APP into Mobile state, which is chiefly used in timely repair line Known problem, and do not depend on and issue new version.Principle is similar with plug-in unitization, unlike hot repair can dynamically change again it is original Class, or even the frame having can directly change specific resource file.
However, plug-in unit, which is generally used for dynamic, issues new plug-in unit, i.e., meaning can only be added dynamically, the dynamic to be realized It is higher to update cost, stability is insufficient.Hot repair is strongly depend on the blank components added and realizes extremely complex, stability again On be weak, performance consumption is bigger, in conclusion the newer scheme update cost of current APP dynamics is higher, and stability It is poor.
Invention content
The present invention provides a kind of dynamic updating method and device of application program, and the APP dynamics for solving current update Scheme update cost it is higher, and the problem that stability is poor.
First aspect present invention provides a kind of dynamic updating method of application program, including:
According to the interface requests that the client of application program is sent, using preconfigured gray scale strategy, generate with it is described The corresponding configuration file of interface requests;
JS service packs is obtained according to the configuration file, the JS service packs includes the script of the newer application program File;
The JS service packs is sent to the client.
Optionally, the interface requests include at least the version number of the application program, channel number, member's letter of user At least one of in breath, urban information.
Second aspect of the present invention provides a kind of dynamic updating method of application program, including:
After application program launching, the resource packet of the application program is obtained;
It verifies and whether there is new JS service packs under the catalogue of the resource packet;
If in the presence of, it is determined that the script file version in the JS service packs and application program script currently in use Whether FileVersion is identical;
If script file version and application program script file version currently in use in the JS service packs are not Together, then the script file in the JS service packs is loaded, the application program is run.
Optionally, the method further includes:
If the script file version in the JS service packs and application program script file version phase currently in use Together, then the script file locally used is loaded, the application program is run.
Optionally, the method further includes:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource stored in the operation catalogue is directly acquired Packet.
Optionally, the method further includes:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
Optionally, before the JS service packs that the application program is downloaded from server, the method further includes:
It is asked to the server transmission interface, the interface requests include at least the version number of the application program, canal At least one of Taoist monastic name, in the membership information of user, urban information.
Third aspect present invention provides a kind of dynamic updating device of application program, including:
Processing module, the interface requests for being sent according to the client of application program, uses preconfigured gray scale plan Slightly, configuration file corresponding with the interface requests is generated;
The processing module is additionally operable to obtain JS service packs according to the configuration file, and the JS service packs includes newer The script file of the application program;
Sending module, for the JS service packs to be sent to the client.
Optionally, the interface requests include at least the version number of the application program, channel number, member's letter of user At least one of in breath, urban information.
Fourth aspect present invention provides a kind of dynamic updating device of application program, including:
Acquisition module, for after application program launching, obtaining the resource packet of the application program;
Correction verification module whether there is new JS service packs under the catalogue for verifying the resource packet;
Processing module, if in the presence of, it is determined that script file version in the JS service packs and the application program Whether script file version currently in use is identical;
If the script file version that the processing module is additionally operable in the JS service packs makes with the application program Script file version is different, then loads the script file in the JS service packs, run the application program.
Optionally, the processing module is additionally operable to:
If the script file version in the JS service packs and application program script file version phase currently in use Together, then the script file locally used is loaded, the application program is run.
Optionally, the processing module is additionally operable to:
Delete the service packs.
Optionally, the acquisition module is specifically used for:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource stored in the operation catalogue is directly acquired Packet.
Optionally, the processing module is additionally operable to:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
Optionally, described device further includes:
Sending module, for being asked to the server transmission interface, the interface requests include at least described using journey At least one of the version number of sequence, channel number, in the membership information of user, urban information.
Fifth aspect present invention provides a kind of server, including:Memory, processor and transmitter;The memory is used In storage computer program;
The processor is used for:
According to the interface requests that the client of application program is sent, using preconfigured gray scale strategy, generate with it is described The corresponding configuration file of interface requests;
JS service packs is obtained according to the configuration file, the JS service packs includes the script of the newer application program File;
The transmitter is used to the service packs being sent to the client.
Optionally, the interface requests include at least the version number of the application program, channel number, member's letter of user At least one of in breath, urban information.
Sixth aspect present invention provides a kind of terminal device, including:Memory, processor and receiver;The memory For storing computer program;
The processor is used for:
After application program launching, the resource packet of the application program is obtained;
It verifies and whether there is new JS service packs under the catalogue of the resource packet;
If in the presence of, it is determined that the script file version in the JS service packs and application program script currently in use Whether FileVersion is identical;
If script file version and application program script file version currently in use in the JS service packs are not Together, then the script file in the JS service packs is loaded, the application program is run.
Optionally, the processor is additionally operable to:
If the script file version in the JS service packs and application program script file version phase currently in use Together, then the script file locally used is loaded, the application program is run.
Optionally, the processor is additionally operable to:
Delete the service packs.
Optionally, the processor is specifically used for:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource stored in the operation catalogue is directly acquired Packet.
Optionally, the processor is additionally operable to:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
Optionally, the terminal device further includes:Transmitter, it is described to connect for being asked to the server transmission interface Mouthful request is including at least the version number of the application program, channel number, and at least one in the membership information of user, urban information ?.
Seventh aspect present invention provides a kind of storage medium, including:Readable storage medium storing program for executing and computer program, the calculating Machine program is stored in the readable storage medium storing program for executing, and the computer program applies journey for realizing a kind of of above-mentioned first aspect The dynamic updating method of sequence.
Eighth aspect present invention provides a kind of storage medium, including:Readable storage medium storing program for executing and computer program, the calculating Machine program is stored in the readable storage medium storing program for executing, and the computer program applies journey for realizing a kind of of above-mentioned second aspect The dynamic updating method of sequence.
The dynamic updating method and device of application program provided in an embodiment of the present invention, after application program launching, acquisition is answered It with the resource packet of program, verifies and whether there is new JS service packs under the catalogue of resource packet, and if it exists, then determine in JS service packs Script file version and application program script file version currently in use it is whether identical, if it is different, then loading JS service packs In script file, run application program.The program carries out verification to service packs in program loading procedure and determines to use patch The script file of packet or original script file run application program, can not depend on and issue new version to realize logic work( Can and interface mobilism, can timely cover newest version, it is ensured that enough stability and compatibility, as possible not by The influence of system version.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the dynamic updating method embodiment one of application program provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the dynamic updating method embodiment two of application program provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of gray scale system provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of client provided in an embodiment of the present invention load;
Fig. 5 is the structural schematic diagram of the dynamic updating device embodiment of application program provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the dynamic updating device embodiment of application program provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The all other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
For in the prior art, plug-in unitization carries out the newer mode of application program, and plug-in unit is generally used under dynamic The plug-in unit for sending out new, i.e. meaning can only be added dynamically, and that be realized is dynamically updated to this higher, stability deficiency.This is also determined Its gray scale system difficult to realize.Additionally, due to the influence of the inventory file of Android, declared component can only be added.Now Mostly use and dose blank components to add in advance, but so quantitatively be limited by very large in flexibility.Hot repair is multiple It is more flexible than plug-in unit change, but newly the limitation of addition component is consistent with plug-in unitization, is strongly depend on the blank components added.In addition Although hot repair is multiple powerful, realization is extremely complex, is weak in stability, performance consumption is bigger.Although can be real Existing grey scale solutions, but under the generation given out a contract for a project it is more complex, be generally still applied in reparation problem more, be not applied to gray scale.
In view of the above-mentioned problems, the present invention provides a kind of dynamic updating method of application program, it can not depend on and issue newly Version realizes the mobilism of logic function and interface, can timely cover newest version, and (especially by each system Android system) version limitation it is smaller.In addition it can ensure enough stability and compatibility, as possible not by system version It influences.Simultaneously more flexible publication may be implemented, it can be achieved that version gray scale.Below by several specific implementation modes, to this Scheme is described in detail.
Fig. 1 is the flow chart of the dynamic updating method embodiment one of application program provided in an embodiment of the present invention, such as Fig. 1 institutes Show, the dynamic updating method of the application program specifically can be in the server of application program, the dynamic update side of the application program Method specifically includes following steps:
S101:According to the interface requests that the client of application program is sent, using preconfigured gray scale strategy, generate with The corresponding configuration file of the interface requests.
In this step, the client of application program is when request interface, can be by interface requests by the version of oneself This number, the contents such as channel number transmitted by the server of server-side as parameter, so that server can be generated according to these contents The corresponding configuration file of the client.
In a kind of concrete implementation of the program, interface requests can also carry the VIP information of the user, i.e. member believes Breath and residing urban information etc..
Server receive the version number that terminal device sent by application client, channel number, VIP information, After at least one of urban information information, corresponding configuration file can be generated according to pre-set gray scale strategy.
S102:JS service packs is obtained according to configuration file, JS service packs includes the script file of newer application program.
In this step, server can guide this certain customers after configuration file is determined according to the configuration file Gray scale packet is downloaded to realize gray scale, the newer script file of the application program is then obtained, obtains JavaScaript patches Packet, i.e., JS service packs, script file here refer to the program file that can directly run, and need not be compiled, one As for need not also be compiled in JS service packs packing process, the generation of such service packs is also easier, entire to issue Process is more succinct.
S103:Service packs is sent to client.
In above-mentioned steps, user can obtain the patch of the corresponding latest edition of the application program according to the configuration file Packet, which is not the service packs of JAVA classes, but JavaScaript service packs, JS inherently scripts, client End can directly be loaded.
The dynamic updating method of application program provided in this embodiment, server are asked according to the interface of the client received It asks, corresponding configuration file is generated according to information in interface requests, service packs is then obtained according to configuration file and is packaged, It is packaged as the service packs of JS scripts, is handed down to client, so that client easier can load, was entirely issued Journey is also easier.
Fig. 2 is the flow chart of the dynamic updating method embodiment two of application program provided in an embodiment of the present invention, such as Fig. 2 institutes Show, the terminals such as mobile phone, tablet computer, computer of user of dynamic updating method application of application program provided in this embodiment are set In standby, that is, apply in the client of application program, this method specifically includes following steps:
S201:After application program launching, the resource packet of application program is obtained.
In this step, after application program launching, the resource packet for obtaining the application program is needed, so as into line program Start operation, a kind of specific acquisition modes include:After the application program launching, local version information is verified, is meant that Version information in the operation catalogue of verification Application program;If the version information run in catalogue is sky, from resource folder (being decompressed in Asset catalogue files), obtains the resource packet;If the version information in the operation catalogue is not sky, Then directly acquire the resource packet stored under the operation catalogue.
The program is meant that client, which can determine to obtain by way of verifying local version information etc., applies journey The mode of the resource packet of sequence, if local version be sky, can from the resource folder (Asset catalogue files) of download into Row decompresses the resource for obtaining the application program to locally, if local version is not empty, means to exist in local file and be somebody's turn to do Resource packet, directly acquires.
S202:It verifies and whether there is new JS service packs under the catalogue of resource packet.
S203:If in the presence of, it is determined that the script file version in JS service packs and application program script text currently in use Whether part version is identical.
In above-mentioned steps, determines the resource packet got, i.e., whether have new JS service packs in resource file, if Have, then it needs to be determined that the script file version of the APP of the version and current application of script file in the JS service packs whether one It causes, if inconsistent, then needs the file solution in the JS service packs downloaded being depressed into local, i.e. application program Operation catalogue under.
S204:If the script file version in JS service packs is different from application program script file version currently in use, The script file in JS service packs is then loaded, application program is run.
S205:If the script file version in JS service packs is identical as application program script file version currently in use, The script file locally used is then loaded, application program is run.
In above-mentioned two step, it is meant that if script file version in JS service packs and the script locally used FileVersion is different, then it is known that currently used script file version is not newest version, and has downloaded The JS service packs of more recent version, therefore the JS service packs can be decompressed, and loading the script file operation after decompression should Application program.
If version is identical, it is loaded directly into local script file and runs the application program, while illustrates the JS patches Packet is not latest edition, therefore while loading application programs, can delete the JS service packs.
The program one kind in the specific implementation, it should be understood that either adding using the script file of JS service packs of decompression Carrying row application program, or application before script file loading application programs, can load simultaneously or before after Flow is downloaded into asynchronous service packs, downloads the new JS service packs of the application program.So as to the energy in program startup next time Enough use the script file of latest edition.This this programme is not limited.During specific implementation:Terminal device detects the application It whether there is the JS service packs of new version under the catalogue of the resource packet of program;If in the presence of being depressed into JS service packs solutions using journey Under the operation catalogue of sequence;Otherwise, the JS service packs of application program is downloaded from server.
The program in the specific implementation, in order to from server download JS service packs, need in application program launching When, it is asked to the server transmission interface, for asking access interface, which includes at least the version of application program Number, channel number, in the membership information of user, urban information at least one of.
The dynamic updating method of application program provided in this embodiment obtains application program after application program launching Resource packet verifies and whether there is new service packs under the catalogue of resource packet, and if it exists, then determines the script file in JS service packs Whether version and the script file version locally used are identical, if the script file version of JS service packs and the script locally used FileVersion is different, then loads the JS script files in fourth packet, runs application program.The program is in program loading procedure to JS Service packs carries out verification and determines using the script file of JS service packs or original script file operation application program, can not It relies on and issues new version to realize the mobilism of logic function and interface, can timely cover newest version, it is ensured that Enough stability and compatibility, is not influenced as possible by system version.
Fig. 3 is the schematic diagram of gray scale system provided in an embodiment of the present invention, as shown in figure 3, in above-mentioned two embodiment Technically, it is known that the dynamic updating method of application program provided by the invention is divided into two parts, and a part is dynamic code It issues, another part is the load of client service packs.
In issuing for version packet, corresponding service packs under the server of oneself can be directly used.Hair is improved in this way The efficiency of the new version of cloth, being similar to can be as the end Web, by the gray scale system of different version numbers and channel number realization System.The structure of gray scale system as shown in Figure 1, client when request interface, can the version number of oneself, channel number, VIP information, the contents such as urban information pass to server-side as parameter.Server-side uses specific gray scale plan according to these information Slightly, to generate corresponding configuration file.Such as:It is required that version number is more than 2.0, city is that Pekinese user carries out gray scale, in this way The configuration file of corresponding client is only made into corresponding configuration by server-side, this certain customers is guided to download gray scale packet to realize ash Degree obtains configuration file, is then packaged to obtain JS service packs and is issued.
What is issued due to this programme is JavaScaript service packs, not the class service packs of java.Inherently due to js Script, in this way load are just easier.Flow that need not be complicated as dynamic loading type.In addition it is packaged js service packs When unwanted compiling, the generation of such service packs is also easier, and entire publication is all easier to carry out.
Fig. 4 is the flow diagram of client provided in an embodiment of the present invention load, as shown in figure 4, should be in service packs In load, client uses asynchronous system, thinking as follows:Client enters for the first time, can be by way of verifying version information To determine whether needing to obtain corresponding resource packet from Asset, because it is asynchronous that JS patch packet networks, which issue, here must Must in Asset built-in portion so that the user for first switching on or clearing up data can have the resource packet used.Then it needs Whether have new service packs, if so, the version of verification JS service packs makes with local if verifying under the catalogue of the resource packet of download Whether newest JavaScaript versions are different in, different just using new resource packet, identical just to abandon and delete.Finally Formal load JavaScaript files, and the new resource bag data of Asynchronous Request simultaneously.
Service packs in Fig. 4 refers to JS service packs, and the working part in dotted line frame is the loading procedure of JS service packs, It is executed locally, is not interacted with server side, the lower half portion of dotted line frame is that the asynchronous of JS service packs was downloaded Journey can be downloaded at any time, detected the JS under the catalogue of the resource packet of the application program with the presence or absence of new version and mended Fourth packet;If in the presence of JS service packs solutions are depressed under the operation catalogue of application program;Otherwise, application program is downloaded from server JS service packs.
This programme need not issue new version again and be reinstalled again, can dynamically issue, for frequent updating Can be perfect compatible, and most of version can be covered in a short time, update is more timely.The ash realized by this programme Degree system can quickly realize version gray scale.This programme is relatively flexibly lighter, is advantageously integrated, and limited by android system It is smaller.Meanwhile Asynchronous loading scheme is to allow user's unaware compared to synchronous benefit, when operation, is handled in asynchronous thread, no Occupy the time of user.
Fig. 5 is the structural schematic diagram of the dynamic updating device embodiment of application program provided in an embodiment of the present invention, such as Fig. 5 Shown, the dynamic updating device 10 of application program provided in this embodiment includes:
Processing module 11, the interface requests for being sent according to the client of application program, uses preconfigured gray scale Strategy generates configuration file corresponding with the interface requests;
The processing module 11 is additionally operable to obtain JS service packs according to the configuration file, and the JS service packs includes update The application program script file;
Sending module 12, for the JS service packs to be sent to the client.
Optionally, the interface requests include at least the version number of the application program, channel number, member's letter of user At least one of in breath, urban information.
The dynamic updating device of application program provided in this embodiment, the application provided for realizing aforementioned any embodiment The technical solution of the server side of the dynamic updating method of program, implementing principle and technical effect are similar, and details are not described herein.
Fig. 6 is the structural schematic diagram of the dynamic updating device embodiment of application program provided in an embodiment of the present invention.Such as Fig. 6 Shown, the dynamic updating device 20 of the application program includes:
Acquisition module 21, for after application program launching, obtaining the resource packet of the application program;
Correction verification module 22 whether there is new JS service packs under the catalogue for verifying the resource packet;
Processing module 23, if in the presence of, it is determined that script file version in the JS service packs applies journey with described Whether sequence script file version currently in use is identical;
If the processing module 23 is additionally operable to script file version in the JS service packs with the application program The script file version used is different, then loads the script file in the JS service packs, run the application program.
The dynamic updating device of application program provided in this embodiment, the application provided for realizing aforementioned any embodiment The technical solution of the dynamic updating method client-side of program, implementing principle and technical effect are similar, and details are not described herein.
Optionally, the processing module 23 is additionally operable to:
If the script file version in the JS service packs and application program script file version phase currently in use Together, then the script file locally used is loaded, the application program is run.
Optionally, the processing module 23 is additionally operable to:
Delete the service packs.
Optionally, the acquisition module 21 is specifically used for:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource stored in the operation catalogue is directly acquired Packet.
Optionally, the processing module 23 is additionally operable to:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
Optionally, described device further includes:
Sending module, for being asked to the server transmission interface, the interface requests include at least described using journey At least one of the version number of sequence, channel number, in the membership information of user, urban information.
The dynamic updating device for the application program that any of the above-described embodiment provides provides for realizing aforementioned any embodiment Application program dynamic updating method client-side technical solution, implementing principle and technical effect are similar, herein no longer It repeats.
The embodiment of the present invention also provides a kind of server, including:Memory, processor and transmitter;The memory is used In storage computer program;The processor is used for:
According to the interface requests that the client of application program is sent, using preconfigured gray scale strategy, generate with it is described The corresponding configuration file of interface requests;
JS service packs is obtained according to the configuration file, the JS service packs includes the script of the newer application program File;
The transmitter is used to the service packs being sent to the client.
Optionally, the interface requests include at least the version number of the application program, channel number, member's letter of user At least one of in breath, urban information.
The embodiment of the present invention also provides a kind of terminal device, including:Memory, processor and receiver;The memory For storing computer program;
The processor is used for:
After application program launching, the resource packet of the application program is obtained;
It verifies and whether there is new JS service packs under the catalogue of the resource packet;
If in the presence of, it is determined that the script file version in the JS service packs and application program script currently in use Whether FileVersion is identical;
If script file version and application program script file version currently in use in the JS service packs are not Together, then the script file in the JS service packs is loaded, the application program is run.
Optionally, the processor is additionally operable to:
If the script file version in the JS service packs and application program script file version phase currently in use Together, then the script file locally used is loaded, the application program is run.
Optionally, the processor is additionally operable to:
Delete the service packs.
Optionally, the processor is specifically used for:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource stored in the operation catalogue is directly acquired Packet.
Optionally, the processor is additionally operable to:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
Optionally, the terminal device further includes:Transmitter, it is described to connect for being asked to the server transmission interface Mouthful request is including at least the version number of the application program, channel number, and at least one in the membership information of user, urban information ?.
The embodiment of the present invention also provides a kind of storage medium, including:Readable storage medium storing program for executing and computer program, the calculating Machine program is stored in the readable storage medium storing program for executing, the computer program for realizing above-mentioned server side application program Dynamic updating method.
The embodiment of the present invention also provides a kind of storage medium, including:Readable storage medium storing program for executing and computer program, the calculating Machine program is stored in the readable storage medium storing program for executing, and the computer program is for realizing above-mentioned terminal device, i.e. client-side The dynamic updating method of application program.
Terminal device carries out data interaction with server by communication interface, to execute the various embodiment party of above-mentioned various aspects The dynamic updating method for the application program that formula provides, optionally, memory can also be integrated in inside processor.
In above-mentioned terminal device or server in the specific implementation, it should be understood that processor can be central processing unit (English:Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English:Digital Signal Processor, referred to as:DSP), application-specific integrated circuit (English:Application Specific Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor It can also be any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hard Part processor executes completion, or in processor hardware and software module combination execute completion.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:Read-only memory (English Text:Read-only memory, abbreviation:ROM), RAM, flash memory, hard disk, solid state disk, tape (English:magnetic Tape), floppy disk (English:Floppy disk), CD (English:Optical disc) and its arbitrary combination.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (14)

1. a kind of dynamic updating method of application program, which is characterized in that including:
It is generated and the interface using preconfigured gray scale strategy according to the interface requests that the client of application program is sent Ask corresponding configuration file;
JS service packs is obtained according to the configuration file, the JS service packs includes the script text of the newer application program Part;
The JS service packs is sent to the client.
2. according to the method described in claim 1, it is characterized in that, the interface requests include at least the version of the application program At least one of this number, channel number, in the membership information of user, urban information.
3. a kind of dynamic updating method of application program, which is characterized in that including:
After application program launching, the resource packet of the application program is obtained;
It verifies and whether there is new JS service packs under the catalogue of the resource packet;
If in the presence of, it is determined that the script file version in the JS service packs and application program script file currently in use Whether version is identical;
If the script file version in the JS service packs is different from application program script file version currently in use, The script file in the JS service packs is loaded, the application program is run.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
If the script file version in the JS service packs is identical as application program script file version currently in use, The script file locally used is loaded, the application program is run.
5. according to the method described in claim 3, it is characterized in that, after the application program launching, the application program is obtained Resource packet, including:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource packet stored in the operation catalogue is directly acquired.
6. according to claim 3 to 5 any one of them method, which is characterized in that the method further includes:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
7. according to the method described in claim 6, it is characterized in that, the JS patches for downloading the application program from server Before packet, the method further includes:
It is asked to the server transmission interface, the interface requests include at least the version number of the application program, channel number, At least one of in the membership information of user, urban information.
8. a kind of dynamic updating device of application program, which is characterized in that including:
Processing module, the interface requests for being sent according to the client of application program are raw using preconfigured gray scale strategy At configuration file corresponding with the interface requests;
The processing module is additionally operable to obtain JS service packs according to the configuration file, and the JS service packs includes newer described The script file of application program;
Sending module, for the JS service packs to be sent to the client.
9. device according to claim 8, which is characterized in that the interface requests include at least the version of the application program At least one of this number, channel number, in the membership information of user, urban information.
10. a kind of dynamic updating device of application program, which is characterized in that including:
Acquisition module, for after application program launching, obtaining the resource packet of the application program;
Correction verification module whether there is new JS service packs under the catalogue for verifying the resource packet;
Processing module, if in the presence of, it is determined that script file version in the JS service packs with the application program Whether the script file version used is identical;
If the processing module is additionally operable to script file version in the JS service packs and the application program is currently in use Script file version is different, then loads the script file in the JS service packs, run the application program.
11. device according to claim 10, which is characterized in that the processing module is additionally operable to:
If the script file version in the JS service packs is identical as application program script file version currently in use, The script file locally used is loaded, the application program is run.
12. device according to claim 10, which is characterized in that the acquisition module is specifically used for:
After the application program launching, the version information in the operation catalogue of the application program is verified;
If version information is sky in the operation catalogue, the resource packet of the application program is obtained from resource folder;
If version information is not sky in the operation catalogue, the resource packet stored in the operation catalogue is directly acquired.
13. according to claim 10 to 12 any one of them device, which is characterized in that the processing module is additionally operable to:
Detect the JS service packs that whether there is new version under the catalogue of the resource packet;
If in the presence of the JS service packs solution is depressed under the operation catalogue of the application program;
Otherwise, the JS service packs of the application program is downloaded from server.
14. device according to claim 13, which is characterized in that described device further includes:
Sending module, for being asked to the server transmission interface, the interface requests include at least the application program At least one of version number, channel number, in the membership information of user, urban information.
CN201810504114.8A 2018-05-23 2018-05-23 The dynamic updating method and device of application program Pending CN108762800A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810504114.8A CN108762800A (en) 2018-05-23 2018-05-23 The dynamic updating method and device of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810504114.8A CN108762800A (en) 2018-05-23 2018-05-23 The dynamic updating method and device of application program

Publications (1)

Publication Number Publication Date
CN108762800A true CN108762800A (en) 2018-11-06

Family

ID=64005352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810504114.8A Pending CN108762800A (en) 2018-05-23 2018-05-23 The dynamic updating method and device of application program

Country Status (1)

Country Link
CN (1) CN108762800A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491689A (en) * 2018-11-20 2019-03-19 中国建设银行股份有限公司 Client process method, apparatus and system
CN109634682A (en) * 2018-11-29 2019-04-16 恒生电子股份有限公司 The configuration file update method and device of application program
CN109669715A (en) * 2018-12-24 2019-04-23 北京金山安全软件有限公司 application program dynamic updating method, device and storage medium
CN110308922A (en) * 2019-06-27 2019-10-08 百度在线网络技术(北京)有限公司 Data transmission method, device, equipment and storage medium
CN110888658A (en) * 2019-12-02 2020-03-17 广州市百果园信息技术有限公司 Dynamic method and device for functional module in application program and storage medium
CN112463198A (en) * 2020-12-09 2021-03-09 深圳智药科技有限公司 Updating method and system based on Electron
CN113542884A (en) * 2021-07-14 2021-10-22 视若飞信息科技(上海)有限公司 Method for synchronizing JS patch files between smart television browser and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173578A1 (en) * 2011-08-23 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method and apparatus for installing and updating software
CN106649083A (en) * 2016-09-05 2017-05-10 中国农业银行股份有限公司 Application grey scale release method and equipment and application visit method and equipment
CN107231490A (en) * 2017-07-19 2017-10-03 中国银行股份有限公司 Dynamic updates method, client and the server of IOS system applications
CN107391107A (en) * 2017-06-12 2017-11-24 北京明朝万达科技股份有限公司 The restorative procedure and device of a kind of application program
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173578A1 (en) * 2011-08-23 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method and apparatus for installing and updating software
CN106649083A (en) * 2016-09-05 2017-05-10 中国农业银行股份有限公司 Application grey scale release method and equipment and application visit method and equipment
CN107391107A (en) * 2017-06-12 2017-11-24 北京明朝万达科技股份有限公司 The restorative procedure and device of a kind of application program
CN107231490A (en) * 2017-07-19 2017-10-03 中国银行股份有限公司 Dynamic updates method, client and the server of IOS system applications
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491689A (en) * 2018-11-20 2019-03-19 中国建设银行股份有限公司 Client process method, apparatus and system
CN109634682A (en) * 2018-11-29 2019-04-16 恒生电子股份有限公司 The configuration file update method and device of application program
CN109669715A (en) * 2018-12-24 2019-04-23 北京金山安全软件有限公司 application program dynamic updating method, device and storage medium
CN110308922A (en) * 2019-06-27 2019-10-08 百度在线网络技术(北京)有限公司 Data transmission method, device, equipment and storage medium
CN110888658A (en) * 2019-12-02 2020-03-17 广州市百果园信息技术有限公司 Dynamic method and device for functional module in application program and storage medium
CN110888658B (en) * 2019-12-02 2023-04-21 广州市百果园信息技术有限公司 Method and device for dynamically changing function modules in application program and storage medium
CN112463198A (en) * 2020-12-09 2021-03-09 深圳智药科技有限公司 Updating method and system based on Electron
CN113542884A (en) * 2021-07-14 2021-10-22 视若飞信息科技(上海)有限公司 Method for synchronizing JS patch files between smart television browser and server

Similar Documents

Publication Publication Date Title
CN108762800A (en) The dynamic updating method and device of application program
CN103353844B (en) A kind of SDK upgrade method and system
US10282191B2 (en) Updating web resources
CN107391104B (en) Client and reactive native code update dependence management method, device and system
CN105511911B (en) The generation method and device of system firmware upgrade package
CN107168730B (en) Application program loading method, server and terminal
JP2015531502A (en) Generate native code from intermediate language code for applications
CN103530156A (en) Method and device for dynamically loading and calling program
CN109558160A (en) Upgrade method, embedded system
CN111427596B (en) Software upgrading method and device and terminal equipment
US20130227547A1 (en) Adaptable middleware layer
CN103365644A (en) Method and device for expanding software functions
CN106648563B (en) Dependency decoupling processing method and device for shared module in application program
CN106055375B (en) Application program installation method and device
CN104750528A (en) Management method and device for components in Android program
CN110377360A (en) Method, display terminal and the computer readable storage medium that webview is quickly loaded
RU2635891C2 (en) Installation mechanism and package format for parallelizable reliable installations
WO2015014570A1 (en) Running software application with dynamic action delegation
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN109857432A (en) A kind of hot update method and device of game application
CN107402792B (en) Integration method, device, equipment and storage medium of application software installation package
CN106354832B (en) Data publishing method, device and system
CN109213533A (en) A kind of advertisement SDK dynamic loading method, device and terminal
CN103761126A (en) Method and device for upgrading application program
CN112256351A (en) Implementation method of Feign component, micro-service calling method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication