CN104598247A - Method and system for verifying third-party library - Google Patents

Method and system for verifying third-party library Download PDF

Info

Publication number
CN104598247A
CN104598247A CN201510054589.8A CN201510054589A CN104598247A CN 104598247 A CN104598247 A CN 104598247A CN 201510054589 A CN201510054589 A CN 201510054589A CN 104598247 A CN104598247 A CN 104598247A
Authority
CN
China
Prior art keywords
party library
parameter information
storehouse
parameter
party
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
CN201510054589.8A
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.)
XIAMEN MEITUWANG TECHNOLOGY Co Ltd
Original Assignee
XIAMEN MEITUWANG 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 XIAMEN MEITUWANG TECHNOLOGY Co Ltd filed Critical XIAMEN MEITUWANG TECHNOLOGY Co Ltd
Priority to CN201510054589.8A priority Critical patent/CN104598247A/en
Publication of CN104598247A publication Critical patent/CN104598247A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for verifying a third-party library. The method comprises the steps of adding parameter information of a library into a third-party library, providing an initialization interface for calling the parameter information of the library in the third-party library, starting an application program, acquiring the parameter information, calling the initialization interface, transmitting the parameter information of a system to the third-party library, and verifying the parameter information of the library after the third-party library receives the parameter information of the system. By adopting the method and system, various problems produced in the calling of the third-party library in the application development process can be reduced, and the development efficiency can be improved.

Description

A kind of method of calibration of third party library and system
Technical field
The present invention relates to communication technical field, particularly a kind of method of calibration of third party library and the system of application the method thereof.
Background technology
On stream, we often encounter the storehouse of calling third party and providing and use, thus improve the efficiency of exploitation.How the storehouse that these manage these third parties and provide then is become crucial, although we can use the Versions such as SVN, GIT to carry out management code in the process of exploitation iteration, but because many people develop, sometimes replace third party library and forget selftest or known companion, thus occurring some bug that should not occur.
Summary of the invention
The present invention, for solving the problem, provides a kind of method of calibration and system of third party library, improves in application development process the efficiency calling third party library.
For achieving the above object, the technical solution used in the present invention is:
A method of calibration for third party library, is characterized in that, comprises the following steps:
10. in third party library, add the parameter information in storehouse, the parameter information in described storehouse at least comprises the version number in storehouse and the system version number of storehouse support, and in third party library, provides one for calling the initialization interface of the parameter information in described storehouse;
20. start application programs and obtain the parameter information of system, and the parameter information of described system at least comprises the hardware parameter of system version number and system;
30. call described initialization interface, and the parameter information of described system is passed to described third party library;
40. third party libraries, according to the parameter information of the system received, verify the parameter information in described storehouse.
Preferably, the parameter information in described storehouse also comprises the code administration version number in this storehouse, and namely this third party library submits to code to the numbering submitted to during code management system.
Preferably, the version number in described storehouse is mainly used for identifying the difference in functionality that the third party library of different editions is supported.
Preferably, the framework coding of the hardware parameter of described system mainly finger processor.
Preferably, in described step 40, third party library is according to the parameter information of the system received, the parameter information in described storehouse is verified, whether the system version that receives described in mainly judging number and system version that described storehouse is supported be number consistent, and whether the third party library according to the hardware parameter judgement of described system supports this hardware device.
Preferably, whether described judgement receives system version number and system version that described storehouse is supported be number consistent, further comprising the steps:
The system version number that the system version received number and described storehouse are supported compares by 41., if the two does not mate, performs step 42, if the two matches, performs step 43;
If 42. the two do not mate, then this third party library of prompting application program developer was replaced, and developer carries out checking of the examination & verification of code and the function of this third party library support according to described prompting;
If 43. the two match, then the parameter information of described system supplements in the parameter information being added into described storehouse by application developer.
Preferably, whether the third party library described in the described hardware parameter according to system judges supports this hardware device, in the list of the hardware device whether hardware device mainly judging current operation is supported at the code of this third party library, if not in the list of the hardware device supported, then point out this third party library not support the hardware device of current operation, and remind developer to modify or replace described third party library.
In addition, the present invention also provides a kind of check system of third party library according to above-mentioned method of calibration, it is characterized in that, it comprises:
Parameter management module, it adds the parameter information in storehouse in third party library, and the parameter information in described storehouse at least comprises the version number in storehouse and the system version number of storehouse support;
Interface creation module, it provides one for calling the initialization interface of the parameter information in described storehouse in third party library;
Application program launching module, for starting application program and obtaining the parameter information of system, the parameter information of described system at least comprises the hardware parameter of system version number and system;
Interface interchange module, for calling described initialization interface, and passes to described third party library by the parameter information of described system;
Parameter verification module, third party library, according to the parameter information of the system received, verifies the parameter information in described storehouse.
Preferably, described parameter verification module comprises further:
Checkout of version number submodule, whether it is number consistent for the system version that receives described in judging number and system version that described storehouse is supported;
Hardware parameter syndrome module, whether the third party library described in its hardware parameter according to described system judges supports this hardware device.
The invention has the beneficial effects as follows:
The method of calibration of a kind of third party library of the present invention and system, it by adding the parameter information in storehouse in third party library, and in third party library, provide one for calling the initialization interface of the parameter information in described storehouse, start application program and obtain the parameter information of system, then described initialization interface is called, and the parameter information of described system is passed to described third party library, third party library is according to the parameter information of the system received, the parameter information in described storehouse is verified, reduce in application development process owing to calling the various problems that third party library produces, improve development efficiency.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the general flow chart of the method for calibration of a kind of third party library of the present invention;
Fig. 2 is the structural representation of the check system of a kind of third party library of the present invention.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, the method for calibration of a kind of third party library of the present invention, it comprises the following steps:
10. in third party library, add the parameter information in storehouse, the parameter information in described storehouse at least comprises the version number in storehouse and the system version number of storehouse support, and in third party library, provides one for calling the initialization interface of the parameter information in described storehouse;
20. start application programs and obtain the parameter information of system, and the parameter information of described system at least comprises the hardware parameter of system version number and system;
30. call described initialization interface, and the parameter information of described system is passed to described third party library;
40. third party libraries, according to the parameter information of the system received, verify the parameter information in described storehouse.
The parameter information in described storehouse also comprises the code administration version number in this storehouse, and namely this third party library submits to code to the numbering submitted to during code management system.
The version number in described storehouse is mainly used for identifying the difference in functionality that the third party library of different editions is supported; The version number in storehouse is mainly used for managing the function of this third party library, facilitates caller to identify, the explanation of each version can have special document to the content of the New function describing this version and support and optimization;
The framework coding of the hardware parameter of described system mainly finger processor, arm, armv7a, arm64-v8a, x86, mips of such as Android; Armv6, armv7, armv7s, arm64 of iOS platform.The API that the parameter information of system mainly provides by calling developing instrument obtains.
Call described initialization interface in described step 30, it mainly calls when application program first time starts, just without the need to calling after checking, mainly in order to judge whether described third party library supports the hardware device of current operation again.
In described step 40, third party library is according to the parameter information of the system received, the parameter information in described storehouse is verified, whether the system version that receives described in mainly judging number and system version that described storehouse is supported be number consistent, and whether the third party library according to the hardware parameter judgement of described system supports this hardware device.
1. whether system version that the judgement described in receives number and system version that described storehouse is supported be number consistent, further comprising the steps:
The system version number that the system version received number and described storehouse are supported compares by 41., if the two does not mate, performs step 42, if the two matches, performs step 43;
If 42. the two do not mate, then this third party library of prompting application program developer was replaced, and developer carries out checking of the examination & verification of code and the function of this third party library support according to described prompting;
If 43. the two match, then the parameter information of described system supplements in the parameter information being added into described storehouse by application developer.
2. whether the third party library described in the hardware parameter according to system described in judges supports this hardware device, in the list of the hardware device whether hardware device mainly judging current operation is supported at the code of this third party library, if not in the list of the hardware device supported, then point out this third party library not support the hardware device of current operation, and remind developer to modify or replace described third party library.
As shown in Figure 2, the present invention also provides a kind of check system of third party library according to above-mentioned method of calibration, it is characterized in that, it comprises:
Parameter management modules A, it adds the parameter information in storehouse in third party library, and the parameter information in described storehouse at least comprises the version number in storehouse and the system version number of storehouse support;
Interface creation module B, it provides one for calling the initialization interface of the parameter information in described storehouse in third party library;
Application program launching module C, for starting application program and obtaining the parameter information of system, the parameter information of described system at least comprises the hardware parameter of system version number and system;
Interface interchange module D, for calling described initialization interface, and passes to described third party library by the parameter information of described system;
Parameter verification module E, third party library, according to the parameter information of the system received, verifies the parameter information in described storehouse.
Wherein, described parameter verification module comprises further:
Checkout of version number submodule E1, whether it is number consistent for the system version that receives described in judging number and system version that described storehouse is supported;
Hardware parameter syndrome module E2, whether the third party library described in its hardware parameter according to described system judges supports this hardware device.
The present invention proposes a kind of method and system mainly carrying out third party library verification based on version number, its version number information utilizing third party library is compared with the version number information of the system called, when finding inconsistent, then can be replaced by this third party library of automatic-prompting developer when program starts, it please carry out code examination & verification and check with function, avoid just finding in program test process or just find various problem in program use procedure, improve development efficiency, and improve Consumer's Experience.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.And, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.In addition, one of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (9)

1. a method of calibration for third party library, is characterized in that, comprises the following steps:
10. in third party library, add the parameter information in storehouse, the parameter information in described storehouse at least comprises the version number in storehouse and the system version number of storehouse support, and in third party library, provides one for calling the initialization interface of the parameter information in described storehouse;
20. start application programs and obtain the parameter information of system, and the parameter information of described system at least comprises the hardware parameter of system version number and system;
30. call described initialization interface, and the parameter information of described system is passed to described third party library;
40. third party libraries, according to the parameter information of the system received, verify the parameter information in described storehouse.
2. the method for calibration of a kind of third party library according to claim 1, is characterized in that: the parameter information in described storehouse also comprises the code administration version number in this storehouse, and namely this third party library submits to code to the numbering submitted to during code management system.
3. the method for calibration of a kind of third party library according to claim 2, is characterized in that: the version number in described storehouse is mainly used for identifying the difference in functionality that the third party library of different editions is supported.
4. the method for calibration of a kind of third party library according to claim 2, is characterized in that: the framework coding of the hardware parameter of described system mainly finger processor.
5. the method for calibration of a kind of third party library according to claim 3, it is characterized in that: in described step 40, third party library is according to the parameter information of the system received, the parameter information in described storehouse is verified, whether the system version that receives described in mainly judging number and system version that described storehouse is supported be number consistent, and whether the third party library according to the hardware parameter judgement of described system supports this hardware device.
6. the method for calibration of a kind of third party library according to claim 5, is characterized in that: whether system version that described judgement receives number and system version that described storehouse is supported be number consistent, further comprising the steps:
The system version number that the system version received number and described storehouse are supported compares by 41., if the two does not mate, performs step 42, if the two matches, performs step 43;
If 42. the two do not mate, then this third party library of prompting application program developer was replaced, and developer carries out checking of the examination & verification of code and the function of this third party library support according to described prompting;
If 43. the two match, then the parameter information of described system supplements in the parameter information being added into described storehouse by application developer.
7. the method for calibration of a kind of third party library according to claim 5, it is characterized in that: whether the third party library described in the described hardware parameter according to system judges supports this hardware device, in the list of the hardware device whether hardware device mainly judging current operation is supported at the code of this third party library, if not in the list of the hardware device supported, then point out this third party library not support the hardware device of current operation, and remind developer to modify or replace described third party library.
8. a check system for third party library, is characterized in that, it comprises:
Parameter management module, it adds the parameter information in storehouse in third party library, and the parameter information in described storehouse at least comprises the version number in storehouse and the system version number of storehouse support;
Interface creation module, it provides one for calling the initialization interface of the parameter information in described storehouse in third party library;
Application program launching module, for starting application program and obtaining the parameter information of system, the parameter information of described system at least comprises the hardware parameter of system version number and system;
Interface interchange module, for calling described initialization interface, and passes to described third party library by the parameter information of described system;
Parameter verification module, third party library, according to the parameter information of the system received, verifies the parameter information in described storehouse.
9. the check system of a kind of third party library according to claim 8, is characterized in that: described parameter verification module comprises further:
Checkout of version number submodule, whether it is number consistent for the system version that receives described in judging number and system version that described storehouse is supported;
Hardware parameter syndrome module, whether the third party library described in its hardware parameter according to described system judges supports this hardware device.
CN201510054589.8A 2015-02-03 2015-02-03 Method and system for verifying third-party library Pending CN104598247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510054589.8A CN104598247A (en) 2015-02-03 2015-02-03 Method and system for verifying third-party library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510054589.8A CN104598247A (en) 2015-02-03 2015-02-03 Method and system for verifying third-party library

Publications (1)

Publication Number Publication Date
CN104598247A true CN104598247A (en) 2015-05-06

Family

ID=53124067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510054589.8A Pending CN104598247A (en) 2015-02-03 2015-02-03 Method and system for verifying third-party library

Country Status (1)

Country Link
CN (1) CN104598247A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023051127A1 (en) * 2021-09-29 2023-04-06 上海同星智能科技有限公司 Third-party program library function disassembly calling method for software platform and calling system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275226B1 (en) * 1997-12-26 2001-08-14 Hitachi, Ltd Application window development supporting system and method storage
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN102880456A (en) * 2012-07-31 2013-01-16 北京奇虎科技有限公司 Method and device for creating plug-in
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275226B1 (en) * 1997-12-26 2001-08-14 Hitachi, Ltd Application window development supporting system and method storage
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN102880456A (en) * 2012-07-31 2013-01-16 北京奇虎科技有限公司 Method and device for creating plug-in
CN104008060A (en) * 2014-06-18 2014-08-27 腾讯科技(深圳)有限公司 Method for detecting compatibility of plug-in and host, and detection server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023051127A1 (en) * 2021-09-29 2023-04-06 上海同星智能科技有限公司 Third-party program library function disassembly calling method for software platform and calling system

Similar Documents

Publication Publication Date Title
AU2010364976B2 (en) Repairing corrupt software
US10481964B2 (en) Monitoring activity of software development kits using stack trace analysis
US10216925B2 (en) Virus protection method and device
CN105808227B (en) A kind of fine arts resource file detection method and device
US20160246594A1 (en) Method and system for controlling integrated software components
US20170123783A1 (en) Method for displaying plug-in view elements in host application page and electronic device
US10698797B2 (en) Mobile application program testing method, server, terminal, and storage medium
US11422918B2 (en) Continuous development and delivery system
US11169792B2 (en) Method and apparatus for generating patch
CN102799437B (en) A kind of compilation script automatic generation method and automatically generating device
CN107678748B (en) Source code file compiling method and device
US9483384B2 (en) Generation of software test code
CN109977008B (en) Method and terminal for making JS code depended on by application program compatible with native library
CN103793248B (en) Method and device for upgrading application program
CN105094878B (en) A kind of method and apparatus of integrated system library file
US11003668B2 (en) Programming language independent software testing environment
KR102105753B1 (en) Method and system for automatic configuration test case generation of mobile application
WO2016119548A1 (en) Method for preventing software decompilation, and method and apparatus for preventing decompilation software from starting
CN104462983B (en) A kind of PHP source code processing method and system
WO2020177429A1 (en) Method and apparatus for embedding codes in application, and electronic device
CN109117143A (en) A kind of application dispositions method and system
CN113867719A (en) Third-party library function disassembling and calling method and system for software platform
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal
CN104598247A (en) Method and system for verifying third-party library
CN111385661B (en) Method, device, terminal and storage medium for voice control of full screen playing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150506