CN113031965A - Application program business engineering compiling method, device, equipment and storage medium - Google Patents
Application program business engineering compiling method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113031965A CN113031965A CN202110446337.5A CN202110446337A CN113031965A CN 113031965 A CN113031965 A CN 113031965A CN 202110446337 A CN202110446337 A CN 202110446337A CN 113031965 A CN113031965 A CN 113031965A
- Authority
- CN
- China
- Prior art keywords
- business
- engineering
- application program
- compiling
- project
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000003068 static effect Effects 0.000 claims abstract description 62
- 230000008569 process Effects 0.000 claims description 9
- 238000011161 development Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
- Devices For Executing Special Programs (AREA)
Abstract
The application discloses a method, a device, equipment and a storage medium for compiling application program business engineering. An application program business engineering compiling method comprises the following steps: when the application program is compiled for the first time, compiling each business project in the application program to obtain a corresponding static database; storing the static database corresponding to each business project in a local cache; when the application program is compiled again, the static database of each business project in the local cache is copied to the target position. The access is simple, extra deployment is not needed, and hardware resources are saved. The cached static library of the business engineering is comprehensively used to reduce the time of full compilation and improve the development efficiency.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for compiling an application program business project.
Background
In the existing componentized App project, a lot of business engineering exists due to business refinement and splitting. The essential condition for the App to run is to combine the static libraries generated by the compilation of each business project. One-time publishing of the App requires complete compiling of business engineering, the App often needs to be compiled for multiple times, and repeated compiling can cause long compiling time, thereby not only affecting publishing timeliness of the App, but also blocking developers and affecting development efficiency.
Disclosure of Invention
The present application mainly aims to provide an application program business engineering compiling method, device, equipment and storage medium to solve the above problems.
In order to achieve the above object, according to an aspect of the present application, there is provided an application program business engineering compiling method including:
when an application program is compiled for the first time, compiling each business project in the application program to obtain a corresponding static database;
storing the static database corresponding to each business project in a local cache;
and when the application program is compiled again, copying the static database of each business project in the local cache to a target position.
In one embodiment, when an application program is compiled for the first time, a compiling log of each business project is generated, and the compiling log records problems in the business project compiling process; storing the compilation log in a local cache.
In one embodiment, when the application is first compiled, the method further comprises, for any one of the business projects: generating a secret key according to the business engineering name, and storing the secret key in a local cache;
when the application program is compiled again, for any business engineering, whether a static database of the business engineering exists in a local cache is searched according to the secret key of the business engineering;
and if so, copying the static database of the business engineering in the cache to a target position.
In one embodiment, when the application is compiled again, the method further comprises, for any one of the business projects: if the local cache does not have the static cache database corresponding to the business engineering, whether the cloud cache has the static library of the business engineering is searched according to the cache secret key;
and if so, downloading the static library of the business engineering in the cloud cache to a local cache.
In one embodiment, generating a key from a business project name includes:
carrying out Hash encryption operation on the business engineering name to obtain an encrypted Hash value;
acquiring a version value of the business engineering;
and obtaining the secret key according to the hash value, the version value and the name of the business engineering.
In order to achieve the above object, according to a second aspect of the present application, there is provided an application program business engineering compiling apparatus; the device includes:
the compiling module is used for compiling each business project in the application program to obtain a corresponding static database when the application program is compiled for the first time;
the storage module is used for storing the static database corresponding to each business project in a local cache;
and the copying module is used for copying the static database of each business project in the local cache to a target position when the application program is compiled again.
In one embodiment, the system further comprises a log module, configured to generate a compiling log of each business project when an application program is compiled for the first time, where the compiling log records problems in the business project compiling process; and the storage module is also used for storing the compiling log in a local cache.
In an embodiment, the system further includes a key module, configured to generate a key according to a business project name for an arbitrary business project when the application program is compiled for the first time, and store the key in a local cache;
the searching module is used for searching whether a static database of the business engineering exists in a local cache according to the secret key of the business engineering for any business engineering when the application program is compiled again;
and the copying module is used for copying the static database of the business engineering in the cache to a target position if the searching module determines that the static database of the business engineering is locally cached.
In order to achieve the above object, according to a third aspect of the present application, there is provided an application program business engineering compiling apparatus; comprising at least one processor and at least one memory; the memory is to store one or more program instructions; the processor is configured to execute one or more program instructions to perform any of the methods described above.
According to a fourth aspect of the present application, there is provided a computer readable storage medium having one or more program instructions embodied therein for performing the method of any one of the above.
According to the application program business project compiling method, after the App is compiled for the first time, the static database corresponding to each business project is cached locally, and when the App is compiled again, the static database in the cache can be directly copied, so that compiling efficiency is improved, publishing timeliness of the App is accelerated, and development efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a flowchart of a method for application business engineering compilation according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for application business engineering compilation according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an application business engineering compiling apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an application business engineering compiling device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The App has a plurality of business projects, for example, an App with 20 business projects, and when compiling is performed, a single business project takes 3 minutes, and 20 business projects take 1 hour. If the compiling is carried out again, the compiling needs to be carried out again, the time is wasted by 1 hour, and the App often needs to carry out the work of compiling for many times, so that the time is inevitably wasted, and the publishing efficiency is low.
Based on this, the present application proposes an application program business engineering compiling method, referring to fig. 1, the method includes:
step S102, when an application program is compiled for the first time, compiling each business project in the application program to obtain a corresponding static database;
wherein, the business engineering is based on git management, and git executes commit operation to record the nodes needing compiling currently. Both business engineering and static databases are in the form of compressed packages or folders.
Specifically, the application is applied to an iOS operating system.
Step S104, storing the static database corresponding to each business project in a local cache;
illustratively, if there are 20 business projects, there are 20 static databases in the cache pool of the local cache.
And step S106, copying the static database of each business project in the local cache to a target position when the application program is compiled again.
The method and the system support git operation of batch business engineering. Static library caching for supporting business engineering. And static library cloud cache reading of business engineering is supported. Supporting the automatic release of App to a distribution platform.
In one embodiment, when an application program is compiled for the first time, a compiling log of each business project is generated, and the compiling log records problems in the business project compiling process; storing the compilation log in a local cache.
Specifically, the log records the problems of the business project in the first compiling process. Thereby facilitating subsequent inspection of problems.
Preferably, the log corresponding to the business project and the business project are stored in the same folder. The logs corresponding to each business project are stored together.
In naming, the name of the log and the name of the corresponding business project can be the same.
In one embodiment, when an application program is compiled for the first time, for any one business project, a secret key is generated according to a business project name, and the secret key is stored in a local cache;
when the application program is compiled again, for any business engineering, whether a static database of the business engineering exists in a local cache is searched according to the secret key of the business engineering;
and if so, copying the static database of the business engineering in the cache to a target position.
In one embodiment, when the application is compiled again, the method further comprises, for any one of the business projects: if the local cache does not have the static cache database corresponding to the business engineering, whether the cloud cache has the static library of the business engineering is searched according to the cache secret key;
and if so, downloading the static library of the business engineering in the cloud cache to a local cache.
In one embodiment, when a secret key is generated according to a business project name, carrying out hash encryption operation on the business project name to obtain an encrypted hash value;
acquiring a version value of the business engineering;
and obtaining the secret key according to the hash value, the version value and the name of the business engineering.
The technical scheme of the invention has simple use and access, does not need additional deployment and saves hardware resources. The method and the system support local caching and cloud caching, comprehensively use the cached business engineering static library to reduce the time of full compilation, and improve the development efficiency. The invention provides a complete log system, records logs in the business engineering compiling process and is convenient for problem troubleshooting. The invention supports function combination and can realize one-key completion of target tasks.
Referring to FIG. 2, a flow chart of another method for application business engineering compilation according to the present invention is shown; the method comprises the following steps:
step S201, obtaining a COMMIT node hash value of a business project, and generating a secret key by combining a business project name;
step S202, searching whether a static database is stored in a local cache pool or not according to the secret key; if yes, go to step S203; if not, executing step S204;
wherein the identity of the static database may be set as a key.
Step S203, reading a static database of the local cache;
step S204, whether a static database exists in the cloud cache pool is searched according to the secret key; if yes, executing step S205, if no, executing step S206;
step S205, downloading the cloud static database to a local cache pool;
step S206, executing local compilation of business engineering to generate a static database;
step S207, storing the static database in a local cache pool.
In a second aspect, the present invention further provides an apparatus for compiling application service engineering, as shown in fig. 3, the apparatus includes:
the compiling module 21 is configured to compile each service project in the application program to obtain a corresponding static database when the application program is compiled for the first time;
the storage module 22 is configured to store the static database corresponding to each business project in a local cache;
and the copying module 23 is configured to copy the static database of each business project in the local cache to the target location when the application program is compiled again.
In one embodiment, the system further comprises a log module, configured to generate a compiling log of each business project when an application program is compiled for the first time, where the compiling log records problems in the business project compiling process; and the storage module is also used for storing the compiling log in a local cache.
In an embodiment, the system further includes a key module, configured to generate a key according to a business project name for an arbitrary business project when the application program is compiled for the first time, and store the key in a local cache;
the searching module is used for searching whether a static database of the business engineering exists in a local cache according to the secret key of the business engineering for any business engineering when the application program is compiled again;
and the copying module is used for copying the static database of the business engineering in the cache to a target position if the searching module determines that the static database of the business engineering is locally cached.
According to a third aspect of the present application, there is provided an application business engineering compiling apparatus; referring to fig. 4, including at least one processor 31 and at least one memory 32; the memory 32 is for storing one or more program instructions; the processor 31 is configured to execute one or more program instructions to perform any one of the above methods.
In a fourth aspect, the present application also proposes a computer-readable storage medium having embodied therein one or more program instructions for executing the method of any one of the above.
The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The processor reads the information in the storage medium and completes the steps of the method in combination with the hardware.
The storage medium may be a memory, for example, which may be volatile memory or nonvolatile memory, or which may include both volatile and nonvolatile memory.
The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory.
The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (SLDRAM), and Direct Rambus RAM (DRRAM).
The storage media described in connection with the embodiments of the invention are intended to comprise, without being limited to, these and any other suitable types of memory.
Those skilled in the art will appreciate that the functionality described in the present invention may be implemented in a combination of hardware and software in one or more of the examples described above. When software is applied, the corresponding functionality may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A method for compiling application program business engineering is characterized by comprising the following steps:
when an application program is compiled for the first time, compiling each business project in the application program to obtain a corresponding static database;
storing the static database corresponding to each business project in a local cache;
and when the application program is compiled again, copying the static database of each business project in the local cache to a target position.
2. The method for compiling an application program business project of claim 1, wherein when an application program is compiled for the first time, a compilation log of each business project is generated, and the compilation log records problems in the business project compilation process; storing the compilation log in a local cache.
3. The method for compiling an application business project of claim 1, wherein when the application is compiled for the first time, the method further comprises, for any one business project: generating a secret key according to the business engineering name, and storing the secret key in a local cache;
when the application program is compiled again, for any business engineering, whether a static database of the business engineering exists in a local cache is searched according to the secret key of the business engineering;
and if so, copying the static database of the business engineering in the cache to a target position.
4. The method of application business engineering compilation according to claim 3, wherein when the application is compiled again, the method further comprises, for any one business engineering: if the local cache does not have the static cache database corresponding to the business engineering, whether the cloud cache has the static library of the business engineering is searched according to the cache secret key;
and if so, downloading the static library of the business engineering in the cloud cache to a local cache.
5. The method of application business engineering compilation according to claim 3, wherein generating a key based on the business engineering name comprises:
carrying out Hash encryption operation on the business engineering name to obtain an encrypted Hash value;
acquiring a version value of the business engineering;
and obtaining the secret key according to the hash value, the version value and the name of the business engineering.
6. An apparatus for compiling application program business engineering, comprising:
the compiling module is used for compiling each business project in the application program to obtain a corresponding static database when the application program is compiled for the first time;
the storage module is used for storing the static database corresponding to each business project in a local cache;
and the copying module is used for copying the static database of each business project in the local cache to a target position when the application program is compiled again.
7. The apparatus for compiling an application program business project of claim 6, further comprising a log module, configured to generate a compilation log of each business project when the application program is compiled for the first time, where the compilation log records problems during the compilation of the business project; and the storage module is also used for storing the compiling log in a local cache.
8. The apparatus for compiling an application program business project according to claim 6, further comprising a key module, configured to generate a key according to a business project name for any one business project when the application program is compiled for the first time, and store the key in a local cache;
the searching module is used for searching whether a static database of the business engineering exists in a local cache according to the secret key of the business engineering for any business engineering when the application program is compiled again;
and the copying module is used for copying the static database of the business engineering in the cache to a target position if the searching module determines that the static database of the business engineering is locally cached.
9. An application business engineering compiling apparatus, comprising: at least one processor and at least one memory; the memory is to store one or more program instructions; the processor, configured to execute one or more program instructions to perform the method of any of claims 1-5.
10. A computer-readable storage medium having one or more program instructions embodied therein for performing the method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110446337.5A CN113031965B (en) | 2021-04-23 | 2021-04-23 | Method, device, equipment and storage medium for compiling application program business engineering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110446337.5A CN113031965B (en) | 2021-04-23 | 2021-04-23 | Method, device, equipment and storage medium for compiling application program business engineering |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113031965A true CN113031965A (en) | 2021-06-25 |
CN113031965B CN113031965B (en) | 2024-08-16 |
Family
ID=76457698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110446337.5A Active CN113031965B (en) | 2021-04-23 | 2021-04-23 | Method, device, equipment and storage medium for compiling application program business engineering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113031965B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170208150A1 (en) * | 2016-01-20 | 2017-07-20 | Google Inc. | Methods and apparatus to selectively provide cached and presently compiled applications |
CN111240689A (en) * | 2020-01-13 | 2020-06-05 | 广州虎牙科技有限公司 | Application program construction method, device, equipment and storage medium |
CN111475165A (en) * | 2020-03-08 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Intelligent compiling method, system, terminal and storage medium for application program |
CN111638884A (en) * | 2020-05-19 | 2020-09-08 | 贝壳技术有限公司 | Method, system, device and storage medium for plug-in engineering compilation |
CN112114814A (en) * | 2020-09-22 | 2020-12-22 | 北京达佳互联信息技术有限公司 | Compiled file determining method and device and application program generating method and device |
CN112148386A (en) * | 2020-10-12 | 2020-12-29 | Oppo广东移动通信有限公司 | Application loading method and device and computer readable storage medium |
-
2021
- 2021-04-23 CN CN202110446337.5A patent/CN113031965B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170208150A1 (en) * | 2016-01-20 | 2017-07-20 | Google Inc. | Methods and apparatus to selectively provide cached and presently compiled applications |
CN111240689A (en) * | 2020-01-13 | 2020-06-05 | 广州虎牙科技有限公司 | Application program construction method, device, equipment and storage medium |
CN111475165A (en) * | 2020-03-08 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Intelligent compiling method, system, terminal and storage medium for application program |
CN111638884A (en) * | 2020-05-19 | 2020-09-08 | 贝壳技术有限公司 | Method, system, device and storage medium for plug-in engineering compilation |
CN112114814A (en) * | 2020-09-22 | 2020-12-22 | 北京达佳互联信息技术有限公司 | Compiled file determining method and device and application program generating method and device |
CN112148386A (en) * | 2020-10-12 | 2020-12-29 | Oppo广东移动通信有限公司 | Application loading method and device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113031965B (en) | 2024-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10200502B2 (en) | Method and apparatus for software update management | |
CN104793946B (en) | Dispositions method and system are applied based on cloud computing platform | |
CN109032631B (en) | Application program patch package obtaining method and device, computer equipment and storage medium | |
CN110083360B (en) | Compiling method, device, equipment and storage medium of application program code | |
US10089371B2 (en) | Extensible extract, transform and load (ETL) framework | |
CN110716845B (en) | Log information reading method of Android system | |
CN108614702B (en) | Byte code optimization method and device | |
CN111124480B (en) | Method and device for generating application program package, electronic equipment and storage medium | |
CN102779029A (en) | Method and device for scrambling JavaScript code | |
CN111984264A (en) | Static library generation method and device | |
CN111125115A (en) | Data storage method, device and medium based on block chain | |
CN107092517B (en) | SDK tool package generation method and device | |
CN113031965B (en) | Method, device, equipment and storage medium for compiling application program business engineering | |
CN111984595B (en) | File processing method and device and storage medium | |
CN111131474A (en) | Method, device and medium for managing user protocol based on block chain | |
CN115951870A (en) | Mirror image file compiling method, system, equipment and medium | |
CN113656100B (en) | Interface switching method, device, electronic device and computer program product | |
CN111400243B (en) | Development management system based on pipeline service and file storage method and device | |
US11442722B2 (en) | Tree-conversion delta encoding | |
CN102629259A (en) | Read-only file system setting up method in embedded system, device and embedded system | |
CN112612805A (en) | Method and related device for indexing hbase data to query engine | |
CN112241286A (en) | Resource package configuration method and device and storage medium | |
CN112882720B (en) | Compiling method and device | |
CN111158701B (en) | Library module issuing method, device, equipment and storage medium | |
CN113687973B (en) | Control method, equipment and medium for log dynamic output |
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 |