CN106528069B - SDK integrated approach and device - Google Patents

SDK integrated approach and device Download PDF

Info

Publication number
CN106528069B
CN106528069B CN201510587094.1A CN201510587094A CN106528069B CN 106528069 B CN106528069 B CN 106528069B CN 201510587094 A CN201510587094 A CN 201510587094A CN 106528069 B CN106528069 B CN 106528069B
Authority
CN
China
Prior art keywords
file
sdk
apk
client
code
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.)
Active
Application number
CN201510587094.1A
Other languages
Chinese (zh)
Other versions
CN106528069A (en
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510587094.1A priority Critical patent/CN106528069B/en
Publication of CN106528069A publication Critical patent/CN106528069A/en
Application granted granted Critical
Publication of CN106528069B publication Critical patent/CN106528069B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of method and device that SDK is integrated, to solve the problems, such as that SDK integrating process is more complicated in the prior art.The SDK integrated approach includes: that the first client obtains resource file and code file, wherein the method comprising load APK file in the code file;The resource file is packaged into the APK file by first client;The APK file and the code file are packaged as SDK file by first client;Second client is under SDK file to target directory described in first client downloads;Second client loads the APK file in the SDK file by the method for the load APK file being located in the code file under the target directory in the SDK file, and then accesses the resource file in the APK file.

Description

SDK integrated approach and device
Technical field
This application involves mobile solution, in particular to a kind of SDK integrated approach and device.
Background technique
As mobile application technology is fast-developing, each company, can be to exploit person in order to promote oneself product and service Member provides Software Development Kit (Software Development Kit, SDK).Various exploitation services are integrated in SDK, it can Think that application program (Application, App) developer provides development function.Since the application of exploitation tends to be complicated, SDK It needs comprising various resource files, code file etc., so that the self structure of SDK becomes increasingly complex.
In the development process of the prior art, after developer creates App engineering, downloading SDK development kit is generally required, and will SDK development kit after downloading is integrated in the App engineering, and then carries out further development.The integrated side existing SDK Method, under the catalogue that files in different types in the SDK is usually manually copied to App.For example, the code file of SDK copies To under the libs catalogue of App;The resource file of SDK is for example laid out (Layout), image and icon (Drawable) etc. and copies to Under the res catalogue of App.It is unified to access institute when needing to access resource during developing instrument develops the App using the SDK State the resource file under the res catalogue of App.
This SDK integrated approach needs artificial treatment, and the integrating process of the artificial treatment is more complicated.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of SDK integrated approach and device, to solve SDK collection in the prior art At the more complicated problem of process.
In order to solve the above technical problems, one embodiment of the application provides a kind of SDK integrated approach, comprising:
First client obtains resource file and code file, wherein including load APK file in the code file Method;
The resource file is packaged into the APK file by first client;
The APK file and the code file are packaged as SDK file by first client;
Second client is under SDK file to target directory described in first client downloads;
Second client passes through the load in the code file in the SDK file under the target directory The method of APK file loads the APK file in the SDK file, and then accesses the resource file in the APK file.
A kind of SDK integrated approach, comprising:
First client obtains resource file and code file, wherein including load APK file in the code file Method;
The resource file is packaged into the APK file by first client;
The APK file and the code file are packaged as SDK file by first client;
First user end to server uploads the SDK file;
The server receives and stores the SDK file;
Second client is downloaded under the SDK file to target directory from the server;
Second client passes through the load in the code file in the SDK file under the target directory The method of APK file loads the APK file in the SDK file, and then accesses the resource file in the APK file.
A kind of SDK integrated approach, comprising:
Resource file and code file are obtained, wherein the method comprising load APK file in the code file;
The resource file is packaged into the APK file;
The APK file and the code file are packaged as SDK file;
Upload the SDK file.
A kind of SDK integrated approach, comprising:
Resource file and code file are obtained, wherein the method comprising load APK file in the code file;
The resource file is packaged into the APK file;
The APK file and the code file are packaged as SDK file;
Receive the request of the downloading SDK file of the second client sending;
The SDK file is sent to second client.
A kind of SDK integrated approach, comprising:
It downloads under SDK file to target directory, wherein the SDK file includes code file and APK file, wherein code File includes the method for loading the APK file;
By the method for the load APK file being located in the code file under the target directory in the SDK file come The APK file in the SDK file is loaded, and then accesses the resource file in the APK file.
A kind of SDK integrating device, comprising:
First acquisition unit, for obtaining resource file and code file, wherein including load APK in the code file The method of file;
First packaged unit, for the resource file to be packaged into the APK file;
Second packaged unit, for the APK file and the code file to be packaged as SDK file;
Uploading unit, for uploading the SDK file.
A kind of SDK device, comprising:
Second acquisition unit, for obtaining resource file and code file, wherein including load APK in the code file The method of file;
Third packaged unit, for the resource file to be packaged into the APK file;
4th packaged unit, for the APK file and the code file to be packaged as SDK file;
Receiving unit, for receiving the request for downloading the SDK file;
Transmission unit, for sending the SDK file.
A kind of SDK device, comprising:
Download unit, for downloading under SDK file to target directory, the SDK file includes code file and APK text Part, wherein code file includes the method for loading the APK file;
Loading unit, for the load APK by being located in the code file under the target directory in the SDK file The method of file loads the APK file in the SDK file, and then accesses the resource file in the APK file.
As can be seen from the technical scheme provided by the above embodiments of the present application, the integrated side a kind of SDK provided by the embodiments of the present application Method and device, the first client are packaged as APK file by the resource file that will acquire and are packaged into again with the code file of acquisition SDK file;Developer is by the way that it is integrated to can be completed SDK under SDK file to target directory described in the second client downloads.This The integrated approach of sample integrates under the existing catalogue for needing manually to copy files in different types to corresponding App Process becomes simple and convenient.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the architecture diagram of the SDK integrated system provided in one embodiment of the application;
Fig. 2 is the flow chart of the SDK integrated approach provided in one embodiment of the application;
Fig. 3 is the flow chart of the SDK integrated approach provided in one embodiment of the application;
Fig. 4 is the method flow diagram based on the first client provided in one embodiment of the application;
Fig. 5 is the method flow diagram based on the first client provided in one embodiment of the application;
Fig. 6 is the method flow diagram based on the first client provided in one embodiment of the application;
Fig. 7 is the method flow diagram based on the first client provided in one embodiment of the application;
Fig. 8 is the method flow diagram based on the second client provided in one embodiment of the application;
Fig. 9 is the module map of the SDK integrating device provided in one embodiment of the application;
Figure 10 is the module map of the SDK integrating device provided in one embodiment of the application;
Figure 11 is the module map of the SDK integrating device provided in one embodiment of the application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
Fig. 1 is the architecture diagram for the system that the SDK provided in the embodiment of the present application is integrated.In the present embodiment, which can be with Including the first client 11, server 12 and the second client 13.
It can be the computer for being equipped with the software for being packaged SDK in first client 11.
Server 12 can be to provide the server of upload and download service.Specifically, can be used to store the SDK of upload The downloading of file and offer SDK file.
Second client 13 from server 12 to download SDK file and integrated SDK file.
The software for being packaged SDK can be installed, and above-mentioned first client 11 can be beaten above-mentioned in the first client 11 SDK file after packet is uploaded to server 12.Server 12 can receive and store above-mentioned SDK file, and then can provide Two clients 13 download above-mentioned SDK file.In App development process, App developer can incite somebody to action in the second client 13 SDK file is integrated in the App of exploitation.
A kind of embodiment of SDK integrated approach of the application is introduced below in conjunction with example shown in Fig. 2, as shown in the figure, comprising:
S200: the first client obtains resource file and code file, wherein including load APK text in the code file The method of part.
The resource file may include text-string (Strings), color (Colors), array (Arrays), move Draw (Anim), layout (Layout), image and icon (Drawable), audio frequency and video (Media) etc..
The code file may include the code of all realization SDK exploitation services, including the side of load APK file Method.
The method of the load APK file, specifically includes:
Copy method, under the catalogue "/data/data/xxx " for the APK file to be copied to application program, wherein " xxx " is the mark of application program;
Loading method, the API for being provided by android system, loads the APK file under the data directory;
Access method, for accessing the resource file in APK file after loading APK file.
The resource file and code file can be good by the preparatory taxonomic revision of SDK developer.
First client passes through the available resource file of path address and the code text that SDK developer provides Part.The path address can be the relative path that computer capacity enough identifies, the path can also in certain embodiments certainly Think the absolute path that counting machine can identify.
S210: the resource file is packaged into the APK file by first client.
It is received user instructions specifically, can be the first client, according to user instructions and utilizes the software packaging of installation The resource file is packaged into APK file.
For example, SDK developer can be used to be packaged by clicking on the software packaging interface that the first client is installed The button of APK file executes it and is packaged instruction.
It is of course also possible to automatically according to preset instruction and be utilized after first client obtains resource file The resource file is packaged into APK file by the software packaging of installation.
Exemplarily, first client can be by calling in Android (Android) developing instrument for example The resource file is packaged as APK file by apkbuilder tool.
It is worth mentioning, in android system, all App for being installed to android system have a signature, gather around There is the App of signature that can install in Android device.Signature is for identifying the trust established between the author of App and App Relationship.
First client can be by calling signapk tool to sign APK file.
In other embodiments, first client can be recalled by calling keytool tool to generate signature Jarsigner tool signs the signature of generation to APK file.
In other embodiments, may include: between S210 and S220 step
S211: first client carries out registration process to data unpressed in the APK file.
It is received user instructions specifically, can be the first client, it according to user instructions will be uncompressed in the APK file Data carry out registration process.
For example, SDK developer can be used to press APK file alignment by clicking on the first client end interface Button makes it execute aligned instruction.
It is of course also possible to be automatically according to preset instruction after first client obtains resource file to described Unpressed data carry out registration process in APK file.
First client can be by calling such as zipalign tool pair provided in Android developing instrument APK file carries out registration process.
Specifically, by the way that unpressed data can be made after zipalign registration process in APK file in 4 byte boundaries Upper alignment.Since compiler is that 4 bytes are read out as a unit in computer, so by described 4 In the case where being misaligned than before, the efficiency that computer reads resource is can be improved in the method being aligned on a byte boundary.
APK file after alignment can become effectively with the interaction between android system.
S220: the APK file and the code file are packaged as SDK file by first client.
It is received user instructions specifically, can be the first client, according to user instructions and utilizes the software packaging of installation The APK file and code file are packaged as SDK file.
For example, SDK developer can be used to be packaged by clicking on the software packaging interface that the first client is installed The button of SDK file executes it and is packaged instruction.
It is of course also possible to be in first client automatically according to the preset software packaging instructed and utilize installation The APK file and code file are packaged into SDK file.
Exemplarily, first client can be by calling Android developing instrument such as AndroidTools etc. The APK file and the code file are packaged as SDK file by tool.
SDK file can be Java archive file (Java Archive, JAR) file in the present embodiment.That is, SDK is literary Part can be the file of JAR format.
S230: first user end to server uploads the SDK file.
S240: the server receives and stores the SDK file.
Server receives the above-mentioned SDK file of the first client last time, and above-mentioned SDK file is deposited in server Memory space in.The download address such as unified resource that an above-mentioned SDK file of correspondence can externally be provided positions Address (Uniform Resoure Locator, URL), so that user downloads above-mentioned SDK file.
S250: the second client is downloaded under the SDK file to target directory from the server.
Specifically, the second client downloads the SDK file from the server;Second client is by the downloading SDK file copy to the target directory under.The target directory includes the libs catalogue of App.
For example, user connects server by the second client;The downloading for clicking the SDK file shown on interface is pressed Button, the button contain the address URL of the corresponding SDK file;And then downloading request is sent to server;Server is according to institute The address URL is stated, after inquiring corresponding SDK file, the second client of Xiang Suoshu sends the SDK file.User is by downloading Libs catalogue of the SDK file copy to App.
S260: second client is by being located in the code file under the target directory in the SDK file The method of APK file is loaded to load the APK file in the SDK file, and then accesses the resource text in the APK file Part.
Since android system supports load APK file and accesses the internal resource of APK file, so the second client The APK file that can be loaded directly under the libs catalogue of App in the SDK file, to access the money in the APK file Source file.
Second client is literary by the load APK being located in the code file under target directory in the SDK file The method of part loads the APK file in the SDK file, and then accesses the resource file in the APK file, specific steps It is as follows:
(A1) the second client copies the APK file under the catalogue "/data/data/xxx " of application program, In " xxx " be application program mark.
As described in S250, the APK file in SDK file and SDK file after downloading is located under target directory.The target mesh Record is the system directory of App, and the file in system directory is typically under not executable environment, it is therefore desirable to by the APK File copy is into executable environment.In Android software exploitation, executable environment includes data directory, such as "/data/ Data/xxx ", wherein " xxx " is the mark of application program.During A1, specifically, second client can pass through tune With the copy method in the code file to, the APK file in SDK file is copied to the catalogue "/data/ of application program Under data/xxx ".
(A2) API that the second client is provided by android system loads the APK file under the data directory.
Specifically, second client can be by calling the loading method in the code file, and then pass through The API that android system provides, loads the APK file under the data directory.
(A3) after the second client loads the APK file, the resource file in the accessible APK file.
Specifically, after the second client loads the APK file, a reference object of the available APK file, The reference object is the mapping of the resource file in APK file;By drawing described in the access method use in the code file With object, the resource file in the APK file is accessed.
Through this embodiment, it is literary with the code of acquisition again that the resource file that the first client will acquire is packaged as APK file Part is packaged into SDK file.It is integrated that SDK can be completed in the case where downloading the SDK file to target directory in user.Pass through above-mentioned Integrated approach as one client and the second client manually copies files in different types to phase relative to existing needs It answers under the catalogue of App, integrating process becomes simple and convenient.
A kind of embodiment of SDK integrated approach of the application is introduced below in conjunction with example shown in Fig. 3, as shown in the figure, comprising:
S300: the first client obtains resource file and code file, wherein including load APK text in the code file The method of part.
The resource file may include text-string (Strings), color (Colors), array (Arrays), move Draw (Anim), layout (Layout), image and icon (Drawable), audio frequency and video (Media) etc..
The code file may include the code of all realization SDK exploitation services, including the side of load APK file Method.
The method of the load APK file, specifically includes:
Copy method, under the catalogue "/data/data/xxx " for the APK file to be copied to application program, wherein " xxx " is the mark of application program;
Loading method, the API for being provided by android system, loads the APK file under the data directory;
Access method, for accessing the resource file in APK file after loading APK file.
The resource file and code file can be good by the preparatory taxonomic revision of SDK developer.
First client passes through the available resource file of path address and the code text that SDK developer provides Part.The path address can be the relative path that computer capacity enough identifies, the path can also in certain embodiments certainly Think the absolute path that counting machine can identify.
S310: the resource file is packaged into the APK file by first client.
It is received user instructions specifically, can be the first client, according to user instructions and utilizes the software packaging of installation The resource file is packaged into APK file.
For example, SDK developer can be used to be packaged by clicking on the software packaging interface that the first client is installed The button of APK file executes it and is packaged instruction.
It is of course also possible to automatically according to preset instruction and be utilized after first client obtains resource file The resource file is packaged into APK file by the software packaging of installation.
Exemplarily, first client can be by calling in Android (Android) developing instrument for example The resource file is packaged as APK file by apkbuilder tool.
It is worth mentioning, in android system, all App for being installed to android system have a signature, gather around There is the App of signature that can install in Android device.Signature is for identifying the trust established between the author of App and App Relationship.
First client can be by calling signapk tool to sign APK file.
In other embodiments, first client can be recalled by calling keytool tool to generate signature Jarsigner tool signs the signature of generation to APK file.
In other embodiments, may include: between S310 and S320 step
S311: first client carries out registration process to data unpressed in the APK file.
It is received user instructions specifically, can be the first client, it according to user instructions will be uncompressed in the APK file Data carry out registration process.
For example, SDK developer can be used to press APK file alignment by clicking on the first client end interface Button makes it execute aligned instruction.
It is of course also possible to be automatically according to preset instruction after first client obtains resource file to described Unpressed data carry out registration process in APK file.
First client can be by calling such as zipalign tool pair provided in Android developing instrument APK file carries out registration process.
Specifically, by the way that unpressed data can be made after zipalign registration process in APK file in 4 byte boundaries Upper alignment.Since compiler is that 4 bytes are read out as a unit in computer, so by described 4 In the case where being misaligned than before, the efficiency that computer reads resource is can be improved in the method being aligned on a byte boundary.
APK file after alignment can become effectively with the interaction between android system.
S320: the APK file and the code file are packaged as SDK file by first client.
It is received user instructions specifically, can be the first client, according to user instructions and utilizes the software packaging of installation The APK file and code file are packaged as SDK file.
For example, SDK developer can be used to be packaged by clicking on the software packaging interface that the first client is installed The button of SDK file executes it and is packaged instruction.
It is of course also possible to be in first client automatically according to the preset software packaging instructed and utilize installation The APK file and code file are packaged into SDK file.
Exemplarily, first client can be by calling Android developing instrument such as AndroidTools etc. The APK file and the code file are packaged as SDK file by tool.
SDK file can be Java archive file (Java Archive, JAR) file in the present embodiment.That is, SDK is literary Part can be the file of JAR format.
S330: the second client is under SDK file to target directory described in first client downloads.
Specifically, the second client is from SDK file described in first client downloads;Second client will be described Under the SDK file copy to the target directory of downloading.The target directory includes the libs catalogue of App.
For example, first client can externally provide the download address such as address URL of a corresponding SDK file, So that user downloads the SDK file;Second client can be issued to first client by the address URL and be downloaded The SDK file request;First client can be according to the address URL, after inquiring corresponding SDK file, Xiang Suoshu Two clients send the SDK file.Second client is by the libs catalogue of the SDK file copy of downloading to App.
S340: second client is by being located in the code file under the target directory in the SDK file The method of APK file is loaded to load the APK file in the SDK file, and then accesses the resource text in the APK file Part.
Since android system supports load APK file and accesses the internal resource of APK file, so the second client The APK file that can be loaded directly under the libs catalogue of App in the SDK file, to access the money in the APK file Source file.
Second client is literary by the load APK being located in the code file under target directory in the SDK file The method of part loads the APK file in the SDK file, and then accesses the resource file in the APK file, specific steps It is as follows:
(A1) the second client copies the APK file under the catalogue "/data/data/xxx " of application program, In " xxx " be application program mark.
As described in S330, the APK file in SDK file and SDK file after downloading is located under target directory.The target mesh Record is the system directory of App, and the file in system directory is typically under not executable environment, it is therefore desirable to by the APK File copy is into executable environment.In Android software exploitation, executable environment includes data directory, such as "/data/ Data/xxx ", wherein " xxx " is the mark of application program.During A1, specifically, second client can pass through tune With the copy method in the code file to, the APK file in SDK file is copied to the catalogue "/data/ of application program Under data/xxx ".
(A2) API that the second client is provided by android system loads the APK file under the data directory.
Specifically, second client can be by calling the loading method in the code file, and then pass through The API that android system provides, loads the APK file under the data directory.
(A3) after the second client loads the APK file, the resource file in the accessible APK file.
Specifically, after the second client loads the APK file, a reference object of the available APK file, The reference object is the mapping of the resource file in APK file;By drawing described in the access method use in the code file With object, the resource file in the APK file is accessed.
Unlike the embodiments above, the second client can be interacted directly with the first client in the present embodiment, under Carry SDK file.
Embodiment of the method for the application based on the first client is introduced below in conjunction with Fig. 4, which can correspond to Fig. 3:
S400: obtaining resource file and code file, wherein the method comprising load APK file in the code file.
S410: the resource file is packaged into the APK file.
S420: the APK file and the code file are packaged as SDK file.
S430: the SDK file is uploaded.
It can also include following between the S410 and S420 in the one embodiment of the application based on above-mentioned Fig. 4 S411 step, as shown in Figure 5:
S400: obtaining resource file and code file, wherein the method comprising load APK file in the code file.
S410: the resource file is packaged into the APK file.
S411: registration process is carried out to data unpressed in the APK file.
S420: the APK file and the code file are packaged as SDK file.
S430: the SDK file is uploaded.
Embodiment of the method for the application based on the first client is introduced below in conjunction with Fig. 6, which can correspond to Fig. 2:
S500: obtaining resource file and code file, wherein the method comprising load APK file in the code file.
S510: the resource file is packaged into the APK file.
S520: the APK file and the code file are packaged as SDK file.
S530: it receives the second client and sends the request for downloading the SDK file.
S540: Xiang Suoshu second client sends the SDK file.
It can also include following between the S510 and S520 in the one embodiment of the application based on above-mentioned Fig. 6 S511 step, as shown in Figure 7:
S500: obtaining resource file and code file, wherein the method comprising load APK file in the code file.
S510: the resource file is packaged into the APK file.
S511: registration process is carried out to data unpressed in the APK file.
S520: the APK file and the code file are packaged as SDK file.
S530: it receives the second client and sends the request for downloading the SDK file.
S540: Xiang Suoshu second client sends the SDK file.
Embodiment of the method for the application based on the second client is introduced below in conjunction with Fig. 8, which can correspond to Fig. 2:
S900: under downloading SDK file to target directory, wherein the SDK file includes code file and APK file, Middle code file includes the method for loading the APK file.
S910: by the side for the load APK file being located in the code file under the target directory in the SDK file Method loads the APK file in the SDK file, and then accesses the resource file in the APK file.
It specifically includes:
The APK file is copied under data directory "/data/data/xxx ", wherein " xxx " is the mark of application program Know;
The API provided by android system, loads the APK file under the data directory;
After loading the APK file, and then access the resource file in the APK file.
Fig. 9 is the module diagram for the SDK integrating device that the application one is implemented, comprising:
First acquisition unit 610, for obtaining resource file and code file, wherein including load in the code file The method of APK file.
First packaged unit 620, for the resource file to be packaged into the APK file.
Second packaged unit 630, for the APK file and the code file to be packaged as SDK file.
Uploading unit 640, for uploading the SDK file.
Preferably, in first packaged unit 620 further include:
First optimization unit, for carrying out registration process to data unpressed in the APK file.
Figure 10 is the module diagram for the SDK integrating device that the application one is implemented, comprising:
Second acquisition unit 710, for obtaining resource file and code file, wherein including load in the code file The method of APK file.
Third packaged unit 720, for the resource file to be packaged into the APK file.
4th packaged unit 730, for the APK file and the code file to be packaged as SDK file.
Receiving unit 740, for receiving the request for downloading the SDK file.
Transmission unit 750, for sending the SDK file.
Preferably, described second includes in unit 720 further include:
Second optimization unit, for carrying out registration process to data unpressed in the APK file.
Figure 11 is the module diagram for the SDK integrating device that the application one is implemented, comprising:
Download unit 810, for downloading under SDK file to target directory, the SDK file includes code file and APK File, wherein code file includes the method for loading the APK file;
Loading unit 820, for the load by being located in the code file under the target directory in the SDK file The method of APK file loads the APK file in the SDK file, and then accesses the resource file in the APK file.
Preferably, the loading unit 820, comprising:
Copy cell, for copying the APK file under data directory "/data/data/xxx " to, wherein " xxx " It is the mark of application program;
Loading unit, the API for being provided by android system, loads the APK file under the data directory;
Access unit after loading the APK file, and then accesses the resource file in the APK file.
In conclusion the first client is packaged as SDK text by the way that resource file is packaged as APK file with code file again Part;Developer is by the way that it is integrated to can be completed SDK under SDK file to target directory described in the second client downloads.Relative to existing Some need manually copies files in different types under the catalogue of corresponding App, and integrating process becomes simple and convenient.And When updating SDK, it is only necessary to the SDK file for replacing script, without copying numerous resource files again.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (27)

1. a kind of SDK integrated approach characterized by comprising
First client obtains resource file and code file, wherein the method comprising load APK file in the code file;
The resource file is packaged into the APK file by first client;
The APK file and the code file are packaged as SDK file by first client;
Second client is under SDK file to target directory described in first client downloads;
Second client is literary by the load APK being located in the code file under the target directory in the SDK file The method of part loads the APK file in the SDK file, and then accesses the resource file in the APK file.
2. the method as described in claim 1, which is characterized in that second client is from described in first client downloads Under SDK file to target directory, comprising:
Second client is from SDK file described in first client downloads;
Second client will be under the SDK file copy to the target directory of the downloading.
3. the method as described in claim 1, which is characterized in that second client is by being located at institute under the target directory The method of the load APK file in the code file in SDK file is stated to load the APK file in the SDK file, Jin Erfang Ask the resource file in the APK file, comprising:
Second client copies the APK file under data directory "/data/data/xxx " to, wherein " xxx " is using journey The mark of sequence;
The API that second client is provided by android system, loads the APK file under the data directory;
After second client loads the APK file, and then access the resource file in the APK file.
4. the method as described in claim 1, which is characterized in that be packaged into the resource file in first client After APK file, further includes:
First client carries out registration process to data unpressed in the APK file.
5. method as described in claim 1 or 4, which is characterized in that the target directory includes the libs catalogue of App.
6. method as described in claim 1 or 4, spy is being, the SDK file is the file of JAR format.
7. a kind of SDK integrated approach characterized by comprising
First client obtains resource file and code file, wherein the method comprising load APK file in the code file;
The resource file is packaged into the APK file by first client;
The APK file and the code file are packaged as SDK file by first client;
First user end to server uploads the SDK file;
The server receives and stores the SDK file;
Second client is downloaded under the SDK file to target directory from the server;
Second client is literary by the load APK being located in the code file under the target directory in the SDK file The method of part loads the APK file in the SDK file, and then accesses the resource file in the APK file.
8. the method for claim 7, which is characterized in that second client downloads the SDK from the server Under file to target directory, comprising:
Second client downloads the SDK file from the server;
Second client will be under the SDK file copy to the target directory of the downloading.
9. the method for claim 7, which is characterized in that second client is by being located at institute under the target directory The method of the load APK file in the code file in SDK file is stated to load the APK file in the SDK file, Jin Erfang Ask the resource file in the APK file, comprising:
Second client copies the APK file under data directory "/data/data/xxx " to, wherein " xxx " is using journey The mark of sequence;
The API that second client is provided by android system, loads the APK file under the data directory;
After second client loads the APK file, and then access the resource file in the APK file.
10. the method for claim 7, which is characterized in that be packaged into the resource file in first client After APK file, further includes:
First client carries out registration process to data unpressed in the APK file.
11. the method as described in claim 7 or 10, which is characterized in that the target directory includes the libs catalogue of App.
12. the method as described in claim 7 or 10, spy is being, the SDK file is the file of JAR format.
13. a kind of SDK integrated approach characterized by comprising
Resource file and code file are obtained, wherein the method comprising load APK file in the code file;
The resource file is packaged into the APK file;
The APK file and the code file are packaged as SDK file;
Upload the SDK file.
14. method as claimed in claim 13, which is characterized in that the resource file is packaged into the APK text described After part, further includes:
Registration process is carried out to data unpressed in the APK file.
15. method according to claim 13 or 14, spy is being, the SDK file is the file of JAR format.
16. a kind of SDK integrated approach characterized by comprising
Resource file and code file are obtained, wherein the method comprising load APK file in the code file;
The resource file is packaged into the APK file;
The APK file and the code file are packaged as SDK file;
Receive the request of the downloading SDK file of the second client sending;
The SDK file is sent to second client.
17. the method described in claim 16, which is characterized in that it is described by the resource file be packaged into APK file it Afterwards, further includes:
Registration process is carried out to data unpressed in the APK file.
18. the method as described in claim 16 or 17, spy is being, the SDK file is the file of JAR format.
19. a kind of SDK integrated approach characterized by comprising
It downloads under SDK file to target directory, wherein the SDK file includes code file and APK file, wherein code file Method comprising loading the APK file;
It is loaded by the method for the load APK file being located in the code file under the target directory in the SDK file APK file in the SDK file, and then access the resource file in the APK file.
20. method as claimed in claim 19, which is characterized in that under the downloading SDK file to target directory, comprising:
Download the SDK file;
It will be under the SDK file copy to target directory of the downloading.
21. method as claimed in claim 19, which is characterized in that described by being located at the SDK text under the target directory The method of load APK file in code file in part loads the APK file in the SDK file, and then described in accessing Resource file in APK file, comprising:
The APK file is copied under data directory "/data/data/xxx ", wherein " xxx " is the mark of application program;
The API provided by android system, loads the APK file under the data directory;
After loading the APK file, and then access the resource file in the APK file.
22. method as claimed in claim 19, spy is being, the SDK file is the file of JAR format.
23. the method as described in claim 19 or 20, spy is being that the target directory includes the libs catalogue of App.
24. a kind of SDK integrating device characterized by comprising
First acquisition unit, for obtaining resource file and code file, wherein including load APK file in the code file Method;
First packaged unit, for the resource file to be packaged into the APK file;
Second packaged unit, for the APK file and the code file to be packaged as SDK file;
Uploading unit, for uploading the SDK file.
25. a kind of SDK integrating device characterized by comprising
Second acquisition unit, for obtaining resource file and code file, wherein including load APK file in the code file Method;
Third packaged unit, for the resource file to be packaged into the APK file;
4th packaged unit, for the APK file and the code file to be packaged as SDK file;
Receiving unit, for receiving the request for downloading the SDK file;
Transmission unit, for sending the SDK file.
26. a kind of SDK integrating device characterized by comprising
Download unit, for downloading under SDK file to target directory, the SDK file includes code file and APK file, Middle code file includes the method for loading the APK file;
Loading unit, for the load APK file by being located in the code file under the target directory in the SDK file Method load the APK file in the SDK file, and then access the resource file in the APK file.
27. device as claimed in claim 26, which is characterized in that the loading unit specifically includes:
Copy cell, for copying the APK file under data directory "/data/data/xxx " to, wherein " xxx " is to answer With the mark of program;
Loading unit, the API for being provided by android system, loads the APK file under the data directory;
Access unit after loading the APK file, and then accesses the resource file in the APK file.
CN201510587094.1A 2015-09-15 2015-09-15 SDK integrated approach and device Active CN106528069B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510587094.1A CN106528069B (en) 2015-09-15 2015-09-15 SDK integrated approach and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510587094.1A CN106528069B (en) 2015-09-15 2015-09-15 SDK integrated approach and device

Publications (2)

Publication Number Publication Date
CN106528069A CN106528069A (en) 2017-03-22
CN106528069B true CN106528069B (en) 2019-06-07

Family

ID=58348675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510587094.1A Active CN106528069B (en) 2015-09-15 2015-09-15 SDK integrated approach and device

Country Status (1)

Country Link
CN (1) CN106528069B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647033B (en) * 2018-04-03 2021-06-29 四川新网银行股份有限公司 SDK automatic packaging method for open platform
CN109614107B (en) * 2018-11-01 2022-09-16 同盾控股有限公司 Integration method and device of software development kit
CN109598121B (en) * 2018-12-11 2021-02-12 深圳市网心科技有限公司 Application ID generation method, system, computer device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289378A (en) * 2011-09-30 2011-12-21 互动在线(北京)科技有限公司 Method for automatically generating APP (Application)
CN103019708A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Method and system for releasing software
CN104503776A (en) * 2014-12-01 2015-04-08 北京金和软件股份有限公司 Method for rapidly packaging android application on APP development platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289378A (en) * 2011-09-30 2011-12-21 互动在线(北京)科技有限公司 Method for automatically generating APP (Application)
CN103019708A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Method and system for releasing software
CN104503776A (en) * 2014-12-01 2015-04-08 北京金和软件股份有限公司 Method for rapidly packaging android application on APP development platform

Also Published As

Publication number Publication date
CN106528069A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN103353844B (en) A kind of SDK upgrade method and system
CN102981915B (en) A kind of inter-application communication method and device
CN105893094A (en) Achieving method and device for application program plug-in
CN104503780A (en) Method and device for providing application channel packet
CN109032606A (en) The process of compilation method, apparatus and terminal of native applications program
CN112395253B (en) Index file generation method, terminal device, electronic device and medium
CN107357607B (en) The read method and device of file data
CN106528069B (en) SDK integrated approach and device
CN103034546B (en) The method and device of inter-application communication in iOS system
CN103699597A (en) Method for downloading file through browser and browser
CN106331049A (en) Resource caching method, cache resource updating method, client, server and system
CN105765533A (en) Method and apparatus for firmware virtualization
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
CN107450959A (en) A kind of edition data issue, acquisition methods, equipment and device and more new system
CN110851211A (en) Method, apparatus, electronic device, and medium for displaying application information
CN107291623A (en) A kind of applied program testing method and device
CN111338655B (en) Installation package distribution method and system
CN113391811B (en) Function compiling method, function compiling device, electronic equipment and computer readable storage medium
CN106557343A (en) Systematic function application and the method and device of loading resource
CN107908552A (en) A kind of test method based on link, device and equipment
CN111767417A (en) Application picture management method, device, equipment and storage medium
CN109815455A (en) Item file treating method and apparatus
CN114327453B (en) Page display method, device, equipment and storage medium
US20130097207A1 (en) Information processing device, information processing method and computer program
CN114860213A (en) Application package generation method, device, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1235115

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.