Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Application program code compiling method and device, equipment and storage medium

A technology of application programs and compilation methods, applied in the fields of application program code compilation, devices, equipment, and storage media, can solve problems such as error reporting, excessive Flutter framework code, and reduced efficiency, and achieve the effects of improving efficiency and reducing compilation time

Active Publication Date: 2019-08-02
SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF2 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the limitations of the Flutter framework itself, two modes, Release and Debug, can be used during the debugging process. However, in the debug mode, an error will be reported during the packaging process and the package cannot be compiled. Therefore, only the Release mode can be supported when the installation package is officially released.
This feature limits the mode selection of the source code compilation process and affects the flexibility of application source code compilation.
At the same time, when the existing technology is compiled, the Flutter framework is usually compiled together. The Flutter framework has a lot of code, which will prolong the compilation time of the application source code and reduce the efficiency.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Application program code compiling method and device, equipment and storage medium
  • Application program code compiling method and device, equipment and storage medium
  • Application program code compiling method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] This embodiment discloses a method for compiling application program codes. This embodiment is applicable to the process of compiling and installing an application program. The compiling method can be executed by a device / terminal / computer capable of compiling.

[0042] In this embodiment, the compilation and installation package of the Andriod system APP which introduces the Flutter framework for source code compilation is taken as an example to describe the compilation method of the application program code.

[0043] figure 1 A flowchart of an application code compiling method provided by Embodiment 1 of the present invention specifically includes the following steps:

[0044] S101 acquires the source code of the application program;

[0045] The APP installation package is an APP installation file that can be downloaded, decompressed and run on the IOS or Android operating system. It is generated by compiling and packaging the program source code file. The size of t...

Embodiment 2

[0060] This embodiment discloses a method for compiling application program codes. This embodiment is applicable to the process of compiling and installing an application program. The compiling method can be executed by a device / terminal / computer capable of compiling.

[0061] In this embodiment, the compilation and installation package of the Andriod system APP which introduces the Flutter framework for source code compilation is taken as an example to describe the compilation method of the application program code.

[0062] figure 2 A flow chart of an application code compiling method provided by Embodiment 2 of the present invention specifically includes the following steps:

[0063] S201 Acquire the source code of the application program.

[0064] In this step, the source code of the obtained APP installation package file is stored in the temporary folder of the device / terminal / computer to facilitate subsequent traversal and judgment of the source code. When the installa...

Embodiment 3

[0088] This embodiment provides an application program code compiling device capable of executing the application program compiling method provided in Embodiment 1 of the present invention, and having corresponding functional modules and beneficial effects for executing the method.

[0089] image 3 It is a device function block diagram of a preferred embodiment of the application program of the present invention. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, and are stored in memory.

[0090] The compiling device 300 of the application program code in this embodiment includes the following modules:

[0091] The first acquiring module 301 is configured to acquire the source code of the application program;

[0092] The first judging module 302 is used to traverse the source code to judge whether the source code includes a Flutter framework;

[009...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an application program code compiling method. The application program code compiling method comprises the following steps: obtaining a source code of an application program; traversing the source code to judge whether the source code comprises a Flutter framework or not; if the source code does not comprise the Flutter framework, adopting a first compiling mode to compile the source code; if the source code comprises a Flutter framework and the Flutter framework is a redundant Flutter framework, removing the redundant Flutter framework from the source code; and adoptingthe first compilation mode to compile the source code with the redundant Flutter framework removed. Meanwhile, the invention discloses an application program code compiling device and equipment and astorage medium. The redundant Flutter framework in the application program code compiling process is removed, so that the application program code compiling process can select the required compilingmode, meanwhile, the compiling time is shortened, and the efficiency is improved.

Description

technical field [0001] The embodiment of the present invention relates to a compiling method of an application program, and in particular to a compiling method, device, device and storage medium of an application program code. Background technique [0002] Flutter is a new set of cross-platform, open source UI framework developed by Google. It supports iOS and Android system development. It can quickly build high-quality native user interfaces on IOS and Android. Many programmers will choose to use Flutter in the process of source code writing. frame to write. However, due to the limitations of the Flutter framework itself, two modes, Release and Debug, can be used during the debugging process. However, in the debug mode, an error will be reported during the packaging process and the package cannot be compiled. Therefore, only the Release mode is supported when the installation package is officially released. This feature restricts the mode selection of the source code comp...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/41Y02D10/00
Inventor 王小树
Owner SHENZHEN LEXIN SOFTWARE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products