CN110427189A - Method, server and the system of Remote Dynamic compiling Android engineering - Google Patents

Method, server and the system of Remote Dynamic compiling Android engineering Download PDF

Info

Publication number
CN110427189A
CN110427189A CN201910745189.XA CN201910745189A CN110427189A CN 110427189 A CN110427189 A CN 110427189A CN 201910745189 A CN201910745189 A CN 201910745189A CN 110427189 A CN110427189 A CN 110427189A
Authority
CN
China
Prior art keywords
code
configuration
building
address
android
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.)
Withdrawn
Application number
CN201910745189.XA
Other languages
Chinese (zh)
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.)
AI Speech Ltd
Original Assignee
AI Speech 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 AI Speech Ltd filed Critical AI Speech Ltd
Priority to CN201910745189.XA priority Critical patent/CN110427189A/en
Publication of CN110427189A publication Critical patent/CN110427189A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of methods of Remote Dynamic compiling Android engineering, include the following steps: to build constructing environment, and the configuration building code address in the constructing environment built;Android engineering is set up according to the building code address of configuration;The code branch address for receiving Remote configuration carries out on-the-flier compiler according to the code branch address of configuration and the Android engineering of establishment.The invention also discloses the servers and system of a kind of Remote Dynamic compiling Android engineering.Disclosed method, server and system according to the present invention, can solve in project local Android building need to be configured by different personnel's varying environments it is cumbersome, and the problem of wasting the cpu resource of local computing, it only needs to affix one's name to by long-distance cloud end, remotely compiler task can be completed in compiling Android engineering to projects personnel according to demand, greatly improves treatment effeciency.

Description

Method, server and the system of Remote Dynamic compiling Android engineering
Technical field
The present invention relates to dynamic compilation techniques field, the method for especially a kind of Remote Dynamic compiling Android engineering and Device.
Background technique
Entire Android system software version is compiled, is that (one software version of compiling is general for a very time-consuming process 4 hours or so), a software version is usually compiled, engineer needs to stay in company always, carry out on company's compiler server Corresponding operation.If the software version of compiling needs to be compiled at night, engineer is needed to stay in company's compiling always soft Part version, it will bring great inconvenience to engineer.Also, different compiling projects is sometimes for multiple compiling engineers, This will lead to the cumbersome work that different engineers are compiled under different operating environment, but also waste the CPU of computer, The problems such as causing inefficiency.
Summary of the invention
To solve the above-mentioned problems, it is contemplated that building constructing environment by jenkins, while configuring and constructing code Address, then by python script, dynamic pull-up remote code to home environment, while local building script according to long-range page The dynamic branch of face configuration, dynamic construction configuration, creates different config directories, has then reached on-the-flier compiler Android work The purpose of journey.
According to the first aspect of the invention, a kind of method of Remote Dynamic compiling Android engineering is provided, including as follows Step:
Constructing environment is built, and the configuration building code address in the constructing environment built;
Android engineering is set up according to the building code address of configuration;
The code branch address for receiving Remote configuration, according to the Android engineering of the code branch address of configuration and establishment Carry out on-the-flier compiler.
According to the second aspect of the invention, the server of Remote Dynamic compiling Android engineering is provided, comprising:
Building module as constructing environment, for configuring building code address with the code branch of reception Remote configuration Location, and building operation is executed according to the building code address of configuration and code branch address;
Module is set up configured with engineering in the build tool module, for setting up according to the building code address of configuration Android engineering, and on-the-flier compiler is carried out to the Android engineering of establishment according to the code branch address of configuration.
According to the present invention in terms of third, a kind of system of Remote Dynamic compiling Android engineering is provided, comprising:
At least one user interface, for receiving the configuration of code branch address, output to following servers;
It can be compiled with the server of user interface telecommunication for executing dynamic according to the code branch address received Translate processing, wherein server is embodied as the server of above-mentioned Remote Dynamic compiling Android engineering
Provide method, server and system according to the present invention, can solve in project local Android building need by Different personnel's varying environments configured it is cumbersome, and waste local computing cpu resource the problem of, it is only necessary to by long-range Cloud deployment, remotely compiler task can be completed in compiling Android engineering to projects personnel according to demand, greatly improves place Manage efficiency.
Detailed description of the invention
Fig. 1 is that the Remote Dynamic of an embodiment of the present invention compiles the method flow diagram of Android engineering;
Fig. 2 is the server concept block diagram of the Remote Dynamic compiling Android engineering of an embodiment of the present invention;
Fig. 3 is that the Remote Dynamic of an embodiment of the present invention compiles the system principle diagram of Android engineering;
Fig. 4 is the electronic equipment functional block diagram of an embodiment of the present invention;
Fig. 5 is the Android engineering schematic diagram of an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.
The present invention can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, member Part, data structure etc..The present invention can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
In the present invention, the fingers such as " module ", " device ", " system " are applied to the related entities of computer, such as hardware, hardware Combination, software or software in execution with software etc..In detail, for example, element can with but be not limited to run on processing Process, processor, object, executable element, execution thread, program and/or the computer of device.In addition, running on server Application program or shell script, server can be element.One or more elements can be in the process and/or thread of execution In, and element can be localized and/or be distributed between two or multiple stage computers on one computer, and can be by each Kind computer-readable medium operation.Element can also according to the signal with one or more data packets, for example, from one with Another element interacts in local system, distributed system, and/or the network in internet passes through signal and other system interactions The signals of data communicated by locally and/or remotely process.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise", not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including described want There is also other identical elements in the process, method, article or equipment of element.
The invention will now be described in further detail with reference to the accompanying drawings.
Fig. 1 schematically shows a kind of Remote Dynamic compiling Android engineering of embodiment according to the present invention Method flow diagram, as shown in Figure 1, including the following steps: in the present embodiment
Step S101: building constructing environment, and the configuration building code address in the constructing environment built.Wherein, it builds Constructing environment is realized by jenkins, since Jenkins is a powerful application program, can permit lasting collection At with lasting TK project, can by Linux system install jenkis tool completion build constructing environment.Configuration building Code address can be realized using the jenkins tool after installation, and git code (distributed version is configured in jenkins tool Control routine) remote address, code address mainly plays the role of store code when configuration.
Step S102: Android engineering is set up according to the building code address of configuration.Specific implementation are as follows: pass through first The remote download function of jenkins tool obtains the building code address of configuration;Jenkins building is executed later, is being executed When the building operation of jenkins, jenkins tool can pull the code in remote code library automatically, generate code library configuration File illustratively after locally downloading, can generate the code base configuration file of a manifest.xml.
Later to the code base configuration file by calling python wscript.exe to carry out dynamic analysis, the python script Tool configured in advance in jenkins, the content in code base configuration file being precipitated according to dynamic resolution, such as the ground of code library Location and directory information pull remote code from building code address, set up Android engineering, the display diagram of the engineering such as Fig. 5 institute Show.
Step S103: receiving the code branch address of Remote configuration, according to the code branch address of configuration and establishment Android engineering carries out on-the-flier compiler.Specific implementation are as follows: first configured according to the code branch address dynamic construction code library of configuration File, the configuration of code branch address in jenkins by configuring, so as to construct the apk text for belonging to disparity items Part realizes the purpose of on-the-flier compiler.The code base configuration file for parsing dynamic construction again, matches according to the code library of dynamic construction It sets file and creates corresponding config directory under Android engineering, the code library of building can be updated in real time in this way, it is real On-the-flier compiler Android engineering is showed.
Code address can be constructed by Jenkins according to method provided in this embodiment, according to different code address Real-time update code library, solve in project local Android building need to be configured by different personnel's varying environments it is numerous It is trivial, and waste local computing cpu resource the problem of, it is only necessary to affixed one's name to by long-distance cloud end, the long-range basis of projects personnel Compiler task can be completed in demand compiling Android engineering, greatly improves treatment effeciency.
Fig. 2 schematically shows the service of the compiling Android engineering of Remote Dynamic according to an embodiment of the present invention Device functional block diagram, as shown in Fig. 2,
It includes building module 2 that the Remote Dynamic, which compiles on the server of Android engineering, which is used as building ring Border is embodied as jenkins tool.The module is with being also used to configure the code branch of building code address and reception Remote configuration Location, and building operation is executed according to the building code address of configuration and code branch address, specific implementation is referred to The method part stated.
It constructs in module 2 and sets up module 201 configured with engineering, python wscript.exe is embodied as, for according to configuration It constructs code address and sets up Android engineering, and the Android engineering of establishment is moved according to the code branch address of configuration State compiling.
The server according to disclosed in the present embodiment may be implemented Android building in local in solution project and need by different people Member varying environment configured it is cumbersome, and waste local computing cpu resource the problem of, it is only necessary to pass through long-distance cloud end Administration, remotely compiler task can be completed in compiling Android engineering to projects personnel according to demand, greatly improves processing effect Rate.
Fig. 3 schematically shows that the compiling of Remote Dynamic according to an embodiment of the present invention Android engineering is System functional block diagram, as shown in figure 3,
The system that the Remote Dynamic compiles Android engineering includes at least one user interface 3, server 4.
One is embodied as in the present embodiment user interface 3, is used to receive the configuration of code branch address, output to service Device 4, the configuration for changing code branch address are referred to above-mentioned method part.
The server 4 can be carried out telecommunication with user interface 3, for being executed according to the code branch address received On-the-flier compiler processing, wherein the server 4 is embodied as the server of the Remote Dynamic compiling Android engineering of Fig. 2.User connects Mouth 3 is embodied as the web page communicated for the building module 2 with server 4.
According to system provided in this embodiment, intelligentized building Android engineering may be implemented, and can remotely compile It translates, dynamic real-time update solves the problems of the prior art, it is only necessary to be affixed one's name to by long-distance cloud end, projects personnel are long-range Compiler task can be completed in compiling Android engineering according to demand, greatly improves treatment effeciency.
In some embodiments, the embodiment of the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, and storage is situated between Being stored in matter one or more includes the program executed instruction, and execute instruction (can including but not limited to be counted by electronic equipment Calculation machine, server or network equipment etc.) it reads and executes, for executing any of the above-described Remote Dynamic compiling of the present invention The method of Android engineering.
In some embodiments, the embodiment of the present invention also provides a kind of computer program product, computer program product packet The computer program being stored on non-volatile computer readable storage medium storing program for executing is included, computer program includes program instruction, works as journey When sequence instruction is computer-executed, computer is made to execute the method that any of the above-described Remote Dynamic compiles Android engineering.
In some embodiments, the embodiment of the present invention also provides a kind of electronic equipment comprising: at least one processor, And the memory being connect at least one processor communication, wherein memory, which is stored with, to be executed by least one processor Instruction, instruction by least one described processor execute so that at least one processor be able to carry out Remote Dynamic compiling The method of Android engineering.
In some embodiments, the embodiment of the present invention also provides a kind of storage medium, is stored thereon with computer program, It is characterized in that, the method for Remote Dynamic compiling Android engineering when which is executed by processor.
The server of the Remote Dynamic compiling Android engineering of the embodiments of the present invention can be used for executing implementation of the present invention The method of the Remote Dynamic compiling Android engineering of example, and reach the realization Remote Dynamic of the embodiments of the present invention accordingly The method technical effect achieved of Android engineering is compiled, which is not described herein again.Hardware can be passed through in the embodiment of the present invention Processor (hardware processor) Lai Shixian related function module.
Fig. 4 is the electronic equipment for the method that the execution Remote Dynamic that one embodiment of the invention provides compiles Android engineering Hardware structural diagram, as shown in figure 4, the equipment includes:
One or more processors 310 and memory 320, in Fig. 4 by taking a processor 310 as an example.
The equipment for executing the method for Remote Dynamic compiling Android engineering can also include: input unit 330 and output dress Set 340.
Processor 310, memory 320, input unit 330 and output device 340 can pass through bus or other modes It connects, in Fig. 4 for being connected by bus.
Memory 320 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, as the Remote Dynamic in the embodiment of the present application compiles Android engineering The corresponding program instruction/module of method.The non-volatile software journey that processor 310 is stored in memory 320 by operation Sequence, instruction and module, thereby executing the various function application and data processing of server, i.e. realization above method embodiment The method of Remote Dynamic compiling Android engineering.
Memory 320 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;Storage data area, which can be stored, compiles Android engineering according to Remote Dynamic Server uses created data etc..In addition, memory 320 may include high-speed random access memory, can also wrap Include nonvolatile memory, for example, at least a disk memory, flush memory device or other non-volatile solid state memories Part.In some embodiments, it includes the memory remotely located relative to processor 310 that memory 320 is optional, these are remotely deposited Reservoir can compile the server of Android engineering by being connected to the network to Remote Dynamic.The example of above-mentioned network includes but not It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 330 can receive the number or character information of input, and generates and compile Android work with Remote Dynamic The related signal of user setting and function control of the server of journey.Output device 340 may include that display screen etc. shows equipment.
Said one or multiple modules are stored in the memory 320, when by one or more of processors When 310 execution, the method that the Remote Dynamic in above-mentioned any means embodiment compiles Android engineering is executed.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present application.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) mobile unit: this kind of equipment can be applied to automotive field.Such equipment includes: vehicle mounted guidance.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, above-mentioned technology Scheme substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, the computer Software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions to So that computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment or Method described in certain parts of embodiment.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. the method for Remote Dynamic compiling Android engineering, which comprises the steps of:
Constructing environment is built, and the configuration building code address in the constructing environment built;
Android engineering is set up according to the building code address of configuration;
The code branch address for receiving Remote configuration is carried out according to the code branch address of configuration and the Android engineering of establishment On-the-flier compiler.
2. the method according to claim 1, wherein building constructing environment is realized by jenkins.
3. according to the method described in claim 2, it is characterized in that, described set up according to the building code address of configuration Android engineering includes
The building code address of configuration is obtained, jenkins building is executed, generates code base configuration file;
Parsing code base configuration file pulls remotely according to the content in code base configuration file from the building code address Code sets up Android engineering.
4. according to the method described in claim 3, it is characterized in that, described set up according to the building code address of configuration Android Project Realization is python wscript.exe, the method also includes
The python wscript.exe is configured in jenkins;
After configuring building code address, jenkins calls the python wscript.exe of the configuration to execute according to configuration Construct the operation that code address sets up Android engineering.
5. according to the method described in claim 4, it is characterized in that, it is described receive Remote configuration code branch address, according to The code branch address of configuration and the Android engineering of establishment carry out on-the-flier compiler and include
According to code base configuration file described in the code branch address dynamic construction of configuration;
The code base configuration file for parsing dynamic construction, according to the code base configuration file of dynamic construction in the Android work Corresponding config directory is created under journey.
6. the server of Remote Dynamic compiling Android engineering, which is characterized in that include thereon
Building module as constructing environment, for configuring building code address and receiving the code branch address of Remote configuration, And building operation is executed according to the building code address of configuration and code branch address;
Module is set up configured with engineering in the building module, for setting up Android work according to the building code address of configuration Journey, and on-the-flier compiler is carried out to the Android engineering of establishment according to the code branch address of configuration.
7. server according to claim 6, which is characterized in that the building module is embodied as jenkins tool.
8. server according to claim 7, which is characterized in that the engineering sets up module and is embodied as python script work Tool.
9. the system of Remote Dynamic compiling Android engineering, which is characterized in that the system comprises at least one users to connect Mouthful, for receiving the configuration of code branch address, output to following servers;
It can be compiled with the server of the user interface telecommunication for executing dynamic according to the code branch address received Translate processing, wherein the server is embodied as the described in any item Remote Dynamic compiling Android engineerings of claim 6 to 8 Server.
10. system according to claim 9, which is characterized in that the user interface be embodied as with the building mould The web page of block communication.
CN201910745189.XA 2019-08-13 2019-08-13 Method, server and the system of Remote Dynamic compiling Android engineering Withdrawn CN110427189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910745189.XA CN110427189A (en) 2019-08-13 2019-08-13 Method, server and the system of Remote Dynamic compiling Android engineering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910745189.XA CN110427189A (en) 2019-08-13 2019-08-13 Method, server and the system of Remote Dynamic compiling Android engineering

Publications (1)

Publication Number Publication Date
CN110427189A true CN110427189A (en) 2019-11-08

Family

ID=68415964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910745189.XA Withdrawn CN110427189A (en) 2019-08-13 2019-08-13 Method, server and the system of Remote Dynamic compiling Android engineering

Country Status (1)

Country Link
CN (1) CN110427189A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360135A (en) * 2021-04-21 2021-09-07 浙江大学 Heterogeneous Internet of things application remote compiling method based on elastic expansion

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360135A (en) * 2021-04-21 2021-09-07 浙江大学 Heterogeneous Internet of things application remote compiling method based on elastic expansion
CN113360135B (en) * 2021-04-21 2022-05-24 浙江大学 Heterogeneous Internet of things application remote compiling method based on elastic expansion

Similar Documents

Publication Publication Date Title
CN103617066B (en) A kind of workflow engine and its implementation
US10303450B2 (en) Systems and methods for a policy-driven orchestration of deployment of distributed applications
CN103109271B (en) The implementation method of migrate application and system between a kind of platform
CN102855152B (en) The method and system of resource file in upgrade applications
CN109542445A (en) A kind of method and apparatus that Android plug-in unit melts hair
CN105100191A (en) Method, device and system for realizing Java application installation via cloud compilation
CN103608773A (en) Deployment system for multi-node applications
CN111399840B (en) Module development method and device
Da Silva et al. Internet of things out of the box: using TOSCA for automating the deployment of IoT environments
CN104239088B (en) Operation is executed to the node of distributed computer network (DCN)
CN111857801B (en) Construction method of mobile application
CN104615462A (en) Cross-platform mobile application generating server side and system
CN103186376A (en) Method, device and equipment for establishing or updating software development environment
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
EP2842044A1 (en) Platform runtime abstraction
CN112596854A (en) Method and device for continuously integrating running of assembly line
CN103473034A (en) Method and device for dynamically publishing Web service
CN110888639A (en) Business code compiling and packaging method and device
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN102664952A (en) Method for managing and monitoring embedded equipment cluster
CN102129385B (en) Management method capable of dynamically expanding management function of virtual machine
CN110427189A (en) Method, server and the system of Remote Dynamic compiling Android engineering
CN113448650A (en) Live broadcast function plug-in loading method, device, equipment and storage medium
CN109725927A (en) Synchronous method and device, the storage medium and terminal of code management system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 215123 14 Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu.

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215123 14 Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou, Jiangsu.

Applicant before: AI SPEECH Ltd.

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191108