WO2020199543A1 - 适用于混合模式应用的发布升级的方法及装置、智能设备 - Google Patents

适用于混合模式应用的发布升级的方法及装置、智能设备 Download PDF

Info

Publication number
WO2020199543A1
WO2020199543A1 PCT/CN2019/109119 CN2019109119W WO2020199543A1 WO 2020199543 A1 WO2020199543 A1 WO 2020199543A1 CN 2019109119 W CN2019109119 W CN 2019109119W WO 2020199543 A1 WO2020199543 A1 WO 2020199543A1
Authority
WO
WIPO (PCT)
Prior art keywords
web
version
data
shell
web application
Prior art date
Application number
PCT/CN2019/109119
Other languages
English (en)
French (fr)
Inventor
王桂斌
Original Assignee
苏宁云计算有限公司
苏宁易购集团股份有限公司
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 苏宁云计算有限公司, 苏宁易购集团股份有限公司 filed Critical 苏宁云计算有限公司
Priority to CA3176456A priority Critical patent/CA3176456A1/en
Publication of WO2020199543A1 publication Critical patent/WO2020199543A1/zh

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the present invention relates to the technical field of mobile applications, and in particular to a method, a device, and an intelligent device suitable for publishing and upgrading mixed mode applications.
  • Hybrid App refers to an app between web-app and native-app.
  • Hybrid App uses both programming language and web page language to develop and produce.
  • Programming language (Native) is the client The cornerstone of the application, during application development, the corresponding development language should be selected according to the operating system carried by the terminal.
  • the Android operating system needs to be developed in Java language
  • the iOS operating system needs to be developed in Objective-C language
  • the programming language is used to develop and compile client applications. It needs to be installed on the terminal to run, and the server application developed and compiled by the web language (Html) is deployed on the server application.
  • Html web language
  • the mixed-mode mobile application (client application for short) has the function of a browser, it can be accessed by loading the web application through native web controls, and it also supports the call of native functions, such as network requests, data storage, location positioning, and taking pictures.
  • Native Web controls use operating system APIs to create a rendering engine for embedded web pages.
  • the main function is to define the interface between the program and the web page, allow web pages to call the program, provide web-based application APIs, and embed the Web into the program ; This is like the client application is a shell, and the web application is the content in the shell.
  • the client application is called the web shell
  • the content loaded by the web shell is the web application, such as the Suning sub-module in the Suning Financial APP
  • the Suning sub-module is a separate web application
  • the Suning Financial APP is a web shell.
  • the composition of the mixed-mode mobile application determines that the maintenance of the application needs to be divided into two parts: the web shell and the web application. There is a strong dependency between the two. In terms of updating and upgrading, the web Shells and web applications need to be released independently. In terms of strong dependencies, web shells and web applications need to maintain version consistency. Based on this, the release and upgrade methods of existing mixed-mode applications are as follows:
  • Web shell has priority over web application publishing.
  • Web shell is for downward compatible development of the program, that is, the web shell can support the currently adapted web application version and below, and the web shell will be released after a period of time after the web shell upgrade covers the agreed period. application;
  • the purpose of the present invention is to provide a method and device suitable for the publishing and upgrading of mixed-mode applications, as well as intelligent equipment, so as to solve the problem of ensuring the dependency relationship between the Web shell and the Web application when the hybrid-mode mobile application is published and updated in the prior art. It is necessary to agree on successive release dates to ensure version consistency, but there are problems of time and workload consumption or unfriendly user experience.
  • one aspect of the present invention provides a release and upgrade method suitable for mixed mode applications, including:
  • the latest web shell update data and/or web application update data exists in the version management system, the latest web shell update data and/or web application update data is correspondingly pushed and updated.
  • the web shell data includes one or more of an application system platform, a web shell version number, and a web shell download link
  • the web application data includes a web application function number, a web application version number, and web application access One or more of the link and compatible Web shell version numbers.
  • the method for retrieving the Web application data corresponding to the version number from the version management system to be associated and matched with the newly submitted Web shell data, and generating Web shell update data includes:
  • the method for retrieving the Web shell data corresponding to the version number from the version management system to be associated and matched with the newly submitted Web application data, and generating Web application update data includes:
  • a web shell data adapted to it is selected according to the web application version number, and the web shell update data and embedded web application data are updated.
  • the method of self-checking the current Web shell version and the embedded Web application version when the mixed mode application is started, and simultaneously accessing the version management system to request interaction includes:
  • the method of correspondingly pushing and updating the latest Web shell update data and/or Web application update data includes:
  • the matching web application update data is automatically embedded when the currently running Web shell networking version management system is used.
  • the release and upgrade method suitable for mixed mode applications provided by the present invention has the following beneficial effects:
  • the R&D personnel when the R&D personnel completes the version update of the Web shell data and/or Web application data, they can be immediately submitted to the version management system for storage for release, which is compared with the existing In the technology, there is a strong dependency restriction in the release and upgrade process of Web shell data and Web application data.
  • each time the terminal mixed mode application is started Will start the self-check program to detect the current Web shell version and embedded Web application version of the terminal, and compare it with the version management system according to the detected version number.
  • the version management system will push the web shell update prompt to the user terminal, and download the update from the version management system through the web shell download link after the user selects the update method.
  • the comparison result is that the latest web application update data exists
  • the currently running web shell network version management system it automatically embeds the matching web application update data into the web shell.
  • the terminal is indicated
  • the currently running web shell version and embedded web application version are the latest versions and do not need to be updated.
  • Another aspect of the present invention provides a release and upgrade device suitable for mixed mode applications, which is applied to the release and upgrade method suitable for mixed mode applications described in the above technical solution, and the device includes:
  • the pre-release unit is used to submit the web shell data and/or web application data to the version management system for release;
  • the version matching unit is used to retrieve the web application data corresponding to the version number from the version management system and correlate and match the newly submitted web shell data, and generate the web shell update data; and/or, retrieve the corresponding version number from the version management system
  • the web shell data of the web shell is associated and matched with the newly submitted web application data, and the web application update data is generated;
  • the detection unit is used to self-check the current Web shell version and the embedded Web application version when the mixed mode application is started, and at the same time access the version management system to request interaction;
  • the version update unit is used to push and update the latest web shell update data and/or web application update data when the latest web shell update data and/or web application update data exists in the version management system.
  • the detection unit includes:
  • the version number detection module is used to automatically obtain the currently running Web shell version number and the embedded Web application version number when the mixed mode application is started;
  • the interactive module is used to automatically obtain the currently running Web shell version number and the embedded Web application version number when the mixed mode application is started;
  • the judgment module is used to judge whether the currently running web shell version number is consistent with the extracted latest web shell version number, and whether the currently embedded web application version number is consistent with the extracted latest web application version number, and when the judgment result is no Perform the next step, otherwise there is no need to update the current version of the mixed mode application.
  • the version update unit includes:
  • the web shell update module is used to push the web shell update prompt to the user terminal when the latest web shell update data exists in the version management system;
  • the web application update module is used to automatically embed the matching web application update data when the current web shell networking version management system is used when the latest web application update data exists in the version management system.
  • the beneficial effects of the release and upgrade device suitable for mixed mode applications provided by the present invention are the same as the beneficial effects of the release and upgrade method suitable for mixed mode applications provided by the above technical solutions, and will not be repeated here.
  • a third aspect of the present invention provides a smart device, including the release and upgrade device suitable for mixed mode applications described in the above technical solution.
  • the beneficial effects of the smart device provided by the present invention are the same as the beneficial effects of the release and upgrade device suitable for hybrid mode applications provided by the above technical solutions, and will not be repeated here.
  • FIG. 1 is a schematic flowchart of a publishing and upgrading method suitable for a mixed mode application in Embodiment 1 of the present invention
  • FIG. 2 is a schematic diagram of a specific implementation of a publishing and upgrading method suitable for a mixed mode application in Embodiment 1 of the present invention
  • Fig. 3 is a structural block diagram of a publishing and upgrading device suitable for hybrid mode applications in the second embodiment of the present invention.
  • this embodiment provides a publishing and upgrading method suitable for mixed-mode applications, including:
  • the self-check program will be launched to detect the current Web shell version and embedded Web application version of the terminal, and compare it with the version management system according to the detected version number.
  • the comparison result is that the latest Web shell update exists
  • the version management system will push the web shell update prompt to the user terminal, and after the user selects the update method, download the update from the version management system through the web shell download link.
  • the comparison result is that the latest web application update data exists
  • the matching Web application update data is automatically embedded into the Web Shell.
  • the web shell data consists of necessary and non-essential fields.
  • the necessary fields of the web shell data include the application system platform, the version number of the web shell and the download link of the web shell, and the optional field upgrade method of the web shell data And version upgrade description; similarly, web application data is also composed of necessary and non-essential fields.
  • the necessary fields of web application data include web application function number, web application version number, web application access link and compatible web shell version number, Web
  • the non-essential fields of the application data include a version upgrade description, where the compatible web shell version number refers to a record field of the web shell version number to which the web application data can be adapted.
  • the web shell data structure in the version management system is as follows:
  • Upgrade 1 means automatic upgrade
  • Upgrade 0 means manual upgrade.
  • the user terminal receives a version update prompt, the user can receive a selection of the upgrade method, giving users a flexible upgrade experience.
  • the web application data structure in the version management system is as follows:
  • ModuleID Version LoadUrl AppVersion Describe 1 1.1.1_web http://... 1.1.1 Information description 1 1.1.0_web http://... 1.1.0 Information description
  • the method of retrieving the Web application data corresponding to the version number from the version management system to be associated and matched with the newly submitted Web shell data, and generating Web shell update data includes:
  • the method of retrieving the Web shell data corresponding to the version number from the version management system and matching the newly submitted Web application data, and generating Web application update data includes:
  • a web shell data adapted to it is selected according to the web application version number, and the web shell update data and embedded web application data are updated.
  • the Web shell update data and embedded Web application data obtained by matching are as follows:
  • the version management system completes the version matching of the web shell data and web application data, and obtains the associated web shell update data and embedded web application data after the matching, so that the data is provided in the form of an API interface Complete the upgrade process for hybrid mode applications.
  • the method of self-checking the current Web shell version and the embedded Web application version when the mixed mode application is started, and simultaneously accessing the version management system to request interaction includes:
  • the corresponding method of pushing and updating the latest web shell update data and/or web application update data includes:
  • the version management system When the version management system has the latest web shell update data, push the Web shell update prompt to the user terminal; when the version management system has the latest web application update data, it is automatically embedded when the currently running Web shell network version management system is used The matching web application updates the data.
  • the web shell update data and web application access link are obtained from the version management system.
  • the web shell update prompt and the compatible version of the web application are embedded, and then updated according to the web shell
  • the user is prompted to manually select the update method of the web shell, download and install the update of the web shell, and/or, when the web shell does not need to be updated but the web application needs to be updated, the adapted version of the web can be directly obtained according to the web application access chain
  • the application data is embedded in the Web shell and displayed to the user. The whole process is a non-sense operation to the user. Refer to Figure 2 for the specific implementation process.
  • this embodiment provides a publishing and upgrading device suitable for hybrid mode applications, including:
  • the pre-release unit 1 is used to submit the web shell data and/or web application data to the version management system for release;
  • the version matching unit 2 is used to retrieve the web application data corresponding to the version number from the version management system and correlate and match the newly submitted web shell data, and generate web shell update data; and/or, retrieve the corresponding version from the version management system
  • the web shell data of the number is associated and matched with the newly submitted web application data, and the web application update data is generated;
  • the detection unit 3 is used to self-check the current Web shell version and the embedded Web application version when the mixed mode application is started, and at the same time access the version management system to request interaction;
  • the version update unit 4 is used for pushing and updating the latest web shell update data and/or web application update data when the latest web shell update data and/or web application update data exists in the version management system.
  • the detection unit 3 includes:
  • the version number detection module is used to automatically obtain the currently running Web shell version number and the embedded Web application version number when the mixed mode application is started;
  • the interactive module is used to automatically obtain the currently running Web shell version number and the embedded Web application version number when the mixed mode application is started;
  • the judgment module is used to judge whether the currently running web shell version number is consistent with the extracted latest web shell version number, and whether the currently embedded web application version number is consistent with the extracted latest web application version number, and when the judgment result is no Perform the next step, otherwise there is no need to update the current version of the mixed mode application.
  • the version update unit 4 includes:
  • the web shell update module is used to push the web shell update prompt to the user terminal when the latest web shell update data exists in the version management system;
  • the web application update module is used to automatically embed the matching web application update data when the current web shell networking version management system is used when the latest web application update data exists in the version management system.
  • the beneficial effects of the release and upgrade device suitable for mixed mode applications provided by the embodiment of the present invention are the same as the beneficial effects of the release and upgrade method suitable for mixed mode applications provided in the first embodiment, which will not be described here. Repeat.
  • This embodiment provides a smart device, which includes the publishing and upgrading apparatus suitable for hybrid mode applications described in the foregoing embodiment.
  • the beneficial effects of the smart device provided in the embodiment of the present invention are the same as the beneficial effects of the release and upgrade apparatus suitable for hybrid mode applications provided in the first embodiment, and will not be repeated here.
  • the above-mentioned inventive method can be implemented by a program instructing relevant hardware.
  • the above-mentioned program can be stored in a computer-readable storage medium.
  • the storage medium may be: ROM/RAM, magnetic disk, optical disk, memory card, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开一种适用于混合模式应用的发布升级的方法及装置、智能设备,涉及移动应用技术领域,以解决现有技术中混合模式移动应用在发布更新时,为保障Web壳和Web应用的依赖关系,需要约定先后发布期以保障版本一致性,而存在时间和工作量上的耗费或用户体验不友好的问题。该方法包括:将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据;混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互更新。

Description

适用于混合模式应用的发布升级的方法及装置、智能设备 技术领域
本发明涉及移动应用技术领域,尤其涉及一种适用于混合模式应用的发布升级的方法及装置、智能设备。
背景技术
混合模式移动应用(Hybrid App),是指介于web-app、native-app这两者之间的app,Hybrid App同时使用了程序语言与网页语言共同开发制作,程序语言(Native)是客户端应用的基石,在应用开发时需根据终端搭载的操作系统选择对应的开发语言,比如Android操作系统需使用java语言开发,iOS操作系统需使用Objective-C语言开发,程序语言开发编译的客户端应用需要安装到终端上运行,网页语言(Html)开发编译的服务端应用部署在服务端中应用,无需区分终端的操作系统,具备跨平台的特性,因此混合模式移动应用兼具“Native App良好用户交互体验的优势”和“Web App跨平台开发的优势”。
由于混合模式移动应用(简称客户端应用)具备浏览器的功能,因此能够通过原生的Web控件加载Web应用实现访问,同时还支持原生功能的调用,比如网络请求、数据存储、位置定位、拍照等,原生Web控件使用操作系统的API来创建嵌入式网页页面的渲染引擎,主要功能是定义程序与网页之间的接口,允许网页调用程序,提供基于web的应用程序API,将Web嵌入到程序中;这就像客户端应用是壳,Web应用是壳里的内容,因此,可以约定称客户端应用为Web壳,Web壳加载的内容是Web应用,比如:苏宁金融APP中的苏宁分模块,其中苏宁分模块是个单独的Web应用,苏宁金融APP就是Web壳。
区别于原生应用只需要维护自身即可,混合模式移动应用的构成决定了应用程序的维护需分为两个部分进行:即Web壳和Web应用,两者存在强依 赖关系,更新升级方面,Web壳和Web应用需要独立进行发布操作,强依赖关系方面,Web壳和Web应用需要保持版本一致性,基于此,现有混合模式应用的发布升级方法如下:
1、Web壳优先于Web应用发布,Web壳做程序上的向下兼容开发,即保持Web壳能支持当前适配的Web应用版本及以下版本,待Web壳升级覆盖约定一段时间周期后发布Web应用;
2、Web壳和Web应用大致同期发布,但要求Web壳提示强制更新升级;
对于方式1,存在约定等待期,Web壳和Web应用的发布间隔需要有一定的提前约定量,同时Web壳需要保证约定期内的向下兼容性,虽然用户体验可以保障,但在开发层面来讲会存在时间和工作量上的耗费;对于方式2,Web应用业务线多的情况下,为满足版本一致性,每次Web应用升级均要求强制升级Web壳,造成Web壳频繁强制升级的状况,用户体验非常不好。
发明内容
本发明的目的在于提供一种适用于混合模式应用的发布升级的方法及装置、智能设备,以解决现有技术中混合模式移动应用在发布更新时,为保障Web壳和Web应用的依赖关系,需要约定先后发布期以保障版本一致性,而存在时间和工作量上的耗费或用户体验不友好的问题。
为了实现上述目的,本发明的一方面提供一种适用于混合模式应用的发布升级方法,包括:
将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;
从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据;
混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互;
当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新。
示例性地,所述Web壳数据包括应用系统平台、Web壳版本号、Web壳下载链接中的一种或多种,所述Web应用数据包括Web应用功能编号、Web应用版本号、Web应用访问链接、兼容Web壳版本号中的一种或多种。
优选地,所述从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据的方法包括:
向版本管理系统新提交Web壳数据时,根据Web壳版本号选择一个与之适配的Web应用数据,生成Web壳更新数据和嵌入的Web应用数据。
优选地,所述从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据的方法包括:
向版本管理系统新提交Web应用数据时,根据Web应用版本号选择一个与之适配的Web壳数据,更新Web壳更新数据和嵌入的Web应用数据。
较佳地,所述混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互的方法包括:
当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
请求访问版本管理系统,从最新的待发布Web壳更新数据和嵌入的Web应用数据中提取最新Web壳版本号和最新Web应用版本号;
判断当前运行的Web壳版本号是否与提取的最新Web壳版本号一致,以及当前嵌入的Web应用版本号是否与提取的最新Web应用版本号一致,并在判断结果为否时执行下一步骤,否则无需更新当前版本的混合模式应用。
进一步地,所述当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新的方法包括:
当版本管理系统存在最新的Web壳更新数据时,向用户终端推送Web壳更新提示;
当版本管理系统存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动嵌入匹配的Web应用更新数据。
与现有技术相比,本发明提供的适用于混合模式应用的发布升级方法具有以下有益效果:
本发明提供的适用于混合模式应用的发布升级方法中,当研发人员完成Web壳数据和/或Web应用数据的版本更新时,可即刻提交至版本管理系统存储以待发布,相比较于现有技术中Web壳数据和Web应用数据发布升级过程中存在的强依赖关系限制,使用本发明提供的方法在新版本研发完成后无需设定等待发布期限,大幅降低了研发人员的工作时间和工作量;另外,在提交新的Web壳数据时需匹配对应版本号的Web应用数据,以对应生成适配的Web壳更新数据,和/或,在提交新的Web应用数据时需匹配对应版本号的Web壳数据,以对应生成适配的Web应用更新数据,同时将Web壳更新数据和Web应用更新数据挂在版本管理系统中以供终端下载更新,之后,当终端混合模式应用每次被启动时,均会启动自检程序以检测终端当前的Web壳版本和嵌入的Web应用版本,并根据检测出的版本号与版本管理系统交互比对,当比对结果为存在最新的Web壳更新数据时,版本管理系统会向用户终端推送Web壳更新提示,并在用户选择更新方式后通过Web壳下载链接从版本管理系统中下载更新,当比对结果为存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动向Web壳嵌入匹配的Web应用更新数据,当比对结果中既不存在最新的Web壳更新数据也不存在最新的Web应用更新数据时,说明终端当前运行的Web壳版本和嵌入的Web应用版本属于最新版本,无需更新。
可见,使用本发明提供的方案能够达到如下效果:
1、能够降低混合模式应用在发布升级时Web壳更新和Web应用更新的耦合度,实现了两部分的独立发布,发布可不分先后顺序,也无需相互等待,提高了发布的效率;
2、实现了对混合模式应用中Web壳和Web应用间版本匹配的高效管理, 降低了Web壳在现有技术中需承担兼容适配版本的作用,实现了Web壳的轻量化,减轻了应用开发在版本维护上的负担;
3、实现只在Web壳需要更新时进行下载安装操作,Web应用升级时不会引起Web壳的强制升级,且Web应用升级过程对用户来说是无感的,保证了用户的使用体验。
本发明的另一方面提供一种适用于混合模式应用的发布升级装置,应用于上述技术方案所述的适用于混合模式应用的发布升级方法中,所述装置包括:
预发布单元,用于将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;
版本匹配单元,用于从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据;
检测单元,用于在混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互;
版本更新单元,用于当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新。
优选地,所述检测单元包括:
版本号检测模块,用于当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
交互模块,用于当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
判断模块,用于判断当前运行的Web壳版本号是否与提取的最新Web壳版本号一致,以及当前嵌入的Web应用版本号是否与提取的最新Web应用版本号一致,并在判断结果为否时执行下一步骤,否则无需更新当前版本的混 合模式应用。
优选地,所述版本更新单元包括:
Web壳更新模块,用于当版本管理系统存在最新的Web壳更新数据时,向用户终端推送Web壳更新提示;
Web应用更新模块,用于当版本管理系统存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动嵌入匹配的Web应用更新数据。
与现有技术相比,本发明提供的适用于混合模式应用的发布升级装置的有益效果与上述技术方案提供的适用于混合模式应用的发布升级方法的有益效果相同,在此不做赘述。
本发明的第三方面提供一种智能设备,包括上述技术方案所述的适用于混合模式应用的发布升级装置。
与现有技术相比,本发明提供的智能设备的有益效果与上述技术方案提供的适用于混合模式应用的发布升级装置的有益效果相同,在此不做赘述。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1为本发明实施例一中适用于混合模式应用的发布升级方法的流程示意图;
图2为本发明实施例一中适用于混合模式应用的发布升级方法具体实施示意图;
图3为本发明实施例二中适用于混合模式应用的发布升级装置的结构框图。
附图标记:
1-预发布单元,    2-版本匹配单元;
3-检测单元,     4-版本更新单元。
具体实施方式
为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。
实施例一
请参阅图1,本实施例提供一种适用于混合模式应用的发布升级方法,包括:
将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据;混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互;当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新。
本实施例提供的适用于混合模式应用的发布升级方法中,当研发人员完成Web壳数据和/或Web应用数据的版本更新时,可即刻提交至版本管理系统存储以待发布,相比较于现有技术中Web壳数据和Web应用数据发布升级过程中存在的强依赖关系限制,使用本实施例提供的方法在新版本研发完成后无需设定等待发布期限,大幅降低了研发人员的工作时间和工作量;另外,在提交新的Web壳数据时需匹配对应版本号的Web应用数据,以对应生成适配的Web壳更新数据,和/或,在提交新的Web应用数据时需匹配对应版本号的Web壳数据,以对应生成适配的Web应用更新数据,同时将Web壳更 新数据和Web应用更新数据挂在版本管理系统中以供终端下载更新,之后,当终端混合模式应用每次被启动时,均会启动自检程序以检测终端当前的Web壳版本和嵌入的Web应用版本,并根据检测出的版本号与版本管理系统交互比对,当比对结果为存在最新的Web壳更新数据时,版本管理系统会向用户终端推送Web壳更新提示,并在用户选择更新方式后通过Web壳下载链接从版本管理系统中下载更新,当比对结果为存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动向Web壳嵌入匹配的Web应用更新数据,当比对结果中既不存在最新的Web壳更新数据也不存在最新的Web应用更新数据时,说明终端当前运行的Web壳版本和嵌入的Web应用版本属于最新版本,无需更新。
可见,使用本实施例提供的方案能够达到如下效果:
1、能够降低混合模式应用在发布升级时Web壳更新和Web应用更新的耦合度,实现了两部分的独立发布,发布可不分先后顺序,也无需相互等待,提高了发布的效率;
2、实现了对混合模式应用中Web壳和Web应用间版本匹配的高效管理,降低了Web壳在现有技术中需承担兼容适配版本的作用,实现了Web壳的轻量化,减轻了应用开发在版本维护上的负担;
3、实现只在Web壳需要更新时进行下载安装操作,Web应用升级时不会引起Web壳的强制升级,且Web应用升级过程对用户来说是无感的,保证了用户的使用体验。
需要说明的是,Web壳数据由必要字段和非必要字段组成,其中,Web壳数据的必要字段包括应用系统平台、Web壳版本号和Web壳下载链接,Web壳数据的非必要字段升级方式选择和版本升级描述;同样的,Web应用数据也由必要字段和非必要字段组成,Web应用数据的必要字段包括Web应用功能编号、Web应用版本号、Web应用访问链接和兼容Web壳版本号,Web应用数据的非必要字段包括版本升级描述,其中兼容Web壳版本号是指该Web应用数据能够适配的Web壳版本号的记录字段。
示例性地,版本管理系统中的Web壳数据结构如下:
Platform AppVersion DowmloadUrl Upgrade Describe
Android 1.1.1 http://... 1 信息描述
Android 1.1.0 http://... 0 信息描述
表中,Upgrade 1表示自动升级,Upgrade 0表示手动升级,当用户终端收到版本更新提示后可收到选择升级方式,给予了用户灵活的升级体验。
版本管理系统中的Web应用数据结构如下:
ModuleID Version LoadUrl AppVersion Describe
1 1.1.1_web http://... 1.1.1 信息描述
1 1.1.0_web http://... 1.1.0 信息描述
具体地,上述实施例中从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据的方法包括:
向版本管理系统新提交Web壳数据时,根据Web壳版本号选择一个与之适配的Web应用数据,生成Web壳更新数据和嵌入的Web应用数据。
从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据的方法包括:
向版本管理系统新提交Web应用数据时,根据Web应用版本号选择一个与之适配的Web壳数据,更新Web壳更新数据和嵌入的Web应用数据。
示例性地,基于上述Web壳数据和Web应用数据,匹配得到的Web壳更新数据和嵌入的Web应用数据如下表:
Platform AppVersion DowmloadUrl Upgrade Describe ModuleID Version LoadUrl Describe
Android 1.1.1 http://... 1 信息描述 1 1.1.1_web http://... 信息描述
Android 1.1.0 http://... 0 信息描述 1 1.1.0_web http://... 信息描述
根据新提交的Web壳数据和Web应用数据,版本管理系统完成Web壳数据和Web应用数据的版本匹配,得到匹配后关联的Web壳更新数据和嵌入的Web应用数据,使得数据以API接口形式提供给混合模式应用完成升级流程。
上述实施例中混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互的方法包括:
当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的 Web应用版本号;请求访问版本管理系统,从最新的待发布Web壳更新数据和嵌入的Web应用数据中提取最新Web壳版本号和最新Web应用版本号;判断当前运行的Web壳版本号是否与提取的最新Web壳版本号一致,以及当前嵌入的Web应用版本号是否与提取的最新Web应用版本号一致,并在判断结果为否时执行下一步骤,否则无需更新当前版本的混合模式应用。
上述当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新的方法包括:
当版本管理系统存在最新的Web壳更新数据时,向用户终端推送Web壳更新提示;当版本管理系统存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动嵌入匹配的Web应用更新数据。
具体实施时,混合模式应用启动时,从版本管理系统获取Web壳更新数据和Web应用访问链接,当Web壳需要更新时,获取Web壳更新提示以及嵌入兼容版本的Web应用,之后根据Web壳更新提示由用户手动选择Web壳的更新方式,下载安装完成Web壳的更新,和/或,当Web壳无需更新而Web应用需要更新时,此时可根据Web应用访问链直接获取适配版本的Web应用数据嵌入Web壳展现给用户,整个过程对用户来说是无感操作,具体实现流程参见图2。
实施例二
请参阅图1和图3,本实施例提供一种适用于混合模式应用的发布升级装置,包括:
预发布单元1,用于将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;
版本匹配单元2,用于从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配, 并生成Web应用更新数据;
检测单元3,用于在混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互;
版本更新单元4,用于当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新。
优选地,检测单元3包括:
版本号检测模块,用于当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
交互模块,用于当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
判断模块,用于判断当前运行的Web壳版本号是否与提取的最新Web壳版本号一致,以及当前嵌入的Web应用版本号是否与提取的最新Web应用版本号一致,并在判断结果为否时执行下一步骤,否则无需更新当前版本的混合模式应用。
优选地,版本更新单元4包括:
Web壳更新模块,用于当版本管理系统存在最新的Web壳更新数据时,向用户终端推送Web壳更新提示;
Web应用更新模块,用于当版本管理系统存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动嵌入匹配的Web应用更新数据。
与现有技术相比,本发明实施例提供的适用于混合模式应用的发布升级装置的有益效果与上述实施例一提供的适用于混合模式应用的发布升级方法的有益效果相同,在此不做赘述。
实施例三
本实施例提供一种智能设备,其包括上述实施例所述的适用于混合模式 应用的发布升级装置。
与现有技术相比,本发明实施例提供的智能设备的有益效果与上述实施例一提供的适用于混合模式应用的发布升级装置的有益效果相同,在此不做赘述。
本领域普通技术人员可以理解,实现上述发明方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,上述程序可以存储于计算机可读取存储介质中,该程序在执行时,包括上述实施例方法的各步骤,而的存储介质可以是:ROM/RAM、磁碟、光盘、存储卡等。
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (10)

  1. 一种适用于混合模式应用的发布升级方法,其特征在于,包括:
    将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;
    从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据;
    混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互;
    当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新。
  2. 根据权利要求1所述的方法,其特征在于,所述Web壳数据包括应用系统平台、Web壳版本号、Web壳下载链接中的一种或多种,所述Web应用数据包括Web应用功能编号、Web应用版本号、Web应用访问链接、兼容Web壳版本号中的一种或多种。
  3. 根据权利要求2所述的方法,其特征在于,所述从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据的方法包括:
    向版本管理系统新提交Web壳数据时,根据Web壳版本号选择一个与之适配的Web应用数据,生成Web壳更新数据和嵌入的Web应用数据。
  4. 根据权利要求2所述的方法,其特征在于,所述从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据的方法包括:
    向版本管理系统新提交Web应用数据时,根据Web应用版本号选择一个与之适配的Web壳数据,更新Web壳更新数据和嵌入的Web应用数据。
  5. 根据权利要求3或4所述的方法,其特征在于,所述混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互的方法包括:
    当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
    请求访问版本管理系统,从最新的待发布Web壳更新数据和嵌入的Web应用数据中提取最新Web壳版本号和最新Web应用版本号;
    判断当前运行的Web壳版本号是否与提取的最新Web壳版本号一致,以及当前嵌入的Web应用版本号是否与提取的最新Web应用版本号一致,并在判断结果为否时执行下一步骤,否则无需更新当前版本的混合模式应用。
  6. 根据权利要求5所述的方法,其特征在于,所述当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新的方法包括:
    当版本管理系统存在最新的Web壳更新数据时,向用户终端推送Web壳更新提示;
    当版本管理系统存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动嵌入匹配的Web应用更新数据。
  7. 一种适用于混合模式应用的发布升级装置,其特征在于,包括:
    预发布单元,用于将Web壳数据和/或Web应用数据提交至版本管理系统中准备发布;
    版本匹配单元,用于从版本管理系统中调取对应版本号的Web应用数据与新提交的Web壳数据关联匹配,并生成Web壳更新数据;和/或,从版本管理系统调取对应版本号的Web壳数据与新提交的Web应用数据关联匹配,并生成Web应用更新数据;
    检测单元,用于在混合模式应用启动时自检当前的Web壳版本和嵌入的Web应用版本,同时访问版本管理系统请求交互;
    版本更新单元,用于当版本管理系统存在最新的Web壳更新数据和/或Web应用更新数据时,对应将最新的Web壳更新数据和/或Web应用更新数据推送更新。
  8. 根据权利要求7所述的装置,其特征在于,所述检测单元包括:
    版本号检测模块,用于当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
    交互模块,用于当启动混合模式应用时,自动索取当前运行的Web壳版本号和嵌入的Web应用版本号;
    判断模块,用于判断当前运行的Web壳版本号是否与提取的最新Web壳版本号一致,以及当前嵌入的Web应用版本号是否与提取的最新Web应用版本号一致,并在判断结果为否时执行下一步骤,否则无需更新当前版本的混合模式应用。
  9. 根据权利要求7所述的装置,其特征在于,所述版本更新单元包括:
    Web壳更新模块,用于当版本管理系统存在最新的Web壳更新数据时,向用户终端推送Web壳更新提示;
    Web应用更新模块,用于当版本管理系统存在最新的Web应用更新数据时,在通过当前运行的Web壳联网版本管理系统时,自动嵌入匹配的Web应用更新数据。
  10. 一种智能设备,其特征在于,包括权利要求7-9中任一项所述的适用于混合模式应用的发布升级装置。
PCT/CN2019/109119 2019-04-01 2019-09-29 适用于混合模式应用的发布升级的方法及装置、智能设备 WO2020199543A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CA3176456A CA3176456A1 (en) 2019-04-01 2019-09-29 Release upgrading method applicable to hybrid application, corresponding device and intelligent equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910256806.XA CN110113377A (zh) 2019-04-01 2019-04-01 适用于混合模式应用的发布升级的方法及装置、智能设备
CN201910256806.X 2019-04-01

Publications (1)

Publication Number Publication Date
WO2020199543A1 true WO2020199543A1 (zh) 2020-10-08

Family

ID=67484793

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/109119 WO2020199543A1 (zh) 2019-04-01 2019-09-29 适用于混合模式应用的发布升级的方法及装置、智能设备

Country Status (3)

Country Link
CN (1) CN110113377A (zh)
CA (1) CA3176456A1 (zh)
WO (1) WO2020199543A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113377A (zh) * 2019-04-01 2019-08-09 苏宁易购集团股份有限公司 适用于混合模式应用的发布升级的方法及装置、智能设备
CN110941446B (zh) * 2019-11-06 2021-06-18 深圳市云网万店科技有限公司 基于多环境离线任务的版本发布方法及装置
CN112509379A (zh) * 2020-10-09 2021-03-16 广州市中南民航空管通信网络科技有限公司 飞行数据提交方法、终端以及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657170A (zh) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 一种数据更新方法、装置及系统
US20150347119A1 (en) * 2014-06-02 2015-12-03 Qiushi WANG Automatic deployment and update of hybrid applications
CN107832099A (zh) * 2017-10-26 2018-03-23 咪咕数字传媒有限公司 一种客户端版本兼容的方法、装置及存储介质
CN108762767A (zh) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 应用发布方法、装置及计算机可读存储介质
CN110113377A (zh) * 2019-04-01 2019-08-09 苏宁易购集团股份有限公司 适用于混合模式应用的发布升级的方法及装置、智能设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8191060B2 (en) * 2006-08-29 2012-05-29 Adobe Systems Incorporated Software installation using template executables
CN107153536B (zh) * 2017-03-31 2021-05-07 北京三快在线科技有限公司 一种应用处理方法及装置
CN107391104B (zh) * 2017-05-31 2021-06-01 杭州大搜车汽车服务有限公司 一种客户端与react native代码的更新依赖管理方法、装置及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657170A (zh) * 2013-11-25 2015-05-27 腾讯科技(上海)有限公司 一种数据更新方法、装置及系统
US20150347119A1 (en) * 2014-06-02 2015-12-03 Qiushi WANG Automatic deployment and update of hybrid applications
CN107832099A (zh) * 2017-10-26 2018-03-23 咪咕数字传媒有限公司 一种客户端版本兼容的方法、装置及存储介质
CN108762767A (zh) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 应用发布方法、装置及计算机可读存储介质
CN110113377A (zh) * 2019-04-01 2019-08-09 苏宁易购集团股份有限公司 适用于混合模式应用的发布升级的方法及装置、智能设备

Also Published As

Publication number Publication date
CA3176456A1 (en) 2020-10-08
CN110113377A (zh) 2019-08-09

Similar Documents

Publication Publication Date Title
US8448161B2 (en) Application tracking for application execution environment
WO2020199543A1 (zh) 适用于混合模式应用的发布升级的方法及装置、智能设备
US8554732B2 (en) Version management for application execution environment
US8375381B1 (en) Management user interface for application execution environment
CN102971688B (zh) 跨平台应用程序框架
CN105786567A (zh) 用于轻应用与主应用信息交互的中间件及iOS应用子模块动态升级方法
CN110096424B (zh) 测试的处理方法、装置、电子设备及存储介质
CN106557347B (zh) 软件更新方法及装置
KR101201276B1 (ko) 액션 리스트 및 버저닝을 이용한 무선 디바이스상에서액션을 수행하기 위한 방법, 소프트웨어 및 장치
CN107220074A (zh) 对支撑层软件功能的访问、升级方法及装置
CN106775876B (zh) 安卓系统快速启动应用的方法
CN110764805A (zh) 客户端无感升级的方法、装置、终端及存储介质
US8769521B2 (en) Calendar aware adaptive patching of a computer program
CN106293790B (zh) 基于Firefox操作系统的应用程序升级方法和装置
US9454361B2 (en) System and method of merging of objects from different replicas
WO2016008256A1 (zh) 一种为终端更新操作系统的方法、终端及系统
CN106445601A (zh) 一种插件升级的方法及装置
CN108536429B (zh) 一种开发软件的方法、装置、存储介质及电子设备
US8615751B2 (en) Seeding product information
CN105843881B (zh) 一种图片处理url映射方法和装置
CN109298880B (zh) 多版本代码生成方法、设备及电子设备
EP3166030A1 (en) Exporting hierarchical data from a product lifecycle management (plm) system to a source code management (scm) system
CN114398155A (zh) 一种应用程序自动化部署流水线配置方法及系统
CN114063985A (zh) Web应用的插件开发方法、装置、电子设备、介质和程序
CN111800461A (zh) 浏览器的脚本下载方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19923015

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19923015

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19923015

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3176456

Country of ref document: CA