[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108197020A - Plug-in unit method of calibration, electronic equipment and computer storage media - Google Patents

Plug-in unit method of calibration, electronic equipment and computer storage media Download PDF

Info

Publication number
CN108197020A
CN108197020A CN201711457890.9A CN201711457890A CN108197020A CN 108197020 A CN108197020 A CN 108197020A CN 201711457890 A CN201711457890 A CN 201711457890A CN 108197020 A CN108197020 A CN 108197020A
Authority
CN
China
Prior art keywords
library file
plug
file
unit
new procedures
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
Application number
CN201711457890.9A
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.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue Technology 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201711457890.9A priority Critical patent/CN108197020A/en
Publication of CN108197020A publication Critical patent/CN108197020A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of plug-in unit method of calibration, electronic equipment and computer storage medias.Wherein method includes:It obtains new procedures library file generate according to current host application and obtains the old program library file that is relied on when plug-in unit to be verified generates;It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;Plug-in unit check results are generated according to the definitive result.It can be seen that, the host application that the present invention program can be relied in plug-in unit is detected the realizability of plug-in unit when changing, largely save test job of the later stage tester to plug-in unit, developer can be made to can be achieved with the detection to plug-in unit and host application matching relationship and modification in the process of development, improve exploitation and the optimization efficiency of application software.

Description

Plug-in unit method of calibration, electronic equipment and computer storage media
Technical field
The present invention relates to field of computer technology, and in particular to a kind of plug-in unit method of calibration, electronic equipment and computer are deposited Storage media.
Background technology
With the development of internet, various the Internet, applications emerge in an endless stream.With the increase in demand of user, needed using frequent The new function of meeting user demand is provided.In the R&D process of application, plug-in part technology extension application can be passed through Function.Plug-in unit is to follow the program that the application programming interfaces of certain specification are write out, by the interaction with application program, is come Alternate application program increases some required specific functions.
Inventor has found that there are following defects for the prior art in the implementation of the present invention:In order to meet user demand, It needs constantly to extend host application and the function of plug-in unit.It, may during the research and development or optimization of host application The edit operations such as the content of former host application is increased, changed or is deleted, the content of former host application occurs After variation, the plug-in unit dependent on former host application may be caused to occur when to content needed for former host program calling wrong Accidentally, the normal operation of the plug-in unit and application program is influenced.Therefore, it is very necessary to the verification of the realizability of plug-in unit.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly State plug-in unit method of calibration, electronic equipment and the computer storage media of problem.
According to an aspect of the invention, there is provided a kind of plug-in unit method of calibration, this method include:It obtains according to current place The old program library file that the new procedures library file and acquisition plug-in unit to be verified of primary application program generation are relied on when generating;Really The content of the old program library file whether is included in the fixed new procedures library file, obtains definitive result;It is determined according to described As a result plug-in unit check results are generated.
According to another aspect of the present invention, a kind of electronic equipment is provided, including:Processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus; For the memory for storing an at least executable instruction, the executable instruction makes the processor perform following operate:It obtains It takes the new procedures library file generated according to current host application and obtains the old journey relied on during plug-in unit generation to be verified Sequence library file;It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;According to Plug-in unit check results are generated according to the definitive result.
According to another aspect of the invention, a kind of computer storage media is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor perform following operate:Obtain the new journey generated according to current host application The old program library file that sequence library file and acquisition plug-in unit to be verified are relied on when generating;It determines in the new procedures library file The content of the old program library file whether is included, obtains definitive result;Plug-in unit check results are generated according to the definitive result.
Insert according to the invention method of calibration, electronic equipment and computer storage media, providing a kind of plug-in unit can be real The detection mode of existing property, the host application that can be relied in plug-in unit examine the realizability of plug-in unit when changing It surveys, largely saves test job of the later stage tester to plug-in unit, developer can be made in the process of development The detection to plug-in unit and host application matching relationship and modification are can be achieved with, improves the exploitation of application software and optimization effect Rate.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart for the plug-in unit method of calibration that the embodiment of the present invention one provides;
Fig. 2 shows the flow charts of plug-in unit method of calibration provided by Embodiment 2 of the present invention;
Fig. 3 shows the structure diagram of according to embodiments of the present invention four a kind of electronic equipment provided.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
Fig. 1 shows the flow chart for the plug-in unit method of calibration that the embodiment of the present invention one provides, for working as host application To the detection of plug-in unit realizability during update.As shown in Figure 1, this method includes the following steps:
Step S101 obtains the new procedures library file generated according to current host application and obtains to be verified insert The old program library file that part is relied on when generating.
In the present invention, the corresponding host's engineering of host application is referred in control system platform or application software Each function module or the main works for calling the corresponding function module of plug-in unit have control and manage other programs (such as plug-in unit) Function.Plug-in unit refers to the plug-in unit work developed for the function that the former pure system platform of realization or application software platform do not have Journey needs the data such as the function library that former pure system or application software is called to be provided or parameter during by plug-in component operation, because This plug-in unit can only be operated under system platform or the application software platform of procedure stipulation, and cannot be detached from the platform specified and independently be transported Row.The pure system of original therein or Application Software Program are the host application in this step.Correspondingly, it is appreciated that Be, plug-in unit engineering with its develop based on host's engineering have fixed dependence, plug-in unit engineering only depends on and it Matched host's engineering just has the meaning of presence and realization.
Specifically, when the corresponding plug-in unit of a new function for developing certain host application, plug-in unit is with according to host's work The program library file of Cheng Shengcheng is exploitation foundation, develops the plug-in unit engineering needed for plug-in unit.Illustratively, in Android system platform Under, host's engineering according to application software can generate the program library file of the entitled .jar of suffix (Android Package), this In referred to as jar packets.The class finished writing in host's engineering is contained in jar packets and is packaged, plug-in unit engineering is in foundation On the basis of the jar packets of host's engineering generation, can thus it be opened directly using data such as class, attribute and the methods in jar packets Send out the function of matching with host's engineering.However, host's engineering when host application has been carried out by developer into one After the update operation of the programs such as exploitation, the optimization of step, there are the generations of the corresponding new host's engineering of host application at this time, insert Data in host's engineering cited in part engineering are it is possible that be varied from, such as modification or deletion and the parameter of function Variations, the corresponding Xinsu main works such as modification or type change can generate new jar packets.Since plug-in unit engineering directly uses The data such as class, attribute and method in old jar packets, and some variables in plug-in unit engineering are all from host's work by parameter It is passed in journey, therefore when plug-in unit engineering is varied from the reference portion in host's engineering, plug-in unit engineering and host The dependence of engineering is broken, and plug-in unit is caused to be not normally functioning and collapse, the expanded function of corresponding application software also without Method normal use.
In this step, when detecting that program library file that the current host's engineering of host application is generated is new journey It, can in order to ensure the plug-in unit of host application during sequence library file or when detecting that host application loads plug-in unit Normal operation, the function of host application are expanded, therefore need to detect the realizability of plug-in unit at this time, need what is detected Plug-in unit is plug-in unit to be detected.And then the new journey of the host engineering generation current according to host application should be obtained respectively The old program library file that sequence library file and plug-in unit to be detected are relied on, to the content of new procedures library file and old program library file It is compared and detects.
Step S102 determines the content of the old program library file whether is included in the new procedures library file, obtains really Determine result.
In the present invention, after being updated in order to ensure host's engineering of host application, plug-in unit remains to normal use, and having must The all the elements whether contained in new procedures library file in old program library file are detected, so as to can be with during plug-in unit engineering operation Host's engineering is normally called and ensures that the transmission of parameter is unaffected.
Specifically, file all first in traversal program library file, it is ensured that old program library is included in new procedures library file All Files in file.The content of program library file can include the source file and/or compiling file of program.Wherein, source document It is that the code write out with assembler language or high-level language saves as text for part is relative target file and executable file It is after part as a result, being the code file that corresponding staff can understand;Compiling file is the running environment according to system The executable file generated after being compiled to source file usually exists with binary code form.Illustratively, pacifying In tall and erect system, the data such as various parameters, function, class and method can be defined in the source file of the entitled .java of suffix, wherein often A class has corresponded to a function, can be realized by multiple functions;It is entitled that one or more suffix can be generated after compiling .class class file.
Secondly, all data in each file are traversed, it is ensured that new procedures library corresponding with file each in old program library file The data included in the file of file are consistent.Wherein, the data in each file can be parameter, parameter type, function name Data, the variations of wherein any one data such as title, class and method all illustrate that new procedures library file is changed.
Illustratively, under Android system platform, jar packets that plug-in unit S is generated in host's engineering according to application software On the basis of develop.After host's engineering of application software is updated, obtain respectively old based on the exploitation basis of plug-in unit S Jar packets and the new jar packets of updated host's engineering generation, and the All Files in old jar packets and new jar packets are traversed successively And all data in each file and be compared, whether new jar packets are detected comprising the full content in old jar packets.
Step S103 generates plug-in unit check results according to the definitive result.
In the present invention, after the content in new procedures library file is compared with the content in old program library file, As long as the part that plug-in unit engineering is called in old program library file is changed in new procedures library file, then in new procedures library text Content corresponding with old program library file can not be all found in part.Therefore, for each content included in old program library file, If not comprising the content in new procedures library file, listed in plug-in unit check results not by comprising content, so as to exploit person Member in the process of development modifies to the corresponding plug-in unit engineering of the host's engineering or plug-in unit of host application.
According to plug-in unit method of calibration provided in this embodiment, can be used for can be real to plug-in unit when host application is updated The detection of existing property.Obtain respectively first according to the new procedures library file that current host application generates relied on plug-in unit it is old Program library file;Seriatim compare secondly by by the content in new procedures library file with the content in old program library file It is right, find out the content in the old program library file not included in new procedures library file;Finally using the content not included as The check results of plug-in unit are listed, for developer with reference to modification.It, can be in plug-in unit institute using the plug-in unit method of calibration of the present embodiment The realizability of plug-in unit is detected when the host application of dependence changes, largely saves later stage survey Test job of the examination personnel to plug-in unit, can be such that developer is can be achieved in the process of development to plug-in unit and host application The detection and modification of matching relationship improve exploitation and the optimization efficiency of application software.
Embodiment two
Fig. 2 shows the flow charts of plug-in unit method of calibration provided by Embodiment 2 of the present invention.The present embodiment is applied to work as place Detection when primary application program updates to plug-in unit realizability, as shown in Fig. 2, this method includes:
If step S201 detect that the program library file of the host application changes, generates plug-in unit school Test event.
In the present invention, due to plug-in unit be rely on host application host's engineering development and come, plug-in unit with Host's engineering of a certain particular version has fixed dependence, correspondingly, plug-in unit is only in matched host's engineering Loading under can normal operation.Therefore, it when the program library file for detecting host application changes, needs pair The realizability of plug-in unit is detected, and plug-in unit at this time is plug-in unit to be verified, while generates plug-in unit verification event.In addition, The host's engineering and the version of host's engineering of current host application relied in developer to plug-in unit do not know or Person need further detection in the case of, developer can be generated taking human as triggering plug-in unit verification event, to plug-in unit can be real Existing property is detected.
It is understood that after host's engineering update of host application, for example, to the increasing of data, change or The operations such as deletion, the corresponding program library file according to the generation of host's engineering are also updated.Due to already present plug-in unit be It is developed on the basis of the old program library file that host's engineering according to legacy version generates, therefore, in the host of legacy version Increase the update mode of corresponding data in engineering, do not interfere with and contained in new procedures library file in old program library file All the elements;However to the modification or deletion of data in host's engineering of legacy version, necessarily affect in new procedures library file With the consistency of old program library file corresponding content.And then detecting the program library file that is generated according to current host's engineering During for new procedures library file, it is necessary to the realizability of plug-in unit is detected, generation plug-in unit verification event.
Step S202 verifies event in response to the plug-in unit, performs the plug-in unit method of calibration.
Step S203 obtains the new procedures library file generated according to current host application and obtains to be verified insert The old program library file that part is relied on when generating.
In the present invention, the corresponding host's engineering of host application is referred in control system platform or application software Each function module or the main works for calling the corresponding function module of plug-in unit, plug-in unit refer to for realize former pure system platform or The plug-in unit engineering that the function that application software platform does not have is developed is to rely on host's engineering development, can only operate in Under the system platform or application software platform of procedure stipulation, and the platform independent operating specified cannot be detached from.Plug-in unit engineering and its Host's engineering based on exploitation has fixed dependence, and plug-in unit engineering only has dependent on matched host's engineering There is the meaning of presence and realization.Therefore, it after plug-in unit verification event is detected, obtains respectively current according to host application The old program library file that new procedures library file and the plug-in unit to be detected of host's engineering generation are relied on, to new procedures library file and old Content in program library file is compared and detects.
Preferably, the program library file that the host application relied on when the plug-in unit is generated is generated determines For the old program library file;The program that the current host application after the host application is changed is generated Library file is determined as the new procedures library file.
In the present invention, new procedures library file and old program library file are generated by same host application, difference It is that the version of host application is different, and then the program library file generated is also different.Wherein, first when to host During a plug-in unit of application development, developed on the basis of the version for the host application that developer can be at this moment, That is host application at this time can generate program library file, rely on the program library file and develop this plug-in unit, in order to just In understanding, the program library file is labeled as program library file A here;However, when host application changes, i.e., pair Host application is updated when having the host application of new version to generate afterwards, then host's application of current new version The program library file that program is generated also changes therewith, and the program library file is labeled as program library file B here.Due to The plug-in unit is to develop on the basis of the host application of version before the update, i.e., the plug-in unit has with program library file A Fixed dependence, and program library file B and program library file A are different, and then lead to the plug-in unit and program library file A Dependence be broken, influence the normal use of the plug-in unit, need detect program library file B whether contain program library file All the elements in A.It is understood, therefore, that the old program that program library file A is generated by legacy version host application Library file, at the same be also the plug-in unit generation basis, the new procedures that program library file B is generated by new version host application Library file is updated compared with the version that plug-in unit is relied on.And then the host application relied on when plug-in unit is generated is generated Program library file be determined as old program library file;What the current host application after host application is changed was generated Program library file is determined as new procedures library file.
Illustratively, it after plug-in unit detecting event is obtained, can be generated according to host's engineering of current host application New procedures library file, and the old program library file that while extracting developing plug to be detected from plug-in unit to be detected is relied on, are obtained with this Obtain new procedures library file to be compared and old program library file.
Step S204 traverses the All Files in the new procedures library file and the old program library file, determines described Whether the All Files in the old program library file are included in new procedures library file;Wherein, the All Files include at least Source file and/or compiling file.
In the present invention, two stages can be divided by new procedures library file and old program library file being detected, i.e., File all in traversal program library file first, it is ensured that all texts in old program library file are included in new procedures library file Part.The content of program library file can include source file and/or compiling file of program etc..Illustratively, it is put down in Android system Under platform, host's engineering of application software can generate the program library file of the entitled .jar of suffix, referred to as jar packets, can be to jar Miscellaneous Documents in packet are traversed.Assuming that new jar packets include 6 files, and old jar packets include 5 files, with old Each file in jar packets traverses the All Files in new jar packets, compares the All Files in old jar one by one to compare basis Whether it is still included in new jar packets.And do not have to excessive comparison then for newly added file in new jar packets, because right Newly added file is not appeared in necessarily in former jar in new jar packets.Similarly, under IOS system platforms, application is soft Host's engineering of part can generate the program library file of the entitled .ipa of suffix (iPhone Application), can be to therein Miscellaneous Documents are traversed and are compared.Correspondingly, there is likely to be the entitled .o of suffix (object) .a (archive) .so Various types of program library files such as (shared object) and .class (java class), as long as having to plug-in unit calling The file of influence is required for being compared and detect.
Step S205 traverses all data in each file, determines whether wrapped in each file of the new procedures library file Containing all data in file corresponding with each file of the new procedures library file in the old program library file.
In the present invention, two stages can be divided by new procedures library file and old program library file being detected, the One stage traverses for above-mentioned each file in program library file, to ensure that new procedures library file contains old program All Files in library file;Second stage is all data traversed in each file, determines each of new procedures library file Whether all data in file corresponding in old program library file are included in file.If it is understood that new procedures The corresponding document in old program library file is contained in library file, but it is all consistent not represent all data in this document , and then cannot guarantee that and can successfully be called during plug-in component operation.Therefore, the data in file are traversed and compared is also It is very necessary.Specifically, the data in each file can include the number such as parameter, parameter type, function name, class and method According to the variation of wherein any one data all illustrates that new procedures library file is changed.
Illustratively, under Android system platform, plug-in unit S is on the basis of jar packets that host's engineering of application software generates Upper exploitation.After host's engineering of application software is updated, the corresponding old jar packets in exploitation basis of plug-in unit S are obtained respectively And the new jar packets that host's engineering generates after update.File in the old jar packets generated due to old host's engineering of application software The variable a that type is int types is stated, plug-in unit S is developed on the basis of the old jar packets, and needs to call the variable a.Therefore, in the realizability for detecting plug-in unit S, the All Files first before and after traversal update in jar packets, it is ensured that new jar packets In include the All Files in old jar packets.File where determining to include variable a corresponding with old jar packets in new jar packets When, secondly using this document in old jar packets as basis is compared, traverse all numbers in the corresponding file of this document in new jar packets According to.Assuming that find that the type of the variable a in new jar packets in this document is modified to double types by comparing, it is corresponding to insert The variable a that part S is called, which is equivalent to, not to have existed.And then can determine plug-in unit S and the new jar packets of Xinsu main works generation according to Bad relationship is broken, and plug-in unit S is not normally functioning.
Step S206, for each content included in the old program library file, if in the new procedures library file not Comprising the content, then listed in plug-in unit check results not by comprising content.
In the present invention, after the content in new procedures library file is compared with the content in old program library file, As long as relative to the content in old program library file, changed in new procedures library file, then either to host's engineering Modification or deletion can not all find content corresponding with old program library file in new procedures library file, and then be appreciated that Not include the corresponding content in old program library file in new procedures library file.Therefore, in order to developer to plug-in unit engineering with Unmatched content is modified in host's engineering, each content included in old program library file can be directed to, if new procedures Not comprising the content in library file, then listed in plug-in unit check results this not by comprising content.
Illustratively, in the examples described above, it when detecting the variable a not included in new jar packets in old jar packets, represents Plug-in unit S can not call into Xinsu main works the variable a for meeting plug-in unit S call relations, therefore according to jar packets old in plug-in unit S Content, by not by comprising the variable a of content, that is, int types be included in into plug-in unit check results, so that developer is developing It modifies in the process to the corresponding plug-in unit engineering of the host's engineering or plug-in unit of host application.
According to plug-in unit method of calibration provided in this embodiment, can be used for can be real to plug-in unit when host application is updated The detection of existing property.The situation of host application loading plug-in unit is detected first, and generates plug-in unit verification event;Secondly root The host application specified according to plug-in unit verification event and plug-in unit to be detected, obtain generated according to current host application respectively The old program library file that is relied on of new procedures library file and plug-in unit;Then by by the content in new procedures library file seriatim It is compared with the content in old program library file, it is first determined whether contained in old program library file in new procedures library file All Files, secondly determine respective file in data it is whether completely the same, do not wrapped with finding out in new procedures library file Content in the old program library file contained;Finally arranged the content that new procedures library file does not include as the check results of plug-in unit Go out, for developer with reference to modification.It, can be in host's engineering hair that plug-in unit is relied on using the plug-in unit method of calibration of the present embodiment The realizability of plug-in unit is detected during changing, largely saves test work of the later stage tester to plug-in unit Make, developer can be made to can be achieved with the detection to plug-in unit and host program matching relationship and modification in the process of development, carried The exploitation of high application software and optimization efficiency.
Embodiment three
The embodiment of the present invention three additionally provides a kind of nonvolatile computer storage media, and the computer storage media is deposited An at least executable instruction is contained, which can perform the plug-in unit verification side in above-mentioned any means embodiment Method.
Executable instruction specifically can be used for so that processor performs following operate:
Obtain the new procedures library file generated according to current host application and acquisition plug-in unit generation when institute to be verified The old program library file relied on;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
In a kind of optional mode, the executable instruction also makes the processor perform following operate:
If detect that the program library file of the host application changes, plug-in unit verification event is generated.
In a kind of optional mode, the executable instruction also makes the processor perform following operate:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as described Old program library file;
The program library file that the current host application after the host application is changed is generated determines For the new procedures library file.
In a kind of optional mode, the executable instruction also makes the processor perform following operate:
The All Files in the new procedures library file and the old program library file are traversed, determine the new procedures library text Whether the All Files in the old program library file are included in part;Wherein, the All Files include at least source file and/or Compiling file;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old journey All data in sequence library file in file corresponding with each file of the new procedures library file.
In a kind of optional mode, the executable instruction also makes the processor perform following operate:
For each content included in the old program library file, if not interior comprising this in the new procedures library file Hold, then listed in plug-in unit check results not by comprising content.
Example IV
Fig. 3 shows the structure diagram of according to embodiments of the present invention four a kind of electronic equipment provided, and the present invention is specific Embodiment does not limit the specific implementation of electronic equipment.
As shown in figure 3, the electronic equipment can include:Processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for communicating with the network element of miscellaneous equipment such as client or other servers etc..
Processor 302 for performing program 310, can specifically perform the correlation in above-mentioned plug-in unit method of calibration embodiment Step.
Specifically, program 310 can include program code, which includes computer-managed instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit) or be arranged to implement the embodiment of the present invention one or more integrate electricity Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 performs following operation:
Obtain the new procedures library file generated according to current host application and acquisition plug-in unit generation when institute to be verified The old program library file relied on;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
In a kind of optional mode, program 310 specifically can be also used for so that processor 302 performs following operation:
If detect that the program library file of the host application changes, plug-in unit verification event is generated.
In a kind of optional mode, program 310 specifically can be also used for so that processor 302 performs following operation:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as described Old program library file;
The program library file that the current host application after the host application is changed is generated determines For the new procedures library file.
In a kind of optional mode, program 310 specifically can be also used for so that processor 302 performs following operation:
The All Files in the new procedures library file and the old program library file are traversed, determine the new procedures library text Whether the All Files in the old program library file are included in part;Wherein, the All Files include at least source file and/or Compiling file;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old journey All data in sequence library file in file corresponding with each file of the new procedures library file.
In a kind of optional mode, program 310 specifically can be also used for so that processor 302 performs following operation:
For each content included in the old program library file, if not interior comprising this in the new procedures library file Hold, then listed in plug-in unit check results not by comprising content.
Further, the invention also discloses the following contents:
A1. a kind of plug-in unit method of calibration, the method includes:
Obtain the new procedures library file generated according to current host application and acquisition plug-in unit generation when institute to be verified The old program library file relied on;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
A2. the method according to a1, wherein, in the new procedures library for obtaining and being generated according to current host application Before the old program library file that file and acquisition plug-in unit to be verified are relied on when generating, including:
If detect that the program library file of the host application changes, generation plug-in unit verification event;
Event is verified in response to the plug-in unit, performs the plug-in unit method of calibration.
A3. the method according to a2, it is described to obtain the new procedures library file generated according to current host application, with And the old program library file relied on during plug-in unit generation to be verified is obtained, including:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as described Old program library file;
The program library file that the current host application after the host application is changed is generated determines For the new procedures library file.
A4. the method according to a1, wherein, it is described to determine whether include the old program in the new procedures library file The content of library file, including:
The All Files in the new procedures library file and the old program library file are traversed, determine the new procedures library text Whether the All Files in the old program library file are included in part;Wherein, the All Files include at least source file and/or Compiling file;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old journey All data in sequence library file in file corresponding with each file of the new procedures library file.
A5. the method according to a4, wherein, it is described to generate plug-in unit check results according to definitive result, including:
For each content included in the old program library file, if not interior comprising this in the new procedures library file Hold, then listed in plug-in unit check results not by comprising content.
B6. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, it is the processor, described Memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction performs the processor Operation:
Obtain the new procedures library file generated according to current host application and acquisition plug-in unit generation when institute to be verified The old program library file relied on;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
B7. the electronic equipment according to b6, the executable instruction also make the processor perform following operate:
If detect that the program library file of the host application changes, plug-in unit verification event is generated.
B8. the electronic equipment according to b7, the executable instruction also make the processor perform following operate:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as described Old program library file;
The program library file that the current host application after the host application is changed is generated determines For the new procedures library file.
B9. the electronic equipment according to b6, the executable instruction also make the processor perform following operate:
The All Files in the new procedures library file and the old program library file are traversed, determine the new procedures library text Whether the All Files in the old program library file are included in part;Wherein, the All Files include at least source file and/or Compiling file;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old journey All data in sequence library file in file corresponding with each file of the new procedures library file.
B10. the electronic equipment according to b9, the executable instruction also make the processor perform following operate:
For each content included in the old program library file, if not interior comprising this in the new procedures library file Hold, then listed in plug-in unit check results not by comprising content.
C11. a kind of computer storage media is stored with an at least executable instruction in the storage medium, described to hold Row instruction makes processor perform following operate:
Obtain the new procedures library file generated according to current host application and acquisition plug-in unit generation when institute to be verified The old program library file relied on;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
C12. the computer storage media according to c11, it is following that the executable instruction also performs the processor Operation:
If detect that the program library file of the host application changes, plug-in unit verification event is generated.
C13. the computer storage media according to c12, it is following that the executable instruction also performs the processor Operation:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as described Old program library file;
The program library file that the current host application after the host application is changed is generated determines For the new procedures library file.
C14. the computer storage media according to c11, it is following that the executable instruction also performs the processor Operation:
The All Files in the new procedures library file and the old program library file are traversed, determine the new procedures library text Whether the All Files in the old program library file are included in part;Wherein, the All Files include at least source file and/or Compiling file;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old journey All data in sequence library file in file corresponding with each file of the new procedures library file.
C15. the computer storage media according to c14, it is following that the executable instruction also performs the processor Operation:
For each content included in the old program library file, if not interior comprising this in the new procedures library file Hold, then listed in plug-in unit check results not by comprising content.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate that any sequence.These words can be construed to title.

Claims (10)

1. a kind of plug-in unit method of calibration, including:
It obtains new procedures library file generate according to current host application and obtains when plug-in unit to be verified generates and relied on Old program library file;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
2. according to the method described in claim 1, wherein, in the new procedures for obtaining and being generated according to current host application Before the old program library file that library file and acquisition plug-in unit to be verified are relied on when generating, including:
If detect that the program library file of the host application changes, generation plug-in unit verification event;
Event is verified in response to the plug-in unit, performs the plug-in unit method of calibration.
3. according to the method described in claim 2, described obtain the new procedures library file that is generated according to current host application, And the old program library file relied on during plug-in unit generation to be verified is obtained, including:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as the old journey Sequence library file;
The program library file that the current host application after the host application is changed is generated is determined as institute State new procedures library file.
4. according to the method described in claim 1, wherein, whether the old journey is included in the determining new procedures library file The content of sequence library file, including:
The All Files in the new procedures library file and the old program library file are traversed, are determined in the new procedures library file Whether the All Files in the old program library file are included;Wherein, the All Files include at least source file and/or compiling File;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old program library All data in file in file corresponding with each file of the new procedures library file.
5. it is described to generate plug-in unit check results according to definitive result according to the method described in claim 4, wherein, including:
For each content included in the old program library file, if the content is not included in the new procedures library file, Listed in plug-in unit check results not by comprising content.
6. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, the executable instruction makes the processor perform following grasp Make:
It obtains new procedures library file generate according to current host application and obtains when plug-in unit to be verified generates and relied on Old program library file;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
7. electronic equipment according to claim 6, wherein, the executable instruction also makes the processor perform following grasp Make:
If detect that the program library file of the host application changes, plug-in unit verification event is generated.
8. electronic equipment according to claim 7, wherein, the executable instruction also makes the processor perform following grasp Make:
The program library file that the host application relied on when the plug-in unit is generated is generated is determined as the old journey Sequence library file;
The program library file that the current host application after the host application is changed is generated is determined as institute State new procedures library file.
9. electronic equipment according to claim 6, wherein, the executable instruction also makes the processor perform following grasp Make:
The All Files in the new procedures library file and the old program library file are traversed, are determined in the new procedures library file Whether the All Files in the old program library file are included;Wherein, the All Files include at least source file and/or compiling File;
All data in each file are traversed, whether are determined in each file of the new procedures library file comprising the old program library All data in file in file corresponding with each file of the new procedures library file.
10. a kind of computer storage media, an at least executable instruction, the executable instruction are stored in the storage medium Processor is made to perform following operate:
It obtains new procedures library file generate according to current host application and obtains when plug-in unit to be verified generates and relied on Old program library file;
It determines whether to include the content of the old program library file in the new procedures library file, obtains definitive result;
Plug-in unit check results are generated according to the definitive result.
CN201711457890.9A 2017-12-28 2017-12-28 Plug-in unit method of calibration, electronic equipment and computer storage media Pending CN108197020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711457890.9A CN108197020A (en) 2017-12-28 2017-12-28 Plug-in unit method of calibration, electronic equipment and computer storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711457890.9A CN108197020A (en) 2017-12-28 2017-12-28 Plug-in unit method of calibration, electronic equipment and computer storage media

Publications (1)

Publication Number Publication Date
CN108197020A true CN108197020A (en) 2018-06-22

Family

ID=62584835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711457890.9A Pending CN108197020A (en) 2017-12-28 2017-12-28 Plug-in unit method of calibration, electronic equipment and computer storage media

Country Status (1)

Country Link
CN (1) CN108197020A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158741A (en) * 2019-12-23 2020-05-15 北京五八信息技术有限公司 Method and device for monitoring change of dependency relationship of business module on third-party class library
CN111176722A (en) * 2019-12-30 2020-05-19 腾讯音乐娱乐科技(深圳)有限公司 Method and device for detecting file version of third-party library and storage medium
CN114356441A (en) * 2021-12-22 2022-04-15 北京海泰方圆科技股份有限公司 Plug-in preloading method and device, electronic equipment and storage medium
CN114780173A (en) * 2022-01-25 2022-07-22 统信软件技术有限公司 Method for loading plug-in application, computing equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799445A (en) * 2012-05-03 2012-11-28 陈昊 Application upgrading method based on Android platform and system
CN103699410A (en) * 2013-12-20 2014-04-02 北京奇虎科技有限公司 Method and device for updating application programs
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server
US20150293769A1 (en) * 2012-12-26 2015-10-15 Tencent Technology (Shenzhen) Company Limited Application implementation method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799445A (en) * 2012-05-03 2012-11-28 陈昊 Application upgrading method based on Android platform and system
US20150293769A1 (en) * 2012-12-26 2015-10-15 Tencent Technology (Shenzhen) Company Limited Application implementation method and apparatus
CN103699410A (en) * 2013-12-20 2014-04-02 北京奇虎科技有限公司 Method and device for updating application programs
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158741A (en) * 2019-12-23 2020-05-15 北京五八信息技术有限公司 Method and device for monitoring change of dependency relationship of business module on third-party class library
CN111158741B (en) * 2019-12-23 2024-04-12 北京五八信息技术有限公司 Method and device for monitoring dependency relationship change of service module on third party class library
CN111176722A (en) * 2019-12-30 2020-05-19 腾讯音乐娱乐科技(深圳)有限公司 Method and device for detecting file version of third-party library and storage medium
CN111176722B (en) * 2019-12-30 2023-12-26 腾讯音乐娱乐科技(深圳)有限公司 Method, device and storage medium for detecting file version of third party library
CN114356441A (en) * 2021-12-22 2022-04-15 北京海泰方圆科技股份有限公司 Plug-in preloading method and device, electronic equipment and storage medium
CN114780173A (en) * 2022-01-25 2022-07-22 统信软件技术有限公司 Method for loading plug-in application, computing equipment and storage medium
CN114780173B (en) * 2022-01-25 2023-12-05 统信软件技术有限公司 Method for loading plug-in application, computing device and storage medium

Similar Documents

Publication Publication Date Title
US11868231B2 (en) System and method for evaluating code by a hybrid of local and cloud-based computers
CN112631555B (en) System and method for developing industrial applications
CN112558929B (en) System and method for developing or creating industrial applications and computer readable medium
JP6198939B2 (en) Method for loading driver and embedded device
US9092586B1 (en) Version management mechanism for fluid guard ring PCells
US8949790B2 (en) Debugging visual and embedded programs
CN114968188A (en) Systems, methods, and non-transitory computer-readable media for developing industrial applications
CN108197020A (en) Plug-in unit method of calibration, electronic equipment and computer storage media
EP3234851B1 (en) A system and method for facilitating static analysis of software applications
CN110515647A (en) A kind of static resource management method, device, equipment and storage medium
US9122801B2 (en) Test planning with order coverage requirements
Prehofer et al. From internet of things mashups to model-based development
US10823782B2 (en) Ensuring completeness of interface signal checking in functional verification
CN108073390A (en) It is managed collectively the method, apparatus and system of configuration file in multiple engineerings
WO2021086704A1 (en) Rules generation using learned repetitive code edits
JP7119096B2 (en) license verification device
US20190196944A1 (en) System for writing and executing unit test cases
US10606569B2 (en) Declarative configuration elements
JP6097231B2 (en) Program generating apparatus and method
CN106484226A (en) The renewal method of calibration of icon and device
CN114579466A (en) Method, device, equipment and medium for constructing test case and code test
CN114527993A (en) Application deployment method, device, equipment and medium
CN108614704A (en) Code compiling method and device
CN109416627A (en) For revising function or to the method for automation equipment addition function
US20240330720A1 (en) Hybrid cloud-orchestration map and analyzer

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622