CN107168749A - A kind of Compilation Method, device, equipment and computer-readable recording medium - Google Patents

A kind of Compilation Method, device, equipment and computer-readable recording medium Download PDF

Info

Publication number
CN107168749A
CN107168749A CN201710401413.4A CN201710401413A CN107168749A CN 107168749 A CN107168749 A CN 107168749A CN 201710401413 A CN201710401413 A CN 201710401413A CN 107168749 A CN107168749 A CN 107168749A
Authority
CN
China
Prior art keywords
file
code
compiled
class
application
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
Application number
CN201710401413.4A
Other languages
Chinese (zh)
Other versions
CN107168749B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710401413.4A priority Critical patent/CN107168749B/en
Publication of CN107168749A publication Critical patent/CN107168749A/en
Application granted granted Critical
Publication of CN107168749B publication Critical patent/CN107168749B/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/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The embodiment of the invention discloses a kind of Compilation Method, this method includes:The corresponding static file of the first code to be compiled of application to be installed is obtained, and the interface document based on application to be installed obtains the first file;First file is the text for the program code for preserving the application to be installed;According to the function of the second code to be compiled in the first file, the second code to be compiled divide obtaining at least two code modules;The code to be compiled in each code module is compiled respectively, the first class file is obtained;Based on static file, the first file and the first class file, the second class file of preset kind is generated;Resource based on application to be installed generates the second file, and obtains based on the second class file and the second file the installation kit of application to be installed;Second file is the file for the resource information for including application to be installed.Embodiments of the invention also disclose a kind of compilation device, equipment and computer-readable recording medium simultaneously.

Description

A kind of Compilation Method, device, equipment and computer-readable recording medium
Technical field
The present invention relates to the technique of compiling in computer realm, more particularly to a kind of Compilation Method, device, equipment and calculating Machine readable storage medium storing program for executing.
Background technology
In the development process of the application program of Android (Android) operating system, for mega project, compiling needs are accounted for Developer's plenty of time is used, simultaneously as needing to expend a large amount of internal memories and central processing unit (Central during compiling Processing Unit, CPU) resource, computer meeting interim card causes developer to be in idle condition, influence exploitation effect during compiling Rate.Meanwhile, it is to be compiled code as an entirety during compiled code in the prior art.When developer change code or Person due to when the reasons such as the function renewal of application program make it that code changes, it is necessary to re-start compiling to all codes Can just code be set to come into force.But, which increases workload and amount of calculation, it is necessary to expend the longer time.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention is expected to provide a kind of Compilation Method, device, equipment and computer Readable storage medium storing program for executing, is solved in existing code compilation scheme when certain some code is changed, it is necessary to by all generations The problem of code is recompilated, reduces workload and amount of calculation, reduces the time, improve efficiency.
The technical proposal of the invention is realized in this way:
First aspect includes there is provided a kind of Compilation Method, methods described:
Determine the corresponding static file of the first code to be compiled of application to be installed, and connecing based on the application to be installed Mouth file obtains the first file;Wherein, the first file is the text for the program code for preserving the application to be installed;
According to the function of the second code to be compiled in first file, the described second code to be compiled is divided Obtain at least two code modules;Wherein, the function of the described second code to be compiled is prestored;
The code to be compiled in each code module is compiled respectively, the first class file is obtained;
The second class file based on the static file, the first file and first kind file generated preset kind;
Resource based on application to be installed generates the second file, and obtains institute based on second class file and the second file State the installation kit of application to be installed;Wherein, second file is the file for the resource information for including the application to be installed.
Second aspect includes there is provided a kind of compilation device, described device:First acquisition unit, processing unit, second obtain Unit and generation unit, wherein:
The first acquisition unit, the corresponding static file of the first code to be compiled for determining application to be installed, and Interface document based on the application to be installed obtains the first file;Wherein, the first file is the preservation application to be installed The text of program code;
The processing unit, for the function according to the second code to be compiled in first file, by described second Code to be compiled divide obtaining at least two code modules;Wherein, the function of the described second code to be compiled is to deposit in advance Storage;
The second acquisition unit, for being respectively compiled the code to be compiled in each code module, obtains One class file;
The generation unit, for based on the static file, the first file and first kind file generated preset kind Second class file;
The first acquisition unit, is additionally operable to resource based on application to be installed and generates the second file, and based on described the Two class files and the second file obtain the installation kit of the application to be installed;Wherein, second file is treated described in including The file of the resource information of application is installed.
The third aspect compiles equipment there is provided one kind, and the equipment includes:Memory and processor, wherein:
The memory, for storing the corresponding static file of the application to be installed;
The processor, the corresponding static file of the first code to be compiled for determining application to be installed, and based on institute The interface document for stating application to be installed obtains the first file;Wherein, the first file is the program generation for preserving the application to be installed The text of code;According to the function of the second code to be compiled in first file, the described second code to be compiled is entered Row division obtains at least two code modules;Wherein, the function of the described second code to be compiled is prestored;Respectively will be every Code to be compiled in individual code module is compiled, and obtains the first class file;Based on the static file, the first file and One class file generates the second class file of preset kind;Resource based on application to be installed generates the second file, and based on described Second class file and the second file obtain the installation kit of the application to be installed;Wherein, second file is described to include The file of the resource information of application to be installed.
Fourth aspect is stored with one there is provided a kind of computer-readable recording medium in the computer-readable recording medium Individual or multiple computer programs, the computer program realizes first aspect methods described when being executed by processor the step of.
Compilation Method, device, equipment and computer-readable recording medium that embodiments of the invention are provided, it is determined that waiting to pacify The corresponding static file of first applied code to be compiled is filled, and the interface document based on application to be installed obtains the first file, First file is preserves the text of the program code of application to be installed, then according to the second generation to be compiled in the first file The function of code, the second code to be compiled divide obtaining at least two code modules, afterwards respectively by each code module In code to be compiled be compiled, the first class file is obtained, based on the static file, the first file and first kind file generated Second class file of preset kind, the resource for being based ultimately upon application to be installed generates the second file, and based on the second class file and Second file obtains the installation kit of application to be installed, and the second file is the file for the resource information for including application to be installed, this Sample, when compiled code according to division after obtained code module, code is compiled according to code module, when some Only need to recompilate the code in the code module where the code that changes when code changes, without All codes are recompilated, solved in existing code compilation scheme when certain some code is changed, are needed The problem of all codes are recompilated, reduces workload and amount of calculation, reduces the time, improves efficiency.
Brief description of the drawings
A kind of schematic flow sheet for Compilation Method that Fig. 1 provides for embodiments of the invention;
The schematic diagram for the code module that Fig. 2 obtains for a kind of division that embodiments of the invention are provided;
Automatically determine whether to increase newly after a kind of progress code module division and compiling that Fig. 3 provides for embodiments of the invention The schematic diagram of dex files;
The schematic flow sheet for another Compilation Method that Fig. 4 provides for embodiments of the invention;
A kind of structural representation for compilation device that Fig. 5 provides for embodiments of the invention;
A kind of structural representation for compiling equipment that Fig. 6 provides for embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.
Embodiments of the invention provide a kind of Compilation Method, and shown in reference picture 1, this method comprises the following steps:
Step 101, the corresponding static file of the first code to be compiled for obtaining application to be installed, and based on application to be installed Interface document obtain the first file.
Wherein, the first file is the text for the program code for preserving application to be installed.
Specifically, step 101 obtains the corresponding static file of the first code to be compiled of application to be installed, and based on waiting to pacify The interface document of dress application, which obtains the first file, to be realized by compilation device, and the compilation device can be used for compiling And the terminal for the installation kit for needing application program to be mounted is generated, can be mobile terminal.The terminal can be with implementing Be developer in the installation kit of development and application program exclusively with terminal, such as desktop computer, notebook computer.
First code to be compiled can be the program for being used to realize each function of application to be installed that programming personnel writes Code, static file can be R.java files, and specific R.java files can be the SDK using Android Aapt (Android Asset Packaging Tool) under bag (Software Development Kit, SDK) treats peace Fill what is generated after the processing of the resource file in the program code of application.Wherein, resource file specifically also refers to be installed answer The files such as picture and character string in program code.
Interface document can be .aidl files, and the first file can be corresponding .java files;First file can be Answered using aidl (the Android Interface Definition Language) instruments under Android SDK to be installed .aidl file process generation in program code, the .java files can be stored in/gen catalogues under;If for example, .aidl file is a.aidl files, and the .java files of correspondence generation are a.java files.
Step 102, the function according to the second code to be compiled in the first file, the second code to be compiled is divided Obtain at least two code modules.
Wherein, the function of the second code to be compiled is prestored.
Specifically, step 102 enters the second code to be compiled according to the function of the second code to be compiled in the first file It can be that compilation device is realized that row, which divides and obtains at least two code modules,.Second code to be compiled can be .java files In program code, for example can be the program code in a.java files.The function of second code to be compiled can be .java The corresponding difference in functionality for being used to realize application to be installed of different program codes in program code in file.Division is obtained Code module in, the function that the corresponding application to be installed of each code module can be realized is different.Second generation to be compiled Code is different from the first code to be compiled.
Step 103, the code to be compiled in each code module is compiled respectively, obtains the first class file.
Specifically, the code to be compiled in each code module is compiled by step 103 respectively, the first class file is obtained It can be realized by compilation device.First class file can be corresponding .class files, and what .class files included is to compile Program code after translating, the program code after these compilings is the program code that machine (terminal) can be recognized.
Step 104, based on static file, the first file and the first class file, generate the second class file of preset kind.
Specifically, step 104 is based on static file, the first file and the first class file, the Equations of The Second Kind of preset kind is generated File can be realized by compilation device;Second class file of preset kind can be static file, the first file that will be obtained Carry out what is obtained after certain processing with after the packing of the first class file, can be specifically R.java files, the .java texts that will be obtained Carry out what is obtained after certain processing after part and the packing of .class files.Second class file can be classes.dex files, its In, preset kind can be a kind of file type that machine (terminal) can be recognized.
Step 105, the resource based on application to be installed generate the second file, and are obtained based on the second class file and the second file To the installation kit of application to be installed.
Wherein, the second file is the file for the resource information for including application to be installed.
Specifically, resource of the step 104 based on application to be installed generates the second file, and based on the second class file and second The installation kit that file obtains application to be installed can be realized by compilation device;Second file can be resources.ap_ texts Part, the second file can be obtained after aapt instruments under the SDK using Android are handled the resource of application to be installed 's.Wherein, the resource of application to be installed can be the information such as the picture and character string of application to be installed.
The installation kit for obtaining application to be installed based on the second class file and the second file can be accomplished by the following way: (AndroidPackage builder, apkbuilder) instrument is created by the using the Android installation kit under Android SDK The Android unsigned is generated after two class files (classes.dex files) and the second file (resources.ap_ files) packing Installation kit (AndroidPackage, apk), afterwards, the jarsigner orders carried using JAVA are entered to the apk bags unsigned Obtained after row signature;Wherein, the installation kit of the generation application to be installed ultimately generated is can be in middle terminal (such as mobile phone) The apk bags of installation, apk bags now include signing messages in being.
The Compilation Method that embodiments of the invention are provided, determines that the first code to be compiled of application to be installed is corresponding quiet State file, and the interface document based on application to be installed obtains the first file, the first file is the program for preserving application to be installed The text of code, then according to the function of the second code to be compiled in the first file, the second code to be compiled is carried out Division obtains at least two code modules, is afterwards respectively compiled the code to be compiled in each code module, obtains One class file, based on second class file of the static file, the first file and first kind file generated preset kind, is based ultimately upon The resource of application to be installed generates the second file, and obtains based on the second class file and the second file the installation of application to be installed Bag, the second file is the file for the resource information for including application to be installed, so, when compiled code according to division after Obtained code module, is compiled according to code module to code, is only needed to when some codes change to becoming The code in code module where the code of change is recompilated, without being recompilated to all codes, solution When certain some code is changed, it is necessary to asking all code recompilities in existing code compilation scheme of having determined Topic, reduces workload and amount of calculation, reduces the time, improve efficiency.
Based on previous embodiment, embodiments of the invention provide a kind of Compilation Method, and this method comprises the following steps:
Step 201, compilation device determine the corresponding static file of the first code to be compiled of application to be installed, and based on treating The interface document for installing application obtains the first file.
Wherein, the first file is the text for the program code for preserving application to be installed.
Step 202, compilation device according to the second code to be compiled in the first file function, by the second code to be compiled Progress, which is divided, obtains at least two code modules.
Wherein, the function of the second code to be compiled is prestored.
Specifically, the quantity for dividing obtained code module is determined by the function of application to be installed, if waiting to pacify Dress application has ten kinds of functions, and that code module now obtained just has ten.
It is virtually to connect (connection) network technology (switching virtual using exchange in the embodiment of the present invention Networking, SVN) etc. code release control instrument based on Apache ant instruments in android system it is to be installed should Program code is compiled optimization, and Plugin Mechanism is mainly quoted in whole project is divided into code to be compiled Code module, can include main code module and remaining code module, remaining code module according to the relation with application to be installed Plug-in unit, which can be treated as, in compiling is individually compiled into jar bags;Quote slotting by way of jar bags in main code module again afterwards Part class, i.e. remaining code module can be plug-in units, code structure can be made clearly demarcated;The code module that may finally be obtained by division It is compiled, realizes code dynamic load.If for example, application (instant messaging application) corresponding program code to be installed can be with Division obtains a main code module, three remaining code modules, and these three remaining code modules can be plug-in unit 1, the and of plug-in unit 2 Plug-in unit 3, obtains structure as shown in Figure 2.
Step 203, compilation device screening divide unrelated with the corresponding function of application to be installed in obtained code module Code module where code to be compiled, obtains redundant code module.
Specifically, the to be compiled code unrelated with the corresponding function of application to be installed is also referred to by program code When realizing the function of application to be installed, the program code do not used.For example, application to be installed is instant messaging application, this is instant Corresponding function includes before communication applications update:Payment, voice-enabled chat, Video chat, transmission file etc., the instant messaging application Corresponding function includes after renewal:Voice-enabled chat, Video chat, transmission file;In this way, instant messaging application is corresponding after updating Function in do not include payment function, be now accomplished by screening the code to be compiled in the obtained code module of division, Get paid the corresponding all program codes of function.Now, redundant code module is the corresponding all program codes of payment function Affiliated code module;It is the payment work(during instant messaging is applied with the unrelated code to be compiled of the corresponding function of application to be installed Can corresponding all program codes.
Step 204, compilation device are compiled to the code to be compiled in other code modules in addition to redundant code module Translate, obtain the first class file.
Specifically, obtaining other codes in addition to redundant code module in the code module that compilation device is first obtained from division Module, is compiled to the code to be compiled in other code modules based on Apache ant instruments using SVN instruments, obtained afterwards To corresponding .class files.
Step 205, compilation device are based on static file, the first file and the first class file, the second of generation preset kind Class file.
Resource based on application to be installed of step 206, compilation device generates the second file, and based on the second class file and the Two files obtain the installation kit of application to be installed.
Wherein, the second file is the file for the resource information for including application to be installed.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to Description in other embodiments.
The Compilation Method that embodiments of the invention are provided, determines that the first code to be compiled of application to be installed is corresponding quiet State file, and the interface document based on application to be installed obtains the first file, the first file is the program for preserving application to be installed The text of code, then according to the function of the second code to be compiled in the first file, the second code to be compiled is carried out Division obtains at least two code modules, is afterwards respectively compiled the code to be compiled in each code module, obtains One class file, based on second class file of the static file, the first file and first kind file generated preset kind, is based ultimately upon The resource of application to be installed generates the second file, and obtains based on the second class file and the second file the installation of application to be installed Bag, the second file is the file for the resource information for including application to be installed, so, when compiled code according to division after Obtained code module, is compiled according to code module to code, is only needed to when some codes change to becoming The code in code module where the code of change is recompilated, without being recompilated to all codes, solution When certain some code is changed, it is necessary to asking all code recompilities in existing code compilation scheme of having determined Topic, reduces workload and amount of calculation, reduces the time, improve efficiency.
Based on previous embodiment, embodiments of the invention provide a kind of Compilation Method, and this method comprises the following steps:
Step 301, compilation device determine the corresponding static file of the first code to be compiled of application to be installed, and based on treating The interface document for installing application obtains the first file.
Wherein, the first file is the text for the program code for preserving application to be installed.
Step 302, compilation device according to the second code to be compiled in the first file function, by the second code to be compiled Progress, which is divided, obtains at least two code modules.
Step 303, compilation device screening divide unrelated with the corresponding function of application to be installed in obtained code module Code module where code to be compiled, obtains redundant code module.
Step 304, compilation device are compiled to the code to be compiled in other code modules in addition to redundant code module Translate, obtain the first class file.
Step 305, compilation device set the maximum storage number of the second class file.
Wherein, maximum storage number is the quantity for the method that the second class file is at best able to storage.
Specifically, the file that the maximum storage number of the classes.dex files set can be dex types can be stored Side operator ability determine, such as maximum storage number can be 65536.Method in classes.dex files can To refer to method corresponding in the program code that classes.dex files include.
Step 306, compilation device are based on maximum storage number, static file, the first file and the first class file, generation the Two class files.
Specifically, be provided with after the maximum storage number of classes.dex files, compilation device will first can be obtained R.java files .java files and the packing of .class files, are compiled to the file of packing generation and sequence are handled afterwards, File after being finally compiled according to the maximum storage number of setting after sequence processing is set to corresponding offspring class file.
Resource based on application to be installed of step 307, compilation device generates the second file, and based on the second class file and the Two files obtain the installation kit of application to be installed.
Based on previous embodiment, during the installation kit of a certain application to be installed is generated for the second time, division is obtained When code to be compiled in code module is compiled, it can also comprise the following steps:
Step 308, compilation device obtain the code module in addition to redundant code module in the code module for dividing and obtaining, and obtain To residue code module.
Code to be compiled and pre-set code in residue code module is compared by step 309, compilation device.
Specifically, pre-set code can be the code being stored in advance in long-range svn servers;Pre-set code can be Generate the code for every time obtaining compiling during correspondence application installation package to be installed before to upload in long-range svn servers, svn clothes Obtained after the code that business device storage is received.That is, as long as the code of compiled application program at least one times all can It is stored in long-range svn servers.Compilation device be when relatively by the code to be compiled in residue code module with it is right The code being stored in long-range svn servers answered is compared, i.e., the code to be compiled in residue code module is with being stored in Corresponding code in long-range svn servers is same application program.
Step 310, compilation device are based on comparative result, it is determined whether the code to be compiled in residue code module is carried out Recompilate.
If, need not be to surplus specifically, the code to be compiled in residue code module is identical with pre-set code Code to be compiled in remaining code module is recompilated;If code to be compiled and pre-set code in residue code module In the presence of difference, then need to recompilate the code to be compiled in residue code module.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to Description in other embodiments.
The Compilation Method that embodiments of the invention are provided, determines that the first code to be compiled of application to be installed is corresponding quiet State file, and the interface document based on application to be installed obtains the first file, the first file is the program for preserving application to be installed The text of code, then according to the function of the second code to be compiled in the first file, the second code to be compiled is carried out Division obtains at least two code modules, is afterwards respectively compiled the code to be compiled in each code module, obtains One class file, based on second class file of the static file, the first file and first kind file generated preset kind, is based ultimately upon The resource of application to be installed generates the second file, and obtains based on the second class file and the second file the installation of application to be installed Bag, the second file is the file for the resource information for including application to be installed, so, when compiled code according to division after Obtained code module, is compiled according to code module to code, is only needed to when some codes change to becoming The code in code module where the code of change is recompilated, without being recompilated to all codes, solution When certain some code is changed, it is necessary to asking all code recompilities in existing code compilation scheme of having determined Topic, reduces workload and amount of calculation, reduces the time, improve efficiency.Meanwhile, can be automatically according in the file after compiling Side operator determines whether to increase new dex files, it is to avoid user's is manually operated, realizes that automatic side operator of breaking through is limited.
Embodiments of the invention provide a kind of Compilation Method, and this method comprises the following steps:
Step 401, compilation device determine the corresponding static file of the first code to be compiled of application to be installed, and based on treating The interface document for installing application obtains the first file.
Wherein, the first file is the text for the program code for preserving application to be installed.
Step 402, compilation device according to the second code to be compiled in the first file function, by the second code to be compiled Progress, which is divided, obtains at least two code modules.
Wherein, the function of the second code to be compiled is prestored.
Step 403, compilation device screening divide unrelated with the corresponding function of application to be installed in obtained code module Code module where code to be compiled, obtains redundant code module.
Step 404, compilation device are compiled to the code to be compiled in other code modules in addition to redundant code module Translate, obtain the first class file.
Step 405, compilation device set the maximum storage number of the second class file.
Wherein, maximum storage number is the quantity for the method that the second class file is at best able to storage.
After step 406, compilation device pack static file, the first file and the first class file, it is compiled and sorts Processing obtains the 3rd file.
Specifically, dx instruments under Android sdk can be used by the static file after packing, the first file and first Class file is compiled, and the file obtained after compiling is ranked up and then the 3rd file is obtained.
The file that must be loaded when application to be installed starts in 3rd file is set to default class by step 407, compilation device First offspring class file of type.
Specifically, the file that must be loaded when application to be installed starts in the 3rd file refers to be installed in the 3rd file answer With the file that will be loaded at once when startup;The file that for example when can be instant messaging application startup can be loaded at once. Wherein, preset kind is the corresponding type of dex files.
The file that must be loaded when application to be installed starts in 3rd file is set to the first offspring class file of preset kind, The method that the file that must be loaded when can be and start application to be installed in the 3rd file includes is stored in the of preset kind In one offspring class file, that is, obtain the first offspring class file.Wherein, the first offspring class file can be a kind of dex files.
Step 408, compilation device obtain other in addition to the file that must be loaded when application to be installed starts in the 3rd file File, obtains the 4th file.
Specifically, other in addition to step 408 obtains the file that must be loaded when application to be installed starts in the 3rd file are literary Part, obtains after the 4th file, can select to perform step 409 or step 410~412;
If the side operator in step 409, the 4th file is less than or equal to default value, compilation device sets the 4th file For the second offspring class file of preset kind.
Wherein, the second class file includes the first offspring class file and the second offspring class file.
Specifically, the side operator in the 4th file also refers to the sum of the corresponding method of code in the 4th file Mesh.4th file is set to the second offspring class file of preset kind, can be stored in the method that the 4th file includes In second offspring class file of preset kind, that is, obtain the second offspring class file.Wherein, the second offspring class file can be another dex File.First offspring class file is identical with the file type of the second offspring class file, but the first offspring class file and the second offspring class file It is two different files.
If side operator in step 410, the 4th file is more than default value, compilation device is by side operator etc. in the 4th file The second offspring class file is set in the file of default value.
If specifically, the side operator in the 4th file is more than default value, illustrating that the memory space of a dex file is deposited Do not store up the side operator in the 4th file, now can first obtain the method that side operator in the 4th file is equal to 65536, and by this A little methods are stored in the second offspring class file, that is, obtain the second offspring class file.
Step 411, compilation device calculate the absolute value of the difference between side operator and default value in the 4th file.
Step 412, compilation device increase at least one newly and preset according to the relation between the absolute value and default value of difference The class file of type, and the method that side operator in the 4th file is more than default value is moved into at least one newly-increased preset kind Class file in, and be set to the second offspring class file.
If preset specifically, the absolute value of the difference in the 4th file between side operator and default value is less than or equal to Numerical value (65536), can now newly increase the class file of a preset kind, and corresponding method is stored in newly increase pre- If in the class file of type, that is, obtaining the second offspring class file;If the difference in the 4th file between side operator and default value Absolute value be more than default value (65536), now can judge need increasing according to the absolute value of difference and 65536 multiple proportion Plus preset kind class file number, and corresponding method is stored in the class file of corresponding increased preset kind In, and then obtain the second offspring class file.Wherein, in the case that the side operator in the 4th file is more than default value, the second subclass File includes at least one class file.
Wherein, it is required for performing step 413 after step 409 and step 412.
Resource based on application to be installed of step 413, compilation device generates the second file, and based on the first offspring class file, Second offspring class file and the second file obtain the installation kit of application to be installed.
Based on previous embodiment, this method is further comprising the steps of:
Step 414, compilation device obtain the code module in addition to redundant code module in the code module for dividing and obtaining, and obtain To residue code module.
Code to be compiled and pre-set code in residue code module is compared by step 415, compilation device.
If the code to be compiled in step 416, residue code module is changed compared with pre-set code, compilation device Obtain code to be updated.
Wherein, code to be updated is the code to be compiled that is changed compared with pre-set code in residue code module.
Step 417, compilation device are recompilated to code to be updated, and using the code obtained after recompility more Corresponding code in new first class file.
Specifically, can be according to flow chart as shown in Figure 3 to the code to be compiled in the .java files of application to be installed Change and get code module 1, code module 2 etc., then entered the code to be compiled in code module with pre-set code using svn Row compares, if, in Status_Modified, Status_Added, Status_Added and Status_Unversioned One of result is affirmative, just treats compiled code and is recompilated, afterwards according to the side that dex files are set in the present invention Formula is handled, and obtains corresponding dex files.
It can be svn works that whether the code to be compiled in residue code module is judged changes compared with pre-set code Have to realize;Svn supports a variety of variation attributes, and this programme only uses wherein four kinds, is Status_Modified respectively:Table Show whether changed;Status_Added:Indicate whether that file is added;Status_MISSING:File is indicated whether It is deleted;Status_Unversioned:Indicate whether that file is newly-increased but is not added to svn paths.Using When Status_Modified, Status_Added, Status_Added or Status_Unversioned are detected, as long as there is it One of result meet just explanation residue code module in code to be compiled changed compared with pre-set code it is necessary to Need to recompilate the code to be compiled in residue code module.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or concept, is referred to Description in other embodiments.
The Compilation Method that embodiments of the invention are provided, determines that the first code to be compiled of application to be installed is corresponding quiet State file, and the interface document based on application to be installed obtains the first file, the first file is the program for preserving application to be installed The text of code, then according to the function of the second code to be compiled in the first file, the second code to be compiled is carried out Division obtains at least two code modules, is afterwards respectively compiled the code to be compiled in each code module, obtains One class file, based on second class file of the static file, the first file and first kind file generated preset kind, is based ultimately upon The resource of application to be installed generates the second file, and obtains based on the second class file and the second file the installation of application to be installed Bag, the second file is the file for the resource information for including application to be installed, so, when compiled code according to division after Obtained code module, is compiled according to code module to code, is only needed to when some codes change to becoming The code in code module where the code of change is recompilated, without being recompilated to all codes, solution When certain some code is changed, it is necessary to asking all code recompilities in existing code compilation scheme of having determined Topic, reduces workload and amount of calculation, reduces the time, improve efficiency.Meanwhile, can be automatically according in the file after compiling Side operator determines whether to increase new dex files, it is to avoid user's is manually operated, realizes that automatic side operator of breaking through is limited.
Based on previous embodiment, be illustrated in figure 4 Compilation Method provided in an embodiment of the present invention it is corresponding one it is complete Compile flow chart.That is, first .aidl files can be converted into by aidl instruments when generating the installation kit of application to be installed to compile Translate the treatable Java interface documents of device;Resource file is processed as final resources.arsc by aapt, and generates R.java files are so that source code can easily have access to these resources;Java compiler is by R.java, Java source codes and life Into Java interface documents Uniform compilation into .class files;Meanwhile, compared according to the functional module of division using SVN instruments Compared with if obtained result is Status_Modified (modification), Status_Added (addition), Status_Missing (are deleted Except) or during Status_Unversion (newly-increased but be not added with to svn paths), Java compiler can be used to enter again to module Row compiling;.class file is not the form that android system can be recognized, thus to be also energy using dex tool changes The .dex files enough recognized.The file such as third party library in need and other files can be added among these;Utilizing dex instruments , it is necessary to which primary module is bundled into main dex first during packing, then under traversing directories remaining class side operator, if greater than 65536, then need newly-increased dex;Next the dex of generation, resource bag, and other resources are generated just by apkbuilder The apk file bags of beginning.Now, the apk files bag of generation is not also signed and optimized;Signature can use Jarsigner instruments, or Other similar instruments.If under Debug patterns, signature keystore used is exactly what system default was carried, is otherwise developed Person needs to provide the private key of oneself to complete signature process.
Based on previous embodiment, embodiments of the invention provide a kind of compilation device 5, and the device can apply to foregoing institute In the Compilation Method provided in the embodiment shown, shown in reference picture 5, the device includes:First acquisition unit 51, processing unit 52nd, second acquisition unit 53 and generation unit 54, wherein:
First acquisition unit 51, the corresponding static file of the first code to be compiled for determining application to be installed, and base The first file is obtained in the interface document of application to be installed.
Wherein, the first file is the text for the program code for preserving application to be installed.
Processing unit 52, for the function according to the second code to be compiled in the first file, by the second code to be compiled Progress, which is divided, obtains at least two code modules.
Wherein, the function of the second code to be compiled is prestored.
Second acquisition unit 53, for being respectively compiled the code to be compiled in each code module, obtains first Class file.
Generation unit 54, for based on static file, the first file and the first class file, generating the Equations of The Second Kind of preset kind File.
First acquisition unit 51, is additionally operable to the resource based on application to be installed and generates the second file, and based on Equations of The Second Kind text Part and the second file obtain the installation kit of application to be installed.
Wherein, the second file is the file for the resource information for including application to be installed.
The compilation device that embodiments of the invention are provided, determines that the first code to be compiled of application to be installed is corresponding quiet State file, and the interface document based on application to be installed obtains the first file, the first file is the program for preserving application to be installed The text of code, then according to the function of the second code to be compiled in the first file, the second code to be compiled is carried out Division obtains at least two code modules, is afterwards respectively compiled the code to be compiled in each code module, obtains One class file, based on second class file of the static file, the first file and first kind file generated preset kind, is based ultimately upon The resource of application to be installed generates the second file, and obtains based on the second class file and the second file the installation of application to be installed Bag, the second file is the file for the resource information for including application to be installed, so, when compiled code according to division after Obtained code module, is compiled according to code module to code, is only needed to when some codes change to becoming The code in code module where the code of change is recompilated, without being recompilated to all codes, solution When certain some code is changed, it is necessary to asking all code recompilities in existing code compilation scheme of having determined Topic, reduces workload and amount of calculation, reduces the time, improve efficiency.
Specifically, second acquisition unit includes:Screening module and collector, wherein:
Screening module, for screen divide in obtained code module with the corresponding function of application to be installed it is unrelated wait compile The code module where code is translated, redundant code module is obtained.
Collector, for being compiled to the code to be compiled in other code modules in addition to redundant code module, Obtain the first class file.
Specifically, generation unit includes:Setup module and generation module, wherein:
Setup module, the maximum storage number for setting the second class file.
Wherein, maximum storage number is the quantity for the method that the second class file is at best able to storage.
Generation module, for based on maximum storage number, static file, the first file and the first class file, generation second Class file.
Further, generation module is specifically for performing following steps:
After static file, the first file and the first class file are packed, it is compiled and sequence processing obtains the 3rd file.
The file that must be loaded when application to be installed starts in 3rd file is set to the first offspring class file of preset kind.
Alternative document in addition to obtaining the file that must be loaded when application to be installed starts in the 3rd file, obtains the 4th text Part.
If the side operator in the 4th file is less than or equal to default value, the 4th file is set to the second of preset kind Offspring class file.
Wherein, the second class file includes the first offspring class file and the second offspring class file.
Further, generation module is specifically additionally operable to perform following steps:
If the side operator in the 4th file is more than default value, side operator in the 4th file is equal to the file of default value It is set to the second offspring class file.
Calculate the absolute value of the difference in the 4th file between side operator and default value.
According to the relation between the absolute value and default value of difference, the class file of at least one preset kind is increased newly, and Side operator in 4th file is more than into the method for default value to move into the class file of at least one newly-increased preset kind, and set It is set to the second offspring class file.
Further, the compilation device also includes:Comparing unit, wherein:
First acquisition unit 51, is additionally operable to obtain the code mould in the code module for dividing and obtaining in addition to redundant code module Block, obtains residue code module.
Comparing unit, for the code to be compiled in residue code module to be compared with pre-set code.
Processing unit 52, is additionally operable to be based on comparative result, it is determined whether enter the code to be compiled in residue code module Row is recompilated.
Specifically, processing unit includes:Acquisition module and update module, wherein:
Acquisition module, if being changed for the code to be compiled in residue code module compared with pre-set code, is obtained Take code to be updated.
Wherein, code to be updated is the code to be compiled that is changed compared with pre-set code in residue code module.
Update module, for being recompilated to code to be updated, and uses the code update obtained after recompility Corresponding code in first class file.
It should be noted that the interaction in the present embodiment between unit and module, is referred to foregoing shown Embodiment in interaction in the Compilation Method that provides, here is omitted.
The compilation device that embodiments of the invention are provided, determines that the first code to be compiled of application to be installed is corresponding quiet State file, and the interface document based on application to be installed obtains the first file, the first file is the program for preserving application to be installed The text of code, then according to the function of the second code to be compiled in the first file, the second code to be compiled is carried out Division obtains at least two code modules, is afterwards respectively compiled the code to be compiled in each code module, obtains One class file, based on second class file of the static file, the first file and first kind file generated preset kind, is based ultimately upon The resource of application to be installed generates the second file, and obtains based on the second class file and the second file the installation of application to be installed Bag, the second file is the file for the resource information for including application to be installed, so, when compiled code according to division after Obtained code module, is compiled according to code module to code, is only needed to when some codes change to becoming The code in code module where the code of change is recompilated, without being recompilated to all codes, solution When certain some code is changed, it is necessary to asking all code recompilities in existing code compilation scheme of having determined Topic, reduces workload and amount of calculation, reduces the time, improve efficiency.Meanwhile, can be automatically according in the file after compiling Side operator determines whether to increase new dex files, it is to avoid user's is manually operated, realizes that automatic side operator of breaking through is limited.
Based on previous embodiment, embodiments of the invention provide a kind of compiling equipment 6, can apply to foregoing shown reality Apply in the Compilation Method provided in example, shown in reference picture 6, the compiling equipment can include:Memory 61 and processor 62, its In:
Memory 61, for storing the corresponding static file of application to be installed.
Processor 62, the corresponding static text of the first code to be compiled for obtaining application to be installed from memory 61 Part, and the interface document based on application to be installed obtains the first file;Wherein, the first file is the program for preserving application to be installed The text of code;According to the function of the second code to be compiled in the first file, the second code to be compiled is divided Obtain at least two code modules;The code to be compiled in each code module is compiled respectively, the first class file is obtained; Based on static file, the first file and the first class file, the second class file of preset kind is generated;Money based on application to be installed Source generates the second file, and obtains based on the second class file and the second file the installation kit of application to be installed;Wherein, the second file For the file for the resource information for including application to be installed.
It should be noted that the interaction in the present embodiment between memory and processor, is referred to foregoing shown Embodiment in interaction in the Compilation Method that provides, here is omitted.
Based on previous embodiment, embodiments of the invention provide a kind of computer-readable recording medium, and this is computer-readable Be stored with one or more computer programs in storage medium, and the computer program realizes previous embodiment when being executed by processor Shown in Compilation Method the step of.
In actual applications, the first acquisition unit 51, processing unit 52, second acquisition unit 53, generation unit 54, Screening module, collector, setup module, generation module, comparing unit, acquisition module and update module can be by positioned at wireless Central processing unit (Central Processing Unit, CPU), microprocessor (Micro in data transmitting equipment Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or field-programmable Gate array (Field Programmable Gate Array, FPGA) etc. is realized.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combine software and hardware Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (15)

1. a kind of Compilation Method, it is characterised in that methods described includes:
Obtain the corresponding static file of the first code to be compiled of application to be installed, and the text of the interface based on the application to be installed Part obtains the first file;Wherein, the first file is the text for the program code for preserving the application to be installed;
According to the function of the second code to be compiled in first file, the described second code to be compiled is divided At least two code modules;Wherein, the function of the described second code to be compiled is prestored;
The code to be compiled in each code module is compiled respectively, the first class file is obtained;
Based on the static file, the first file and the first class file, the second class file of preset kind is generated;
Resource based on application to be installed generates the second file, and obtains described treat based on second class file and the second file The installation kit of application is installed;Wherein, second file is the file for the resource information for including the application to be installed.
2. according to the method described in claim 1, it is characterised in that described respectively by the code to be compiled in each code module It is compiled, obtains the first class file, including:
Screening is divided where code to be compiled unrelated with the corresponding function of the application to be installed in obtained code module Code module, obtains redundant code module;
Code to be compiled in other code modules in addition to the redundant code module is compiled, the first kind is obtained File.
3. method according to claim 1 or 2, it is characterised in that described based on the static file, the first file and the One class file, generates the second class file of preset kind, including:
The maximum storage number of second class file is set;Wherein, the maximum storage number be second class file most The quantity for the method that can be stored more;
Based on the maximum storage number, the static file, the first file and the first class file, the Equations of The Second Kind text is generated Part.
4. method according to claim 3, it is characterised in that described to be based on the maximum storage number, the static text Part, the first file and the first class file, generate second class file, including:
After the static file, the first file and the first class file are packed, it is compiled and sequence processing obtains the 3rd file;
The file that must be loaded when application to be installed starts described in 3rd file is set to the first subclass of preset kind File;
Alternative document in addition to obtaining the file that must be loaded when the application to be installed starts in the 3rd file, obtains the 4th File;
If the side operator in the 4th file is less than or equal to the default value, the 4th file is set to default class Second offspring class file of type;Wherein, second class file includes the first offspring class file and the second offspring class file.
5. method according to claim 4, it is characterised in that described to be based on the maximum storage number, the static text Part, the first file and the first class file, generate second class file, in addition to:
If the side operator in the 4th file is more than the default value, side operator in the 4th file is equal to described pre- If the file of numerical value is set to second offspring class file;
Calculate the absolute value of the difference in the 4th file between side operator and the default value;
According to the relation between the absolute value of the difference and the default value, the class text of at least one preset kind is increased newly Part, and by the method that side operator in the 4th file is more than the default value move into it is newly-increased described at least one default class In the class file of type, and it is set to second offspring class file.
6. method according to claim 2, it is characterised in that methods described also includes:
The code module in addition to the redundant code module in the code module for dividing and obtaining is obtained, residue code module is obtained;
Code to be compiled in the residue code module is compared with pre-set code;
Based on comparative result, it is determined whether the code to be compiled in the residue code module is recompilated.
7. method according to claim 6, it is characterised in that described to be based on comparative result, it is determined whether to the residue Code to be compiled in code module is recompilated, including:
If the code to be compiled in the residue code module is changed compared with the pre-set code, generation to be updated is obtained Code;Wherein, the code to be updated be the residue code module in changed compared with the pre-set code wait compile Translate code;
The code to be updated is recompilated, and uses the first class file described in the code update obtained after recompility In corresponding code.
8. a kind of compilation device, it is characterised in that described device includes:First acquisition unit, processing unit, second acquisition unit And generation unit, wherein:
The first acquisition unit, the corresponding static file of the first code to be compiled for obtaining application to be installed, and be based on The interface document of the application to be installed obtains the first file;Wherein, the first file is the program for preserving the application to be installed The text of code;
The processing unit, for the function according to the second code to be compiled in first file, described second is waited to compile Code is translated divide obtaining at least two code modules;Wherein, the function of the described second code to be compiled is prestored;
The second acquisition unit, for being respectively compiled the code to be compiled in each code module, obtains the first kind File;
The generation unit, for second based on the static file, the first file and first kind file generated preset kind Class file;
The first acquisition unit, is additionally operable to the resource based on application to be installed and generates the second file, and based on the Equations of The Second Kind File and the second file obtain the installation kit of the application to be installed;Wherein, second file is described to be installed to include The file of the resource information of application.
9. device according to claim 8, it is characterised in that the second acquisition unit includes:Screening module and compiling Module, wherein:
The screening module, divides unrelated with the corresponding function of the application to be installed in obtained code module for screening Code module where code to be compiled, obtains redundant code module;
The collector, for being compiled to the code to be compiled in other code modules in addition to the redundant code module Translate, obtain first class file.
10. device according to claim 8 or claim 9, it is characterised in that the generation unit includes:Setup module and generation Module, wherein:
The setup module, the maximum storage number for setting second class file;Wherein, the maximum storage number is Second class file is at best able to the quantity of the method for storage;
The generation module, for based on the maximum storage number, the static file, the first file and the first class file, Generate second class file.
11. device according to claim 10, it is characterised in that the generation module specifically for:
After the static file, the first file and the first class file are packed, it is compiled and sequence processing obtains the 3rd file;
The file that must be loaded when application to be installed starts described in 3rd file is set to the first subclass of preset kind File;
Alternative document in addition to obtaining the file that must be loaded when the application to be installed starts in the 3rd file, obtains the 4th File;
If the side operator in the 4th file is less than or equal to the default value, the 4th file is set to default class Second offspring class file of type;Wherein, second class file includes the first offspring class file and the second offspring class file.
12. device according to claim 11, it is characterised in that the generation module is specifically additionally operable to:
If the side operator in the 4th file is more than the default value, side operator in the 4th file is equal to described pre- If the file of numerical value is set to second offspring class file;
Calculate the absolute value of the difference in the 4th file between side operator and the default value;
According to the relation between the absolute value of the difference and the default value, the class text of at least one preset kind is increased newly Part, and by the method that side operator in the 4th file is more than the default value move into it is newly-increased described at least one default class In the class file of type, and it is set to second offspring class file.
13. device according to claim 9, it is characterised in that described device also includes:Comparing unit, wherein:
The first acquisition unit, is additionally operable to obtain the code in the code module for dividing and obtaining in addition to the redundant code module Module, obtains residue code module;
The comparing unit, for the code to be compiled in the residue code module to be compared with pre-set code;
The processing unit, is additionally operable to be based on comparative result, it is determined whether to the code to be compiled in the residue code module Recompilated.
14. one kind compiling equipment, it is characterised in that the equipment includes:Memory and processor, wherein:
The memory, for storing the corresponding static file of the application to be installed;
The processor, the corresponding static text of the first code to be compiled for obtaining application to be installed from the memory Part, and the interface document based on the application to be installed obtains the first file;Wherein, the first file for preserve it is described it is to be installed should The text of program code;According to the function of the second code to be compiled in first file, described second is treated Compiled code divide obtaining at least two code modules;The code to be compiled in each code module is compiled respectively Translate, obtain the first class file;Based on the static file, the first file and the first class file, the Equations of The Second Kind of preset kind is generated File;Resource based on application to be installed generates the second file, and obtains described based on second class file and the second file The installation kit of application to be installed;Wherein, second file is the file for the resource information for including the application to be installed.
15. a kind of computer-readable recording medium, it is characterised in that be stored with the computer-readable recording medium one or Multiple computer programs, the computer program realizes claim 1 to 7 methods described when being executed by processor the step of.
CN201710401413.4A 2017-05-31 2017-05-31 Compiling method, device, equipment and computer readable storage medium Active CN107168749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710401413.4A CN107168749B (en) 2017-05-31 2017-05-31 Compiling method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710401413.4A CN107168749B (en) 2017-05-31 2017-05-31 Compiling method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107168749A true CN107168749A (en) 2017-09-15
CN107168749B CN107168749B (en) 2022-11-29

Family

ID=59821261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710401413.4A Active CN107168749B (en) 2017-05-31 2017-05-31 Compiling method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107168749B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279904A (en) * 2017-12-26 2018-07-13 努比亚技术有限公司 Code compiling method and terminal
CN108563442A (en) * 2018-02-28 2018-09-21 北京智行鸿远汽车有限公司 Code compiling method and device
CN110119274A (en) * 2018-02-05 2019-08-13 北京智明星通科技股份有限公司 A kind of method, apparatus and electric terminal, computer readable storage medium of data compilation
CN111309334A (en) * 2020-02-18 2020-06-19 北京奇艺世纪科技有限公司 Method and device for generating software installation package, computer equipment and storage medium
CN111309335A (en) * 2020-02-28 2020-06-19 腾讯音乐娱乐科技(深圳)有限公司 Plug-in application compiling method and device and computer readable storage medium
CN111414308A (en) * 2020-03-26 2020-07-14 北京字节跳动网络技术有限公司 Application package processing method and application program running method and device
CN112162851A (en) * 2020-09-14 2021-01-01 Oppo(重庆)智能科技有限公司 dex pre-compiling method, device, computer equipment and storage medium
CN112882720A (en) * 2021-03-15 2021-06-01 北京字节跳动网络技术有限公司 Compiling method and device
CN112947929A (en) * 2021-01-28 2021-06-11 北京字节跳动网络技术有限公司 Construction method and device of application program installation package, computer equipment and medium
WO2021115178A1 (en) * 2019-12-09 2021-06-17 Oppo广东移动通信有限公司 Application program pre-compilation method and apparatus, server and storage medium
CN113407165A (en) * 2021-06-29 2021-09-17 北京字节跳动网络技术有限公司 SDK generation and self-upgrade method, device, readable medium and equipment
CN116701234A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Application program debugging method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193812A (en) * 2011-06-03 2011-09-21 深圳市茁壮网络股份有限公司 Code compiling method, host computer and system
US8949802B1 (en) * 2011-10-18 2015-02-03 Google Inc. Sharding program compilation for large-scale static analysis
CN106293849A (en) * 2016-08-18 2017-01-04 华为技术有限公司 A kind of application update method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193812A (en) * 2011-06-03 2011-09-21 深圳市茁壮网络股份有限公司 Code compiling method, host computer and system
US8949802B1 (en) * 2011-10-18 2015-02-03 Google Inc. Sharding program compilation for large-scale static analysis
CN106293849A (en) * 2016-08-18 2017-01-04 华为技术有限公司 A kind of application update method and terminal

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108279904A (en) * 2017-12-26 2018-07-13 努比亚技术有限公司 Code compiling method and terminal
CN110119274A (en) * 2018-02-05 2019-08-13 北京智明星通科技股份有限公司 A kind of method, apparatus and electric terminal, computer readable storage medium of data compilation
US11231916B2 (en) 2018-02-05 2022-01-25 Beijing Elex Technology Co., Ltd. Method and apparatus for data compilation using intermediate class files, electronic device and non-transitory computer readable storage medium
CN108563442A (en) * 2018-02-28 2018-09-21 北京智行鸿远汽车有限公司 Code compiling method and device
WO2021115178A1 (en) * 2019-12-09 2021-06-17 Oppo广东移动通信有限公司 Application program pre-compilation method and apparatus, server and storage medium
CN113031953A (en) * 2019-12-09 2021-06-25 Oppo广东移动通信有限公司 Application program pre-compiling method and device, electronic equipment and server
CN111309334A (en) * 2020-02-18 2020-06-19 北京奇艺世纪科技有限公司 Method and device for generating software installation package, computer equipment and storage medium
CN111309334B (en) * 2020-02-18 2023-09-01 北京奇艺世纪科技有限公司 Method, device, computer equipment and storage medium for generating software installation package
CN111309335B (en) * 2020-02-28 2023-08-15 腾讯音乐娱乐科技(深圳)有限公司 Compiling method and device of plug-in application and computer readable storage medium
CN111309335A (en) * 2020-02-28 2020-06-19 腾讯音乐娱乐科技(深圳)有限公司 Plug-in application compiling method and device and computer readable storage medium
CN111414308A (en) * 2020-03-26 2020-07-14 北京字节跳动网络技术有限公司 Application package processing method and application program running method and device
CN111414308B (en) * 2020-03-26 2023-08-22 抖音视界有限公司 Application package processing method and application running method and device
CN112162851A (en) * 2020-09-14 2021-01-01 Oppo(重庆)智能科技有限公司 dex pre-compiling method, device, computer equipment and storage medium
CN112162851B (en) * 2020-09-14 2022-12-13 Oppo(重庆)智能科技有限公司 dex pre-compiling method, device, computer equipment and storage medium
CN112947929A (en) * 2021-01-28 2021-06-11 北京字节跳动网络技术有限公司 Construction method and device of application program installation package, computer equipment and medium
CN112947929B (en) * 2021-01-28 2023-11-24 抖音视界有限公司 Method, device, computer equipment and medium for constructing application program installation package
CN112882720A (en) * 2021-03-15 2021-06-01 北京字节跳动网络技术有限公司 Compiling method and device
CN112882720B (en) * 2021-03-15 2024-03-22 抖音视界有限公司 Compiling method and device
CN113407165B (en) * 2021-06-29 2023-04-07 抖音视界有限公司 SDK generation and self-upgrade method, device, readable medium and equipment
CN113407165A (en) * 2021-06-29 2021-09-17 北京字节跳动网络技术有限公司 SDK generation and self-upgrade method, device, readable medium and equipment
CN116701234A (en) * 2023-08-04 2023-09-05 腾讯科技(深圳)有限公司 Application program debugging method and device, computer equipment and storage medium
CN116701234B (en) * 2023-08-04 2024-02-02 腾讯科技(深圳)有限公司 Application program debugging method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107168749B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN107168749A (en) A kind of Compilation Method, device, equipment and computer-readable recording medium
CN107967316A (en) A kind of method of data synchronization, equipment and computer-readable recording medium
KR20150122149A (en) Compiler based obfuscation
CN104834630A (en) Arithmetic control apparatus, arithmetic control method, non-transitory computer readable medium storing program, and open cl device
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
US8938712B2 (en) Cross-platform virtual machine and method
CN103092599A (en) Software develop kit
CN111399840A (en) Module development method and device
CN113805882A (en) Method and device for developing application program, electronic equipment and storage medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN105049514A (en) File downloading method and file downloading device
CN114417428B (en) Privacy calculation method and system based on distributed cooperation
CN112769706A (en) Componentized routing method and system
CN111144878B (en) Instruction generation method and instruction generation device
CN107844410A (en) The adjustment method and device of a kind of distributed cluster system
CN115202729A (en) Container service-based mirror image generation method, device, equipment and medium
CN103544357B (en) The implementation method of the calculating task of ANSYS and device
CN103294482B (en) Web service method for packing and system for PWscf concurrent computational system
CN107491700B (en) Data access method and equipment
CN106293651A (en) The implementation method of a kind of general-purpose interface and device
CN102289367A (en) Command line shell command generation based on schema
WO2023083071A1 (en) View interaction method and apparatus, electronic device, and computer readable medium
CN113495723B (en) Method, device and storage medium for calling functional component
CN114844693A (en) Lightweight communication data encryption method, device, equipment and storage medium
CN114356379A (en) Backup-based service upgrading method, device, 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