CN114546434A - Application updating method and device, electronic equipment and storage medium - Google Patents

Application updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114546434A
CN114546434A CN202011347607.9A CN202011347607A CN114546434A CN 114546434 A CN114546434 A CN 114546434A CN 202011347607 A CN202011347607 A CN 202011347607A CN 114546434 A CN114546434 A CN 114546434A
Authority
CN
China
Prior art keywords
update
page
application
target
updating
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
CN202011347607.9A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011347607.9A priority Critical patent/CN114546434A/en
Publication of CN114546434A publication Critical patent/CN114546434A/en
Pending legal-status Critical Current

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/60Software deployment
    • G06F8/61Installation
    • 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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of computers, in particular to an application updating method, an application updating device, electronic equipment and a storage medium, wherein a target updating code and application environment information of a target page of an application are acquired, the application is divided according to page dimensions so as to respectively and correspondingly configure the target updating code aiming at least one page, and the application environment information is packaged into a uniform container layer; packing the target updating code and the application environment information based on a containerization technology to obtain an updating file of the target page; according to the update file, issuing an update version of the target page, and obtaining update configuration information aiming at the update file, wherein the update configuration information at least comprises a page update address; and sending the update configuration information to the terminal so that the terminal accesses the page update address to open a target page of an update version according to the page update address in the update configuration information, thereby realizing adaptation to different platforms and improving the update efficiency of the application.

Description

Application updating method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application updating method and apparatus, an electronic device, and a storage medium.
Background
At present, in the service requirements of a user terminal, services are generally required to be on-line quickly and problems are repaired quickly, so that application dynamic update is very important, in the related technology, an application update method mainly develops different versions for different platforms, different codes need to be written for different operating system platforms, development cost and time of developers are increased, development and application update efficiency is reduced, and accordingly, the period of application dynamic update is increased.
Disclosure of Invention
The embodiment of the application updating method and device, the electronic equipment and the storage medium is provided to improve the application updating efficiency and achieve adaptation to different platforms.
The embodiment of the application provides the following specific technical scheme:
an embodiment of the present application provides an application update method, including:
acquiring a target update code and application environment information of a target page of an application, wherein the application is divided according to page dimensions so as to respectively and correspondingly configure the target update code for at least one page, and the application environment information is packaged into a uniform container layer;
packing the target updating code and the application environment information based on a containerization technology to obtain an updating file of the target page;
according to the update file, issuing an update version of the target page, and obtaining update configuration information aiming at the update file, wherein the update configuration information at least comprises a page update address;
and sending the update configuration information to a terminal so that the terminal accesses the page update address to open a target page of the update version according to the page update address in the update configuration information.
Another embodiment of the present application provides an application update method, including:
in response to an opening triggering operation for an application, acquiring update configuration information of a target page of the application from a server, wherein the update configuration information at least comprises a page update address, the update configuration information is obtained by the server packaging target update codes and application environment information of the target page of the application based on a containerization technology to obtain an update file of the target page, and issuing an update version of the target page according to the update file, and the update configuration information is for the update file;
and responding to the opening triggering operation aiming at the target page, and displaying the target page corresponding to the page updating address in the updating configuration information.
Another embodiment of the present application provides an application update apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target update code and application environment information of a target page of an application, the application is divided according to page dimensions so as to respectively and correspondingly configure the target update code for at least one page, and the application environment information is packaged into a uniform container layer;
the generation module is used for packaging the target updating code and the application environment information based on a containerization technology to obtain an updating file of the target page;
the release module is used for releasing the update version of the target page according to the update file;
a second obtaining module, configured to obtain update configuration information for the update file, where the update configuration information at least includes a page update address;
and the sending module is used for sending the updating configuration information to a terminal so that the terminal accesses the page updating address to open a target page of the updating version according to the page updating address in the updating configuration information.
Another embodiment of the present application provides an application update apparatus, including:
an obtaining module, configured to obtain, from a server, update configuration information of a target page of an application in response to an open trigger operation for the application, where the update configuration information at least includes a page update address, and the update configuration information is obtained by the server by packaging, based on a containerization technique, a target update code and application environment information of the target page of the application to obtain an update file of the target page, and issuing an update version of the target page according to the update file, where the update configuration information is for the update file;
and the display module is used for responding to the opening triggering operation aiming at the target page and displaying the target page corresponding to the page updating address in the updating configuration information.
Another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of any one of the application update methods.
Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, performs the steps of any one of the above-mentioned application update methods.
In the embodiment of the application, the application is divided according to page dimensions so as to respectively and correspondingly configure target update codes for at least one page, the application environment information is packaged into a uniform container layer, and after the target update codes and the application environment information of the target page of the application are acquired, the target update codes and the application environment information are packaged based on a containerization technology to acquire an update file of the target page; according to the update file, the update version of the target page is released, the update configuration information aiming at the update file is obtained, the update configuration information is sent to the terminal, the terminal can jump and open the target page of the update version according to the page update address in the update configuration information, therefore, only the target update code aiming at the updated target page is needed to be provided, the difference of different platforms is not needed to be concerned, the update file adaptive to different platforms can be generated by using the same code, the containerization technology is adopted to ensure that the operation effect of each platform is the same, the terminal can jump to the updated target page by pulling the update configuration information, the dynamic update of application is realized, different platforms are compatible, and the development and update efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of an architecture of an application update method according to an embodiment of the present application;
FIG. 2 is a flowchart of an application update method according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a code hierarchy in an embodiment of the present application;
FIG. 4 is a schematic diagram of code invocation logic in an embodiment of the present application;
FIG. 5 is a flow chart of another application update method in an embodiment of the present application;
FIG. 6 is a schematic diagram of an engineering structure of an application partitioned by page dimension in an embodiment of the present application;
FIG. 7 is a comparison diagram illustrating the display of updated page versions in different stage applications according to an embodiment of the present application;
FIG. 8 is a logic diagram of an overall application update method in an embodiment of the present application;
FIG. 9 is a schematic structural diagram of an application update apparatus according to an embodiment of the present application;
FIG. 10 is a schematic diagram of another application update apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
For the purpose of facilitating an understanding of the embodiments of the present application, a brief introduction of several concepts is provided below:
flutter: the method is a User Interface (UI) framework of Google, can quickly construct a high-quality native User Interface on an IOS (iOS) and an Android (Android) of apple Inc., can work with the existing codes, is completely free and open at present, and has the main advantages that: the system has a cross-platform development characteristic, and supports three ends of iOS, Android and a webpage (Web); the development efficiency is improved due to the hot load characteristic; the UI engine is self-drawn and compiled into the native code, so that the high performance of the system during operation becomes possible; the Dart language is used and currently also compilation into Web end code is supported.
Cross-platform: the platform in the embodiment of the present application mainly refers to an operating system operated by an application, such as Android, iOS, and the like, and the implementation of cross-platform application dynamic update in the embodiment of the present application indicates that application update in different platforms can be implemented by using the same code.
Web page: the APP needs to call the browser kernel of the operating system first, which is equivalent to operating in a webpage, and is slightly less stable than the native APP, but the Web page is easier to develop, and can be cross-platform, for example, the Web page is an HTML 5(H5) page.
Native page: the representation is based on a native system kernel, and is equivalent to directly operating on an operating system, so that the representation is more stable.
The container technology comprises the following steps: the technology of effectively dividing resources of a single operating system into isolated groups so as to better balance conflicting resource usage requirements among the isolated groups is container technology.
JSbridge: the method mainly provides an interface for calling Native functions for JavaScript, so that a front end part in hybrid development can conveniently use Native functions, JSbridge is also a bridge between Native and non-Native, and the core is to construct a channel for message communication between Native and non-Native, wherein the channel is bidirectional, for example, data communication between Web and Native can be realized, so that Native can call js codes of Web, and Web can call Native codes, wherein when the Web calls the Native codes, the Web does not directly call but can inform Native codes according to rules agreed by Web and Native, and Native can execute corresponding codes according to the rules.
Message channel (MessageChannel): is a Web page channel interface that allows a new message channel to be created and data sent through its two message port (MessagePort) attributes.
Component (Component): is a simple encapsulation of data and methods, usually a component is a specific object, and a component may have its own properties and methods, where properties are simple visitors of the component's data, and methods are some simple and visible functions of the component. The use of components can enable drag-and-drop programming, fast property handling, and true object-oriented design.
In the related art, the application updating method mainly develops different versions for different platforms, different codes need to be written for different operating system platforms, the same code cannot be adapted to a plurality of different platforms, and the performance is poor, so that the development cost and time of developers are increased, the development and application updating efficiency is reduced, and the period of application dynamic updating is also increased.
Therefore, to solve the above-mentioned problems, an embodiment of the present application provides an application updating method, where an application is divided according to page dimensions to configure target update codes for at least one page, each page can be developed and deployed as an independent project, after target update codes and application environment information of a target page of the application are obtained, the target update codes and the application environment information are packaged based on a containerization technology to obtain an update file of the target page, an update version of the target page is published according to the update file, update configuration information for the update file is obtained, and the update configuration information is sent to a terminal, so that the terminal accesses a page update address according to a page update address in the update configuration information to open the target page of the update version, and thus, the same code, i.e., the target update code, can be used to generate update products corresponding to different platforms, the method has the advantages that the running effects of all platforms are consistent through a containerization technology, the platforms are adaptive to different platforms, when a certain target page of an application is logically updated, an update file is generated, an update version of the target page is released, update configuration information of the target page is configured, the application in the terminal can execute a page jump rule according to a page update address in the update configuration information and jump to the target page of the update version, so that the dynamic update of the target page is realized, the application update can be realized by using the same code for different platforms, the cost and the time are saved, and the update efficiency is improved.
Fig. 1 is a schematic diagram of an architecture of an application update method according to an embodiment of the present application, including a terminal 100 and a server 200.
The terminal 100 may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like. Various APPs, such as live APP, instant messaging APP, and the like, may be installed on the terminal 100, and usually the APPs are continuously updated, and when detecting a new version in the APP in the terminal 100, the APP in the updated version may be pulled from the server 200, and the APP in the updated version may be updated and used.
The server 200 is a backend server of the terminal 100, and can provide various network services for the terminal 100, for different APPs, the server 200 may be considered as a corresponding backend server, for example, the server 200 may provide an update service for APPs in the terminal 100, and specifically, in this embodiment of the present application, the server 200 may further provide a function of developing and publishing an application update, for example, in this embodiment of the present application, when a target page of an application is updated, a developer may create a project for the target page on a development platform, compile, publish, and the like, so as to generate an update file for the target page, and may configure update configuration information corresponding to the target page through a management backend, and further issue the update configuration information to the terminal 100, when an application opening operation is triggered in the terminal 100, the update configuration information may be pulled, and when an opening triggering operation for the target page is received, the page update address can be jumped and accessed according to the page update address in the update configuration information, that is, the target page of the update version is opened, and the dynamic update function of the target page is realized.
In addition, in the embodiment of the present application, the process of obtaining the update file of the target page in the development phase and the process of dynamically configuring the update configuration information of the target page of the application in the management background may be executed in different servers respectively, or may be deployed in the same server, which is not limited in the embodiment of the present application.
The server 200 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
The terminal 100 and the server 200 may be directly or indirectly connected through wired or wireless communication, which is not limited in this application, for example, fig. 1 illustrates that the terminal 100 and the server 200 are connected through the internet to realize communication therebetween. Optionally, the internet described above uses standard communication techniques, protocols, or a combination of both. The internet is typically the internet, but can be any Network including, but not limited to, a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), any combination of mobile, wireline or wireless networks, private or virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including Hypertext Mark-up Language (HTML), Extensible Markup Language (XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec). In other embodiments, custom and/or dedicated data communication techniques may also be used in place of, or in addition to, the data communication techniques described above.
It should be noted that the application architecture diagram in the embodiment of the present application is used to more clearly illustrate the technical solution in the embodiment of the present application, and does not limit the technical solution provided in the embodiment of the present application, and the application architecture diagram may be applied to any update scenario of an application.
Based on the foregoing embodiment, referring to fig. 2, a flowchart of an application updating method in the embodiment of the present application is applied to a server side, and the method includes:
step 200: the method comprises the steps of obtaining target updating codes and application environment information of target pages of applications, wherein the applications are divided according to page dimensions so as to respectively and correspondingly configure the target updating codes aiming at least one page, and the application environment information is packaged into a uniform container layer.
In the embodiment of the application, the application can be divided according to page dimensions, each page is developed and deployed as an independent project, namely, the target updating code of each page can be correspondingly configured, so that the updating configuration can be performed only for the target page with the update, and the development simplicity and efficiency are improved.
The target updating code of the target page is used for representing the business logic realization of the target page, the application environment information at least comprises components and an operating system, and in order to realize consistent operation effect on the platform, the application environment information can be adapted to different platforms, therefore, a containerization architecture can be adopted, a containerization technology is adopted, the application environment information is packaged into a unified container layer, the application environment information of different platforms can be packaged in the container layer, and the application environment information is communicated with the business logic layer of the upper target updating code through an interface adaptation layer in the container layer so as to shield different platform differences.
Step 210: and packaging the target update code and the application environment information based on a containerization technology to obtain an update file of the target page.
Therefore, through the containerization technology, the update files aiming at different platforms can be generated by using the same target update code, and the running effect consistency of different platforms is ensured.
Step 220: and according to the update file, releasing the update version of the target page, and obtaining update configuration information aiming at the update file, wherein the update configuration information at least comprises a page update address.
When step 220 is executed, the method specifically includes:
1) and releasing the updated version of the target page according to the updated file.
At present, in the online process of an application, developers usually need to release a new application or a new version of the application to each application market, the application needs to be online after the application market is checked to pass, and the application needs to be downloaded and used by users, which needs a certain time period, and the user use experience is reduced if the period is long.
In addition, after the updated version of the target page is checked to be on line, automatic coverage of the Native version of the target page can be achieved in the embodiment of the application, so that the application stability is improved.
2) Update configuration information for the update file is obtained.
In the embodiment of the application, after the developer obtains the update file of the target page in the development stage, the developer can also support the dynamic configuration of the update configuration information of the target page in the background.
The update configuration information at least includes a page update address, and may also include an application identifier, a platform, a version number, a page identifier, a page name, a page type, and the like, which is not limited in this embodiment.
Step 230: and sending the updating configuration information to the terminal so that the terminal accesses the page updating address to open a target page of an updating version according to the page updating address in the updating configuration information.
Specifically, when receiving an opening trigger operation of the terminal for the application, the update configuration information is sent to the terminal, so that after the terminal opens the application, the terminal accesses a page update address in the update configuration information in response to the opening trigger operation for the target page to open the target page of the update version.
That is, in this embodiment of the application, after the terminal starts the application, the corresponding update configuration information may be pulled from the background server, and then a determination may be made when the target page is triggered to be opened, for example, based on the page identifier, the version number, and the like, when it is determined that the target page is updated, the target page may be automatically skipped to the updated target page according to the page update address.
In the embodiment of the application, the application is divided according to page dimensions, the application environment information is packaged into a uniform container layer, after the target update code and the application environment information of the target page of the application are acquired, the target update code and the application environment information are packaged based on a containerization technology to obtain an update file of the target page, the update version of the target page is released according to the update file, the update configuration information for the update file is obtained, and then the update configuration information can be sent to the terminal, so that the terminal can access the page update address according to the page update address in the update configuration information to open the target page of the update version, and thus, through the containerization technology, the same target update code can be used to adapt to different platforms to generate corresponding update files, the same operation effect on each platform is ensured, and the update configuration information of the target page is configured, when the terminal opens the target page of the application, the terminal can jump to the target page of the updated version, so that the dynamic update of the application is realized, only the same code is needed to be used for different platforms, the terminal is adaptive to the different platforms, the development and application update efficiency is improved, and the development cost and the development period are reduced.
Based on the above embodiment, the above step 210 will be specifically described below. In the embodiment of the present application, a containerization architecture is adopted to ensure that the same code is consistently represented on different platforms, and to better understand the execution process of step 210, a hierarchical structure of the code in the embodiment of the present application is introduced first, and fig. 3 is shown as a schematic diagram of the hierarchical structure of the code in the embodiment of the present application.
As shown in fig. 3, the top layer is a UI layer and a service logic layer, and is a code hierarchy corresponding to the target update code, which mainly implements a service logic function, the bottom layer may be collectively referred to as a container layer, and the container layer is collectively packaged and is a code hierarchy corresponding to the application environment information, so that the target update code can be implemented to normally operate based on the code logic of the container layer.
The system comprises a container layer, an interface adaptation layer, a unified interface layer, a universal component layer and a platform layer, wherein the container layer comprises the interface adaptation layer, the unified interface layer, the universal component layer and the platform layer, specifically, 1) the interface adaptation layer is used for adapting and calling corresponding channel interfaces according to different platforms, and the interface adaptation layer is mainly connected with a service logic layer of an upper layer and the universal component layer of a bottom layer to shield the difference of the interfaces of the different platforms; 2) the unified interface layer provides functional interfaces of different update version types, for example, a JavaScript functional interface can be provided for a Web version, a Dart functional interface can be provided for a Native version, and no limitation is made; 3) the universal component layer at least comprises channel interfaces and components of each platform, for example, the channel interfaces comprise MessageChannel channels, JSBridge channels and the like, and the components are functional components such as account numbers, logs, sharing and the like; 4) the platform layer provides operating systems of the platforms, such as an iOS operating system, an Android operating system and the like.
Based on the code hierarchy of fig. 3, step 210 is specifically executed to include:
and S1, calling a functional interface corresponding to the specified update version type through an interface adaptation layer according to the specified update version type and the current operating platform corresponding to the target page, and calling a channel interface corresponding to the current operating platform through the corresponding functional interface to obtain the component of the current operating platform.
For example, referring to fig. 4, which is a schematic diagram of code call logic in an embodiment of the present application, as shown in fig. 4, an interface adaptation layer communicates with a service logic layer, and is called to different platform interfaces according to a current running platform, for example, a UI layer and the service logic layer are implemented using Dart language, when a Dart Native is called, a message channel may be used to finally call a component on a bottom layer, and a Dart Web call may be used to finally call the same component on the bottom layer through a JSBridge channel, so that the Dart service logic layer on an upper layer and the general component layer on the bottom layer use the same code.
And S2, packaging the operating system of the current operating platform, the obtained components of the current operating platform and the target update code based on the container technology, and obtaining the update file of the target page.
Further, in the embodiment of the present application, in order to implement application updating that can adapt to different platforms by using the same code, it is also necessary to ensure the uniformity of the development language. Specifically, the specific development language can be selected by comparing the performance, consistency, dynamics, supported cross-platform and other factors of the cross-end development languages such as RN, Weex, React and Vue, and integrating various factors, for example, using the Flutter as the development language in one or more embodiments.
It should be noted that, in the embodiment of the present application, a specific development language is not limited, and specifically, different development languages may be selected based on actual scenes and requirements, and as long as the inventive concept of the application updating method in the embodiment of the present application is adopted to implement dynamic update of an application, the invention shall belong to the protection scope of the embodiment of the present application.
Based on the foregoing embodiment, referring to fig. 5, a flowchart of another application updating method in the embodiment of the present application is applied to a terminal, and the method includes:
step 500: and acquiring updated configuration information of a target page of the application from the server in response to an opening trigger operation for the application.
The update configuration information at least includes a page update address, and certainly may also include other information, which is not limited in this embodiment.
And the updating configuration information is obtained by the server packaging the target updating code and the application environment information of the target page of the application based on the containerization technology to obtain an updating file of the target page, and issuing the updating version of the target page according to the updating file, and the updating configuration information is specific to the updating file.
The specific implementation process is the same as the above-described implementation of the application updating method on the server side, and is not described here again.
Step 510: and responding to the opening triggering operation aiming at the target page, and displaying the target page corresponding to the page updating address in the updating configuration information.
Specifically, when it is determined that the target page corresponds to the update configuration information, the page update address in the update configuration information is accessed, and the target page corresponding to the page update address is opened and displayed.
After the terminal opens the application, when a user needs to open a target page in the application, the terminal can jump to the target page corresponding to the page update address according to the page update address to open the target page of an updated version, and the user can use the updated target page on the terminal to perform operation.
In the embodiment of the application, the terminal responds to the opening triggering operation aiming at the application, acquires the updating configuration information of the target page of the application from the server, responds to the opening triggering operation aiming at the target page, and displays the target page corresponding to the page updating address in the updating configuration information, so that the server side can adapt to different platforms to generate the updating file by using the same code and configure the updating configuration information of the target page, the terminal only needs to pull the updating configuration information from the server when the application is opened, automatically jumps and accesses the updated target page according to the updating configuration information when the target page needs to be opened, and displays the updated target page on the terminal, thereby realizing the dynamic updating of the application and improving the updating efficiency.
Based on the above embodiment, the following description is mainly given to the application updating method in the embodiment of the present application from the implementation effect, and the application updating method may be specifically divided into the following two parts:
a first part: in the embodiment of the application, the application is divided according to page dimensions.
Referring to fig. 6, an engineering structure diagram of application division by PAGE dimension in this embodiment is shown, taking three PAGEs of an application as an example, which are respectively PAGE (PAGE) _ A, PAGE _ B, PAGE _ C, the application is divided by PAGE dimension, when specifically developed, the application is a large project, each PAGE is developed and deployed as an independent sub-project, for example, a Component corresponding to PAGE _ a is constructed and called for PAGE _ a, and the Component may be called from a local memory or a Remote memory, which is not limited in this embodiment of the present application, for example, PAGE _ a in fig. 6 may include three local components, Component _ A, Component _ B and Component _ C, and two Remote components, Git _ Component _ a and Git _ Component _ B, of a Remote memory (Remote gite).
Thus, each page of the application is used as an independent item, and when a certain page needs to be updated, a sub-item can be separately created for the page, so that the update configuration of the page is realized.
A second part: referring to fig. 7, a schematic diagram of comparison of page update versions in applications at different stages in this embodiment of the application is shown, still taking three pages of an application as an example, and respectively taking comparison of an old version, a grayscale version, and a new version to explain, after the application market is checked and brought online, a user of a current network can use a Native page of the application, where the Native page has higher stability to ensure the user experience, where the old version is a previous version relative to the new version, the grayscale version is a transition version before the new version comes online, for example, the old version is V1.0, the new version is V2.0, and the grayscale version is a transition version of V2.0.
As shown in fig. 7, when all three PAGEs applied in the old version adopt Native PAGEs, for example, when PAGE _ B is updated, a project is created for PAGE _ B, an update file is generated, and then a Web version of PAGE _ B is released, and simultaneously corresponding update configuration information is configured and issued to the terminal, after the update configuration information of PAGE _ B is acquired by the terminal, the terminal can automatically switch to jump to the Web version of PAGE _ B, as shown in fig. 7, H5_ PAGE _ B can be opened through a browser in the grayscale version, that is, the updated PAGE _ B is opened, so as to realize dynamic update of the PAGE, although the updated PAGE _ B is a Web PAGE, other PAGEs are Native PAGEs, and have little influence on the user, so that on the premise of ensuring performance, dynamic update of the PAGE can be realized, the user can experience and use the updated PAGE function earlier, and further can automatically cover the Web version after reviewing, that is, a Native version of Page _ B can be used in the new version.
In the embodiment of the application, when a certain page is updated, the Web version of the page can be released, and the updating configuration information is issued, so that the dynamic updating of the page function can be realized based on the updating configuration information, platforms do not need to be distinguished during development, updating files aiming at different platforms can be generated by using the same code, and the cross-platform application dynamic updating is realized.
Based on the foregoing embodiment, the following describes an overall flow of the application updating method in the embodiment of the present application by using a specific application scenario, specifically referring to fig. 8, which is an overall logic diagram of the application updating method in the embodiment of the present application, as shown in fig. 8, the application updating method in the embodiment of the present application may be divided into three parts, namely a development phase, an update release phase, and an update execution phase.
A first part: and (5) a development stage.
In the embodiment of the application, for the update of a certain target page of a certain application, a developer may input a corresponding instruction through a command-line interface (CLI) to perform operations such as creating a project, compiling a project, issuing a project and the like for the target page, further deploy the project for the target page on an issuing platform, obtain an update file of the target page, and issue a Web version of the target page.
A second part: and (5) issuing an updating phase.
In the embodiment of the application, a management background system is also developed in the server, and update configuration information for the target page, for example, information including an application identifier, a version number, a page identifier, a platform, a page type, a page update address, and the like, may be input in the management background.
It should be noted that, the development phase and the update release phase mainly face developers, and both operate in a background server, or may be development terminals facing developers, but finally, both need to be accessed to the server, so that the terminals can pull the update configuration information of the target page from the server.
And a third part: an update phase is performed.
The updating execution stage is mainly that at a terminal side, the user faces to the application user, the user starts the application on the terminal, the application pulls the updating configuration information of the target page of the application from the server after being started, when the opening operation of the target page is triggered, the user can automatically jump to the target page of the Web version according to the page updating address in the updating configuration information, the updated target page is opened, in addition, after the online check is carried out, the Web version can be automatically covered, and at the moment, the Native version of the target page can be opened.
In the embodiment of the application, the same code is supported to adapt to different platforms, such as iOS, Android, Web and the like, and the running effect of each platform can be ensured to be consistent under the support of a containerization technology, so that when a target page is logically updated, a Web version of the target page is released, and configuration of updating configuration information is performed at the same time, so that the Web version can be skipped in application, dynamic update of App is realized, update files of different platforms can be generated by using the same code, the development and update efficiency is improved, and development labor and time are saved.
Based on the same inventive concept, an application updating apparatus is further provided in the embodiments of the present application, and the application updating apparatus may be, for example, a server in the foregoing embodiments, and the application updating apparatus may be a hardware structure, a software module, or a hardware structure plus a software module. Based on the foregoing embodiments, referring to fig. 9, an application updating apparatus in an embodiment of the present application specifically includes:
a first obtaining module 90, configured to obtain a target update code and application environment information of a target page of an application, where the application is divided according to page dimensions, so as to respectively and correspondingly configure the target update code for at least one page, and the application environment information is packaged into a uniform container layer;
a generating module 91, configured to package the target update code and the application environment information based on a containerization technology, and obtain an update file of the target page;
the publishing module 92 is configured to publish the updated version of the target page according to the updated file;
a second obtaining module 93, configured to obtain update configuration information for the update file, where the update configuration information at least includes a page update address;
a sending module 94, configured to send the update configuration information to a terminal, so that the terminal accesses the page update address to open a target page of the update version according to the page update address in the update configuration information.
Optionally, the application environment information at least includes a component and an operating system; the container layer comprises an interface adaptation layer, a unified interface layer, a universal component layer and a platform layer, wherein the interface adaptation layer is used for adapting and calling corresponding channel interfaces according to different platforms, the unified interface layer provides functional interfaces with different update version types, the universal component layer at least comprises the channel interfaces and components of the platforms, and the platform layer provides operating systems of the platforms;
based on the containerization technology, the generating module 91 is specifically configured to, when the target update code and the application environment information are packaged to obtain the update file of the target page:
according to the update version type and the current operation platform which are correspondingly appointed by the target page, calling a functional interface corresponding to the appointed update version type through the interface adaptation layer, and calling a channel interface corresponding to the current operation platform through the corresponding functional interface to obtain a component of the current operation platform;
and packing the operating system of the current operating platform, the obtained components of the current operating platform and the target updating code based on a container technology to obtain an updating file of the target page.
Optionally, the type of the updated version of the target page is a Web version.
Optionally, when the update configuration information is sent to the terminal, the sending module 94 is specifically configured to:
and when receiving an opening triggering operation of the terminal for the application, sending the updating configuration information to the terminal, so that the terminal accesses a page updating address in the updating configuration information to open a target page of an updating version in response to the opening triggering operation for the target page after the application is opened.
Based on the same inventive concept, the embodiment of the present application further provides an application updating apparatus, where the application updating apparatus may be, for example, the terminal in the foregoing embodiment, and the application updating apparatus may be a hardware structure, a software module, or a hardware structure plus a software module. Based on the foregoing embodiment, referring to fig. 10, another application updating apparatus in the embodiment of the present application specifically includes:
an obtaining module 1000, configured to obtain, in response to an open trigger operation for an application, update configuration information of a target page of the application from a server, where the update configuration information at least includes a page update address, and the update configuration information is obtained by the server by packaging, based on a containerization technique, a target update code and application environment information of the target page of the application to obtain an update file of the target page, and issuing an update version of the target page according to the update file, where the update configuration information is for the update file;
a presentation module 1010, configured to present, in response to an opening trigger operation for the target page, the target page corresponding to the page update address in the update configuration information.
Optionally, when a target page corresponding to the page update address in the update configuration information is displayed, the display module 1010 is specifically configured to:
and when the target page is determined to correspond to the updating configuration information, accessing a page updating address in the updating configuration information, and opening and displaying the target page corresponding to the page updating address.
Based on the above embodiments, fig. 11 is a schematic structural diagram of an electronic device in an embodiment of the present application.
An electronic device, which may be a server in the foregoing embodiments, may include a processor 1110 (CPU), a memory 1120, an input device 1130, an output device 1140, and the like.
Memory 1120 may include Read Only Memory (ROM) and Random Access Memory (RAM), and provides program instructions and data stored in memory 1120 to processor 1110. In the embodiment of the present application, the memory 1120 may be used to store a program for applying any one of the updating methods in the embodiment of the present application.
The processor 1110 is configured to execute any application update method according to the obtained program instructions by calling the program instructions stored in the memory 1120.
Based on the above embodiments, in the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the application updating method in any of the above method embodiments.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.

Claims (11)

1. An application update method, comprising:
acquiring a target update code and application environment information of a target page of an application, wherein the application is divided according to page dimensions so as to respectively and correspondingly configure the target update code for at least one page, and the application environment information is packaged into a uniform container layer;
packing the target updating code and the application environment information based on a containerization technology to obtain an updating file of the target page;
according to the update file, issuing an update version of the target page, and obtaining update configuration information aiming at the update file, wherein the update configuration information at least comprises a page update address;
and sending the update configuration information to a terminal so that the terminal accesses the page update address to open a target page of the update version according to the page update address in the update configuration information.
2. The method of claim 1, wherein the application environment information includes at least components and an operating system; the container layer comprises an interface adaptation layer, a unified interface layer, a universal component layer and a platform layer, wherein the interface adaptation layer is used for adapting and calling corresponding channel interfaces according to different platforms, the unified interface layer provides functional interfaces with different update version types, the universal component layer at least comprises the channel interfaces and components of the platforms, and the platform layer provides operating systems of the platforms;
based on a containerization technology, packaging the target update code and the application environment information to obtain an update file of the target page, which specifically includes:
according to the update version type and the current operation platform which are correspondingly appointed by the target page, calling a functional interface corresponding to the appointed update version type through the interface adaptation layer, and calling a channel interface corresponding to the current operation platform through the corresponding functional interface to obtain a component of the current operation platform;
and packing the operating system of the current operating platform, the obtained components of the current operating platform and the target updating code based on a container technology to obtain an updating file of the target page.
3. The method of claim 1, wherein the type of the updated version of the target page is a Web version.
4. The method according to any of claims 1-3, wherein sending the updated configuration information to a terminal specifically comprises:
and when receiving an opening triggering operation of the terminal for the application, sending the updating configuration information to the terminal, so that the terminal accesses a page updating address in the updating configuration information to open a target page of an updating version in response to the opening triggering operation for the target page after the application is opened.
5. An application update method, comprising:
in response to an opening triggering operation for an application, acquiring update configuration information of a target page of the application from a server, wherein the update configuration information at least comprises a page update address, the update configuration information is obtained by the server packaging target update codes and application environment information of the target page of the application based on a containerization technology to obtain an update file of the target page, and issuing an update version of the target page according to the update file, and the update configuration information is for the update file;
and responding to the opening triggering operation aiming at the target page, and displaying the target page corresponding to the page updating address in the updating configuration information.
6. The method of claim 5, wherein displaying the target page corresponding to the page update address in the update configuration information specifically comprises:
and when the target page is determined to correspond to the updating configuration information, accessing a page updating address in the updating configuration information, and opening and displaying the target page corresponding to the page updating address.
7. An application update apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a target update code and application environment information of a target page of an application, the application is divided according to page dimensions so as to respectively and correspondingly configure the target update code for at least one page, and the application environment information is packaged into a uniform container layer;
the generation module is used for packaging the target updating code and the application environment information based on a containerization technology to obtain an updating file of the target page;
the release module is used for releasing the update version of the target page according to the update file;
a second obtaining module, configured to obtain update configuration information for the update file, where the update configuration information at least includes a page update address;
and the sending module is used for sending the updating configuration information to a terminal so that the terminal accesses the page updating address to open a target page of the updating version according to the page updating address in the updating configuration information.
8. The apparatus of claim 7, in which the application environment information comprises at least a component and an operating system; the container layer comprises an interface adaptation layer, a unified interface layer, a universal component layer and a platform layer, wherein the interface adaptation layer is used for adapting and calling corresponding channel interfaces according to different platforms, the unified interface layer provides functional interfaces with different update version types, the universal component layer at least comprises the channel interfaces and components of the platforms, and the platform layer provides operating systems of the platforms;
based on the containerization technology, the target update code and the application environment information are packaged, and when the update file of the target page is obtained, the generation module is specifically configured to:
according to the update version type and the current operation platform which are correspondingly appointed by the target page, calling a functional interface corresponding to the appointed update version type through the interface adaptation layer, and calling a channel interface corresponding to the current operation platform through the corresponding functional interface to obtain a component of the current operation platform;
and packing the operating system of the current operating platform, the obtained components of the current operating platform and the target updating code based on a container technology to obtain an updating file of the target page.
9. An application update apparatus, comprising:
an obtaining module, configured to obtain, from a server, update configuration information of a target page of an application in response to an open trigger operation for the application, where the update configuration information at least includes a page update address, and the update configuration information is obtained by the server by packaging, based on a containerization technique, a target update code and application environment information of the target page of the application to obtain an update file of the target page, and issuing an update version of the target page according to the update file, where the update configuration information is for the update file;
and the display module is used for responding to the opening triggering operation aiming at the target page and displaying the target page corresponding to the page updating address in the updating configuration information.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of claims 1-4 or 5-6 are performed when the program is executed by the processor.
11. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 4 or 5 to 6.
CN202011347607.9A 2020-11-26 2020-11-26 Application updating method and device, electronic equipment and storage medium Pending CN114546434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011347607.9A CN114546434A (en) 2020-11-26 2020-11-26 Application updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011347607.9A CN114546434A (en) 2020-11-26 2020-11-26 Application updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114546434A true CN114546434A (en) 2022-05-27

Family

ID=81659374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011347607.9A Pending CN114546434A (en) 2020-11-26 2020-11-26 Application updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114546434A (en)

Similar Documents

Publication Publication Date Title
US10839141B2 (en) System and method for provisioning a mobile software application to a mobile device
CN111158818B (en) Page rendering method and device
US9672140B1 (en) Processing special requests at dedicated application containers
CN112329945A (en) Model deployment and reasoning method and device
US10747510B1 (en) Application runtime modification
CN113312037A (en) Data processing method, device and equipment applied to microservice and storage medium
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN113076163A (en) Card rendering method and device
US10789751B2 (en) Method and apparatus for implementing animation in client application and animation script framework
CN112835568A (en) Project construction method and device
Miravet et al. Framework for the declarative implementation of native mobile applications
CN113835691A (en) iOS application development method, system, device, medium and program product
CN116301951B (en) Micro-service application installation upgrading method and device based on kubernetes
CN110599112B (en) Network page development and maintenance method and device
CN115509531A (en) Micro front end implementation method, device, terminal and storage medium based on front end technology
CN114546434A (en) Application updating method and device, electronic equipment and storage medium
CN115291933A (en) Method, device and equipment for constructing small program data packet and storage medium
WO2022099913A1 (en) Interface configuration method and apparatus, and device and medium
CN114254232A (en) Cloud product page generation method and device, computer equipment and storage medium
CN106775900B (en) Calling method and system of application browser
Wettinger et al. Streamlining APIfication by generating APIs for diverse executables using any2API
CN117093286B (en) Plug-in generation method, device, equipment and computer readable storage medium
CN117056317B (en) Data processing method, device, equipment and computer readable storage medium
US20240129402A1 (en) Customization framework for native mobile applications
CN117193769A (en) Page rendering method and device, electronic equipment and computer readable storage medium

Legal Events

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