[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111338666A - Method, device, medium and electronic equipment for realizing application program upgrading - Google Patents

Method, device, medium and electronic equipment for realizing application program upgrading Download PDF

Info

Publication number
CN111338666A
CN111338666A CN202010085253.9A CN202010085253A CN111338666A CN 111338666 A CN111338666 A CN 111338666A CN 202010085253 A CN202010085253 A CN 202010085253A CN 111338666 A CN111338666 A CN 111338666A
Authority
CN
China
Prior art keywords
upgrading
upgrade
information
script
application program
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
CN202010085253.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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010085253.9A priority Critical patent/CN111338666A/en
Publication of CN111338666A publication Critical patent/CN111338666A/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/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Landscapes

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

Abstract

The disclosure provides a method, a device, a medium and an electronic device for realizing application program upgrading. The method comprises the following steps: acquiring upgrading information under a cross-platform framework; acquiring a corresponding upgrading script from a server based on the upgrading information; compiling the upgrading script to generate an upgraded core binary file; the core binary may be run in a virtual machine of a cross-platform framework. The technical scheme is designed for hot compiling and loading the upgrading information when the application program runs under the Flutter framework, the hot repairing function under the Flutter framework is realized, the problem of software upgrading is solved, troubles caused by Bug and release of a new version are reduced, and the blank in the field is filled.

Description

Method, device, medium and electronic equipment for realizing application program upgrading
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for implementing application program upgrade.
Background
The Flutter framework is an open-source mobile application development framework, and can enable a runnable program to achieve cross-platform, high fidelity and high performance. Namely, a set of codes of the executable program can run on the iOS platform or the Android platform. The Flutter framework provides rich components, interfaces, and enables developers to quickly add local extensions to the Flutter framework.
The Flutter framework employs the Dart language as a development language, which is a static language that runs using a specific Dart VM virtual machine, providing a high-speed AOT scheme and a JIT scheme that emphasizes dynamics. The Dart VM virtual machine provides a runtime environment for the high-level programming language Dart language. Dart Kernel is a proprietary language of the IR levels supported by the Dart VM virtual machine. And compiling the code written by the Dart language, and converting the code into Dart Kernel and running in a Dart VM virtual machine.
Under the Flutter framework, the technical scheme of hot compiling and loading the upgrading information can not be realized all the time when the application program runs.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The present disclosure is directed to a method, an apparatus, a medium, and an electronic device for implementing application program upgrade, which are capable of solving at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific implementation manner of the present disclosure, in a first aspect, the present disclosure provides a method for implementing application program upgrade, which is applied to a client application program, and includes:
acquiring upgrading information under a cross-platform framework;
acquiring a corresponding upgrading script from a server based on the upgrading information;
compiling the upgrading script to generate an upgraded core binary file; the core binary may be run in a virtual machine of a cross-platform framework.
According to a second aspect thereof, the present disclosure provides a method of operating a portable electronic device
According to a third aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of implementing an application upgrade as set forth in any one of the first aspects.
According to a fourth aspect thereof, the present disclosure provides an electronic device, comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of implementing an application upgrade as claimed in any one of the first aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure at least has the following beneficial effects:
the disclosure provides a method, a device, a medium and an electronic device for realizing application program upgrading. The technical scheme is designed for hot compiling and loading the upgrading information when the application program runs under the Flutter framework, the hot repairing function under the Flutter framework is realized, the problem of software upgrading is solved, troubles caused by Bug and release of a new version are reduced, and the blank in the field is filled.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 illustrates a flow chart of a method of implementing an application upgrade according to an embodiment of the present disclosure;
FIG. 2 illustrates a block diagram of elements of an apparatus for implementing application upgrades in accordance with an embodiment of the present disclosure;
fig. 3 shows an electronic device connection structure schematic according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The first embodiment provided by the present disclosure, that is, an embodiment of a method for implementing application program upgrade.
The following describes an embodiment of the present disclosure in detail with reference to fig. 1, where fig. 1 is a flowchart of a method for implementing application program upgrade provided by the embodiment of the present disclosure. The embodiment of the disclosure is applied to the client application program.
And S101, acquiring upgrading information under a cross-platform framework.
The cross-platform framework comprises a Flutter framework. The Flutter framework is an open-source mobile application development framework, and can enable a runnable program to run in a cross-platform mode.
The virtual machines under the cross-platform framework comprise Dart VM virtual machines under the Flutter framework. The Dart VM virtual machine provides an execution environment for the high-level programming language Dart.
The embodiment of the disclosure provides two scenarios for obtaining the upgrade information.
Scene one
The method for acquiring the upgrade information comprises the following steps:
and S101-11, sending upgrading detection information to the server side when the server side is initialized.
Namely, when the application program is started, upgrade detection information is sent to the server.
And S101-12, receiving the upgrade information returned by the server end responding to the upgrade detection information.
The upgrade detection information includes a version number of the current application program. And the server side acquires the version number of the current application program and compares the version number with the latest version number, and if the version number of the current application program is different from the latest version number, the server side sends upgrading information to the client side.
In the first scenario of the embodiment of the present disclosure, the client application program actively initiates the query on whether to upgrade to the server, and the method can reduce the number of times of exchanging upgrade information, thereby reducing network traffic. Meanwhile, the maintenance amount of the upgrading information is reduced.
Scene two
The method for acquiring the upgrade information comprises the following steps:
and S101-21, acquiring upgrading information from preset upgrading configuration information issued by a server.
When the upgrade configuration information is preset, a series of configuration information associated with the upgrade is stored locally at the client. The configuration information may be stored in a configuration table of a database, or may be stored in a local registry, in a spreadsheet file, in a configuration file, and in a text file.
And the upgrading information is sent from the server, namely after the upgrading script is set by the server, the upgrading information is actively sent to the client.
According to the second scenario of the embodiment of the present disclosure, the client application can acquire the upgrade information at any time, and is not limited to the time of application initialization, so that the upgrade efficiency is improved, and the time for responding to the upgrade information is shortened.
And S102, acquiring a corresponding upgrading script from the server based on the upgrading information.
The upgrade information includes an upgrade version and a corresponding upgrade route.
For example, the upgrade version numbers are respectively: 2.2, 2.3, 2.4; the upgrade route with the upgrade version number of 2.2 is as follows: "./2.2/1/a", "/2.2/1/b", "/2.2/2/c", "/2.2/3/d"; wherein, "/2.2" represents the directory under the version number, "/1", "/2" and "/3" represent the subdirectory of the directory under the version number, respectively, "/a", "/b", "/c" and "/d" are the modified filenames under the subdirectory, that is, the filenames to be upgraded, respectively; the upgrade route with the upgrade version number of 2.3 is as follows: "./2.3/1/a", "/2.3/1/b", "/2.3/3/d"; the upgrade route with the upgrade version number of 2.4 is as follows: "./2.4/1/a", "/2.4/2/c", "/2.4/3/d".
Since the disclosed embodiment is under a cross-platform framework, the cross-platform framework includes a Flutter framework. The generated core binary file can run on an iOS platform or an Android platform. A script can only be compiled in a particular platform to generate a core binary file running on that platform. Therefore, the client needs to download the upgrade script to the local for compilation.
The method for acquiring the corresponding upgrading script from the server based on the upgrading information comprises the following steps:
and S102-1, acquiring corresponding upgrading scripts from the server side based on the upgrading version and the upgrading route in sequence according to the sequence of the upgrading version from low to high.
For example, continuing with the above example, when the current version number of the application is 2.1, the highest version number of the server is 2.4; because the upgrade route of the embodiment of the present disclosure only points to the modified file, if the plurality of versions are not upgraded, the versions need to be upgraded sequentially according to the sequence of the version numbers from low to high, so as to ensure the integrity of the upgraded script.
And by adopting a strategy of upgrading version numbers, the transmission data volume of each version number upgrading script is reduced, and the network congestion times are reduced.
Acquiring a corresponding upgrading script from a server based on the upgrading version and the upgrading route, wherein the upgrading script comprises the following steps:
and step S102-1-1, starting an upgrading process based on the upgrading information.
The upgrading process is a process running in the background of the client, so that the process of the application program and the upgrading process run asynchronously, and the influence of upgrading on the application program is reduced.
And S102-1-2, the upgrading process acquires a corresponding upgrading script from the server based on the upgrading version and the upgrading route.
And step S103, compiling the upgrading script to generate an upgraded core binary file.
The Kernel Binary file (full name Kernel Binary) can be run in a virtual machine of a cross-platform framework.
The cross-platform framework comprises a Flutter framework.
Under the Flutter framework, the virtual machines include Dart VM virtual machines. However, the Dart VM virtual machine does not run the Dart source code directly, but executes a core binary file that includes a dill-suffixed file. The core binary implementation can be made to run across platforms in a Dart VM virtual machine. If the upgrading script is the script written by the Dart language, the script written by the Dart language is compiled by the Dart compiler to generate a file with dill suffix.
The method further comprises the steps of:
and step S104, based on the calling of the application program, enabling the core binary file of the in-line application program to run in a virtual machine of a cross-platform framework.
The preset platform comprises an iOS platform or an Android platform. And ensuring that the core binary file is merged into the virtual machine of the cross-platform framework through the calling.
The embodiment of the disclosure designs a technical scheme for hot compiling and loading the upgrade information when an application program runs under a Flutter framework, realizes a hot repair function under the Flutter framework, solves the problem of software upgrade, reduces troubles caused by Bug and release of a new version, and fills the blank in the field.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, that is, an apparatus for implementing application program upgrade. Since the second embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 2 shows an embodiment of an apparatus for implementing application program upgrade provided by the present disclosure. Fig. 2 is a block diagram of units of an apparatus for implementing application program upgrade according to an embodiment of the present disclosure. The embodiment of the disclosure is applied to the client.
Referring to fig. 2, the present disclosure provides an apparatus for implementing application program upgrade, including: an upgrade information acquiring unit 201, an upgrade script acquiring unit 202, and a core binary file generating unit 203.
An upgrade information acquiring unit 201, configured to acquire upgrade information in a cross-platform framework;
an upgrade script obtaining unit 202, configured to obtain a corresponding upgrade script from the server based on the upgrade information;
a core binary file generating unit 203, configured to compile the upgrade script, and generate an upgraded core binary file; the core binary may be run in a virtual machine of a cross-platform framework.
Optionally, the unit 201 for obtaining upgrade information includes:
an upgrade detection information sending subunit, configured to send upgrade detection information to the server when initialization is performed;
and the upgrade information receiving subunit is used for receiving the upgrade information returned by the server end in response to the upgrade detection information.
Or, optionally, the unit 201 for obtaining upgrade information includes:
and the upgrading information issuing subunit is used for acquiring upgrading information from the preset upgrading configuration information issued by the server.
Optionally, the upgrade information includes an upgrade version and a corresponding upgrade route;
in the upgrade script acquiring unit 202, the following are included:
and the upgrading script subunits are sequentially obtained and are used for sequentially obtaining corresponding upgrading scripts from the server side based on the upgrading version and the upgrading route according to the sequence of the upgrading version from low to high.
Optionally, the sequentially acquiring the upgrade scripts in the subunit includes:
the starting upgrading process subunit is used for starting an upgrading process based on the upgrading information;
and the upgrading process acquires an upgrading script subunit, which is used for acquiring a corresponding upgrading script from the server side by the upgrading process based on the upgrading version and the upgrading route.
Optionally, the apparatus further comprises:
and the calling unit is used for enabling the core binary file of the in-line application program to run in a virtual machine of a cross-platform framework based on the calling of the application program.
Optionally, the cross-platform framework comprises a Flutter framework; the virtual machine comprises a Dart VM virtual machine; the core binary file includes a file suffixed dill.
The embodiment of the disclosure designs a technical scheme for hot compiling and loading the upgrade information when an application program runs under a Flutter framework, realizes a hot repair function under the Flutter framework, solves the problem of software upgrade, reduces troubles caused by Bug and release of a new version, and fills the blank in the field.
The embodiment of the present disclosure provides a third embodiment, that is, an electronic device, where the electronic device is used to implement a method for upgrading an application program, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method for implementing an application upgrade as described in the first embodiment.
The present disclosure provides a fourth embodiment, that is, a computer storage medium for implementing application program upgrade, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the method for implementing application program upgrade as described in the first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage device 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method for realizing application program upgrading is applied to a client application program, and is characterized by comprising the following steps:
acquiring upgrading information under a cross-platform framework;
acquiring a corresponding upgrading script from a server based on the upgrading information;
compiling the upgrading script to generate an upgraded core binary file; the core binary may be run in a virtual machine of a cross-platform framework.
2. The method of claim 1, wherein obtaining upgrade information comprises:
when the upgrade is initialized, sending upgrade detection information to the server;
and receiving the upgrade information returned by the server end responding to the upgrade detection information.
3. The method of claim 1, wherein obtaining upgrade information comprises:
and obtaining upgrading information from preset upgrading configuration information issued by the server.
4. The method of any of claims 1-3, wherein the upgrade information includes an upgraded version and a corresponding upgrade route;
the obtaining of the corresponding upgrade script from the server based on the upgrade information includes:
and acquiring corresponding upgrading scripts from the server side based on the upgrading version and the upgrading route in sequence according to the sequence of the upgrading version from low to high.
5. The method of claim 4, wherein the obtaining the corresponding upgrade script from the server based on the upgrade version and the upgrade route comprises:
starting an upgrading process based on the upgrading information;
and the upgrading process acquires a corresponding upgrading script from the server based on the upgrading version and the upgrading route.
6. The method of claim 1, further comprising:
based on the invocation of the application program, the core binary file of the in-line application program is operated in a virtual machine of a cross-platform framework.
7. The method of claim 1, wherein the cross-platform framework comprises a Flutter framework; the virtual machine comprises a Dart VM virtual machine; the core binary file includes a file suffixed dill.
8. An apparatus for implementing application program upgrade, applied to a client, includes:
the upgrading information acquisition unit is used for acquiring upgrading information under a cross-platform framework;
the upgrading script obtaining unit is used for obtaining a corresponding upgrading script from the server side based on the upgrading information;
a core binary file generating unit for compiling the upgrading script and generating an upgraded core binary file; the core binary may be run in a virtual machine of a cross-platform framework.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN202010085253.9A 2020-02-10 2020-02-10 Method, device, medium and electronic equipment for realizing application program upgrading Pending CN111338666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010085253.9A CN111338666A (en) 2020-02-10 2020-02-10 Method, device, medium and electronic equipment for realizing application program upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010085253.9A CN111338666A (en) 2020-02-10 2020-02-10 Method, device, medium and electronic equipment for realizing application program upgrading

Publications (1)

Publication Number Publication Date
CN111338666A true CN111338666A (en) 2020-06-26

Family

ID=71183393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010085253.9A Pending CN111338666A (en) 2020-02-10 2020-02-10 Method, device, medium and electronic equipment for realizing application program upgrading

Country Status (1)

Country Link
CN (1) CN111338666A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328296A (en) * 2020-11-30 2021-02-05 北京百度网讯科技有限公司 Software updating method, device, equipment and medium for cross-platform application
CN113515300A (en) * 2021-07-09 2021-10-19 北京字节跳动网络技术有限公司 Code viewing method and device, electronic equipment and storage medium
CN113900681A (en) * 2021-08-13 2022-01-07 西安万像电子科技有限公司 Zero-terminal software updating method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium
CN110262825A (en) * 2019-06-24 2019-09-20 北京字节跳动网络技术有限公司 Hot update method, device, electronic equipment and readable storage medium storing program for executing
CN110286927A (en) * 2019-06-24 2019-09-27 北京字节跳动网络技术有限公司 Hot update method, device and the equipment of Flutter application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof
CN107729041A (en) * 2017-07-26 2018-02-23 上海壹账通金融科技有限公司 The hot update method of application program, device, terminal and storage medium
CN110262825A (en) * 2019-06-24 2019-09-20 北京字节跳动网络技术有限公司 Hot update method, device, electronic equipment and readable storage medium storing program for executing
CN110286927A (en) * 2019-06-24 2019-09-27 北京字节跳动网络技术有限公司 Hot update method, device and the equipment of Flutter application

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
KENXU: "Flutter 动态化方案探索", 《HTTPS://JUEJIN.CN/POST/6844903984113647623》 *
咸鱼技术: "揭秘Flutter Hot Reload(基础篇)", 《HTTPS://BLOG.CSDN.NET/WEIXIN_38912070/ARTICLE/DETAILS/93857157》 *
晨光和月色: "为什么这么多人说Flutter是动态化技术,他根本就不支持更新代码", 《HTTPS://WWW.ZHIHU.COM/QUESTION/268075857》 *
胖胖二师兄: "iOS/flutter动态化杂谈", 《HTTPS://JUEJIN.CN/POST/6844904023791763464》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328296A (en) * 2020-11-30 2021-02-05 北京百度网讯科技有限公司 Software updating method, device, equipment and medium for cross-platform application
CN112328296B (en) * 2020-11-30 2024-04-02 北京百度网讯科技有限公司 Method, device, equipment and medium for updating software aiming at cross-platform application
CN113515300A (en) * 2021-07-09 2021-10-19 北京字节跳动网络技术有限公司 Code viewing method and device, electronic equipment and storage medium
CN113515300B (en) * 2021-07-09 2023-08-22 北京字节跳动网络技术有限公司 Code viewing method, device, electronic equipment and storage medium
CN113900681A (en) * 2021-08-13 2022-01-07 西安万像电子科技有限公司 Zero-terminal software updating method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
CN110960855B (en) Communication protocol code updating method and device, electronic equipment and storage medium
CN110391938B (en) Method and apparatus for deploying services
GB2589658A (en) Method and apparatus for running an applet
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111338666A (en) Method, device, medium and electronic equipment for realizing application program upgrading
CN111857658A (en) Method, device, medium and electronic equipment for rendering dynamic component
CN114595065A (en) Data acquisition method and device, storage medium and electronic equipment
CN110928571A (en) Business program development method and device
CN111338944A (en) Remote Procedure Call (RPC) interface test method, device, medium and equipment
CN111240801A (en) Method, device, medium and electronic equipment for generating heap memory snapshot file
CN111506904B (en) Method and device for online bug repair
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN112650521B (en) Software development kit SDK thermal restoration method and device and electronic equipment
CN116009831B (en) Mobile application program development method, device and equipment
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111625232A (en) Method and device for generating application program installation package, readable medium and electronic equipment
CN112162755B (en) Data processing method, device, medium and electronic equipment
CN115328506A (en) Application package generation method, loading method, device, medium and equipment
CN114153462A (en) Client source code processing method and device, storage medium and electronic equipment
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
CN111309323A (en) Parameter initialization method and device and electronic equipment
CN115080059B (en) Edge computing method, device and edge server
CN111796802B (en) Function package generation method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200626