CN113434154B - Android application program packaging method and device, storage medium and electronic device - Google Patents

Android application program packaging method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113434154B
CN113434154B CN202110657296.4A CN202110657296A CN113434154B CN 113434154 B CN113434154 B CN 113434154B CN 202110657296 A CN202110657296 A CN 202110657296A CN 113434154 B CN113434154 B CN 113434154B
Authority
CN
China
Prior art keywords
code
packaging
android
local
dependency library
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.)
Active
Application number
CN202110657296.4A
Other languages
Chinese (zh)
Other versions
CN113434154A (en
Inventor
路万斌
石斐
吴虹松
王鑫凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110657296.4A priority Critical patent/CN113434154B/en
Publication of CN113434154A publication Critical patent/CN113434154A/en
Application granted granted Critical
Publication of CN113434154B publication Critical patent/CN113434154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a packaging method and device for android application programs, a storage medium and an electronic device, wherein the method comprises the following steps: converting the L i nux command into a script program which can be sequentially executed through a she L script program; the script program is used for executing JavaScr i pt code packing, android code packing and file signing to obtain an application program APP package, and outputting the APP package, so that the problems that the manual packing period is relatively long and the labor cost is relatively high in related technologies can be solved, the use of the She l script for packing is used, the manual operation steps are simplified, and the packing efficiency is improved.

Description

Android application program packaging method and device, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a packaging method and device for android application programs, a storage medium and an electronic device.
Background
Android is one of the two most mainstream mobile phone operating systems at present, and Application of android Application programs (APP) is also becoming more and more widespread, and as a developer, packaging of APP is also very frequent. Android APP packaging based on the current reactivative framework development is performed manually, and the following steps are needed: 1. packaging JavaScript codes to generate JsBundle codes; 2. compiling and packaging the JsBundle code and the android code together; 3. signing with a signing tool. The manual processing can be completed after the three steps are completed in sequence, the packing period is longer, and the labor cost is higher.
Aiming at the problems of longer manual packing period and higher labor cost in the related art, no solution has been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a packaging method and device for android application programs, a storage medium and an electronic device, which are used for at least solving the problems of longer manual packaging period and higher labor cost in the related technology.
According to one embodiment of the invention, there is provided a method for packaging an android application program, including:
converting the Linux command into a script program capable of being executed sequentially through the shell script program;
and executing JavaScript code packaging, android code packaging and file signing by the script program to obtain an application program package, and outputting the application program package.
Optionally, executing JavaScript code packaging, android code packaging and file signing by the script program, and obtaining the application package includes:
packaging the JavaScript code through the shell script to generate a JsBundle code;
packaging the JsBundle code and the android native code together through the shell script to obtain an application file;
and signing the application program file based on a signing tool through the shell script to obtain the application program package.
Optionally, the method further comprises:
compiling the android native code based on a local dependency library.
Optionally, compiling the android native code based on the local dependency library comprises:
obtaining a dependent code from the local dependent library;
and merging the dependent codes with the pre-edited codes to obtain the android native codes.
Optionally, the method further comprises:
downloading a dependency library from a network side, and storing the dependency library to a local place to obtain the local dependency library;
and optimizing the local dependency library.
Optionally, optimizing the local dependency library includes:
detecting the same content in the dependency library through a retrieval tool;
and deleting the detected same content to obtain the optimized local dependency library.
According to another embodiment of the present invention, there is also provided an android application program packaging apparatus, including:
the conversion module is used for converting the Linux command into a script program which can be sequentially executed through the shell script program;
and the execution module is used for executing JavaScript code packaging, android code packaging and file signing through the script program to obtain an application program package, and outputting the application program package.
Optionally, the execution module includes:
the generation sub-module is used for packaging the JavaScript code through the shell script to generate a JsBundle code;
the packing sub-module is used for packing the JsBundle codes and the android native codes together through the shell script to obtain an application program file;
and the signature sub-module is used for signing the application program file based on a signature tool through the shell script to obtain the application program package.
Optionally, the apparatus further comprises:
and the compiling module is used for compiling the android native code based on the local dependency library.
Optionally, the compiling module includes:
an acquisition sub-module for acquiring a dependent code from the local dependency library;
and the merging sub-module is used for merging the dependent codes with the pre-edited codes to obtain the android native codes.
Optionally, the apparatus further comprises:
the storage module is used for downloading the dependency library from the network side and storing the dependency library to the local to obtain the local dependency library;
and the optimizing module is used for optimizing the local dependency library.
Optionally, the optimizing module includes:
the detection sub-module is used for detecting the same content in the dependency library through a retrieval tool;
and the deleting sub-module is used for deleting the detected same content to obtain the optimized local dependency library.
According to a further embodiment of the invention, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, the Linux command is converted into the script program which can be sequentially executed through the shell script program; the script program is used for executing JavaScript code packaging, android code packaging and file signing to obtain an application program APP package, and outputting the APP package, so that the problems that the manual packaging period is longer and the labor cost is high in related technology can be solved, the Shell script is used for packaging, the manual operation steps are simplified, and the packaging efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of a hardware architecture of a mobile terminal of an android application program packaging method in an embodiment of the present invention;
FIG. 2 is a flow chart of a method of packaging android applications in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart of android APP automatic packaging based on the ReactoNative framework in accordance with an embodiment of the present invention;
FIG. 4 is a block diagram of an android application packaging apparatus in accordance with an embodiment of the present invention;
FIG. 5 is a block diagram I of an android application packaging apparatus in accordance with a preferred embodiment of the present invention;
fig. 6 is a block diagram two of an android application packaging apparatus in accordance with a preferred embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the example of running on a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to the android application program packaging method of the embodiment of the present invention, as shown in fig. 1, the mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, such as computer programs corresponding to the android application program packaging method in the embodiment of the present invention, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network INterface CoNtroller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio FrequeNcy (RF) module, which is configured to communicate with the internet wirelessly.
Based on the above mobile terminal or network architecture, in this embodiment, a method for packaging an android application program is provided, and fig. 2 is a flowchart of the method for packaging an android application program according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, converting Linux commands into script programs capable of being executed sequentially through shell script programs;
and step S204, executing JavaScript code packaging, android code packaging and file signing by the script program to obtain an application program package, and outputting the application program package.
In the embodiment of the present invention, step S204 may specifically include: packaging the JavaScript code through the shell script to generate a JsBundle code; packaging the JsBundle code and the android native code together through the shell script to obtain an application file; and signing the application program file based on a signing tool through the shell script to obtain the application program package.
Through the steps S202 to S204, the Linux command is converted into a script program which can be executed sequentially through the shell script program; the script program is used for executing JavaScript code packaging, android code packaging and file signing to obtain an application program APP package, and outputting the APP package, so that the problems that the manual packaging period is longer and the labor cost is high in related technology can be solved, the Shell script is used for packaging, the manual operation steps are simplified, and the packaging efficiency is improved.
The application package is specifically an Android package (APK for short), wherein the APK is an application installation file of an Android operating system, and after the Android project is developed, the Android project is required to be packaged into the APK and downloaded to a terminal device for operation.
Android is one of the two most mainstream mobile phone operating systems at present, the application of android APP is also more and more widespread, and as a developer, APP packaging is also very frequent. Android APP packaging developed based on the reactivative framework all needs to be carried out through: packaging JavaScript code to generate JsBundle; compiling and packaging the JsBundle and the android code together; signing with a signing tool. Shell is an application program written in C language, which is a bridge for users to use Linux, shell script is a script program written for Shell, and various commands under Linux can be combined and executed in series. According to the embodiment of the invention, the packing step is optimized by utilizing Shell scripts, so that the manual operation step is simplified, and the packing efficiency is improved.
In an optional embodiment, compiling the android native code based on a local dependency library, and further, obtaining a dependency code from the local dependency library; and merging the dependent codes with the pre-edited codes to obtain the android native codes.
In another optional embodiment, downloading a dependency library from a network side, and storing the dependency library locally to obtain the local dependency library; optimizing the local dependency library, and further detecting the same content in the dependency library through a retrieval tool; and deleting the detected same content to obtain the optimized local dependency library.
After the step S204, an application package may be further run, where a test parameter file configured with multiple sets of environment parameters is stored in a resource folder of an application code, the application package is issued to an application test terminal, after the application package is installed on the application test terminal, an application is started, when the application is started, a default initial environment parameter is called, after the application is started, multiple sets of environment parameters in the test parameter file are read and analyzed, and the multiple sets of environment parameters in the test parameter file are output and displayed on an application test terminal through a preset parameter configuration display page, and when an instruction of switching the environment input by a tester is received, an initial environment parameter currently used by the application is replaced by a target environment parameter designated by the tester, thereby achieving the purpose of dynamically switching the environment parameters in the test process, so that the tester does not need to repeatedly perform a packaging operation according to different environment parameters, saving the time consumed by packaging, and improving the test efficiency.
Adding threads in an application process in a LINUX system and generating a shell module, and introducing a shell process in the LINUX system, wherein the shell process can interact with the shell module in the application process, and the shell process presets shell process commands and creates command sharing files; in the embodiment of the invention, a thread generating shell module is added in an application process in the LINUX system, and a shell process which can be started at any time is introduced in the whole multi-process LINUX system. And the user can master the execution condition of the application process at any time through interaction between the shell process and the shell module in the application process.
Shell process commands need to be initialized, commands executed by the shell process itself are registered, and command sharing files are created to transfer commands of the LINUX system to application processes. Specifically, the shell process command may include a shell process exit command and a shell process switch command. The shell process switching command can enable the shell process to be switched among a plurality of application processes, and the shell process exiting command can end the shell process.
The shell process acquires a command character string input by a serial port of the LINUX system; in the embodiment of the invention, the introduced shell process is used for acquiring the serial port input of the LINUX system, namely, when the serial port of the LINUX system has the command character string input, the shell process captures the command character string.
The shell process judges whether the command character string is a shell process command or not; if yes, the shell process analyzes and executes the command character string; if not, the shell process writes the command character string into the command sharing file and sends a signal to a shell module in the appointed application process; and the shell module is used for acquiring and executing the command character string from the command sharing file after receiving the signal.
When a shell process acquires a command character string, if the command character string is a shell process command, the shell process analyzes and executes the command character string; if the command string is not a shell process command, writing the command string into a command sharing file, sending a signal to a shell module of a designated application process, and after the shell module receives the signal, acquiring the command string from the command sharing file and executing a command corresponding to the command string.
Fig. 3 is a flowchart of android APP automatic packaging based on the reactivative framework according to an embodiment of the present invention, as shown in fig. 3, including:
step S301, packaging JavaScript codes;
step S302, compiling android codes, specifically, downloading all the dependency libraries in the project to the local, compiling the android native codes based on the local dependency libraries, and acquiring the dependency codes from the local dependency libraries; combining the dependent code with a code edited in advance to obtain the android native code;
step S303, configuring a signature file;
step S304, packaging and outputting an APP package, and packaging JavaScript codes through shell scripts to generate JsBundle codes; packaging the JsBundle code and the android native code together through the shell script to obtain an application file; and signing the application program file based on a signing tool through the shell script to obtain the APP package.
Android APP packaging developed based on the reactivative framework comprises: packaging JavaScript codes to generate JsBundle codes, detecting and downloading android native code dependency libraries, configuring code confusion, compiling the android native codes, configuring signature files, signing the codes through the signature files, outputting APP packages and the like. The execution of the steps is connected in series through the shell script, and the compiling speed of the android native code is optimized.
Aiming at the packaging JavaScript codes, the JsBundle codes are generated, the android native codes are compiled, signature files are configured, APP packages are output and the like, and the Linux commands are converted into script programs which can be sequentially executed through shell script programs, so that the packaging steps are simplified, and the packaging efficiency is improved.
Aiming at the step S302, compiling android codes, completely downloading the dependency libraries in the project to the local, and detecting the same content in the dependency libraries through a search tool; and deleting the detected same dependency libraries, moving codes of the rest dependency libraries into the project, and eliminating the step of detecting the dependency libraries when the project is packed by the processing of the step, and effectively improving the compiling time of the android native codes due to the reduction of the dependency libraries.
According to the embodiment of the invention, three steps of JavaScript code packaging, APP package compiling and APP package signing are connected in series through the shell script, so that execution of the three steps is seamless, the volume of the package is reduced through the localized dependency library, meanwhile, the engineering compiling speed is improved, and manual operation steps are omitted, so that the packaging efficiency is improved. The android project of reactionary is connected in series through shell script packing steps, repeated dependency libraries are processed, and compiling speed and packing efficiency are improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
Example 3
In this embodiment, a device for packaging an android application program is further provided, and the device is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 4 is a block diagram of an android application packaging apparatus, as shown in FIG. 4, comprising:
the conversion module 42 is configured to convert the Linux command into a script program that can be executed sequentially through the shell script program;
and the execution module 44 is used for executing JavaScript code packaging, android code packaging and file signing through the script program to obtain an application program package, and outputting the application program package.
Optionally, the execution module 44 includes:
the generation sub-module is used for packaging the JavaScript code through the shell script to generate a JsBundle code;
the packing sub-module is used for packing the JsBundle codes and the android native codes together through the shell script to obtain an application program file;
and the signature sub-module is used for signing the application program file based on a signature tool through the shell script to obtain the application program package.
FIG. 5 is a block diagram I of an android application packaging apparatus, as shown in FIG. 5, further comprising:
and the compiling module 52 is used for compiling the android native code based on a local dependency library.
Optionally, the compiling module 52 includes:
an acquisition sub-module for acquiring a dependent code from the local dependency library;
and the merging sub-module is used for merging the dependent codes with the pre-edited codes to obtain the android native codes.
FIG. 6 is a block diagram II of an android application packaging apparatus, according to a preferred embodiment of the present invention, as shown in FIG. 6, the apparatus further comprising:
the storage module 62 is configured to download a dependency library from a network side, and store the dependency library to a local place, so as to obtain the local dependency library;
an optimization module 64, configured to optimize the local dependency library.
Optionally, the optimization module 64 includes:
the detection sub-module is used for detecting the same content in the dependency library through a retrieval tool;
and the deleting sub-module is used for deleting the detected same content to obtain the optimized local dependency library.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Example 3
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, converting a Linux command into a script program capable of being sequentially executed through a shell script program;
s2, executing JavaScript code packaging, android code packaging and file signing through the script program to obtain an application program package, and outputting the application program package.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a random access Memory (RaNdom Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Example 4
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, converting a Linux command into a script program capable of being sequentially executed through a shell script program;
s2, executing JavaScript code packaging, android code packaging and file signing through the script program to obtain an application program package, and outputting the application program package.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. The android application program packaging method is characterized by comprising the following steps of:
converting the Linux command into a script program which is sequentially executed through a shell script program;
executing JavaScript code packaging, android code packaging and file signing through the script program to obtain an application program package, and outputting the application program package;
executing JavaScript code packaging, android code packaging and file signing by the script program to obtain an application program package comprises:
packaging the JavaScript code through the shell script to generate a JsBundle code;
packaging the JsBundle code and the android native code together through the shell script to obtain an application file;
signing the application program file based on a signing tool through the shell script to obtain the application program package;
compiling the android native code based on a local dependency library, wherein compiling the android native code based on the local dependency library comprises: obtaining a dependent code from the local dependent library; combining the dependent code with a code edited in advance to obtain the android native code;
downloading a dependency library from a network side, and storing the dependency library to a local place to obtain the local dependency library;
optimizing the local dependency library, wherein optimizing the local dependency library comprises: detecting the same content in the dependency library through a retrieval tool; and deleting the detected same content to obtain the optimized local dependency library.
2. An android application packaging device, comprising:
the conversion module is used for converting the Linux command into a script program which can be sequentially executed through the shell script program;
the execution module is used for executing JavaScript code packaging, android code packaging and file signing through the script program to obtain an application program package and outputting the application program package;
the execution module comprises:
the generation sub-module is used for packaging the JavaScript code through the shell script to generate a JsBundle code;
the packing sub-module is used for packing the JsBundle codes and the android native codes together through the shell script to obtain an application program file;
the signature sub-module is used for signing the application program file based on a signature tool through the shell script to obtain the application program package;
the device is also used for compiling the android native code based on a local dependency library, wherein the android native code is compiled based on the local dependency library by the following steps: obtaining a dependent code from the local dependent library; combining the dependent code with a code edited in advance to obtain the android native code;
the device is also used for downloading the dependency library from the network side and storing the dependency library to the local to obtain the local dependency library; optimizing the local dependency library, wherein the local dependency library is optimized by: detecting the same content in the dependency library through a retrieval tool; and deleting the detected same content to obtain the optimized local dependency library.
3. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of claim 1 when run.
4. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of claim 1.
CN202110657296.4A 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device Active CN113434154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110657296.4A CN113434154B (en) 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110657296.4A CN113434154B (en) 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113434154A CN113434154A (en) 2021-09-24
CN113434154B true CN113434154B (en) 2023-07-21

Family

ID=77755931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110657296.4A Active CN113434154B (en) 2021-06-11 2021-06-11 Android application program packaging method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113434154B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741960B (en) * 2021-11-05 2022-04-01 广州易方信息科技股份有限公司 Android terminal-based App automatic customization packaging method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609795A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer platform
WO2012155129A1 (en) * 2011-05-12 2012-11-15 Qualcomm Incorporated Concurrent parsing and processing of html and javascript
CN106462699A (en) * 2014-03-31 2017-02-22 爱迪德技术有限公司 Software protection
CN108469957A (en) * 2018-03-08 2018-08-31 平安科技(深圳)有限公司 Using packing method for uploading, device, computer equipment and storage medium
CN109032638A (en) * 2018-07-18 2018-12-18 广州宸瑞软件科技有限公司 Hot update method, server and the mobile terminal of mobile application software
CN110888639A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Business code compiling and packaging method and device
CN111061501A (en) * 2018-10-16 2020-04-24 福建天泉教育科技有限公司 Hot updating method of android application and computer readable storage medium
CN112286504A (en) * 2020-11-12 2021-01-29 普元信息技术股份有限公司 Method for realizing development and loading of small program based on Reactnative in mobile APP

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9058401B2 (en) * 2011-08-16 2015-06-16 Fabebook, Inc. Aggregating plug-in requests for improved client performance

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609795A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer platform
WO2012155129A1 (en) * 2011-05-12 2012-11-15 Qualcomm Incorporated Concurrent parsing and processing of html and javascript
CN106462699A (en) * 2014-03-31 2017-02-22 爱迪德技术有限公司 Software protection
CN108469957A (en) * 2018-03-08 2018-08-31 平安科技(深圳)有限公司 Using packing method for uploading, device, computer equipment and storage medium
CN109032638A (en) * 2018-07-18 2018-12-18 广州宸瑞软件科技有限公司 Hot update method, server and the mobile terminal of mobile application software
CN110888639A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Business code compiling and packaging method and device
CN111061501A (en) * 2018-10-16 2020-04-24 福建天泉教育科技有限公司 Hot updating method of android application and computer readable storage medium
CN112286504A (en) * 2020-11-12 2021-01-29 普元信息技术股份有限公司 Method for realizing development and loading of small program based on Reactnative in mobile APP

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
An Optimization Method of Javascript Redundant Code Elimination based On Hybrid Analysis Technique;G. Qiong 等;《 2020 17th International Computer Conference on Wavelet Active Media Technology and Information Processing (ICCWAMTIP)》;300-305 *
应用JavaScript脚本语言实现电子政务网站;何亚;《电脑迷》;第36卷(第22期);22 *

Also Published As

Publication number Publication date
CN113434154A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN106547527B (en) JavaScript file construction method and device
CN108228444B (en) Test method and device
CN111049870B (en) Application downloading and sending method, device and system
CN109766099A (en) Front end source code Compilation Method, device, storage medium and computer equipment
CN103595770A (en) Method and device for achieving file downloading through SDK
CN113434154B (en) Android application program packaging method and device, storage medium and electronic device
CN105556483A (en) Real-time code instrumentation
CN102955698A (en) Processing method and device based on multi-terminal software development
CN110795353B (en) Quick application debugging method, device, equipment and storage medium
CN113448690B (en) Monitoring method and device
CN110851211A (en) Method, apparatus, electronic device, and medium for displaying application information
CN116166907B (en) Method and device for developing Web application by using WebAsssembly and service page compiling technology
CN103176903B (en) The test method and equipment of MapReduce distributed system program
CN111930455A (en) Page updating method, device, terminal and storage medium
CN110362317B (en) Code conversion method, device and storage medium
CN112764796A (en) Installation package generation system
CN110806891A (en) Method and device for generating software version of embedded equipment
JP6001199B2 (en) Method for automatic conversion of package for taizen installation of android application and computer-readable recording medium therefor
CN112783724B (en) Log grabbing and debugging method, system, intelligent device and storage medium
CN112925698B (en) Test script generation method and integrated development environment
CN104460490B (en) Programmable logical controller processing method, digital processing unit and the frequency converter of frequency converter
CN112925715A (en) Application debugging method and device of mobile terminal
CN114416101A (en) Front-end project debugging method and system
CN113656152A (en) Local simulation method, system, medium and electronic device based on container cloud environment
CN112612531A (en) Application program starting method and device, electronic equipment and 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
GR01 Patent grant
GR01 Patent grant