CN109976761A - Generation method, device and the terminal device of Software Development Kit - Google Patents
Generation method, device and the terminal device of Software Development Kit Download PDFInfo
- Publication number
- CN109976761A CN109976761A CN201910145901.2A CN201910145901A CN109976761A CN 109976761 A CN109976761 A CN 109976761A CN 201910145901 A CN201910145901 A CN 201910145901A CN 109976761 A CN109976761 A CN 109976761A
- Authority
- CN
- China
- Prior art keywords
- sdk
- interface
- source code
- template
- class
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
- G06F8/447—Target code generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The present invention is suitable for technical field of software development, provides generation method, device and the terminal device of a kind of Software Development Kit, which comprises obtain the source code of application program;The source code is parsed, and extracts the interface message of application programming interface;The default corresponding SDK template of programming language is obtained, the SDK template includes item to be filled;From target interface information corresponding with the item to be filled each in the SDK template is obtained in the interface message, the target interface information is generated into SDK programming file into the item to be filled of the SDK template according to filling after the compiling of default programming language.The present invention improves the efficiency for generating SDK, reduces cost of labor.
Description
Technical field
The invention belongs to technical field of software development more particularly to a kind of generation methods of Software Development Kit, device
And terminal device.
Background technique
In application program, including client application and Web page application program, after online, in order to support user with more
Mode abundant is added to access and use the application program, developer would generally externally provide the software development work of different language version
Tool packet (Software Development Kit, SDK).
After increasing new function or new characteristic in application program, the application programming by newly-increased part is needed to connect
Mouth (Application Programming Interface, API) is written as the SDK of different language, with realization and application program
Synchronized update.However, the process of exploitation SDK includes a large amount of repeated work, process is also very uninteresting, and writes manually
The process of SDK needs to expend developer's plenty of time.At the same time, each system performance changes, and requires to SDK
Relevant interface be updated, the variation of the interface in system, being synchronized in the SDK of multi-language version needs to put into more times of work
Amount.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of generation method of Software Development Kit, device and terminals to set
It is standby, the technical issues of to solve generation SDK inefficiency of the existing technology.
The first aspect of the embodiment of the present invention provides the generation method of Software Development Kit SDK a kind of, comprising:
Obtain the source code of application program;
The source code is parsed, and extracts the interface message of application programming interface;
The default corresponding SDK template of programming language is obtained, the SDK template includes item to be filled;
From obtaining target interface letter corresponding with the item to be filled each in the SDK template in the interface message
Breath, by the target interface information according to filling after the compiling of default programming language into the item to be filled of the SDK template,
It generates SDK and programs file.
The second aspect of the embodiment of the present invention provides the generating means of Software Development Kit SDK a kind of, comprising:
Source code acquiring unit, for obtaining the source code of application program;
Extraction unit for parsing to the source code, and extracts the interface message of application programming interface;
Template acquiring unit, for obtaining the corresponding SDK template of default programming language, the SDK template includes to be filled
?;
Fills unit, for corresponding with the item to be filled each in the SDK template from being obtained in the interface message
Target interface information, by the target interface information according to default programming language compiling after filling to the SDK template institute
It states in item to be filled, generates SDK and program file.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit
The computer program that can be run on the processor is stored in reservoir, when the processor executes the computer program,
Realize following steps:
Obtain the source code of application program;
The source code is parsed, and extracts the interface message of application programming interface;
The default corresponding SDK template of programming language is obtained, the SDK template includes item to be filled;
From obtaining target interface letter corresponding with the item to be filled each in the SDK template in the interface message
Breath, by the target interface information according to filling after the compiling of default programming language into the item to be filled of the SDK template,
It generates SDK and programs file.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Obtain the source code of application program;
The source code is parsed, and extracts the interface message of application programming interface;
The default corresponding SDK template of programming language is obtained, the SDK template includes item to be filled;
From obtaining target interface letter corresponding with the item to be filled each in the SDK template in the interface message
Breath, by the target interface information according to filling after the compiling of default programming language into the item to be filled of the SDK template,
It generates SDK and programs file.
In embodiments of the present invention, after the interface message that API is extracted by source code, these interface letters are filled into
SDK template forms SDK and programs file, since content-defined in SDK template is defined in strict accordance with the syntax gauge of program,
The efficiency for generating SDK thus can be improved, reduce cost of labor.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of specific implementation flow chart of the generation method of Software Development Kit provided in an embodiment of the present invention;
Fig. 2 is a kind of a kind of tool of the step 102 of the generation method of Software Development Kit provided in an embodiment of the present invention
Body implementation flow chart;
Fig. 3 is a kind of another tool of step 102 of the generation method of Software Development Kit provided in an embodiment of the present invention
Body implementation flow chart;
Fig. 4 is the specific implementation flow of the generation method of another Software Development Kit provided in an embodiment of the present invention
Figure;
Fig. 5 is a kind of structural schematic diagram of the generating means of Software Development Kit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the generating means of another Software Development Kit provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the generation method of Software Development Kit provided in an embodiment of the present invention, the generation
Method flow includes step S101 to S104.The generation method is suitable for automatically generating the feelings of SDK for the API of application program
Shape.The generation method of the Software Development Kit is executed by the generating means of Software Development Kit, the Software Development Tools
The generating means of packet are configured at terminal device, can be implemented by software and/or hardware.The specific implementation principle of each step is as follows.
S101 obtains the source code of application program.
Wherein, application program includes web application and terminal applies, for the target pair for needing to generate Software Development Kit
As.Application source code is obtained, and source code is switched in suitable version, provides data base for subsequent analysis work
Plinth.
In embodiments of the present invention, the source code for obtaining application program includes: by Git in pre-configured application journey
Download the source code of the application program in sequence source code trustship address.
It is mountable to the application program of terminal device, their source code is managed using Git.By the API of Git into
It has gone and has encapsulated and integrated in the tool, which can be the independent application program for being used to generate Software Development Kit,
It can be the function for the producible Software Development Kit that some application program has, in the configuration file of the tool, in advance
Target object is configured, i.e., the source code trustship address of the application program of Software Development Kit to be generated was run in tool
Cheng Zhong can automatically download required application source code using tool.
S102 parses the source code, and extracts the interface message of application programming interface.
Wherein, source code is parsed, extracts the interface message of API, to be subsequently generated SDK.
Interface message includes but is not limited to: interface name, interface requests parameter information and interface response parameter information.It connects
Mouth required parameter information includes but is not limited to: parameter name and parameter type.Interface response parameter information includes but is not limited to: ringing
Answer parameter name, response parameter type and complicated type parameter information (the i.e. new class as made of multiple type of foundation field combinations
Type).
Optionally, as shown in Fig. 2, as an embodiment of the present invention, step 102 includes step 201 to 204.
S201 is compiled the source code, generates Java bytecode.
Wherein, generation Java bytecode is compiled to source code, Java bytecode is that a kind of data are loaded into computer
Data mode in memory, based on this step of the further analysis needs of class.
That is, source code needs to be compiled into bytecode, Java Virtual Machine (jvm) just can recognize that class knot therein
Structure, if source code and common text file are not different, and jvm can not just get information therein without compiling.
S202 loads the Java bytecode using java class loader, retains the class for meeting preset rules.
Wherein, java class loader (Java Classloader) is java runtime environment (Java Runtime
Environment a part) is responsible for dynamically load java class into the memory headroom of Java Virtual Machine.
Using the Java bytecode after the load compiling of java class loader, and designed rule base is combined, successively scanned
The class that load is come in, while scanned class is matched according to the rule in rule base, the class for meeting preset rules is protected
It stays, the class for not meeting preset rules is filtered, i.e., qualified class is retained, and ineligible class then filters out.
Java class loader is that java class is loaded onto Java Virtual Machine, and virtual machine does not include rule base, and rule base is this
In tool individually defined one for doing the module of class filtering, for after java class is loaded onto virtual machine by Classloader,
When being scanned the class loaded into Java Virtual Machine, go out to meet the Java of preset rules by the rule-based filtering in rule base
Class.For API, the interface message of some openings need to be only filtered out, all interface messages is not really wanted and is all exposed,
Therefore a rule base is needed, to specify which class to need to carry out the extraction of information, on the one hand can guarantee limited letter in this way
Breath externally sudden and violent leakage, another convenience, the subsequent variation if there is create-rule only need to update rule base, without compiling again
Write code.
S203 determines the classification of retained class.
Wherein, the classification of retained class includes but is not limited to that required parameter class, response parameter class and interface define class
Deng.Based on different classifying rules, analyzing retained class is to belong to that classification,
According to the selection result of previous step, analyzing retained class is to belong to that classification, since the code of system is base
It is developed in certain specification, then different classes has certain rule from name and inheritance.
For example, above-mentioned required parameter class, class name must be ended up with Request, and all requests are joined
It is several classes of to be inherited from Request class, therefore both judgement classification can be carried out by class name, it can also be sentenced from inheritance
Disconnected classification.
For another example, for response parameter class, class name must be ended up with Response, and all response parameter classes after
It holds from Response class, thus judgement classification is carried out by class name.
Interface defines class, and class name must be ended up with Action, and total interface defines Similar integral from Action
Class, thus judgement classification is carried out by class name.
The principle of other class judgement classification is similar, but different classes may have different rules, and the present invention is not another
One enumerates.
S204 extracts each classification for describing the interface message of application programming interface based on reflection mechanism.
Wherein, according to the division of classification, different interface messages is extracted using different extracting rules.For example, to request
Parameter class and response parameter class, need to extract field details;Interface class is only needed to extract interface name information etc..
Reflection mechanism refers in operating status, for any one class, can know all properties and the side of this class
Method can call its any one method for any one object.The reflection mechanism of Java language is dynamic acquisition letter
The function of breath and dynamic call object method.
In the embodiment of the present invention, each classification is extracted for describing the interface message of API by reflection mechanism.It is exemplary
Ground, extracts the complete information item of description API, and complete information item includes interface name, interface requests parameter name, interface requests ginseng
Whether several classes of types, interface requests parameter are that must pass parameter, interface response parameter title, interface response parameter type, interface response
Associated enumeration type in parameter, associated object type, interface version etc. in interface response parameter.
Further, in other embodiments of the present invention, as shown in figure 3, further including step 205 after step 204,
The interface message that each classification is used to describe application programming interface is stored in the way of simple Java object, is formed
The interface message of structuring.
In embodiments of the present invention, the interface message that an API will be described in the form of json character string, by simple Java
The mode of object is stored, and the interface message of structuring is formed.Such as complete information item includes: interface name, interface requests
Whether parameter name, interface requests parameter type, interface requests parameter are that must pass parameter, interface response parameter title, interface to ring
Answer parameter type, associated enumeration type in interface response parameter, associated object type, interface version in interface response parameter
Deng after carrying out tissue and storage with the mode of json character string, it is very easy to be deserialized as simple Java object, is formed
The interface message of structuring, example are as follows:
S103 obtains the default corresponding SDK template of programming language, and the SDK template includes item to be filled.
It in embodiments of the present invention, is the SDK of each different programming language according to the grammar property of different programming languages
File template has been write in advance, that is to say, that has preset corresponding SDK template for different programming languages.Further, it is also possible to according to
Different file usages carries out continuation Organization And Management to these templates.
Programming language is that used programming language, the programming language can be when the Software Development Kit is called
C language, C Plus Plus, Java language, go language, python language or nodejs language etc..It should be noted that is obtained
The SDK template of the default programming language of kind, can be by using Software Development Kit generation method of the invention, i.e., by using this work
The user of tool provides, and can also be the programming language of default, can also be customized by the user the programming language of setting, can be one
It is a, or multiple.The present invention is not specifically limited in this embodiment.When needing to generate the SDK of multiple programming languages, obtain respectively
The corresponding SDK template of multiple programming languages, to generate corresponding SDK respectively.
All kinds of programming languages have respective syntax rule, during the file template for writing different programming languages, only need
According to syntax rule, SDK code variable part and immutable part are taken out, then according to specific file template language
Method writes template content, and template used in the present invention is freemarker.Wherein, the variable part of SDK template is
The item to be filled of SDK template, to need the part being filled according to the interface message of API;Immutable part, that is, SDK template
Immobilized substance.
For example, SDK template is described by the way of function, and Java language, SDK template are adopted for C language
It is described with the mode of object class.Multiple SDK templates described using different programming languages can be generated in advance, in operational process
It is middle that corresponding SDK template is transferred according to the programming language of user's determination or the programming language of default.Either C language uses
Function fashion description is still described using Java using object class mode, is reserved item to be filled and is filled in interface message, should be " wait fill out
Fill item " variable part of i.e. described Software Development Kit template.For example, when being described using function fashion, then by function name,
Function entity and function parameter are as item to be filled, and others are for identifying the symbol (such as " $ { } " etc.) of function or closing
Key word (such as " name " or " module " etc.) is then written in SDK template in advance, and continues in step 104 after execution, will connect
The included title filling of message breath needs to fill in the function name of part, and the function for needing to fill in part for instruction filling is real
The external title filling of parameter included by described instruction parameter is needed to fill in the function parameter of part by body.Equally, if it is adopting
It is described, then filled out function entity, function parameter included in object class name, object class etc. as needs with object class
Part is write, and in executing step 104, the filling of title included by interface message is needed to fill in the object class name of part,
Instruction filling is needed to fill in function entity included in the object class of part, by the external name of parameter included by order parameter
Filling is claimed to need to fill in function parameter included in the object class of part.The SDK template of other language is similar, only each language
Syntax rule is different, will not enumerate herein.
S104 connects from target corresponding with the item to be filled each in the SDK template is obtained in the interface message
Message breath, by the target interface information according to the described to be filled of filling after the compiling of default programming language to the SDK template
Xiang Zhong generates SDK and programs file.
It is extracted the interface message of API in step 102, step 103 gets SDK template, therefore, at step 104, will
Into the item to be filled of SDK template, generation SDK programs file to interface message for corresponding filling after compiling according to default programming language.
That is, the generating process that step 104 is SDK programming file can extract birth by API content analysis
At interface message needed for SDK, by writing SDK template, it has been determined that the overall structure and content of SDK, it only need to be by front
The interface message that step is extracted is filled into the SDK template having had been prepared for.
It is understood that when extracting category information, according to different classes, the interface message that will be extracted, such as ask
Parameter class and response parameter class etc. are asked, the item to be filled of SDK template is mapped to, to be filled into SDK template.
Optionally, as shown in figure 4, after step 104 further including step 105: by SDK programming file in different behaviour
Make to be compiled verifying in system to generate the SDK for being directed to different operating system.
Wherein, after generating SDK programming file, SDK programming file is added to the different operation of each language development
In system, i.e., it is compiled verifying in different exploitation environment, generates the SDK for being directed to different operating system.
Optionally, in other embodiments of the present invention, after step 105, further includes: SDK is stored in the SDK's
Default storing path, for user equipment downloading.
Wherein, SDK storing path can also be obtained in advance, and the SDK that compiling obtains is stored in the SDK storing path,
SDK storing path can be disk path, network path or be storage card path etc..
The SDK generation method that the embodiment of the present invention proposes, essence are exactly the process by code building code, the present invention
After extracting the interface message of API, these interface letters are filled into the new file of SDK template formation, are exactly new code,
Since content-defined in SDK template is to define in strict accordance with the syntax gauge of program, thus the effect for generating SDK can be improved
Rate reduces cost of labor.
Corresponding to the generation method of Software Development Kit described in foregoing embodiments, Fig. 5 shows the embodiment of the present invention
The structural block diagram of the generating means of the Software Development Kit of offer illustrates only and the embodiment of the present invention for ease of description
Relevant part.
Referring to Fig. 5, the generating means of the Software Development Kit include:
Source code acquiring unit 51, for obtaining the source code of application program;
Extraction unit 52 for parsing to the source code, and extracts the interface letter of application programming interface
Breath;
Template acquiring unit 53, for obtaining the corresponding SDK template of default programming language, the SDK template includes wait fill out
Fill item;
Fills unit 54, for right with the item to be filled each in the SDK template from being obtained in the interface message
The target interface information answered, by the target interface information according to filling after the compiling of default programming language to the SDK template
In the item to be filled, generates SDK and program file.
Optionally, the extraction unit 52 is specifically used for:
The source code is compiled, Java bytecode is generated;
The Java bytecode is loaded using java class loader, retains the class for meeting preset rules;
The classification for determining retained class extracts each classification for describing application programming interface based on reflection mechanism
Interface message.
Optionally, the extraction unit 52 is also used to:
The interface message that each classification is used to describe application programming interface is carried out in the way of simple Java object
Storage, forms the interface message of structuring.
Optionally, the interface message includes at least: interface name, interface requests parameter information and interface response parameter letter
Breath.
Optionally, the source code acquiring unit 51 is specifically used for:
The source code of the application program is downloaded in pre-configured application source code trustship address by Git.
Optionally, as shown in fig. 6, the generating means of the Software Development Kit further include compilation unit 55, the volume
It translates unit 55 and is directed to different operation system for SDK programming file to be compiled verifying in different operating system to generate
The SDK of system.
The SDK generation method that the embodiment of the present invention proposes, essence are exactly the process by code building code, the present invention
After extracting the interface message of API, these interface letters are filled into the new file of SDK template formation, are exactly new code,
Since content-defined in SDK template is to define in strict accordance with the syntax gauge of program, thus the effect for generating SDK can be improved
Rate reduces cost of labor.
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set
Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70
Calculation machine program 72, such as SDK generate program.The processor 70 realizes above-mentioned each software when executing the computer program 72
Step in the generation method embodiment of development kit, such as step 101 shown in FIG. 1 is to 104.Alternatively, the processor
The function of each module/unit in above-mentioned each Installation practice, such as list shown in Fig. 5 are realized when the 70 execution computer program 72
The function of member 51 to 54.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be server, desktop PC, notebook, palm PC and cloud server etc.
Calculate equipment.The terminal device may include, but be not limited only to, processor 70, memory 71.Those skilled in the art can manage
Solution, Fig. 7 is only the example of terminal device 7, does not constitute the restriction to terminal device 7, may include more or more than illustrating
Few component perhaps combines certain components or different components, such as the terminal device can also be set including input and output
Standby, network access equipment, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7
It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of generation method of Software Development Kit SDK characterized by comprising
Obtain the source code of application program;
The source code is parsed, and extracts the interface message of application programming interface;
The default corresponding SDK template of programming language is obtained, the SDK template includes item to be filled;
From obtaining target interface information corresponding with the item to be filled each in the SDK template, general in the interface message
Filling is generated into the item to be filled of the SDK template after the target interface information is compiled according to default programming language
SDK programs file.
2. generation method as described in claim 1, which is characterized in that it is described that the source code is parsed, and extract
The interface message of application programming interface, comprising:
The source code is compiled, Java bytecode is generated;
The Java bytecode is loaded using java class loader, retains the class for meeting preset rules;
The classification for determining retained class extracts each classification for describing connecing for application programming interface based on reflection mechanism
Message breath.
3. generation method as claimed in claim 2, which is characterized in that described to extract each classification for retouching based on reflection mechanism
After the interface message for stating application programming interface, further include
The interface message that each classification is used to describe application programming interface is stored in the way of simple Java object,
Form the interface message of structuring.
4. generation method as claimed in claim 2 or claim 3, which is characterized in that the interface message includes at least: interface name,
Interface requests parameter information and interface response parameter information.
5. generation method as described in any one of claims 1-3, which is characterized in that the source code for obtaining application program,
Include:
The source code of the application program is downloaded in pre-configured application source code trustship address by Git.
6. generation method as described in any one of claims 1-3, which is characterized in that after the generation SDK programming file, also
Include:
SDK programming file is compiled verifying in different operating system to generate the SDK for being directed to different operating system.
7. a kind of generating means of Software Development Kit SDK characterized by comprising
Source code acquiring unit, for obtaining the source code of application program;
Extraction unit for parsing to the source code, and extracts the interface message of application programming interface;
Template acquiring unit, for obtaining the corresponding SDK template of default programming language, the SDK template includes item to be filled;
Fills unit, for from obtaining mesh corresponding with the item to be filled each in the SDK template in the interface message
Mark interface message, by the target interface information according to default programming language compiling after filling to described in the SDK template to
In filler, generates SDK and program file.
8. generating means as claimed in claim 7, which is characterized in that the extraction unit is specifically used for:
The source code is compiled, Java bytecode is generated;
The Java bytecode is loaded using java class loader, retains the class for meeting preset rules;
The classification for determining retained class extracts each classification for describing connecing for application programming interface based on reflection mechanism
Message breath.
9. a kind of terminal device, including memory and processor, it is stored with and can transports on the processor in the memory
Capable computer program, which is characterized in that when the processor executes the computer program, realize such as claim 1 to 6 times
The step of generation method described in one.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the step of any one of such as claim 1 to 6 of realization generation method of the method when the computer program is executed by processor
Suddenly.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910145901.2A CN109976761B (en) | 2019-02-27 | 2019-02-27 | Software development kit generation method and device and terminal equipment |
PCT/CN2019/117180 WO2020173128A1 (en) | 2019-02-27 | 2019-11-11 | Method and device for generating software development kit, and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910145901.2A CN109976761B (en) | 2019-02-27 | 2019-02-27 | Software development kit generation method and device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109976761A true CN109976761A (en) | 2019-07-05 |
CN109976761B CN109976761B (en) | 2022-06-07 |
Family
ID=67077465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910145901.2A Active CN109976761B (en) | 2019-02-27 | 2019-02-27 | Software development kit generation method and device and terminal equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109976761B (en) |
WO (1) | WO2020173128A1 (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110647317A (en) * | 2019-09-27 | 2020-01-03 | 中国航空无线电电子研究所 | Template-based application framework generation method |
CN110990833A (en) * | 2019-10-31 | 2020-04-10 | 重庆小雨点小额贷款有限公司 | SDK safety detection method and related equipment |
CN111506305A (en) * | 2020-03-26 | 2020-08-07 | 拉扎斯网络科技(上海)有限公司 | Tool kit generation method and device, computer equipment and readable storage medium |
CN111580829A (en) * | 2020-05-09 | 2020-08-25 | 广东天波信息技术股份有限公司 | SDK development device suitable for multiple infrared thermal imaging temperature measurement modules |
WO2020173128A1 (en) * | 2019-02-27 | 2020-09-03 | 平安科技(深圳)有限公司 | Method and device for generating software development kit, and terminal device |
CN111638906A (en) * | 2020-05-15 | 2020-09-08 | 郑州阿帕斯数云信息科技有限公司 | SDK (software development kit) access method, device and system |
CN111736916A (en) * | 2020-06-08 | 2020-10-02 | 北京达佳互联信息技术有限公司 | Dynamic expansion method and device based on Java language, electronic equipment and storage medium |
CN111782737A (en) * | 2020-08-12 | 2020-10-16 | 中国工商银行股份有限公司 | Information processing method, device, equipment and storage medium |
CN112363705A (en) * | 2020-11-10 | 2021-02-12 | 中国平安人寿保险股份有限公司 | System package generation method and device, computer equipment and storage medium |
CN112748914A (en) * | 2020-03-18 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Application program development method and device, electronic equipment and storage medium |
CN112764756A (en) * | 2021-01-15 | 2021-05-07 | 广州华多网络科技有限公司 | Software resource compiling method and corresponding device, equipment and medium |
CN112988289A (en) * | 2021-04-09 | 2021-06-18 | 北京字节跳动网络技术有限公司 | Method and system for calling interface |
CN113064820A (en) * | 2021-03-26 | 2021-07-02 | 深圳依时货拉拉科技有限公司 | Method, apparatus and computer readable storage medium for updating A/B experiment SDK |
CN113220275A (en) * | 2021-05-25 | 2021-08-06 | 北京小米移动软件有限公司 | Software acquisition method and device |
CN113590098A (en) * | 2021-07-30 | 2021-11-02 | 中电金信软件有限公司 | Software development kit SDK generation method and device and electronic equipment |
CN114398102A (en) * | 2022-01-18 | 2022-04-26 | 杭州米络星科技(集团)有限公司 | Application package generation method and device, compiling server and computer readable storage medium |
CN116450107A (en) * | 2023-04-04 | 2023-07-18 | 北京科乐园网络科技有限公司 | Method and device for secondary development of software by low-code platform and electronic equipment |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114253520B (en) * | 2020-09-21 | 2024-03-12 | 抖音视界有限公司 | Interface code generation method and device |
CN112099794A (en) * | 2020-09-28 | 2020-12-18 | 中国银行股份有限公司 | Front-end project construction method and device |
CN112306498A (en) * | 2020-11-13 | 2021-02-02 | 用友网络科技股份有限公司 | Code generation method, ERP system and readable storage medium |
CN112835615B (en) * | 2021-02-08 | 2024-01-30 | 百度在线网络技术(北京)有限公司 | Plug-in processing method and device for software development kit and electronic equipment |
CN113076119B (en) * | 2021-03-25 | 2023-12-12 | 北京车和家信息技术有限公司 | Updating method and device of vehicle-mounted program, medium and electronic equipment |
CN112965708A (en) * | 2021-03-29 | 2021-06-15 | 武汉悦学帮网络技术有限公司 | Code generation method and device |
CN113238740B (en) * | 2021-06-11 | 2023-10-27 | 腾讯科技(深圳)有限公司 | Code generation method, code generation device, storage medium and electronic device |
CN113625999B (en) * | 2021-08-10 | 2024-04-09 | 北京阅见未来网络科技有限公司 | Application program generation method, device, equipment and storage medium |
CN116382703B (en) * | 2023-06-07 | 2023-08-22 | 建信金融科技有限责任公司 | Software package generation method, code development method and device, electronic equipment and medium |
CN116974581B (en) * | 2023-09-25 | 2024-01-23 | 中化现代农业有限公司 | Code generation method, device, electronic equipment and storage medium |
CN117034900B (en) * | 2023-09-27 | 2023-12-26 | 厦门星纵数字科技有限公司 | Automatic generation method of API (application program interface) code file, terminal equipment and storage medium |
CN117435177B (en) * | 2023-12-20 | 2024-03-26 | 浙江寰福科技有限公司 | Application program interface construction method, system, equipment and storage medium |
CN117472336B (en) * | 2023-12-28 | 2024-04-12 | 芯瞳半导体技术(山东)有限公司 | Code generating device based on program API, method, equipment and medium thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677821A (en) * | 2013-12-05 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and device for publishing software development tool code |
CN103713896A (en) * | 2013-12-17 | 2014-04-09 | 北京京东尚科信息技术有限公司 | Software development kit generation method and device used for accessing server |
WO2015147656A2 (en) * | 2014-03-26 | 2015-10-01 | Auckland Uniservices Limited | Automatic process and system for software development kit for application programming interface |
CN108563435A (en) * | 2018-04-19 | 2018-09-21 | 北京百度网讯科技有限公司 | The method and device of code building |
CN108628635A (en) * | 2018-05-07 | 2018-10-09 | 广州视源电子科技股份有限公司 | Method, apparatus, equipment and the storage medium of the name that gets parms and local variable name |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7574692B2 (en) * | 2004-11-19 | 2009-08-11 | Adrian Herscu | Method for building component-software for execution in a standards-compliant programming environment |
CN102750152B (en) * | 2012-06-21 | 2015-02-04 | 新浪网技术(中国)有限公司 | Method and device of application for generating a plurality of programming languages based on descriptive language |
CN108932122A (en) * | 2018-06-19 | 2018-12-04 | 上海陆家嘴国际金融资产交易市场股份有限公司 | Interface document generation method, device, computer equipment and storage medium |
CN109976761B (en) * | 2019-02-27 | 2022-06-07 | 平安科技(深圳)有限公司 | Software development kit generation method and device and terminal equipment |
-
2019
- 2019-02-27 CN CN201910145901.2A patent/CN109976761B/en active Active
- 2019-11-11 WO PCT/CN2019/117180 patent/WO2020173128A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103677821A (en) * | 2013-12-05 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and device for publishing software development tool code |
CN103713896A (en) * | 2013-12-17 | 2014-04-09 | 北京京东尚科信息技术有限公司 | Software development kit generation method and device used for accessing server |
WO2015147656A2 (en) * | 2014-03-26 | 2015-10-01 | Auckland Uniservices Limited | Automatic process and system for software development kit for application programming interface |
CN108563435A (en) * | 2018-04-19 | 2018-09-21 | 北京百度网讯科技有限公司 | The method and device of code building |
CN108628635A (en) * | 2018-05-07 | 2018-10-09 | 广州视源电子科技股份有限公司 | Method, apparatus, equipment and the storage medium of the name that gets parms and local variable name |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020173128A1 (en) * | 2019-02-27 | 2020-09-03 | 平安科技(深圳)有限公司 | Method and device for generating software development kit, and terminal device |
CN110647317A (en) * | 2019-09-27 | 2020-01-03 | 中国航空无线电电子研究所 | Template-based application framework generation method |
CN110990833B (en) * | 2019-10-31 | 2022-08-05 | 重庆小雨点小额贷款有限公司 | SDK safety detection method and related equipment |
CN110990833A (en) * | 2019-10-31 | 2020-04-10 | 重庆小雨点小额贷款有限公司 | SDK safety detection method and related equipment |
CN112748914B (en) * | 2020-03-18 | 2023-09-19 | 腾讯科技(深圳)有限公司 | Application program development method and device, electronic equipment and storage medium |
CN112748914A (en) * | 2020-03-18 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Application program development method and device, electronic equipment and storage medium |
CN111506305A (en) * | 2020-03-26 | 2020-08-07 | 拉扎斯网络科技(上海)有限公司 | Tool kit generation method and device, computer equipment and readable storage medium |
CN111506305B (en) * | 2020-03-26 | 2023-07-18 | 拉扎斯网络科技(上海)有限公司 | Tool pack generation method, device, computer equipment and readable storage medium |
CN111580829A (en) * | 2020-05-09 | 2020-08-25 | 广东天波信息技术股份有限公司 | SDK development device suitable for multiple infrared thermal imaging temperature measurement modules |
CN111638906A (en) * | 2020-05-15 | 2020-09-08 | 郑州阿帕斯数云信息科技有限公司 | SDK (software development kit) access method, device and system |
CN111638906B (en) * | 2020-05-15 | 2023-02-03 | 郑州阿帕斯数云信息科技有限公司 | SDK (software development kit) access method, device and system |
CN111736916A (en) * | 2020-06-08 | 2020-10-02 | 北京达佳互联信息技术有限公司 | Dynamic expansion method and device based on Java language, electronic equipment and storage medium |
CN111782737A (en) * | 2020-08-12 | 2020-10-16 | 中国工商银行股份有限公司 | Information processing method, device, equipment and storage medium |
CN112363705A (en) * | 2020-11-10 | 2021-02-12 | 中国平安人寿保险股份有限公司 | System package generation method and device, computer equipment and storage medium |
CN112363705B (en) * | 2020-11-10 | 2023-07-28 | 中国平安人寿保险股份有限公司 | System package generation method, device, computer equipment and storage medium |
CN112764756A (en) * | 2021-01-15 | 2021-05-07 | 广州华多网络科技有限公司 | Software resource compiling method and corresponding device, equipment and medium |
CN113064820B (en) * | 2021-03-26 | 2022-09-16 | 深圳依时货拉拉科技有限公司 | Method, apparatus and computer readable storage medium for updating A/B experiment SDK |
CN113064820A (en) * | 2021-03-26 | 2021-07-02 | 深圳依时货拉拉科技有限公司 | Method, apparatus and computer readable storage medium for updating A/B experiment SDK |
CN112988289A (en) * | 2021-04-09 | 2021-06-18 | 北京字节跳动网络技术有限公司 | Method and system for calling interface |
CN113220275A (en) * | 2021-05-25 | 2021-08-06 | 北京小米移动软件有限公司 | Software acquisition method and device |
CN113590098A (en) * | 2021-07-30 | 2021-11-02 | 中电金信软件有限公司 | Software development kit SDK generation method and device and electronic equipment |
CN114398102A (en) * | 2022-01-18 | 2022-04-26 | 杭州米络星科技(集团)有限公司 | Application package generation method and device, compiling server and computer readable storage medium |
CN114398102B (en) * | 2022-01-18 | 2023-08-08 | 杭州米络星科技(集团)有限公司 | Application package generation method and device, compiling server and computer readable storage medium |
CN116450107A (en) * | 2023-04-04 | 2023-07-18 | 北京科乐园网络科技有限公司 | Method and device for secondary development of software by low-code platform and electronic equipment |
CN116450107B (en) * | 2023-04-04 | 2023-12-01 | 北京科乐园网络科技有限公司 | Method and device for secondary development of software by low-code platform and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020173128A1 (en) | 2020-09-03 |
CN109976761B (en) | 2022-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109976761A (en) | Generation method, device and the terminal device of Software Development Kit | |
CN110162296A (en) | Generation method, device and the terminal device of application programming interface document | |
CN105100191B (en) | The method, apparatus and system of Java application installations are realized in a kind of cloud compiling | |
US8527943B1 (en) | System and method of application development | |
US8578329B1 (en) | System and method of application development using easier to redesign replaceable components | |
CN105100127B (en) | For verifying the device and method using deployment topologies in cloud computing environment | |
CN106844153B (en) | Application program operation monitoring method and device and terminal | |
KR20050039551A (en) | Programming interface for a computer platform | |
US11048885B2 (en) | Cognitive translation service integrated with context-sensitive derivations for determining program-integrated information relationships | |
CN109299032B (en) | Data analysing method, electronic equipment and computer storage medium | |
CN112136296A (en) | Training of conversational agents using natural language | |
CN109154908A (en) | The part of dynamic size with accurate garbage collection report | |
CN110795697A (en) | Logic expression obtaining method and device, storage medium and electronic device | |
CN110825499B (en) | Method and device for realizing security isolation based on unified container cloud platform | |
CN114490116B (en) | Data processing method and device, electronic equipment and storage medium | |
US10693962B1 (en) | Language and mechanism for modeling and exporting storage platform topologies, attributes, and behaviors | |
Herrera et al. | Enhanced IP-XACT platform descriptions for automatic generation from UML/MARTE of fast performance models for DSE | |
CN114048415A (en) | Form generation method and device, electronic equipment and computer readable storage medium | |
Winter et al. | Formal information modelling for standardisation in the spatial domain | |
Hölscher et al. | On translating UML models into graph transformation systems | |
CN111880801A (en) | Application program dynamic method and device and electronic equipment | |
CN112764729B (en) | Application software development method, device, computer equipment and readable storage medium | |
CN108563475A (en) | Operation method, device and the storage medium of application program | |
Gschwind | Adaptation and composition techniques for component-based software engineering | |
CN108399066A (en) | A kind of regulation engine implementation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |