CN107463405A - The update method and device of a kind of application program - Google Patents

The update method and device of a kind of application program Download PDF

Info

Publication number
CN107463405A
CN107463405A CN201710659574.3A CN201710659574A CN107463405A CN 107463405 A CN107463405 A CN 107463405A CN 201710659574 A CN201710659574 A CN 201710659574A CN 107463405 A CN107463405 A CN 107463405A
Authority
CN
China
Prior art keywords
application program
version numbers
configuration file
renewal
app
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.)
Granted
Application number
CN201710659574.3A
Other languages
Chinese (zh)
Other versions
CN107463405B (en
Inventor
许松
贾西贝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huaao Data Technology Co Ltd
Original Assignee
Shenzhen Huaao Data 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 Shenzhen Huaao Data Technology Co Ltd filed Critical Shenzhen Huaao Data Technology Co Ltd
Priority to CN201710659574.3A priority Critical patent/CN107463405B/en
Publication of CN107463405A publication Critical patent/CN107463405A/en
Application granted granted Critical
Publication of CN107463405B publication Critical patent/CN107463405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The present invention provides a kind of update method and device of application program, wherein, method includes, starting step, starts application program, obtains the essential information of application program, and the configuration file prestored is loaded from server;Judgment step, according to essential information and configuration file, judge whether to need to application program update;Step is updated, according to configuration file to application program update.The update method and device of application program provided by the invention, application program is updated using configuration file, alternative repeatedly substantial amounts of written in code, easy and efficiency high.

Description

The update method and device of a kind of application program
Technical field
The present invention relates to the update method and device of field of computer technology, more particularly to a kind of application program.
Background technology
React-Native is the framework that Facebook is released, and uses JS script development and application programs (Application, APP) is applied.Due to JS scripts can not calling mobile phone sensitive information, such as camera model.Therefore, if APP needs calling system parameter/function, still needs the primary page.That is, a APP exploitations are mixed developing mostly Environment, i.e., the primary page, RN (React-Native, RN) page, the H5 pages coexist.
At present, the APP exploitations under RN frameworks, to realize version updating (for example, heat updates, incremental update), it is necessary to compile Substantial amounts of fixed code is write to realize, that is to say, that developer needs to write a large amount of codes, development difficulty for renewal each time Greatly, efficiency is not high enough.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of update method of application program and device, using configuration file Application program is updated, alternative repeatedly substantial amounts of written in code, easy and efficiency high.
In order to solve the above technical problems, technical scheme provided by the invention is:
On the one hand, the present invention provides a kind of update method of application program, including,
Starting step, start application program, obtain the essential information of application program, and load and prestore from server Configuration file;
Judgment step, according to essential information and configuration file, judge whether to need to application program update;
Step is updated, according to configuration file to application program update.
Further, the essential information of application program includes, current APP version numbers, current RN version numbers.
Further, configuration file includes, the list of APP version numbers, the list of RN version numbers, increment list, APP version numbers with Mapping table between RN version numbers, update judgment rule, RN renewal file downloads path.
Further, judgment step is specifically, APP version numbers list in configuration file, the list of RN version numbers, and Judgment rule, and the current APP version numbers in essential information and current RN version numbers are updated, judges whether to need correspondingly Updated with program.
Further, update step specifically,
Increment list in configuration file, APP scripts are updated;
Mapping table between APP version numbers and RN version numbers and RN renewal file downloads road in configuration file Footpath, the RN pages are updated;Wherein,
The renewal of application program includes the renewal of APP scripts and the renewal of the RN pages.
On the other hand, present invention also offers a kind of updating device of application program, including,
Start unit, start application program, obtain the essential information of application program, and load and prestore from server Configuration file;
Judging unit, according to essential information and configuration file, judge whether to need to application program update;
Updating block, according to configuration file to application program update.
Further, the essential information of application program includes, current APP version numbers, current RN version numbers.
Further, configuration file includes, the list of APP version numbers, the list of RN version numbers, increment list, APP version numbers with Mapping table between RN version numbers, update judgment rule, RN renewal file downloads path.
Further, judging unit is specifically used for, the APP version numbers list in configuration file, the list of RN version numbers, With renewal judgment rule, and the current APP version numbers in essential information and current RN version numbers, judge whether needs pair Application program update.
Further, updating block is specifically used for,
Increment list in configuration file, APP scripts are updated;
Mapping table between APP version numbers and RN version numbers and RN renewal file downloads road in configuration file Footpath, the RN pages are updated;Wherein,
The renewal of application program includes the renewal of APP scripts and the renewal of the RN pages.
The update method and device of application program provided by the invention, application program is updated using configuration file, Alternative repeatedly substantial amounts of written in code, easy and efficiency high.
Brief description of the drawings
Fig. 1 is the flow chart of the update method of application program provided in an embodiment of the present invention;
Fig. 2 is the block diagram of the updating device of application program provided in an embodiment of the present invention.
Embodiment
The present invention is further illustrated below by specific embodiment, it should be understood, however, that, these embodiments are only It is used for specifically describing in more detail, and is not to be construed as limiting the present invention in any form.
Embodiment one
With reference to the update method of Fig. 1, the present embodiment application program provided, including,
Starting step S1, start application program, obtain the essential information of application program, and load from server and deposit in advance The configuration file of storage;
Judgment step S2, according to essential information and configuration file, judge whether to need to application program update;
Step S3 is updated, according to configuration file to application program update.
The update method of application program provided in an embodiment of the present invention, application program is updated using configuration file, Alternative repeatedly substantial amounts of written in code, easy and efficiency high.
Preferably, the essential information of application program includes, current APP version numbers, current RN version numbers.
It is further preferred that configuration file includes, and the list of APP version numbers, the list of RN version numbers, increment list, APP versions Mapping table number between RN version numbers, update judgment rule, RN renewal file downloads path.
Specifically, judgment step S2 is specifically, APP version numbers list in configuration file, the list of RN version numbers, and Judgment rule, and the current APP version numbers in essential information and current RN version numbers are updated, judges whether to need correspondingly Updated with program.More specifically, in the present embodiment, by current APP version numbers and current RN version numbers, and in configuration file The list of APP version numbers, the list of RN version numbers are compared, and according to judgment rule is updated, judge whether in the range of renewal, And what version will be updated to next time, then judge whether application program is updated, and should be updated to specific Which version.
In the present embodiment, application program is updated according to the version number of current application program, and is according to difference Version updating corresponding to version file, it is necessary to which explanation, the application program of each version is corresponding to have a version File.Specifically, for example, for following renewal judgment rule list:
[{“6.5.+”,”0.35.1”},{”6.6.5.3”,”0.36.1”}]
For the regular expression " 6.5.+ " inside renewal judgment rule list, represent that the version of current application program is fitted As long as the version (for example, 6.5.1.2,6.5.3.2,6.5.4.2 etc.) for the more redaction 6.5. beginnings being fitted on all is corresponding same One download package, and the version of the download package is 0.35.1, and if the more redaction that the version of current application program is fitted to It is accurate version 6.6.5.3, then the version of corresponding file download bag is 0.36.1.
It should be noted that in the present embodiment, 2 of the more than act as listed above of rule in judgment rule list are updated, And the length of list needs integration project demand to be prepared, the present embodiment is not especially limited.
More specifically, update step S3 specifically,
Increment list in configuration file, APP scripts are updated;
Mapping table between APP version numbers and RN version numbers and RN renewal file downloads road in configuration file Footpath, the RN pages are updated;Wherein,
The renewal of application program includes the renewal of APP scripts and the renewal of the RN pages.
It should be noted that heat renewal is exactly to enter the renewal of line code and resource, increment on the premise of not reinstalling Heat renewal, then it is only to need the code and resource supplying changing and increased newly to be downloaded to user, to realize application program more Newly, the code of incremental portion and resource are all smaller, so whole heat more new technological process can be completed in the case where user is noninductive.
In the present embodiment, when being updated to application program, by the way of heat updates, specifically, according to configuration text The code of the incremental portion pointed by increment list in part is updated to APP scripts, and the APP versions in configuration file Mapping table and RN renewal file downloads path number between RN version numbers, the picture resource involved by the RN pages is downloaded to RN renewal file downloads path, is updated to the RN pages.
Embodiment two
With reference to the updating device of Fig. 2, the present embodiment application program provided, including,
Start unit 1, start application program, obtain the essential information of application program, and load from server and deposit in advance The configuration file of storage;
Judging unit 2, according to essential information and configuration file, judge whether to need to application program update;
Updating block 3, according to configuration file to application program update.
The updating device of application program provided in an embodiment of the present invention, application program is updated using configuration file, Alternative repeatedly substantial amounts of written in code, easy and efficiency high.
Preferably, the essential information of application program includes, current APP version numbers, current RN version numbers.
It is further preferred that configuration file includes, and the list of APP version numbers, the list of RN version numbers, increment list, APP versions Mapping table number between RN version numbers, update judgment rule, RN renewal file downloads path.
Specifically, judging unit 2 is specifically used for, the APP version numbers list in configuration file, the list of RN version numbers, With renewal judgment rule, and the current APP version numbers in essential information and current RN version numbers, judge whether needs pair Application program update.More specifically, in the present embodiment, by current APP version numbers and current RN version numbers, and in configuration file The list of APP version numbers, the list of RN version numbers is compared, and according to renewal judgment rule, judges whether to be in more new range It is interior, and what version will be updated to next time, then judge whether application program is updated, and tool should be updated to Which version of body.
In the present embodiment, application program is updated according to the version number of current application program, and is according to difference Version updating corresponding to version file, it is necessary to which explanation, the application program of each version is corresponding to have a version File.Specifically, for example, for following renewal judgment rule list:
[{“6.5.+”,”0.35.1”},{”6.6.5.3”,”0.36.1”}]
For the regular expression " 6.5.+ " inside renewal judgment rule list, represent that the version of current application program is fitted As long as the version (for example, 6.5.1.2,6.5.3.2,6.5.4.2 etc.) for the more redaction 6.5. beginnings being fitted on all is corresponding same One download package, and the version of the download package is 0.35.1, and if the more redaction that the version of current application program is fitted to It is accurate version 6.6.5.3, then the version of corresponding file download bag is 0.36.1.
It should be noted that in the present embodiment, 2 of the more than act as listed above of rule in judgment rule list are updated, And the length of list needs integration project demand to be prepared, the present embodiment is not especially limited.
More specifically, updating block 3 is specifically used for,
Increment list in configuration file, APP scripts are updated;
Mapping table between APP version numbers and RN version numbers and RN renewal file downloads road in configuration file Footpath, the RN pages are updated;Wherein,
The renewal of application program includes the renewal of APP scripts and the renewal of the RN pages.
It should be noted that heat renewal is exactly to enter the renewal of line code and resource, increment on the premise of not reinstalling Heat renewal, then it is only to need the code and resource supplying changing and increased newly to be downloaded to user, to realize application program more Newly, the code of incremental portion and resource are all smaller, so whole heat more new technological process can be completed in the case where user is noninductive.
In the present embodiment, when being updated to application program, by the way of heat updates, specifically, according to configuration text The code of the incremental portion pointed by increment list in part is updated to APP scripts, and the APP versions in configuration file Mapping table and RN renewal file downloads path number between RN version numbers, the picture resource involved by the RN pages is downloaded to RN renewal file downloads path, is updated to the RN pages.
Although present invention has been a certain degree of description, it will be apparent that, do not departing from the spirit and scope of the present invention Under the conditions of, the appropriate change of each condition can be carried out.It is appreciated that the invention is not restricted to the embodiment, and it is attributed to right It is required that scope, it includes the equivalent substitution of each factor.

Claims (10)

  1. A kind of 1. update method of application program, it is characterised in that including,
    Starting step, start application program, obtain the essential information of the application program, and load and prestore from server Configuration file;
    Judgment step, according to the essential information and the configuration file, judge whether to need to the application program update;
    Step is updated, according to the configuration file to the application program update.
  2. 2. the update method of application program according to claim 1, it is characterised in that the application program it is described basic Information includes, current APP version numbers, current RN version numbers.
  3. 3. the update method of application program according to claim 2, it is characterised in that the configuration file includes, APP Version number's list, the list of RN version numbers, increment list, the mapping table between APP version numbers and RN version numbers, renewal judge rule Then, RN updates file download path.
  4. 4. the update method of application program according to claim 3, it is characterised in that
    The judgment step is specifically, APP version numbers list in the configuration file, the list of RN version numbers, and renewal Judgment rule, and the current APP version numbers in the essential information and current RN version numbers, judge whether to need to institute State application program update.
  5. 5. the update method of application program according to claim 3, it is characterised in that it is described renewal step specifically,
    According to the increment list in the configuration file, APP scripts are updated;
    Mapping table between APP version numbers and RN version numbers and RN renewal file downloads road in the configuration file Footpath, the RN pages are updated;Wherein,
    The renewal of application program includes the renewal of APP scripts and the renewal of the RN pages.
  6. A kind of 6. updating device of application program, it is characterised in that including,
    Start unit, start application program, obtain the essential information of the application program, and load and prestore from server Configuration file;
    Judging unit, according to the essential information and the configuration file, judge whether to need to the application program update;
    Updating block, according to the configuration file to application program update.
  7. 7. the updating device of application program according to claim 6, it is characterised in that the application program it is described basic Information includes, current APP version numbers, current RN version numbers.
  8. 8. the updating device of application program according to claim 7, it is characterised in that the configuration file includes, APP Version number's list, the list of RN version numbers, increment list, the mapping table between APP version numbers and RN version numbers, renewal judge rule Then, RN updates file download path.
  9. 9. the updating device of application program according to claim 8, it is characterised in that
    The judging unit is specifically used for, the APP version numbers list in the configuration file, the list of RN version numbers, and more New judgment rule, and the current APP version numbers in the essential information and current RN version numbers, judge whether needs pair The application program update.
  10. 10. the updating device of application program according to claim 8, it is characterised in that the updating block is specifically used for,
    According to the increment list in the configuration file, APP scripts are updated;
    Mapping table between APP version numbers and RN version numbers and RN renewal file downloads road in the configuration file Footpath, the RN pages are updated;Wherein,
    The renewal of application program includes the renewal of APP scripts and the renewal of the RN pages.
CN201710659574.3A 2017-08-04 2017-08-04 Application program updating method and device Active CN107463405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710659574.3A CN107463405B (en) 2017-08-04 2017-08-04 Application program updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710659574.3A CN107463405B (en) 2017-08-04 2017-08-04 Application program updating method and device

Publications (2)

Publication Number Publication Date
CN107463405A true CN107463405A (en) 2017-12-12
CN107463405B CN107463405B (en) 2020-07-17

Family

ID=60548173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710659574.3A Active CN107463405B (en) 2017-08-04 2017-08-04 Application program updating method and device

Country Status (1)

Country Link
CN (1) CN107463405B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572832A (en) * 2018-03-28 2018-09-25 福建天晴数码有限公司 The newer method of application version dynamic and its system
CN108776592A (en) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 A kind of method, apparatus of page makeup, equipment and storage medium
CN108804132A (en) * 2018-06-06 2018-11-13 中国平安人寿保险股份有限公司 A kind of hot method for refreshing, device, electronic equipment and the storage medium of configuration information
CN109491695A (en) * 2018-10-19 2019-03-19 华南理工大学 A kind of increment updating method of integrated Android application
CN111679842A (en) * 2019-03-11 2020-09-18 阿里巴巴集团控股有限公司 Application program hot update processing method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836843A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Client application program updating method and device
CN105930185A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Application updating method and apparatus, terminal and server
CN106547569A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of page access method and apparatus in application
CN106789249A (en) * 2016-12-22 2017-05-31 北京五八信息技术有限公司 Hot update method, client and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836843A (en) * 2015-03-31 2015-08-12 北京奇虎科技有限公司 Client application program updating method and device
CN105930185A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 Application updating method and apparatus, terminal and server
CN106547569A (en) * 2016-11-28 2017-03-29 武汉斗鱼网络科技有限公司 A kind of page access method and apparatus in application
CN106789249A (en) * 2016-12-22 2017-05-31 北京五八信息技术有限公司 Hot update method, client and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572832A (en) * 2018-03-28 2018-09-25 福建天晴数码有限公司 The newer method of application version dynamic and its system
CN108572832B (en) * 2018-03-28 2021-07-06 福建天晴数码有限公司 Method and system for dynamically updating application version
CN108776592A (en) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 A kind of method, apparatus of page makeup, equipment and storage medium
CN108776592B (en) * 2018-05-23 2022-04-05 北京五八信息技术有限公司 Page construction method, device, equipment and storage medium
CN108804132A (en) * 2018-06-06 2018-11-13 中国平安人寿保险股份有限公司 A kind of hot method for refreshing, device, electronic equipment and the storage medium of configuration information
CN109491695A (en) * 2018-10-19 2019-03-19 华南理工大学 A kind of increment updating method of integrated Android application
CN109491695B (en) * 2018-10-19 2021-08-06 华南理工大学 Incremental updating method for integrated android application
CN111679842A (en) * 2019-03-11 2020-09-18 阿里巴巴集团控股有限公司 Application program hot update processing method, device and system
CN111679842B (en) * 2019-03-11 2023-06-23 阿里巴巴集团控股有限公司 Application program hot update processing method, device and system

Also Published As

Publication number Publication date
CN107463405B (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN107463405A (en) The update method and device of a kind of application program
CN102622241B (en) A kind of method for upgrading software and device
CN106775723B (en) Android platform-based system firmware customization method and Android device
CN105159788B (en) Method and system for dynamically sharing resources between Android applications
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN106502725A (en) The upgrade method of application program, equipment and electronic equipment
US20120173962A1 (en) Online application providing apparatus
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
CN103544005A (en) Expansion developing method and device for Android custom control
CN105487905A (en) Updating method and device of hybrid application
CN105718313A (en) Application operation method and device
CN103365644A (en) Method and device for expanding software functions
CN106055330A (en) Management method and system of application program
CN106020877A (en) Automatic update method and apparatus for system environment configuration
CN103761107B (en) Software package customizing device and method
CN105740033A (en) Terminal equipment, plug-in loading and running device and plug-in loading and running method
CN105577813A (en) Update method and system for web hybrid application
CN104267981A (en) Method and device for loading application layout on desktop
CN110321669A (en) Method, apparatus, equipment and the storage medium that application program is signed again
CN112286504A (en) Method for realizing development and loading of small program based on Reactnative in mobile APP
CN108776592A (en) A kind of method, apparatus of page makeup, equipment and storage medium
CN109857432A (en) A kind of hot update method and device of game application
CN104484201A (en) Method and device for updating software tool development package of IOS (Internetwork Operating System) equipment
CN112181432A (en) System for realizing bundle modular packaging processing in ReactNative framework
CN109213536A (en) Resource exhibition method, resource show configuration method, device and the equipment of class control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 518000 2203/2204, Building 1, Huide Building, Beizhan Community, Minzhi Street, Longhua District, Shenzhen, Guangdong

Patentee after: SHENZHEN AUDAQUE DATA TECHNOLOGY Ltd.

Address before: 518000 units J and K, 12 / F, block B, building 7, Baoneng Science Park, Qinghu Industrial Zone, Qingxiang Road, Longhua New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN AUDAQUE DATA TECHNOLOGY Ltd.

CP02 Change in the address of a patent holder