CN106648814A - Compiling checking method and device for code, and equipment - Google Patents
Compiling checking method and device for code, and equipment Download PDFInfo
- Publication number
- CN106648814A CN106648814A CN201610838468.7A CN201610838468A CN106648814A CN 106648814 A CN106648814 A CN 106648814A CN 201610838468 A CN201610838468 A CN 201610838468A CN 106648814 A CN106648814 A CN 106648814A
- Authority
- CN
- China
- Prior art keywords
- code
- type
- compiling
- inspection
- checking
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/43—Checking; Contextual analysis
Abstract
The invention relates to a compiling checking method and device for a code, and equipment. The method comprises the following steps of: when a code compiling checking instruction is monitored, determining the type of terminal equipment which can be subjected to compiling checking by the code; combining the code to a source code corresponding to the type to obtain the combined source code; and carrying out the compiling checking on the combined source code to obtain a compiling checking result. By use of the method, the compiling checking efficiency of the code can be improved.
Description
Technical field
It relates to the communications field, more particularly to the compiling inspection method of code, device and equipment.
Background technology
With the fast development of mobile terminal, the functional requirement more and more higher that user has to mobile terminal, in order to full
The requirement that sufficient user is increasingly lifted, developer needs Jing often to update each application program in mobile terminal.And application program is
Built based on code, therefore, if will more new application, it is necessary first to which the code of application program is compiled.
In correlation technique, after developer's exploitation completes One function or completes one section of code, will enter in home environment
Row module is compiled, and to be verified, i.e., checking is compiled to certain type by public packing platform, if packing successfully
Mean that compiling passes through, tester can be transferred to be tested, mean that code is problematic if packing failure, it is right to need
Code is checked, completes to be packed again after modification, until packing successfully.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of compiling inspection method of code, device and set
It is standby.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of compiling inspection method of code, including:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking;
The code is incorporated into into the corresponding source code of the type, the source code after being merged;
Inspection is compiled to the source code after the merging, compiling inspection result is obtained.
Due to after the type that code can compile the terminal device for checking is determined, code being merged into into the machine
In the corresponding source code of type, and inspection is compiled to the source code after the merging, therefore the purpose of automatic compiling can be realized, by
This avoids developer in correlation technique and is required for local compiling to check after each completion code, then to public compiling platform
The phenomenon for being compiled inspection is gone, so as to shorten the construction cycle, the efficiency of code compilation inspection is improve.
With reference in a first aspect, in the first possible implementation of first aspect, methods described also includes:It is described true
Before determining the type that code can compile the terminal device for checking,
Judge whether the code needs compiling to check;
If the code needs compiling to check, it is determined that the code can compile the type of the terminal device for checking.
Due to by judging, just inspection being compiled to the code when code needs, as such, it is possible to first filter out be not required to
The code of inspection is compiled, it is possible thereby to improve the efficiency of code compilation inspection.
With reference to the first possible implementation of first aspect, in second possible implementation of first aspect
In, it is described to determine the type that code compile the terminal device for checking, including:
The project being located according to the code and code branch, determine that code can compile the machine of the terminal device for checking
Type.
The project being located by code and code branch, determine that code can compile the type of the terminal device for checking, make
The determination mode for obtaining the terminal device type that code can compile inspection is simpler.
With reference in a first aspect, in the third possible implementation of first aspect, the source to after the merging
Code is compiled inspection, and obtaining compiling inspection result includes:
If compiling is checked successfully, information is issued the user with;The information is used to notify to merge described in user
Compilation of source code success afterwards.
After compilation of source code inspection success after merging, information will be issued the user with, to remind user, therefore
Man-machine interaction can be caused more intelligent, the experience of user is improve.
With reference to second possible implementation of first aspect, in the 4th kind of possible implementation of first aspect
In, methods described also includes:It is described to determine after the type that code compile the terminal device for checking,
The type of the terminal device for checking can be compiled according to the code, determine that the code can compile the end for checking
First quantity of the type of end equipment.
With reference to the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect
In, methods described also includes:The source code to after the merging is compiled inspection, after obtaining compiling inspection result,
It is determined that completing the second quantity for compiling the source code correspondence type after the merging for checking;
Judge whether second quantity is equal to first quantity;
If second quantity is not equal to first quantity, notification message is issued the user with, the notification message is used
In the type for reminding the user to there is non-compiled inspection.
Checked by determining that code can compile the first quantity of the type of the terminal device for checking and complete compiling
Merging after source code correspondence type the second quantity, judging whether for institute's organic type all to compile inspections, it is to avoid omission
The situation that compiling is checked, improves the accuracy that compiling is checked.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of compiling check device of code, including:
First determining module, is configured to, when monitoring that code compilation inspection is instructed, determine that code can compile inspection
Terminal device type;
First acquisition module, is configured to for the code to be incorporated into the corresponding source of type that the determining module is determined
Code, the source code after being merged;
Second acquisition module, is configured to be compiled the source code after the merging inspection, obtains compiling and checks knot
Really.
With reference to second aspect, in the first possible implementation of second aspect, described device also includes:
First judge module, is configured to judge whether the code needs compiling to check;
Second determining module, is configured to when first judge module judges that the code needs compiling to check,
Determine that the code can compile the type of the terminal device for checking.
With reference to the first possible implementation of second aspect, in second possible implementation of second aspect
In, second determining module, including:
Determination sub-module, is configured to project and the code branch being located according to the code, determines that code can be compiled
The type of the terminal device of inspection.
With reference to second aspect, in the third possible implementation of second aspect, second acquisition module, bag
Include:
Sending submodule, is configured to, when compiling is checked successfully, issue the user with information;The information is used
In notify described in user merge after compilation of source code success.
With reference to second possible implementation of second aspect, in the 4th kind of possible implementation of second aspect
In, described device also includes:
3rd determining module, is configured to that the type of the terminal device for checking can be compiled according to the code, determines institute
Stating code can compile first quantity of type of the terminal device for checking.
With reference to the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect
In, described device also includes:
4th determining module, is configured to determine that and completes to compile the of the source code correspondence type after the merging for checking
Two quantity;
Second judge module, is configured to judge whether second quantity is equal to first quantity;
Sending module, is configured to judge that second quantity is not equal to first number in second judge module
During amount, notification message is issued the user with, the notification message is used for the type for reminding the user to there is non-compiled inspection.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal device, including:
Processor;
For storing the memory of processor executable;
Wherein, the processor is configured to:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking;
The code is incorporated into into the corresponding source code of the type, the source code after being merged;
Inspection is compiled to the source code after the merging, compiling inspection result is obtained.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking, will generation
Code is incorporated into the corresponding source code of type, and the source code after being merged is compiled inspection to the source code after merging, obtains
Compiling inspection result.Due to after the type that code can compile the terminal device for checking is determined, code being merged
To in the corresponding source code of the type, and inspection is compiled to the source code after the merging, therefore automatic compiling can be realized
Purpose, thus avoid developer in correlation technique and is required for local compiling to check after each completion code, then to public
Compiling platform goes to be compiled the phenomenon of inspection, so as to shorten the construction cycle, improves the efficiency of code compilation inspection.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the enforcement for meeting the disclosure
Example, and be used to explain the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the compiling inspection method of the code according to an exemplary embodiment;
Fig. 2 is the flow chart of the compiling inspection method for implementing a kind of code for exemplifying according to another exemplary;
Fig. 3 is a kind of flow chart of the compiling inspection method of the code according to another exemplary embodiment;
Fig. 4 is a kind of block diagram of the compiling check device of the code according to an exemplary embodiment;
Fig. 5 is the block diagram of the compiling check device for implementing a kind of code for exemplifying according to another exemplary;
Fig. 6 is a kind of block diagram of the compiling check device of the code according to further example embodiment;
Fig. 7 is a kind of block diagram of the compiling check device of the code according to another exemplary embodiment;
Fig. 8 is a kind of compiling check device block diagram of the code according to another exemplary embodiment;
Fig. 9 is a kind of block diagram of the compiling check device of the code according to another exemplary embodiment;
Figure 10 is a kind of block diagram of the compiling check device of the code according to another exemplary embodiment;
Figure 11 is a kind of block diagram of the compiling check device for code according to an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Explained below is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of the compiling inspection method of the code according to an exemplary embodiment, such as Fig. 1 institutes
Show, the compiling inspection method of the code that the present embodiment is related to is used in terminal device, and the terminal device is compiled to enter line code
The equipment for translating inspection, for example, can be mobile phone, personal digital assistant (Personal Digital Assistant, abbreviation PDA)
Deng.The compiling inspection method of the code is comprised the following steps.
In step s 11, when monitoring that code compilation inspection is instructed, determine that code can compile the terminal device for checking
Type.
In the present embodiment, after code to be submitted to developer the gerrit of terminal device, it will triggering trigger
Plug-in unit, now, terminal device will receive code compilation inspection instruction, and the code compilation inspection is instructed for indicating to exploitation
The code that personnel submit to is compiled inspection.
Further, since each section of code has the type of the terminal device that can compile inspection, therefore, when terminal device exists
When monitoring that code compilation inspection is instructed, it is thus necessary to determine that the code can compile the type of the terminal device for checking, such as:Code
S1 can compile inspection millet 3, the type such as millet 4 and millet 5.
In step s 12, code is incorporated into into the corresponding source code of type, the source code after being merged.
In the disclosed embodiments, because the code that developer submits to is probably the renewal to system, it is also possible to be
Newly-increased application program, therefore, on the one hand in order to detect the compatibility of the code and source code, on the other hand in order to detect the generation
The accuracy of code, therefore need that the code is incorporated in source code.When terminal device determines that code can compile the end for checking
After the type of end equipment, the code that developer submits to can be incorporated in the corresponding source code of the type.For example:If it is determined that
Code S1 can compile inspection millet 3, and code S1 is then incorporated into respectively millet 3, the He of millet 4 by the type such as millet 4 and millet 5
In the corresponding source code of millet 5, with the source code after being merged.
In step s 13, inspection is compiled to the source code after merging, compiling inspection result is obtained.
In the embodiment of the present disclosure, after source code of the terminal device after being merged, it will the source code after the merging
Inspection is compiled, so, it is to avoid developer is required for local compiling to check after each completion code, then to public volume
Translate platform to go to be compiled the phenomenon of inspection, so as to shorten the construction cycle, improve the efficiency of code compilation inspection.In addition,
Source code after to merging is compiled inspection, can effectively control the warehouse-in code quality of developer, reduce because
To compile only and the phenomenon of caused outgoing version compiling failure.
The compiling inspection method of the code of the present embodiment, when monitoring that code compilation inspection is instructed, determines code institute energy
The type of the terminal device that compiling is checked, by code the corresponding source code of type, the source code after being merged, pairing are incorporated into
And after source code be compiled inspection, obtain compiling inspection result.Due to determine code can compile check terminal
After the type of equipment, code can be merged in the corresponding source code of the type, and the source code after the merging is carried out
Compiling is checked, therefore can realize the purpose of automatic compiling, thus avoid in correlation technique developer in each completion code
After be required for local compiling to check, then go to be compiled the phenomenon of inspection to public compiling platform, so as to shorten the construction cycle,
Improve the efficiency of code compilation inspection.
Fig. 2 is a kind of flow chart of the compiling inspection method of code for implementing to exemplify according to another exemplary, the method
For in terminal device, on the basis of embodiment illustrated in fig. 1, pair determination code can to compile the terminal for checking and set the present embodiment
The embodiment of standby type, elaborates, as shown in Fig. 2 the compiling inspection method of the code is comprised the following steps.
In the step s 21, when monitoring that code compilation inspection is instructed, judge whether code needs compiling to check.
In the disclosed embodiments, after terminal device receives the code of developer's submission, need first to judge this
Whether code needs compiling to check, as such, it is possible to first filter out that the code of inspection need not be compiled, it is possible thereby to improve code volume
Translate the efficiency of inspection.For example:If the code is text document or some value etc. is recorded in text document, these are all not required to
Compile inspection.
In step S22, if code needs compiling to check, the project and code branch according to code place, it is determined that generation
Code can compile the type of the terminal device for checking.
In the disclosed embodiments, if terminal device judges that code needs compiling to check, submitted to according to developer
Code be located project and code branch, determine code can compile inspection terminal device type.
If terminal device judges that code need not compile inspection, the compiling checking process of whole code terminates.
In step S23, code is incorporated into into the corresponding source code of type, the source code after being merged.
In step s 24, inspection is compiled to the source code after merging, compiling inspection result is obtained.
The compiling inspection method of the code of the present embodiment, when monitoring that code compilation inspection is instructed, determines code institute energy
The type of the terminal device that compiling is checked, by code the corresponding source code of type, the source code after being merged, pairing are incorporated into
And after source code be compiled inspection, obtain compiling inspection result.Due to determine code can compile check terminal
After the type of equipment, code can be merged in the corresponding source code of the type, and the source code after the merging is carried out
Compiling is checked, therefore can realize the purpose of automatic compiling, thus avoid in correlation technique developer in each completion code
After be required for local compiling to check, then go to be compiled the phenomenon of inspection to public compiling platform, so as to shorten the construction cycle,
Improve the efficiency of code compilation inspection.In addition, the project being located by code and code branch, determine that code can compile inspection
The type of the terminal device looked into so that the determination mode that code can compile the terminal device type for checking is simpler.
Alternatively, on the basis of the various embodiments described above, if being compiled inspection to the source code after merging, and inspection is compiled
Look into successfully, then issue the user with information;The compilation of source code success that the information is used for after notifying user to merge.
Specifically, the information can include at least one in auditory tone cues, voice message or message notifying pop-up.
Compilation of source code after merging checks that successfully then terminal device will pass through in sound, voice or message notifying pop-up at least
One kind reminding user, the compilation of source code success after the merging.
The compiling inspection method of the code of the present embodiment, compilation of source code after merging checked after success, will to
Family sends information, to remind user, therefore man-machine interaction can be caused more intelligent, improves the experience of user.
Alternatively, on the basis of the various embodiments described above, if being compiled inspection to the source code after merging, and inspection is compiled
Failure is looked into, then issues the user with the information for carrying unsuccessfully daily record.
Specifically, the information includes message notifying pop-up.Compilation of source code inspection after merging fails, then terminal
Failure daily record is carried and user is sent in information by equipment, so that user is checked according to failure daily record, is contracted with this
The short construction cycle, improve the efficiency that code compilation is checked.
Fig. 3 is a kind of flow chart of the compiling inspection method of the code according to another exemplary embodiment, the method
For in terminal device, the present embodiment to be compiled inspection on the basis of embodiment illustrated in fig. 2 to the source code after merging
Afterwards, institute's organic type that how determining code can compile has been compiled the embodiment of inspection, elaborates, such as Fig. 3 institutes
Show, the compiling inspection method of the code is comprised the following steps.
In step S31, when monitoring that code compilation inspection is instructed, determine that code can compile the terminal device for checking
Type.
In step s 32, the type of the terminal device for checking can be compiled according to code, determines that code can compile inspection
Terminal device type the first quantity.
In the disclosed embodiments, terminal device determine code can compile check terminal device type it
Afterwards, the first quantity of all types that can compile inspection will be determined, and the first quantity determined is stored in database.Example
Such as:If code S1 can compile the type for checking millet 3, millet 4 and millet 5, the first quantity is 3.By control routine
The type number of the terminal device for checking can be compiled, can effectively accomplish identical code on different type platforms
Compliance check.
In step S33, code is incorporated into into the corresponding source code of type, the source code after being merged.
In step S34, inspection is compiled to the source code after merging, obtains compiling inspection result.
In step s 35, it is determined that completing the second quantity for compiling the source code correspondence type after the merging for checking.
In the disclosed embodiments, after compiling is completed, the quantity for having completed to compile the institute's organic type for checking will be determined,
For example:The type of millet 3 and millet 4 has completed compiling and has checked, and millet 5 is not also compiled inspection, then the second quantity
As 2.
In step S36, judge whether the second quantity is equal to the first quantity.
In step S37, if the second quantity is not equal to the first quantity, notification message is issued the user with, the notification message
There is the type of non-compiled inspection for reminding user.
In the disclosed embodiments, if the second quantity is equal to the first quantity, all types that can be compiled have been illustrated
Complete compiling and check that then compilation process terminates.If the second quantity is not equal to the first quantity, notification message can be issued the user with,
Also there is the type of non-compiled inspection to remind user.So, it is to avoid omit the situation that compiling is checked, improve compiling and check
Accuracy.
The compiling inspection method of the code of the present embodiment, when monitoring that code compilation inspection is instructed, determines code institute energy
The type of the terminal device that compiling is checked, by code the corresponding source code of type, the source code after being merged, pairing are incorporated into
And after source code be compiled inspection, obtain compiling inspection result.Due to determine code can compile check terminal
After the type of equipment, code can be merged in the corresponding source code of the type, and the source code after the merging is carried out
Compiling is checked, therefore can realize the purpose of automatic compiling, thus avoid in correlation technique developer in each completion code
After be required for local compiling to check, then go to be compiled the phenomenon of inspection to public compiling platform, so as to shorten the construction cycle,
Improve the efficiency of code compilation inspection.In addition, by determining that code can compile the first of the type of the terminal device for checking
Second quantity of quantity type corresponding with the source code after the merging that compiling is checked has been completed, to judge whether institute's organic type
All compilings are checked, it is to avoid omit the situation that compiling is checked, improve the accuracy that compiling is checked.
Fig. 4 is a kind of block diagram of the compiling check device of the code according to an exemplary embodiment, as shown in figure 4,
The compiling check device includes the first determining module 11, the first acquisition module 12 and the second acquisition module 13.
First determining module 11 is configured to when monitoring that code compilation inspection is instructed, and determines that code can compile inspection
Terminal device type;
First acquisition module 12 is configured to for the code to be incorporated into the type that first determining module 11 is determined
Corresponding source code, the source code after being merged;
Second acquisition module 13 is configured to the source code after the merging obtained to first acquisition module 12 and enters
Row compiling checks, obtains and compile inspection result.
Wherein, as shown in figure 5, Fig. 5 is a kind of compiling check device of the code for implementing to exemplify according to another exemplary
Block diagram, on the basis of embodiment illustrated in fig. 4, described device also includes the first judge module 14 and the second determining module 15;
First judge module 14 is configured to judge whether the code needs compiling to check;
Second determining module 15 is configured to judge that the code needs compiling to check in first judge module 14
When, determine that the code can compile the type of the terminal device for checking.
Wherein, as shown in fig. 6, Fig. 6 is a kind of compiling check device of the code according to further example embodiment
Block diagram, on the basis of embodiment illustrated in fig. 5, second determining module 15 include determination sub-module 151;
Determination sub-module 151 is configured to project and the code branch being located according to the code, determines that code can be compiled
Translate the type of the terminal device of inspection.
Wherein, as shown in fig. 7, Fig. 7 is a kind of compiling check device of the code according to another exemplary embodiment
Block diagram, on the basis of embodiment illustrated in fig. 4, second acquisition module 13 include sending submodule 131;
Sending submodule 131 is configured to when compiling is checked successfully, issues the user with information;The information
For notifying the compilation of source code success after merging described in user.
Wherein, as shown in figure 8, Fig. 8 is a kind of compiling check device of the code according to another exemplary embodiment
Block diagram, on the basis of embodiment illustrated in fig. 6, described device also includes:3rd determining module 16.
3rd determining module 16 is configured to that the type of the terminal device for checking can be compiled according to the code, determines institute
Stating code can compile first quantity of type of the terminal device for checking.
Wherein, as shown in figure 9, Fig. 9 is a kind of compiling check device of the code according to another exemplary embodiment
Block diagram, on the basis of embodiment illustrated in fig. 8, described device also includes:4th determining module 17, the and of the second judge module 18
Sending module 19.
4th determining module 17 is configured to determine that and completes to compile the source code correspondence type after the merging for checking
Second quantity;
Second judge module 18 is configured to judge whether second quantity is equal to first quantity;
Sending module 19 is configured to judge that second quantity is not equal to described in second judge module 18
During one quantity, notification message is issued the user with, the notification message is used for the type for reminding the user to there is non-compiled inspection.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The foregoing describe the built-in function and structure of the compiling check device of code, as shown in Figure 10, the compiling of the code
Check device is capable of achieving:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking;
The code is incorporated into into the corresponding source code of the type, the source code after being merged;
Inspection is compiled to the source code after the merging, compiling inspection result is obtained.
The compiling inspection method of the code of the present embodiment, when monitoring that code compilation inspection is instructed, determines code institute energy
The type of the terminal device that compiling is checked, by code the corresponding source code of type, the source code after being merged, pairing are incorporated into
And after source code be compiled inspection, obtain compiling inspection result.Due to determine code can compile check terminal
After the type of equipment, code can be merged in the corresponding source code of the type, and the source code after the merging is carried out
Compiling is checked, therefore can realize the purpose of automatic compiling, thus avoid in correlation technique developer in each completion code
After be required for local compiling to check, then go to be compiled the phenomenon of inspection to public compiling platform, so as to shorten the construction cycle,
Improve the efficiency of code compilation inspection.
Figure 11 is a kind of block diagram of the compiling check device for code according to an exemplary embodiment.For example,
Device 800 can be mobile phone, and computer, digital broadcast terminal, messaging devices, game console, tablet device is cured
Treatment equipment, body-building equipment, personal digital assistant etc..
With reference to Figure 11, device 800 can include following one or more assemblies:Process assembly 802, memory 804, power supply
Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and
Communication component 816.
The integrated operation of the usual control device 800 of process assembly 802, such as with display, call, data communication, phase
Machine operates and records the associated operation of operation.Process assembly 802 can refer to including one or more processors 820 to perform
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more modules, just
Interaction between process assembly 802 and other assemblies.For example, process assembly 802 can include multi-media module, many to facilitate
Interaction between media component 808 and process assembly 802.
Memory 804 is configured to store various types of data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application program for operating on device 800 or method, and contact data, telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile
Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 can include power management system
System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One
In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings
Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action
Border, but also detect and the touch or slide related duration and pressure.In certain embodiments, many matchmakers
Body component 808 includes a front-facing camera and/or post-positioned pick-up head.When equipment 800 be in operator scheme, such as screening-mode or
During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and
Post-positioned pick-up head can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike
Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody
It is set to reception external audio signal.The audio signal for being received can be further stored in memory 804 or via communication set
Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
, to provide interface between process assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor cluster 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented
Estimate.For example, sensor cluster 814 can detect the opening/closed mode of equipment 800, and the relative positioning of component is for example described
Component is the display and keypad of device 800, and sensor cluster 814 can be with 800 1 components of detection means 800 or device
Position change, user is presence or absence of with what device 800 was contacted, the orientation of device 800 or acceleration/deceleration and device 800
Temperature change.Sensor cluster 814 can include proximity transducer, be configured to be detected when without any physical contact
The presence of object nearby.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into
As used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device
800 can access based on the wireless network of communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement
In example, communication component 816 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example
Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology,
Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter
Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete said method by the processor 820 of device 800.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the process of mobile terminal
When device is performed so that mobile terminal is able to carry out a kind of compiling inspection method of code, and methods described includes:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking;
The code is incorporated into into the corresponding source code of the type, the source code after being merged;
Inspection is compiled to the source code after the merging, compiling inspection result is obtained.
Wherein, methods described also includes:It is described to determine before the type that code compile the terminal device for checking,
Judge whether the code needs compiling to check;
If the code needs compiling to check, it is determined that the code can compile the type of the terminal device for checking.
Wherein, it is described to determine the type that code compile the terminal device for checking, including:
The project being located according to the code and code branch, determine that code can compile the machine of the terminal device for checking
Type.
Wherein, the source code to after the merging is compiled inspection, and obtaining compiling inspection result includes:
If compiling is checked successfully, information is issued the user with;The information is used to notify to merge described in user
Compilation of source code success afterwards.
Wherein, methods described also includes:It is described to determine after the type that code compile the terminal device for checking,
The type of the terminal device for checking can be compiled according to the code, determine that the code can compile the end for checking
First quantity of the type of end equipment.
Wherein, methods described also includes:The source code to after the merging is compiled inspection, obtains compiling and checks
As a result after,
It is determined that completing the second quantity for compiling the source code correspondence type after the merging for checking;
Judge whether second quantity is equal to first quantity;
If second quantity is not equal to first quantity, notification message is issued the user with, the notification message is used
In the type for reminding the user to there is non-compiled inspection.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice disclosure disclosed herein
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claims are pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and
And can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appending claims
System.
Claims (13)
1. the compiling inspection method of a kind of code, it is characterised in that include:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking;
The code is incorporated into into the corresponding source code of the type, the source code after being merged;
Inspection is compiled to the source code after the merging, compiling inspection result is obtained.
2. method according to claim 1, it is characterised in that methods described also includes:The determination code can be compiled
Before the type of the terminal device of inspection,
Judge whether the code needs compiling to check;
If the code needs compiling to check, it is determined that the code can compile the type of the terminal device for checking.
3. method according to claim 2, it is characterised in that the determination code can compile the terminal device that checks
Type, including:
The project being located according to the code and code branch, determine that code can compile the type of the terminal device for checking.
4. method according to claim 1, it is characterised in that the source code to after the merging is compiled inspection
Look into, obtaining compiling inspection result includes:
If compiling is checked successfully, information is issued the user with;After the information is used to notify to merge described in user
Compilation of source code success.
5. method according to claim 3, it is characterised in that methods described also includes:The determination code can be compiled
After the type of the terminal device of inspection,
The type of the terminal device for checking can be compiled according to the code, determine that the code can compile the terminal for checking and set
First quantity of standby type.
6. method according to claim 5, it is characterised in that methods described also includes:The source to after the merging
Code is compiled inspection, after obtaining compiling inspection result,
It is determined that completing the second quantity for compiling the source code correspondence type after the merging for checking;
Judge whether second quantity is equal to first quantity;
If second quantity is not equal to first quantity, notification message is issued the user with, the notification message is used to carry
There is the type of non-compiled inspection in the user that wakes up.
7. the compiling check device of a kind of code, it is characterised in that include:
First determining module, is configured to, when monitoring that code compilation inspection is instructed, determine that code can compile the end for checking
The type of end equipment;
First acquisition module, is configured to for the code to be incorporated into the corresponding source of type that first determining module is determined
Code, the source code after being merged;
Second acquisition module, is configured to the source code after the merging obtained to first acquisition module and is compiled inspection
Look into, obtain compiling inspection result.
8. device according to claim 7, it is characterised in that described device also includes:
First judge module, is configured to judge whether the code needs compiling to check;
Second determining module, is configured to when first judge module judges that the code needs compiling to check, it is determined that
The code can compile the type of the terminal device for checking.
9. device according to claim 8, it is characterised in that second determining module, including:
Determination sub-module, is configured to project and the code branch being located according to the code, determines that code can compile inspection
Terminal device type.
10. device according to claim 7, it is characterised in that second acquisition module, including:
Sending submodule, is configured to, when compiling is checked successfully, issue the user with information;The information is used to lead to
Know the compilation of source code success after merging described in user.
11. devices according to claim 9, it is characterised in that described device also includes:
3rd determining module, is configured to that the type of the terminal device for checking can be compiled according to the code, determines the generation
Code can compile the first quantity of the type of the terminal device for checking.
12. devices according to claim 11, it is characterised in that described device also includes:
4th determining module, is configured to determine that the second number for completing to compile the source code correspondence type after the merging for checking
Amount;
Second judge module, is configured to judge whether second quantity is equal to first quantity;
Sending module, is configured to judge that second quantity is not equal to first quantity in second judge module
When, notification message is issued the user with, the notification message is used for the type for reminding the user to there is non-compiled inspection.
13. a kind of terminal devices, it is characterised in that include:
Processor;
For storing the memory of processor executable;
Wherein, the processor is configured to:
When monitoring that code compilation inspection is instructed, determine that code can compile the type of the terminal device for checking;
The code is incorporated into into the corresponding source code of the type, the source code after being merged;
Inspection is compiled to the source code after the merging, compiling inspection result is obtained.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610838468.7A CN106648814A (en) | 2016-09-21 | 2016-09-21 | Compiling checking method and device for code, and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610838468.7A CN106648814A (en) | 2016-09-21 | 2016-09-21 | Compiling checking method and device for code, and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106648814A true CN106648814A (en) | 2017-05-10 |
Family
ID=58853106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610838468.7A Pending CN106648814A (en) | 2016-09-21 | 2016-09-21 | Compiling checking method and device for code, and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648814A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035892A (en) * | 2010-12-23 | 2011-04-27 | 中科方德软件有限公司 | System and method for automatically releasing operating system version and automatically updating software package |
CN102147758A (en) * | 2011-03-16 | 2011-08-10 | 深圳创维数字技术股份有限公司 | Automatic compiling and configuring method for equipment to be tested, device and system |
CN104077217A (en) * | 2013-03-28 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and system for compiling and issuing code file |
US20150355995A1 (en) * | 2013-10-15 | 2015-12-10 | International Business Machines Corporation | Detecting merge conflicts and compilation errors in a collaborative integrated development environment |
CN105302554A (en) * | 2015-10-23 | 2016-02-03 | 深圳市创维电器科技有限公司 | Android system automatic program construction method and system |
CN105867993A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | Software product compiling method and device |
US20160259633A1 (en) * | 2014-11-18 | 2016-09-08 | Roger James Poon | Safely consuming dynamically-typed code from a statically-typed programming language |
-
2016
- 2016-09-21 CN CN201610838468.7A patent/CN106648814A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035892A (en) * | 2010-12-23 | 2011-04-27 | 中科方德软件有限公司 | System and method for automatically releasing operating system version and automatically updating software package |
CN102147758A (en) * | 2011-03-16 | 2011-08-10 | 深圳创维数字技术股份有限公司 | Automatic compiling and configuring method for equipment to be tested, device and system |
CN104077217A (en) * | 2013-03-28 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Method and system for compiling and issuing code file |
US20150355995A1 (en) * | 2013-10-15 | 2015-12-10 | International Business Machines Corporation | Detecting merge conflicts and compilation errors in a collaborative integrated development environment |
US20160259633A1 (en) * | 2014-11-18 | 2016-09-08 | Roger James Poon | Safely consuming dynamically-typed code from a statically-typed programming language |
CN105302554A (en) * | 2015-10-23 | 2016-02-03 | 深圳市创维电器科技有限公司 | Android system automatic program construction method and system |
CN105867993A (en) * | 2016-03-29 | 2016-08-17 | 乐视控股(北京)有限公司 | Software product compiling method and device |
Non-Patent Citations (1)
Title |
---|
大鹏的世界: "TortoiseSVN中分支和合并实践", 《HTTPS://BLOG.CSDN.NET/ADPARKING/ARTICLE/DETAILS/52105866》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104536891B (en) | System detection method and device | |
CN104216742B (en) | Brush machine control method and device based on password | |
CN104980580B (en) | Short message inspection method and device | |
CN109614260A (en) | Communication failure judgment method, device and storage medium | |
CN107423106A (en) | The method and apparatus for supporting more frame grammars | |
CN107391218A (en) | Compilation Method and device, electronic equipment and computer-readable recording medium | |
CN108877837A (en) | Audio signal abnormality recognition method, device and storage medium | |
CN106775248A (en) | Push the methods of exhibiting and device of content | |
CN105323152A (en) | Message processing method, device and equipment | |
CN107239351A (en) | Method of attaching and device | |
CN107135147A (en) | Method, device and the computer-readable recording medium of sharing position information | |
CN107819740A (en) | Verification method, terminal device, audio amplifier and the server of terminal device | |
CN104461358B (en) | Light the method and device of screen | |
CN105975038A (en) | Prompt method and device of charging port detection result | |
CN108476379A (en) | Information recording method and information record carrier | |
CN107341657A (en) | Payment process method, apparatus and terminal based on application program | |
CN106953969A (en) | The screen control method and device of mobile terminal | |
CN104298903B (en) | Access the method and device of mobile terminal | |
CN106534495A (en) | Method of information processing, device and equipment | |
CN106503537A (en) | Verification method and device based on flexible display screen | |
CN105657658A (en) | Gathering event processing method and apparatuses | |
CN105893249A (en) | Software testing method and device | |
CN107158685A (en) | Locomotion assay method and apparatus | |
CN107506670A (en) | Parameter loading method and device | |
CN104765686B (en) | The method and device of test application program |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |