Compiling method, terminal and management system platform under android system

By using a Gradle plugin in the Android system to modify the mapping file in memory, the conflict caused by simultaneous modifications to Gradle scripts by both the platform and developers is resolved. This allows for modification of project dependencies without altering the script files, thus improving compilation efficiency.

CN115469873BActive Publication Date: 2025-12-16JINGDONG TECH HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110655241.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-11
Publication Date
2025-12-16
Estimated Expiration
2041-06-11

AI Technical Summary

Technical Problem

During the Android project build process, conflicts can easily occur when the platform and developers modify Gradle script files, leading to compilation failures and making it difficult to modify build parameters and project dependencies without modifying the script files.

Method used

By loading script files into runtime memory and generating mapping files, the Gradle plugin receives input and configuration files, and modifies the mapping files based on this data to finalize project dependencies, thus avoiding direct modification of script files.

Benefits of technology

This solution resolved the conflict issue caused by simultaneous script modifications by both the platform and developers, improving development efficiency and preventing compilation failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115469873B_ABST
    Figure CN115469873B_ABST
Patent Text Reader

Abstract

The application provides a compiling method, a terminal, a management system platform, computer equipment and a readable storage medium under an Android system. The compiling method is used for the terminal and includes the following steps: loading a script file corresponding to a to-be-compiled project in a running memory, so as to build a mapping file corresponding to the script file in the running memory; running a plug-in associated with the script file; receiving a first input and a configuration file sent by the management system platform; determining first compiling data according to one or more of the first input and the configuration file through the plug-in; and modifying the mapping file through the first compiling data, so as to compile the to-be-compiled project through the modified mapping file. The method provided by the application solves the problem of conflicts caused by simultaneous modification of a project by a platform and a developer.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of compilation, in particular to a compilation method under an Android system, a terminal, a management system platform, computer equipment and a readable storage medium. BACKGROUND

[0002] In the related art, an Android project needs to be constructed using, for example, a Gradle script. During the construction process, if it is necessary to modify the construction parameters and project dependencies, the file body of the Gradle script must be modified. Therefore, when the platform and the developer both modify the file of the Gradle script, mutual influence and conflicts occur. Therefore, how to modify the construction parameters and project dependencies without modifying the script file is a technical problem that needs to be solved urgently. SUMMARY

[0003] The present application aims to at least solve the technical problem in the prior art or related art that the script file must be modified when modifying the construction parameters and project dependencies.

[0004] To this end, a first aspect of the present application provides a compilation method under an Android system.

[0005] A second aspect of the present application provides a terminal.

[0006] A third aspect of the present application provides a compilation method.

[0007] A fourth aspect of the present application provides a management system platform.

[0008] A fifth aspect of the present application provides computer equipment.

[0009] A sixth aspect of the present application provides a readable storage medium.

[0010] Therefore, according to the first aspect of the present application, a compilation method under an Android system is provided for a terminal, comprising: loading a script file corresponding to a to-be-compiled project in a running memory to construct a mapping file corresponding to the script file in the running memory; running a plug-in associated with the script file; receiving a first input and receiving a configuration file sent by a management system platform; determining first compilation data according to one or more of the first input and the configuration file through the plug-in; and modifying the mapping file through the first compilation data to compile the to-be-compiled project through the modified mapping file.

[0011] The compiling method provided in the application first loads a script corresponding to the to-be-compiled project into a running memory, so that the script can run, wherein the script is a compiling script and can compile the to-be-compiled project; after the script is loaded, a mapping file corresponding to the script is generated in the running memory; then a plug-in associated with the script is run, and the plug-in can modify the mapping file generated in the running memory by the script. Then a first input input by a research and development personnel on a terminal and a configuration file sent by a management system platform are received, wherein the first input and the configuration file both contain information of project dependencies of the to-be-compiled project. According to the first input and the configuration file or one of the two, first compiling data can be determined by the plug-in, the first compiling data contains information of finally determined project dependencies; finally, the mapping file is modified according to the first compiling data, so that the information of finally determined project dependencies is contained in the mapping file; and the to-be-compiled project is compiled through the modified mapping file, at this time, the project dependencies of the to-be-compiled project are the finally determined project dependencies. The compiling method provided in the application can directly modify the mapping of the script in the memory when the project dependencies need to be modified, so that the project dependencies can be modified without modifying the script, the problem that the platform and the research and development personnel modify the compiling script at the same time and cause conflicts in the prior art is effectively solved, the compiling failure caused by the conflicts is avoided, and the development efficiency is improved.

[0012] In addition, the compiling method under the Android system provided in the above technical solution of the application can also have the following technical features.

[0013] In a possible design, the script is a Gradle script, and the plug-in is a Gradle plug-in.

[0014] In this design, Gradle is a project automation building open tool based on the concepts of Apache Ant and Apache Maven, supports transitive dependency management, does not need a remote warehouse or pom.xml and ivy.xml configuration files, and can build an Android project. The script in the application is a Gradle script, and the plug-in is a Gradle plug-in, that is, a script and a plug-in written based on the Gradle framework, wherein the Gradle script can compile the to-be-compiled Android project, and the Gradle plug-in can modify the mapping of the Gradle script in the memory. The Gradle plug-in can be independently written and reused between different projects, and the development efficiency is improved.

[0015] In a possible design, the first input is received by the plug-in when the plug-in is in a running state.

[0016] In the design, the step of receiving the first input specifically comprises receiving the first input through the plug-in in the case that the plug-in is in a running state. That is, the plug-in associated with the script is first loaded into the running memory and made to run, and when the process corresponding to the plug-in runs, the first input from the terminal can be received through the plug-in, and then the first compiling data is determined according to the received first input and the configuration file to modify the mapping of the script in the running memory.

[0017] According to a second aspect of the present application, a terminal for compiling under an Android system is provided, comprising: a running unit configured to load a script file corresponding to a to-be-compiled project into a running memory to construct a mapping file corresponding to the script file in the running memory; the running unit is further configured to run a plug-in associated with the script file; a terminal receiving unit configured to receive a first input and receive a configuration file sent by a management system platform; and a compiling unit configured to determine first compiling data through the plug-in according to one or more of the first input and the configuration file; the compiling unit is further configured to modify the mapping file through the first compiling data to compile the to-be-compiled project through the modified mapping file.

[0018] Specifically, the terminal comprises a running unit, a terminal receiving unit and a compiling unit. The running unit can load a script corresponding to a to-be-compiled project into a running memory to make the script run, wherein the script is a compiling script and can compile the to-be-compiled project. After the script is loaded, a mapping file corresponding to the script is generated in the running memory. The running unit can also run a plug-in associated with the script, and the plug-in can modify the mapping file generated in the running memory by the script. The receiving unit can receive a first input input by a research and development personnel on the terminal and a configuration file sent by a management system platform, respectively, wherein the first input and the configuration file both contain information of project dependencies of the to-be-compiled project. Through the plug-in, the compiling unit can determine first compiling data according to one or both of the first input and the configuration file, wherein the first compiling data contains finally determined information of project dependencies. Finally, the compiling unit can modify the mapping file according to the first compiling data, so that the finally determined information of project dependencies is contained in the mapping file, and the to-be-compiled project is compiled through the modified mapping file. At this time, the project dependencies of the to-be-compiled project are the finally determined project dependencies. The terminal provided by the present application is used for compiling under an Android system. When the project dependencies need to be modified, the mapping of the script in the memory is directly modified to achieve the effect of modifying the project dependencies without modifying the script, effectively solving the problem of conflicts caused by simultaneous modification of the compiling script by the platform and the research and development personnel in the prior art, avoiding compilation failure caused by conflicts, and improving the development efficiency.

[0019] In addition, the terminal according to the technical solution of the present application can have the following technical features:

[0020] In a possible design, the script is a Gradle script, and the plugin is a Gradle plugin.

[0021] In this design, Gradle is a project automation build tool based on the concepts of Apache Ant and Apache Maven, supports transitive dependency management, does not need a remote repository or pom.xml and ivy.xml configuration files, and can build an Android project. The script in the present application is a Gradle script, and the plugin is a Gradle plugin, that is, a script and a plugin written based on the Gradle framework, wherein the Gradle script can compile an Android project to be compiled, and the Gradle plugin can modify the mapping of the Gradle script in the memory. The Gradle plugin can be written autonomously and can be reused between different projects, improving the development efficiency.

[0022] In a possible design, the terminal receiving unit receives the first input through the plugin when the plugin is in a running state.

[0023] In this design, the terminal receiving unit receives the first input through the plugin when the plugin is in a running state. That is, first, the running unit loads the plugin associated with the script into the running memory and makes the plugin run, when the process corresponding to the plugin runs, the terminal receiving unit can receive the first input from the terminal through the plugin, and then the compiling unit determines the first compilation data according to the received first input and the configuration file, to modify the mapping of the script in the running memory.

[0024] According to a third aspect of the present application, a compiling method under an Android system is provided, for managing a system platform, including: reading a plugin in a running memory of a terminal when a mapping file corresponding to a script file is constructed in the running memory; receiving a second input; determining second compilation data according to the second input; generating a configuration file corresponding to the plugin according to the second compilation data; and sending the configuration file to the terminal, so that the terminal obtains the second compilation data according to the configuration file through the plugin, and modifies the mapping file through the second compilation data.

[0025] Specifically, the compiling method of the third aspect of the present application is used in the management system platform. When the mapping file corresponding to the script file is built in the running memory of the terminal, that is, when the script file of the terminal is loaded into the memory, the plug-in is also loaded into the memory. At this time, the plug-in in the running memory is read. The second input from the platform is received, and the second compiling data is determined according to the second input. The second compiling data contains the information of the project dependency of the project to be compiled modified at the system management platform end. Then, the configuration file corresponding to the read plug-in is generated according to the second compiling data, and the generated configuration file is sent to the terminal, so that the terminal can obtain the second compiling data according to the configuration file, and modify the mapping file corresponding to the script according to the first input and the second compiling data obtained from the configuration file.

[0026] According to the fourth aspect of the present application, a management system platform is provided, comprising: a reading unit, configured to read the plug-in in the running memory of the terminal when the mapping file corresponding to the script file is built in the running memory of the terminal; a platform receiving unit, configured to receive the second input; a building unit, configured to determine the second compiling data according to the second input; the building unit is further configured to generate the configuration file corresponding to the plug-in according to the second compiling data; and a sending unit, configured to send the configuration file to the terminal, so that the terminal obtains the second compiling data from the configuration file through the plug-in, and modifies the mapping file through the second compiling data.

[0027] Specifically, the management system platform comprises the reading unit, the platform receiving unit, the building unit and the sending unit. When the mapping file corresponding to the script file is built in the running memory of the terminal, that is, when the script file of the terminal is loaded into the memory, the plug-in is also loaded into the memory. At this time, the reading unit can read the plug-in in the running memory. The platform receiving unit can receive the second input from the platform. The building unit determines the second compiling data according to the second input. The second compiling data contains the information of the project dependency of the project to be compiled modified at the system management platform end. Then, the configuration file corresponding to the read plug-in is generated according to the second compiling data. Finally, the generated configuration file is sent to the terminal by the sending unit, so that the terminal can obtain the second compiling data according to the configuration file, and modify the mapping file corresponding to the script according to the first input and the second compiling data obtained from the configuration file.

[0028] According to the fifth aspect of the present application, a computer device is provided, comprising a processor and a memory. The processor is configured to execute the program or instruction stored in the memory to realize the steps of the recommended method of the compiling method of any design of the first aspect or the third aspect. Therefore, the computer device has all the beneficial effects of the compiling method, which will not be described here.

[0029] According to a sixth aspect of the present application, there is provided a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the compiling method according to any design of the first aspect or the third aspect as described above, thus having all the advantages of the compiling method, which are not repeated here.

[0030] Additional aspects and advantages of the present application will become apparent from the following description with reference to specific embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0031] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description, taken in conjunction with the accompanying drawings, in which:

[0032] Figure 1 a flowchart of a compiling method of one embodiment of the first aspect of the present application is shown;

[0033] Figure 2 a structural diagram of a terminal of one embodiment of the second aspect of the present application is shown;

[0034] Figure 3 a flowchart of a compiling method of one embodiment of the third aspect of the present application is shown;

[0035] Figure 4 a structural diagram of a management system platform of one embodiment of the fourth aspect of the present application is shown;

[0036] Figure 5 an interaction diagram of the terminal of the second aspect and the management system platform of the fourth aspect of the present application is shown;

[0037] Figure 6 a structural diagram of a computer device of one embodiment of the fifth aspect of the present application is shown, wherein, Figure 2 Figure 4 and Figure 6 the correspondence between the reference signs and the component names in the above-mentioned drawings is as follows:

[0038] 100 terminal, 110 running unit, 120 terminal receiving unit, 130 compiling unit, 200 management system platform, 210 reading unit, 220 platform receiving unit, 230 building unit, 240 sending unit, 300 computer device, 310 processor, 320 memory. DETAILED DESCRIPTION

[0039] In order to enable the above-mentioned objects, features and advantages of the present application to be more clearly understood, the present application will be further described below with reference to the drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict. ​

[0040] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, it will be apparent to one skilled in the art that the present application can be practiced without the specific details set forth in this description.

[0041] An embodiment of the first aspect of the present application provides a compiling method under an Android system, used for a terminal 100, Figure 1 A flowchart of the compiling method of an embodiment of the first aspect of the present application is shown. The method comprises:

[0042] S101, loading a script file corresponding to a to-be-compiled project in a running memory, to build a mapping file corresponding to the script file in the running memory;

[0043] S102, running a plug-in associated with the script file;

[0044] S103, receiving a first input and receiving a configuration file sent by a management system platform;

[0045] S104, determining first compiling data according to one or more of the first input and the configuration file through the plug-in;

[0046] S105, modifying the mapping file through the first compiling data, to compile the to-be-compiled project through the modified mapping file.

[0047] The compiling method provided by the embodiment of the present application first loads a script corresponding to a to-be-compiled project into a running memory, so that the script can run, wherein the script is a compiling script and can compile the to-be-compiled project. After loading the script, a mapping file corresponding to the script is generated in the running memory. Then a plug-in associated with the script is run, and the plug-in can modify the mapping file generated in the running memory by the script. Then a first input input by a developer in the terminal 100 and a configuration file sent by a management system platform 200 are received respectively, wherein the first input and the configuration file both contain information of project dependencies of the to-be-compiled project. Through the plug-in, first compiling data can be determined according to one or both of the first input and the configuration file, and the first compiling data contains information of finally determined project dependencies. Finally, the mapping file is modified according to the first compiling data, so that the mapping file contains information of finally determined project dependencies. The to-be-compiled project is compiled through the modified mapping file, and at this time, the project dependencies of the to-be-compiled project are finally determined. The compiling method provided by the present application directly modifies the mapping of the script in the memory when the project dependencies need to be modified, so as to achieve the effect of modifying the project dependencies without modifying the script, effectively solving the problem that the platform and the developer modify the compiling script at the same time in the prior art, avoiding the compilation failure caused by the conflict, and improving the development efficiency.

[0048] In some embodiments, the script is a Gradle script, and the plugin is a Gradle plugin.

[0049] In this embodiment, Gradle is a project automation build tool based on the concepts of Apache Ant and Apache Maven, supports transitive dependency management, does not require remote repositories or pom.xml and ivy.xml configuration files, and can build Android projects. The script in the present application is a Gradle script, and the plugin is a Gradle plugin, that is, a script and a plugin written based on the Gradle framework, wherein the Gradle script can compile the Android project to be compiled, and the Gradle plugin can modify the mapping of the Gradle script in the memory. The Gradle plugin can be written independently and can be reused between different projects, improving development efficiency.

[0050] In some embodiments, receiving the first input comprises: receiving the first input through the plugin in a case where the plugin is in a running state.

[0051] In this embodiment, the step of receiving the first input specifically comprises receiving the first input through the plugin in a case where the plugin is in a running state. That is, the plugin associated with the script is first loaded into the running memory and made to run, and when the process corresponding to the plugin runs, the first input from the terminal 100 can be received through the plugin, and then the first compilation data is determined according to the received first input and the configuration file to modify the mapping of the script in the running memory.

[0052] As shown in Figure 2 The second aspect of the present application proposes a terminal 100 for compilation under an Android system, comprising: a running unit 110 configured to load a script file corresponding to a project to be compiled in a running memory to build a mapping file corresponding to the script file in the running memory; the running unit 110 is further configured to run a plugin associated with the script file; a terminal receiving unit 120 configured to receive a first input and receive a configuration file sent by a management system platform 200; a compilation unit 130 configured to determine first compilation data through the plugin according to one or more of the first input and the configuration file; the compilation unit 130 is further configured to modify the mapping file through the first compilation data to compile the project to be compiled through the modified mapping file.

[0053] The terminal 100 provided by the embodiment of the present application comprises a running unit 110, a terminal receiving unit 120 and a compiling unit 130. The running unit 110 can load a script corresponding to a project to be compiled into a running memory, so that the script can run, wherein the script is a compiling script and can compile the project to be compiled. After the script is loaded, a mapping file corresponding to the script is generated in the running memory. The running unit 110 can also run a plug-in associated with the script, and the plug-in can modify the mapping file generated in the running memory by the script. The receiving unit can receive a first input input by a research and development personnel on the terminal 100 and a configuration file sent by a management system platform 200 respectively, wherein the first input and the configuration file both contain information of project dependencies of the project to be compiled. According to the first input and the configuration file or one of the two, the compiling unit 130 can determine first compiling data by the plug-in, and the first compiling data contains information of finally determined project dependencies. Finally, the compiling unit 130 can modify the mapping file according to the first compiling data, so that the information of finally determined project dependencies is contained in the mapping file. The project to be compiled is compiled through the modified mapping file, and at this time, the project dependencies of the project to be compiled are the finally determined project dependencies. The terminal 100 provided by the present application is used for compiling under an Android system. When the project dependencies need to be modified, the mapping of the script in the memory is directly modified, so that the effect of modifying the project dependencies without modifying the script is achieved. The problem that the compiling script is simultaneously modified by the platform and the research and development personnel in the prior art, which leads to conflicts, is effectively solved. The compiling failure caused by the conflicts is avoided, and the development efficiency is improved.

[0054] In addition, the terminal 100 provided by the above technical solution of the present application can also have the following technical features:

[0055] In some embodiments, the script is a Gradle script, and the plug-in is a Gradle plug-in.

[0056] In this embodiment, Gradle is a project automation building open tool based on the concepts of Apache Ant and Apache Maven, supports transitive dependency management, does not need a remote warehouse or pom.xml and ivy.xml configuration files, and can build an Android project. The script in the present application is a Gradle script, and the plug-in is a Gradle plug-in, that is, a script and a plug-in written based on the Gradle framework, wherein the Gradle script can compile an Android project to be compiled, and the Gradle plug-in can modify the mapping of the Gradle script in the memory. The Gradle plug-in can be independently written and can be reused between different projects, thereby improving the development efficiency.

[0057] In some embodiments, the terminal receiving unit 120 receives the first input through the plug-in when the plug-in is in a running state.

[0058] In this embodiment, the terminal receiving unit 120 receives the first input through the plug-in in the case that the plug-in is in the running state. That is, first, the running unit 110 loads the plug-in associated with the script into the running memory and makes the plug-in run, and when the plug-in corresponding process runs, the terminal receiving unit 120 can receive the first input from the terminal 100 through the plug-in, and then the compiling unit 130 determines the first compiling data according to the received first input and the configuration file to modify the mapping of the script in the running memory.

[0059] The third aspect of the present application provides a compiling method under an Android system, used for managing the system platform 200, comprising: reading the plug-in in the running memory of the terminal 100 in the case that the mapping file corresponding to the script file is constructed in the running memory; receiving the second input; determining the second compiling data according to the second input; generating the configuration file corresponding to the plug-in according to the second compiling data; and sending the configuration file to the terminal 100, so that the terminal 100 acquires the second compiling data according to the configuration file through the plug-in, and modifies the mapping file through the second compiling data.

[0060] Figure 3 A flowchart of the compiling method of one embodiment of the third aspect of the present application is shown.

[0061] The method comprises:

[0062] S301, reading the plug-in in the running memory of the terminal in the case that the mapping file corresponding to the script file is constructed in the running memory;

[0063] S302, receiving the second input;

[0064] S303, determining the second compiling data according to the second input;

[0065] S304, generating the configuration file corresponding to the plug-in according to the second compiling data;

[0066] S305, sending the configuration file to the terminal, so that the terminal acquires the second compiling data according to the configuration file through the plug-in, and modifies the mapping file through the second compiling data.

[0067] Specifically, the compiling method of the third aspect of the present application is used in the management system platform 200. When the mapping file corresponding to the script file is built in the running memory of the terminal 100, that is, when the script file of the terminal 100 is loaded into the memory, the plug-in is also loaded into the memory. At this time, the plug-in in the running memory is read. The second input from the platform is received, and the second compiling data is determined according to the second input. The second compiling data contains the information of the project dependency of the to-be-compiled project modified at the system management platform end. Then, the configuration file corresponding to the read plug-in is generated according to the second compiling data, and the generated configuration file is sent to the terminal 100, so that the terminal 100 can obtain the second compiling data according to the configuration file, and modify the mapping file corresponding to the script according to the first input and the second compiling data obtained from the configuration file.

[0068] As shown in Figure 4 The fourth aspect of the present application proposes a management system platform 200, which comprises: a reading unit 210, configured to read the plug-in in the running memory when the mapping file corresponding to the script file is built in the running memory of the terminal 100; a platform receiving unit 220, configured to receive the second input; a building unit 230, configured to determine the second compiling data according to the second input; the building unit 230 is further configured to generate the configuration file corresponding to the plug-in according to the second compiling data; and a sending unit 240, configured to send the configuration file to the terminal 100, so that the terminal 100 obtains the second compiling data from the configuration file through the plug-in, and modifies the mapping file through the second compiling data.

[0069] Specifically, the management system platform 200 comprises the reading unit 210, the platform receiving unit 220, the building unit 230 and the sending unit 240. When the mapping file corresponding to the script file is built in the running memory of the terminal 100, that is, when the script file of the terminal 100 is loaded into the memory, the plug-in is also loaded into the memory. At this time, the reading unit 210 can read the plug-in in the running memory. The platform receiving unit 220 can receive the second input from the platform. The building unit 230 determines the second compiling data according to the second input. The second compiling data contains the information of the project dependency of the to-be-compiled project modified at the system management platform end. Then, the configuration file corresponding to the read plug-in is generated according to the second compiling data. Finally, the sending unit 240 sends the generated configuration file to the terminal 100, so that the terminal 100 can obtain the second compiling data according to the configuration file, and modify the mapping file corresponding to the script according to the first input and the second compiling data obtained from the configuration file.

[0070] Figure 5An interaction diagram of the terminal 100 of the second aspect and the management system platform 200 of the fourth aspect is shown, as shown in the figure, the management system platform 200 can receive the input of the modified configuration, wherein the modified configuration comprises reading the second compiled data, reading the Gradle plug-in running in the memory, and writing the modified configuration into the configuration file of the Android project according to the read Gradle plug-in and sending to the terminal 100 to enable the terminal to obtain the second compiled data by reading the configuration file; the terminal 100 performs the compilation operation, first loads the Gradle script and the Gradle plug-in into the memory, receives the configuration file from the management system platform 200 to obtain the second compiled data in the case that the Gradle plug-in is in the running state, and receives the first input input by the R&D personnel on the terminal, determines the first compiled data according to one or more of the first input and the second compiled data, modifies the mapping of the Gradle script in the memory according to the first compiled data and completes the compilation process, and by modifying the mapping of the Gradle script in the memory instead of modifying the script, the problem of conflict caused by simultaneously modifying the Gradle script in the management system platform 200 and the terminal 100 is avoided.

[0071] As Figure 6 shown, the embodiment of the fifth aspect of the present application proposes a computer device 300, comprising a processor 310 and a memory 320, the processor 310 is used to execute the program or instruction stored in the memory 320 to realize the steps of the recommended method of the compilation method as any design of the above-mentioned first aspect or third aspect, thus having all the beneficial effects of the compilation method, which will not be repeated here.

[0072] The embodiment of the sixth aspect of the present application provides a readable storage medium, which stores the program or instruction, the program or instruction is executed by the processor 310 to realize the steps of the compilation method of any embodiment of the above-mentioned first aspect or third aspect, thus having all the beneficial effects of the compilation method, which will not be repeated here. The readable storage medium can include any medium capable of storing or transmitting information. Examples of readable storage medium include electronic circuit, semiconductor memory device, ROM, flash memory, erasable ROM (EROM), floppy disk, CD-ROM, optical disc, hard disk, optical fiber medium, radio frequency (RF) link, etc. Code segments can be downloaded via a network such as the Internet, intranet, etc.

[0073] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a", "comprising", or "includes a", does not, without more constraints, preclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element. Additionally, it should be noted that the methods and computer devices of the present embodiments are not limited to the order of execution of the functions as shown or discussed, and that the functions can be executed in different orders, in substantially simultaneous fashion, or in reverse order, depending on the functionality involved, such as described herein. For example, the methods described herein can be performed in an order other than that described, and additional, fewer, or different steps can be provided. Additionally, features described in the context of certain examples can be combined in other examples.

[0074] The embodiments of the present application described above are merely exemplary and are not intended to limit the present application to the above-described embodiments, which are merely illustrative, but not restrictive. Those skilled in the art can make many modifications and variations to the present application without departing from the spirit and scope of the present application, which are defined by the appended claims.

[0075] The above description is merely illustrative of the preferred embodiments of the present application and is not intended to limit the present application. The present application can have various modifications and changes, and all such modifications and changes are intended to be within the scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims

1. A compiling method under an Android system, used for a terminal, characterized in that, The method comprises: loading a script file corresponding to a project to be compiled in a running memory to build a mapping file corresponding to the script file in the running memory; running a plug-in associated with the script file, the plug-in being capable of modifying the mapping file generated by the script in the running memory; receiving a first input and a configuration file sent by a management system platform; determining first compilation data according to one or more of the first input and the configuration file through the plug-in; modifying the mapping file through the first compilation data to include information of finally determined project dependencies in the mapping file to compile the project to be compiled through the modified mapping file.

2. The method according to claim 1, wherein: the script is a Gradle script; the plug-in is a Gradle plug-in.

3. The compiling method of claim 1, wherein, The receiving of the first input comprises: receiving the first input through the plug-in when the plug-in is in a running state.

4. A terminal for compiling under an Android system, characterized in that, The terminal comprises: a running unit configured to load a script file corresponding to a project to be compiled in a running memory to build a mapping file corresponding to the script file in the running memory; the running unit is further configured to run a plug-in associated with the script file, the plug-in being capable of modifying the mapping file generated by the script in the running memory; a terminal receiving unit configured to receive a first input and a configuration file sent by a management system platform; a compiling unit configured to determine first compilation data according to one or more of the first input and the configuration file through the plug-in; the compiling unit is further configured to modify the mapping file through the first compilation data to include information of finally determined project dependencies in the mapping file to compile the project to be compiled through the modified mapping file.

5. The terminal according to claim 4, wherein: the script is a Gradle script; the plug-in is a Gradle plug-in.

6. The terminal according to claim 4, wherein: the terminal receiving unit receives the first input through the plug-in when the plug-in is in a running state. 7.A compiling method under an Android system, used for managing a system platform, characterized in that, The method comprises: reading a plug-in in a running memory of a terminal when a mapping file corresponding to a script file is built in the running memory, the plug-in being capable of modifying the mapping file generated by the script in the running memory; receiving a second input; determining second compilation data according to the second input; generating a configuration file corresponding to the plug-in according to the second compilation data; sending the configuration file to the terminal to enable the terminal to acquire the second compilation data according to the configuration file through the plug-in and modify the mapping file through the second compilation data to include information of finally determined project dependencies in the mapping file.

8. A management system platform, characterized by, The management system platform comprises: a reading unit configured to read a plug-in in a running memory of a terminal when a mapping file corresponding to a script file is built in the running memory, the plug-in being capable of modifying the mapping file generated by the script in the running memory; a platform receiving unit configured to receive a second input; A constructing unit is configured to determine second compiling data according to the second input; The constructing unit is further configured to generate a configuration file corresponding to the plug-in according to the second compiling data; A sending unit is configured to send the configuration file to the terminal, so that the terminal acquires the second compiling data according to the configuration file through the plug-in, and modifies the mapping file through the second compiling data, so that the mapping file contains information of the finally determined project dependency.

9. A computer device, comprising: The computer device comprises a processor and a memory, and the processor is configured to execute a program or instructions stored in the memory to implement the steps of the compiling method according to any one of claims 1 to 3 and 7.

10. A readable storage medium, having stored thereon a program or instructions, characterized in that: The program or instructions are executed by the processor to implement the steps of the compiling method according to any one of claims 1 to 3 and 7.

Citation Information

Patent Citations

  • Hot update method and device for target application, storage medium and electronic equipment

    CN111666096A