CN105049532B - The packaging method and device and method for down loading and device of a kind of SDK packets - Google Patents

The packaging method and device and method for down loading and device of a kind of SDK packets Download PDF

Info

Publication number
CN105049532B
CN105049532B CN201510543387.XA CN201510543387A CN105049532B CN 105049532 B CN105049532 B CN 105049532B CN 201510543387 A CN201510543387 A CN 201510543387A CN 105049532 B CN105049532 B CN 105049532B
Authority
CN
China
Prior art keywords
sdk
packets
file
module
compiling
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
CN201510543387.XA
Other languages
Chinese (zh)
Other versions
CN105049532A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510543387.XA priority Critical patent/CN105049532B/en
Publication of CN105049532A publication Critical patent/CN105049532A/en
Application granted granted Critical
Publication of CN105049532B publication Critical patent/CN105049532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of packaging methods of SDK packets and device and method for down loading and device, method to include:Applied to packaged service device, packaged service device receives the packing instruction that download server is sent, corresponding operating is executed according to the title of each SDK function modules and the corresponding operation mark of each SDK function modules in instruction is packaged, it obtains and is currently packaged in configuration file file after the compiling of modules, generate file set after compiling, using file set after the compiling of acquisition as the SDK packets caching after being packaged, the SDK packets of caching are sent to download server, so that download server caches the SDK packets, pass through client downloads for user.Using the embodiment of the present invention so that the SDK function modules of base library SDK can remove each client logic.

Description

The packaging method and device and method for down loading and device of a kind of SDK packets
Technical field
The present invention relates to SDK packaging techniques field, more particularly to the packaging method and device and method for down loading of a kind of SDK packets And device.
Background technology
Currently, many application components are generated in such a way that SDK modules are packaged.In general, base library SDK energy Product (application program namely to be generated) that is enough while supporting multiple client, there are common portions, i.e. SDK in base library Basic module, there is also each client standalone modules, i.e. SDK function modules.In the prior art, traditional SDK packaging methods are adopted With full dose packing manner, the SDK basic modules SDK function module different with each client is all carried out by packaged service device The set of file after the compiling of SDK basic modules and SDK modules is sent to download service by compiling as the SDK packets after being packaged Device is for different client downloads;Meanwhile caching the SDK packets.
As it can be seen that SDK function modules cannot remove each client logic in base library SDK in the prior art, this makes one It may include SDK function modules do not need to, other clients in the SDK packets of a client downloads, and then lead to client The binary system packet that end is downloaded increases, and wastes the bandwidth resources of download, increases the time of download.
Invention content
The packaging method for being designed to provide a kind of SDK packets and device and method for down loading and device of the embodiment of the present invention, The SDK function modules of base library SDK remove each client logic.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of packaging method of SDK packets, this method is applied to be packaged Server includes the following steps:
Receive the packing instruction that download server is sent;The packing instruction has been cached by download server according to whether having SDK packets generate, the title for each SDK function modules for needing to operate is included in packing instruction, and need to operate every The corresponding operation mark of a SDK function modules;It is described to need the SDK function modules that operate to include:User is selected by client SDK function modules and the SDK packets that have cached in SDK function modules;
It is held according to the title of each SDK function modules and the corresponding operation mark of each SDK function modules in instruction is packaged Row corresponding operating, including:
If the corresponding operation mark of SDK function modules is to delete to identify, the SDK functions are deleted in the SDK packets of caching File after the compiling of module;
If the corresponding operation mark of SDK function modules is addition mark or more new logo, according to preset packing full dose Configuration file generates current packing configuration file;Include in the packing full dose configuration file:The title of SDK basic modules and The title of all SDK function modules;Include in the current packing configuration file:The title and operation mark of SDK basic modules For addition mark or the title of each SDK function modules of more new logo;
It obtains and is currently packaged in configuration file file after the compiling of modules, generate file set after compiling;The volume Translating rear file set includes:File and operation mark are for addition or more after the compiling of SDK basic modules in current configuration file File after the compiling of new each SDK function modules;
Using file set after the compiling of acquisition as the SDK packets caching after being packaged;
The SDK packets of caching are sent to download server, so that download server caches the SDK packets, are passed through for user Client downloads.
Preferably, described generate current packing configuration file according to preset packing full dose configuration file, including:
From the packing full dose configuration file, it is that addition is marked to obtain the title of SDK basic modules and each operation mark The title of the SDK function modules of knowledge or more new logo;By the title of SDK basic modules and each operation mark be addition mark or The title of the SDK function modules of more new logo is added in current packing configuration file, generates current packing configuration file.
Preferably, the acquisition is current to be packaged in configuration file file after the compiling of modules, file after compiling is generated Set, including:
For the current each module being packaged in configuration file, if in the SDK packets of caching, after the compiling of the existing module File, then judge whether the code update time of the module is later than the time of last caching SDK packets, if it is, to the mould Block is compiled, and regains file after the compiling of the module, covers file after the compiling of the already present module;If caching In SDK packets, there is no files after the compiling of the module, then are compiled to the module, obtain file after the compiling of the module, with Generate file set after compiling.
Preferably, this method further includes:If in the SDK packets of caching, the existing current each mould being packaged in configuration file File after the compiling of block, and the code update time of each module be not later than the time of last caching SDK packets, then to download Server, which is sent, is not necessarily to more new command so that download server caches the last time when user is by client downloads SDK packets SDK packets be sent to client.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of method for down loading of SDK packets, under this method is applied to Server is carried, is included the following steps:
Obtain the SDK packet download instructions that user is sent by client;In the download instruction, including user passes through client The title of the selected each SDK function modules in end;
According to whether having the SDK packets cached to generate is packaged instruction, including:
When there are the SDK packets cached, whether judge in the SDK packets cached comprising the unselected SDK function moulds of user File after the compiling of block;If so, then by the SDK packets cached, the unselected SDK function modules of user are determined as needing to grasp The module of work sets the operation mark of the module to delete mark;Judge whether selected comprising user in the SDK packets cached SDK function modules compiling after file;If so, then by the SDK packets cached, the SDK function modules that user selectes are true It is set to the module for needing to operate, sets the operation mark of the module to more new logo;If it is not, the user is selected SDK function modules are determined as the module for needing to operate, and set the operation mark of the module to addition mark;
When the SDK packets not cached, then all SDK function modules that user selectes are determined as the mould for needing to operate Block sets the operation mark of modules to addition mark;
Instruction will be packaged and be sent to packaged service device, so that packaged service device is according to claim 1-4 any one of them SDK packets are sent to download server by method;
The SDK packets caching that packaged service device is sent is received, and is exported to user by client.
Preferably, this method further includes:Receive and cache the SDK packet modules that packaged service device is sent when sending SDK packets Configuration information;Include in the SDK packets module configuration information:The title of all SDK function modules in the SDK packets;
It is described judge in the SDK packets that have cached whether include the unselected SDK function modules of user compiling after file, For:Judge whether include the titles of the unselected SDK function modules of user in the SDK packet module configuration informations of caching;
It is described judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling after file, be: Judge in the SDK packet module configuration informations of caching whether the title for the SDK function modules selected comprising user.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of packing apparatus of SDK packets, which is applied to be packaged Server, including:
Instruction reception unit, the packing instruction for receiving download server transmission;The packing instruction is by download service Device is according to whether have the SDK packets cached to generate, which includes the name for each SDK function modules for needing to operate in instructing Claim, and needs the corresponding operation mark of each SDK function modules operated;
Operating unit is corresponded to for the title of each SDK function modules and each SDK function modules in being instructed according to packing Operation mark, if the corresponding operation mark of SDK function modules be delete identify, the SDK work(is deleted in the SDK packets of caching File after the compiling of energy module;If the corresponding operation mark of SDK function modules is addition mark or more new logo, according to default Packing full dose configuration file, generate and current be packaged configuration file;Include in the packing full dose configuration file:The bases SDK mould The title of the title of block and all SDK function modules;Include in the current packing configuration file:The title of SDK basic modules With the title that operation mark is addition mark or each SDK function modules of more new logo;
File obtaining unit after compiling, for obtaining file, life after the compiling of modules in current packing configuration file At file set after compiling;File set includes after the compiling:The compiling of SDK basic modules in current configuration file is hereinafter Part and operation mark are file after addition or the compiling of newer each SDK function modules;
Buffer unit, file set is as the SDK packets caching after being packaged after the compiling for that will obtain;
The SDK packets of caching are sent to download server by transmission unit, so that download server caches the SDK packets, are supplied User passes through client downloads.
Preferably, the operating unit, when generating current packing configuration file, from the packing full dose configuration file In, it is the name for adding mark or the SDK function modules of more new logo to obtain the title of SDK basic modules and each operation mark Claim;It is that addition identifies or the title of the SDK function modules of more new logo adds by the title of SDK basic modules and each operation mark Enter to current and be packaged in configuration file, generates current packing configuration file.
Preferably, file obtaining unit after the compiling, is specifically used for:For the current each mould being packaged in configuration file Block, if caching in SDK packets in, file after the compiling of the existing module, then judge the module the code update time whether The time for being later than last caching SDK packets regains the compiling of the module hereinafter if it is, being compiled to the module Part covers file after the compiling of the already present module;If in the SDK packets in caching, file after the compiling of the module is not present, Then the module is compiled, obtains file after the compiling of the module, to generate file set after compiling.
Preferably, described device further includes:Instruction sending unit;
Described instruction transmission unit, for working as in the SDK packets cached, the existing current each mould being packaged in configuration file File after the compiling of block, and when the code update time of each module is not later than the time of last caching SDK packets, to download Server, which is sent, is not necessarily to more new command so that download server caches the last time when user is by client downloads SDK packets SDK packets be sent to client.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of download apparatus of SDK packets, under which is applied to Server is carried, including:
Download instruction obtaining unit, the SDK packet download instructions sent by client for obtaining user;The download refers to In order, include the title for each SDK function modules that user is selected by client;
It is packaged instruction generation unit, for according to whether there is the SDK packets that have cached to generate to be packaged and instruct, including:When having When the SDK packets of caching, judge in the SDK packets that have cached whether include the unselected SDK function modules of user compiling after file; If so, then by the SDK packets cached, the unselected SDK function modules of user are determined as the module for needing to operate, by the mould The operation mark of block is set as deleting mark;Judge in the SDK packets that have cached whether to include SDK function modules that user selectes File after compiling;If so, the SDK function modules that in the SDK packets cached, user selectes then are determined as the mould for needing to operate Block sets the operation mark of the module to more new logo;If it is not, the SDK function modules that the user is selected determine To need the module operated, it sets the operation mark of the module to addition mark;When the SDK packets not cached, then will All SDK function modules that user selectes are determined as the module for needing to operate, and the operation mark of modules is set as adding Mark;
It is packaged instruction sending unit, packaged service device is sent to for that will be packaged to instruct, so that packaged service device is by SDK packets It is sent to download server;It is provided with above-mentioned packing apparatus in the packaged service device;
Receiving unit, the SDK packets caching for receiving the transmission of packaged service device, and exported to user by client.
Preferably, described device further includes:Information receiving unit;
Described information receiving unit, the SDK packet modules sent for receiving and caching packaged service device when sending SDK packets Configuration information;Include in the SDK packets module configuration information:The title of all SDK function modules in the SDK packets;
Whether the packing instruction generation unit judges in the SDK packets cached comprising the unselected SDK functions of user File after the compiling of module is:Whether judge in the SDK packet module configuration informations of caching comprising the unselected SDK functions of user The title of module;Its judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling after file, be: Judge in the SDK packet module configuration informations of caching whether the title for the SDK function modules selected comprising user.
As seen from the above technical solutions, the embodiment of the present invention provides packaging method and device and the download of a kind of SDK packets Method and device in the program, is applied to packaged service device, and packaged service device receives the packing instruction that download server is sent, Corresponding behaviour is executed according to the title of each SDK function modules and the corresponding operation mark of each SDK function modules in instruction is packaged Make, obtains and be currently packaged in configuration file file after the compiling of modules, file set after compiling is generated, by the compiling of acquisition The SDK packets of caching are sent to download server, so that download server by file set as the SDK packets caching after being packaged afterwards The SDK packets are cached, pass through client downloads for user;Applied to download server, download server obtains user and passes through visitor The SDK packet download instructions that family end is sent will be packaged instruction and be sent to according to whether having the SDK packets cached to generate is packaged instruction Packaged service device receives the SDK packets caching that packaged service device is sent, and is exported to user by client.
As it can be seen that in the embodiment of the present invention, SDK function modules in base library SDK can remove each client logic, from And reduce the binary system packet of client downloads, the bandwidth resources of download are efficiently used, the time of download is reduced.Certainly, implement this Any product or method of invention must be not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of the packaging method of SDK packets provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram for the SDK function modules that a kind of user provided in an embodiment of the present invention is selected by client;
Fig. 3 is a kind of packing full dose configuration file table of map application SDK packets provided in an embodiment of the present invention;
Fig. 4 is a kind of current packing configuration file table of map application SDK packets provided in an embodiment of the present invention;
Fig. 5 is a kind of flow diagram of the method for down loading of SDK packets provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the packing apparatus of SDK packets provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of the download apparatus of SDK packets provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the packaging method and device and method for down loading and device of a kind of SDK packets, in the program, answers For packaged service device, packaged service device receives the packing instruction that download server is sent, each SDK work(in being instructed according to packing The title and the corresponding operation mark of each SDK function modules of energy module execute corresponding operating, obtain current packing configuration file File after the compiling of middle modules, generate compiling after file set, using file set after the compiling of acquisition as packing after SDK packets cache, and the SDK packets of caching are sent to download server, so that download server caches the SDK packets, it is logical for user Cross client downloads.
In the program, it is applied to download server, download server obtains user and downloaded by the SDK packets that client is sent Instruction will be packaged instruction and be sent to packaged service device, receive and be packaged according to whether having the SDK packets cached to generate is packaged instruction The SDK packets caching that server is sent, and exported to user by client.
Below by specific embodiment, the present invention is described in detail.
With reference to figure 1, Fig. 1 is a kind of flow diagram of the packaging method of SDK modular packets provided in an embodiment of the present invention, This method is applied on packaged service device, includes the following steps:
S100:Receive the packing instruction that download server is sent;
Wherein, the packing is instructed by download server according to whether having the SDK packets cached to generate, which instructs In comprising the title of each SDK function modules for needing to operate, and the corresponding operation of each SDK function modules operated is needed to mark Know;It is described to need the SDK function modules that operate to include:The SDK function modules and the SDK cached that user is selected by client SDK function modules in packet.
With reference to figure 2, Fig. 2 is the SDK function modules that a kind of user provided in an embodiment of the present invention is selected by client Schematic diagram, user select SDK function modules by the optional button of function module that client provides.Wherein, left figure is shown All modules that SDK packets are included, including SDK basic modules and SDK function modules;In show user and carried by client The optional button of function module of confession, has selected SDK function modules 1 and SDK function modules 3;Right figure shows the SDK packets to be generated The module that should include.
Assuming that the SDK packets of an existing map application, wherein containing basic module, computing function module, localization function module, LBS function modules and periphery search function module;Comprising computing function module and calmly in the SDK packets cached in download server Bit function module, user have selected localization function module and LBS function modules by client, then are packaged in instruction comprising [meter Calculate function module, delete], [localization function module, update] and [LBS function modules are added].
S101:It is marked according to the title of each SDK function modules and the corresponding operation of each SDK function modules in instruction is packaged Knowledge executes operation;
Specifically, if the corresponding operation mark of SDK function modules is to delete to identify, being deleted in the SDK packets of caching should File after the compiling of SDK function modules.For example, [computing function module is deleted] in step S100, operation mark is to delete It removes, then directly deletes file after the compiling of computing function module in the SDK packets of packaged service device caching.
In addition, if the corresponding operation mark of SDK function modules is addition mark or more new logo, according to preset packing Full dose configuration file generates current packing configuration file.
Wherein, include in the packing full dose configuration file:The title of SDK basic modules and all SDK function modules Title;For example, the SDK packets for the map application that step S100 assumes, it should includes basic module to be packaged in full dose configuration file With the SDK function modules of all map applications, such as LBS function modules, localization function module, computing function module and Zhou Bianjian Rope function module, with reference to figure 3, Fig. 3 is a kind of packing full dose configuration file of map application SDK packets provided in an embodiment of the present invention Table.Include in the current packing configuration file:The title and operation mark of SDK basic modules are addition mark or more new logo Each SDK function modules title.
It is described to generate current packing configuration file according to preset packing full dose configuration file in practical application, including: From the packing full dose configuration file, it is addition mark or update to obtain the title of SDK basic modules and each operation mark The title of the SDK function modules of mark;It is addition mark or more new logo by the title of SDK basic modules and each operation mark SDK function modules title be added to it is current be packaged in configuration file, generate and current be packaged configuration file.
Assuming that in step S100 [localization function module, update] and [LBS function modules, addition], localization function module with The operation mark of LBS function modules is respectively to update and add, then adds the title of localization function module and LBS function modules It is packaged in configuration file to current, generates current packing configuration file, with reference to figure 4, Fig. 4 is one kind provided in an embodiment of the present invention The current packing configuration file table of map application SDK packets.
S102:It obtains and is currently packaged in configuration file file after the compiling of modules, generate file set after compiling;
Wherein, file set includes after the compiling:After the compiling of SDK basic modules in current configuration file file and Operation mark is file after addition or the compiling of newer each SDK function modules.
In practical application, the acquisition is current to be packaged in configuration file file after the compiling of modules, after generating compiling File set, including:For the current each module being packaged in configuration file, if in the SDK packets of caching, the existing module File after compiling, then judge whether the code update time of the module is later than the time of last caching SDK packets, if it is, The module is compiled, file after the compiling of the module is regained, covers file after the compiling of the already present module;If In the SDK packets of caching, there is no files after the compiling of the module, then are compiled to the module, after the compiling for obtaining the module File, to generate file set after compiling.
For example, the localization function module in step S100 in map application SDK packets, is present in current packing configuration file In, and there is also files after the compiling of the function module in the SDK packets cached;It is assumed that the code update time of the function module Time for 2015-04-12, caching SDK packets is 2015-03-23, and the code update time of the function module is later than caching SDK The time of packet is then compiled the function module, regains file after the compiling of the function module, covering is already present should File after the compiling of function module;It is assumed that the time of caching SDK packets for 2015-04-19, when the code update of the function module Between be not later than time of caching SDK packets, then without the function module again;It is assumed that in the SDK packets of caching, there is no positioning work( File after the compiling of energy module, then be compiled the function module, obtain file after the compiling of the function module, is compiled with generating Translate rear file set.Wherein, the code update time of each module and the time of SDK packets caching can well cache in code update It is recorded when SDK packets.
S103:Using file set after the compiling of acquisition as the SDK packets caching after being packaged;
S104:The SDK packets of caching are sent to download server, so that download server caches the SDK packets, for user Pass through client downloads.
In practical application, which further includes:If in the SDK packets of caching, in existing current packing configuration file Each module compiling after file, and the code update time of each module be not later than the time of last caching SDK packets, It is then sent to download server and is not necessarily to more new command so that download server, will be upper when user is by client downloads SDK packets The SDK packets once cached are sent to client.
For example, user has selected localization function module and LBS function modules by client, and in the SDK packets cached There are the two function modules, and the code update time of the two function modules is 2015-04-12, caches the time of SDK packets For 2015-04-19, the code update time of function module is not later than the time of last caching SDK packets, then packaged service device It is sent to download server and is not necessarily to more new command, when user is by client downloads SDK packets, download server can will be last The SDK packets of caching are sent to client.
With reference to figure 5, Fig. 5 is a kind of flow diagram of the method for down loading of SDK packets provided in an embodiment of the present invention, this method Applied in download server, include the following steps:
S500:Obtain the SDK packet download instructions that user is sent by client;
Wherein, in the download instruction, include the title for each SDK function modules that user is selected by client.Example Such as, computing function module, localization function module, LBS function moulds are included in the SDK packets of the map application mentioned in step S100 Block and periphery search function module, user have selected localization function module and LBS function modules by client, then download instruction In just include the titles of the two SDK function modules.
S501:According to whether having the SDK packets cached to generate is packaged instruction;
When there are the SDK packets cached, whether judge in the SDK packets cached comprising the unselected SDK function moulds of user File after the compiling of block;If so, then by the SDK packets cached, the unselected SDK function modules of user are determined as needing to grasp The module of work sets the operation mark of the module to delete mark.For example, it is assumed that in download server in step S100 Include computing function module and localization function module in the SDK packets of caching, user has selected localization function module by client Computing function module, and then computing function mould are not included in the function module selected by client with LBS function modules, user The operation mark of block is to delete, that is, is packaged in instruction comprising [computing function module is deleted].
Judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling after file;If so, The SDK function modules that in the SDK packets cached, user selectes then are determined as the module for needing to operate, by the operation of the module Mark is set as more new logo;If it is not, the module that the SDK function modules that the user selectes are determined as needing to operate, Set the operation mark of the module to addition mark.Ibid, it is assumed that the SDK cached in download server in step S100 Include computing function module and localization function module in packet, user has selected localization function module and LBS functions by client Module contains localization function module in the SDK packets cached in download server, and does not include LBS function modules, then positions The operation mark of function module is update, and the operation mark of LBS function modules is addition, that is, is packaged in instruction comprising [positioning work( Energy module, update] and [LBS function modules, addition].
When the SDK packets not cached, then all SDK function modules that user selectes are determined as the mould for needing to operate Block sets the operation mark of modules to addition mark.It is assumed that there is no the SDK packets cached in download server, according to The SDK packets of map application in step S100, user have selected computing function module, localization function module, then the two functions The operation mark of module is set as addition mark, i.e. [computing function module, addition], [localization function module, addition], as beating Packet instruction is sent to server.
S502:Instruction will be packaged and be sent to packaged service device;
The purpose of this step is to make packaged service device packaging method according to figure 1 that SDK packets are sent to download service Device;
S503:The SDK packets caching that packaged service device is sent is received, and is exported to user by client.
In practical application, this method further includes:Receive and cache the SDK packets that packaged service device is sent when sending SDK packets Module configuration information;Include in the SDK packets module configuration information:The title of all SDK function modules in the SDK packets;
Wherein, it is described judge in the SDK packets that have cached whether include the compiling of the unselected SDK function modules of user hereinafter Part is:Judge whether include the titles of the unselected SDK function modules of user in the SDK packet module configuration informations of caching;
In addition, it is described judge in the SDK packets that have cached whether include the compiling for the SDK function modules that user selectes hereinafter Part is:Judge in the SDK packet module configuration informations of caching whether the title for the SDK function modules selected comprising user.
It is assumed that in step S502, packaged service device is sent to one map application SDK packets of download server, includes in the SDK Basic module, computing function module and localization function module;Download server can receive and cache this map application SDK packets, and And receive the module configuration information of current SDK packets, i.e., [computing function module, localization function module];SDK is downloaded in next user Whether Bao Shi, the module title that need to only select user are compared with module configuration information, selected comprising user in judgement caching SDK packets Fixed or unselected SDK function modules.
With reference to figure 6, Fig. 6 is a kind of structural schematic diagram of the packing apparatus of SDK packets provided in an embodiment of the present invention, the device Applied on packaged service device, including:It is file obtaining unit 602 after instruction reception unit 600, operating unit 601, compiling, slow Memory cell 603 and transmission unit 604.
Wherein, described instruction receiving unit 600, the packing instruction for receiving download server transmission;The packing refers to It enables by download server according to whether have the SDK packets cached to generate, each SDK operated comprising needs in packing instruction The title of function module, and need the corresponding operation mark of each SDK function modules operated.
The operating unit 601, for the title of each SDK function modules and each SDK functions in being instructed according to packing The corresponding operation mark of module is deleted if the corresponding operation mark of SDK function modules is to delete to identify in the SDK packets of caching Except file after the compiling of the SDK function modules;If the corresponding operation mark of SDK function modules is addition mark or more new logo, Then according to preset packing full dose configuration file, current packing configuration file is generated;Include in the packing full dose configuration file: The title of the title of SDK basic modules and all SDK function modules;Include in the current packing configuration file:The bases SDK mould The title and operation mark of block are the title of addition mark or each SDK function modules of more new logo.
File obtaining unit 602 after the compiling, for obtaining current be packaged in configuration file after the compiling of modules File generates file set after compiling;File set includes after the compiling:SDK basic modules in current configuration file File and operation mark are file after addition or the compiling of newer each SDK function modules after compiling.
The buffer unit 603, file set is as the SDK packets caching after being packaged after the compiling for that will obtain.
The SDK packets of caching are sent to download server by the transmission unit 604, so that described in download server caching SDK packets pass through client downloads for user.
Specifically, the operating unit 601 configures text when generating current packing configuration file from the packing full dose In part, it is the name for adding mark or the SDK function modules of more new logo to obtain the title of SDK basic modules and each operation mark Claim;It is that addition identifies or the title of the SDK function modules of more new logo adds by the title of SDK basic modules and each operation mark Enter to current and be packaged in configuration file, generates current packing configuration file.
File obtaining unit 602, is specifically used for after the compiling:For the current each module being packaged in configuration file, If in the SDK packets in caching, file after the compiling of the existing module then judges whether the code update time of the module is later than The time of caching SDK packets last time regains file after the compiling of the module, covers if it is, being compiled to the module Cover file after the compiling of the already present module;If there is no file after the compiling of the module, then right in the SDK packets in caching The module is compiled, and obtains file after the compiling of the module, to generate file set after compiling.
In practical application, described device further includes:Instruction sending unit.
Wherein, described instruction transmission unit, for working as in the SDK packets cached, in existing current packing configuration file File after the compiling of each module, and when the code update time of each module is not later than the time of last caching SDK packets, It is sent to download server and is not necessarily to more new command so that download server is when user is by client downloads SDK packets, by upper one The SDK packets of secondary caching are sent to client.
With reference to figure 7, Fig. 7 is a kind of structural schematic diagram of the download apparatus of SDK packets provided in an embodiment of the present invention, the device Applied in download server, including:Download instruction obtaining unit 700 is packaged instruction generation unit 701, is packaged instruction transmission Unit 702 and receiving unit 703.
Wherein, download instruction obtaining unit 700, the SDK packet download instructions sent by client for obtaining user;Institute It states in download instruction, includes the title for each SDK function modules that user is selected by client.
It is packaged instruction generation unit 701, for according to whether there is the SDK packets that have cached to generate to be packaged and instruct, including:When having When the SDK packets cached, judge in the SDK packets that have cached whether include the compiling of the unselected SDK function modules of user hereinafter Part;If so, then by the SDK packets cached, the unselected SDK function modules of user are determined as the module for needing to operate, will The operation mark of the module is set as deleting mark;Judge in the SDK packets that have cached whether to include SDK function moulds that user selectes File after the compiling of block;If so, then the SDK function modules that in the SDK packets cached, user selectes are determined as needing to operate Module, set the operation mark of the module to more new logo;If it is not, the SDK function modules that the user is selected It is determined as the module for needing to operate, sets the operation mark of the module to addition mark;When the SDK packets not cached, All SDK function modules that user selectes then are determined as the module for needing to operate, set the operation mark of modules to Addition mark.
It is packaged instruction sending unit 702, packaged service device is sent to for instruction will to be packaged, so that packaged service device will SDK packets are sent to download server;It is provided with claim 7-10 any one of them in the packaged service device and is packaged dress It sets.
Receiving unit 703, the SDK packets caching for receiving the transmission of packaged service device, and exported to user by client.
In practical application, described device further includes:Information receiving unit.
Wherein, described information receiving unit, the SDK sent for receiving and caching packaged service device when sending SDK packets Packet module configuration information;Include in the SDK packets module configuration information:The title of all SDK function modules in the SDK packets;
In addition, whether the packing instruction generation unit 701, judge unselected comprising user in the SDK packets cached SDK function modules compiling after file, be:Judge whether unselected comprising user in the SDK packet module configuration informations of caching SDK function modules title;Its judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling File afterwards is:Judge in the SDK packet module configuration informations of caching whether the title for the SDK function modules selected comprising user.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer 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 description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of packaging method of SDK packets, which is characterized in that it is applied to packaged service device, the method includes the steps:
Receive the packing instruction that download server is sent;It is described to be packaged instruction and cached according to whether having by download server Each of SDK packets generate, and the title for each SDK function modules for needing to operate is included in packing instruction, and need to operate The corresponding operation mark of SDK function modules;It is described to need the SDK function modules that operate to include:User is selected by client SDK function modules in SDK function modules and the SDK packets cached;
Phase is executed according to the title of each SDK function modules and the corresponding operation mark of each SDK function modules in instruction is packaged It should operate, including:
If the corresponding operation mark of SDK function modules is to delete to identify, the SDK function modules are deleted in the SDK packets of caching Compiling after file;
If the corresponding operation mark of SDK function modules is addition mark or more new logo, configured according to preset packing full dose File generates current packing configuration file;Include in the packing full dose configuration file:The title of SDK basic modules and all The title of SDK function modules;Include in the current packing configuration file:The title and operation mark of SDK basic modules are to add Mark-on knows or the title of each SDK function modules of more new logo;
It obtains and is currently packaged in configuration file file after the compiling of modules, generate file set after compiling;After the compiling File set includes:File and operation mark are addition or newer after the compiling of SDK basic modules in current configuration file File after the compiling of each SDK function modules;
Using file set after the compiling of acquisition as the SDK packets caching after being packaged;
SDK packets after the packing are sent to download server, so that download server caches the SDK packets after the packing, Pass through client downloads for user.
2. packaging method according to claim 1, which is characterized in that it is described according to preset packing full dose configuration file, Current packing configuration file is generated, including:
From the packing full dose configuration file, obtain SDK basic modules title and each operation mark be addition mark or The title of the SDK function modules of more new logo;It is addition mark or update by the title of SDK basic modules and each operation mark The title of the SDK function modules of mark is added in current packing configuration file, generates current packing configuration file.
3. packaging method according to claim 1, which is characterized in that the acquisition is current to be packaged each mould in configuration file File after the compiling of block generates file set after compiling, including:
For the current each module being packaged in configuration file, if in the SDK packets of caching, the compiling of the existing module is hereinafter Part, then judge whether the code update time of the module is later than the time of last caching SDK packets, if it is, to the module It is compiled, regains file after the compiling of the module, cover file after the compiling of the already present module;If caching In SDK packets, there is no files after the compiling of the module, then are compiled to the module, obtain file after the compiling of the module, with Generate file set after compiling.
4. packaging method according to claim 3, which is characterized in that the method further includes:If in the SDK packets of caching, File after the compiling of the existing current each module being packaged in configuration file, and the code update time of each module is not late In the time of last caching SDK packets, is then sent to download server and be not necessarily to more new command so that download server is logical in user When crossing client downloads SDK packets, by the last time, the SDK packets of caching are sent to client.
5. a kind of method for down loading of SDK packets, which is characterized in that it is applied to download server, the method includes the steps:
Obtain the SDK packet download instructions that user is sent by client;In the download instruction, including user is selected by client The title of fixed each SDK function modules;
According to whether having the SDK packets cached to generate is packaged instruction, including:
When there are the SDK packets cached, judge in the SDK packets cached whether to include the unselected SDK function modules of user File after compiling;If so, then by the SDK packets cached, the unselected SDK function modules of user are determined as what needs operated Module sets the operation mark of the module to delete mark;
Judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling after file;If so, then will In the SDK packets cached, the SDK function modules that user selectes are determined as the module for needing to operate, by the operation mark of the module It is set as more new logo;If it is not, the module that the SDK function modules that the user selectes are determined as needing to operate, by this The operation mark of module is set as addition mark;
When the SDK packets not cached, then all SDK function modules that user selectes are determined as the module for needing to operate, Set the operation mark of modules to addition mark;
Instruction will be packaged and be sent to packaged service device, so that packaged service device is according to claim 1-4 any one of them methods SDK packets are sent to download server;
The SDK packets caching that packaged service device is sent is received, and is exported to user by client.
6. method for down loading according to claim 5, which is characterized in that the method further includes:It receives and caches packing clothes The SDK packet module configuration informations that business device is sent when sending SDK packets;Include in the SDK packets module configuration information:The SDK packets In all SDK function modules title;
It is described judge in the SDK packets that have cached whether include the unselected SDK function modules of user compiling after file, be:Sentence Whether the title of user unselected SDK function module is included in the SDK packet module configuration informations of disconnected caching;
It is described judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling after file, be:Judge In the SDK packet module configuration informations of caching whether the title for the SDK function modules selected comprising user.
7. a kind of packing apparatus of SDK packets, which is characterized in that be applied to packaged service device, described device includes:
Instruction reception unit, the packing instruction for receiving download server transmission;The packing instruction is by download server root According to whether there are the SDK packets cached to generate, the title for each SDK function modules for needing to operate is included in packing instruction, Operation mark corresponding with each SDK function modules for needing to operate;
Operating unit, for the title of each SDK function modules and the corresponding behaviour of each SDK function modules in being instructed according to packing It makes a check mark, if the corresponding operation mark of SDK function modules is to delete to identify, the SDK function moulds is deleted in the SDK packets of caching File after the compiling of block;If the corresponding operation mark of SDK function modules is addition mark or more new logo, beaten according to preset Packet full dose configuration file generates current packing configuration file;Include in the packing full dose configuration file:SDK basic modules The title of title and all SDK function modules;Include in the current packing configuration file:The title of SDK basic modules and behaviour The title of each SDK function modules to make a check mark as addition mark or more new logo;
File obtaining unit after compiling, for obtaining, file, generation are compiled after the compiling of modules in current packing configuration file Translate rear file set;File set includes after the compiling:After the compiling of SDK basic modules in current configuration file file and Operation mark is file after addition or the compiling of newer each SDK function modules;
Buffer unit, file set is as the SDK packets caching after being packaged after the compiling for that will obtain;
SDK packets after the packing are sent to download server by transmission unit, so that after download server caches the packing SDK packets, pass through client downloads for user.
8. packing apparatus according to claim 7, which is characterized in that the operating unit is configured generating current be packaged When file, from the packing full dose configuration file, it is that addition identifies to obtain the title of SDK basic modules and each operation mark Or the title of the SDK function modules of more new logo;By the title of SDK basic modules and each operation mark for addition mark or more The title of the SDK function modules of new logo is added in current packing configuration file, generates current packing configuration file.
9. packing apparatus according to claim 7, which is characterized in that file obtaining unit after the compiling is specifically used for: For the current each module being packaged in configuration file, if in SDK packets in caching, file after the compiling of the existing module, Then judge whether the code update time of the module is later than the time of last caching SDK packets, if it is, being carried out to the module Compiling regains file after the compiling of the module, covers file after the compiling of the already present module;If the SDK in caching Bao Zhong, there is no files after the compiling of the module, then are compiled to the module, file after the compiling of the module are obtained, with life At file set after compiling.
10. packing apparatus according to claim 9, which is characterized in that described device further includes:Instruction sending unit;
Described instruction transmission unit, for working as in the SDK packets cached, the existing current each module being packaged in configuration file File after compiling, and when the code update time of each module is not later than the time of last caching SDK packets, to download service Device, which is sent, is not necessarily to more new command so that download server is when user is by client downloads SDK packets, by last time caching SDK packets are sent to client.
11. a kind of download apparatus of SDK packets, which is characterized in that be applied to download server, described device includes:
Download instruction obtaining unit, the SDK packet download instructions sent by client for obtaining user;The download instruction In, include the title for each SDK function modules that user is selected by client;
It is packaged instruction generation unit, for according to whether there is the SDK packets that have cached to generate to be packaged and instruct, including:It has been cached when having SDK packets when, judge in the SDK packets that have cached whether include the unselected SDK function modules of user compiling after file;If Have, then by the SDK packets cached, the unselected SDK function modules of user are determined as the module for needing to operate, by the module Operation mark is set as deleting mark;Judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling File afterwards;If so, the SDK function modules that in the SDK packets cached, user selectes then are determined as the module for needing to operate, Set the operation mark of the module to more new logo;If it is not, the SDK function modules that the user selectes are determined as needing The module to be operated sets the operation mark of the module to addition mark;When the SDK packets not cached, then by user Selected all SDK function modules are determined as the module for needing to operate, and set the operation mark of modules to addition mark;
It is packaged instruction sending unit, packaged service device is sent to for instruction will to be packaged, so that packaged service device sends SDK packets To download server;Claim 7-10 any one of them packing apparatus is provided in the packaged service device;
Receiving unit, the SDK packets caching for receiving the transmission of packaged service device, and exported to user by client.
12. download apparatus according to claim 11, which is characterized in that described device further includes:Information receiving unit;
Described information receiving unit, the SDK packet modules configuration sent for receiving and caching packaged service device when sending SDK packets Information;Include in the SDK packets module configuration information:The title of all SDK function modules in the SDK packets;
Whether the packing instruction generation unit judges in the SDK packets cached comprising the unselected SDK function modules of user Compiling after file, be:Whether judge in the SDK packet module configuration informations of caching comprising the unselected SDK function modules of user Title;Its judge in the SDK packets that have cached whether include the SDK function modules that user selectes compiling after file, be:Judge In the SDK packet module configuration informations of caching whether the title for the SDK function modules selected comprising user.
CN201510543387.XA 2015-08-28 2015-08-28 The packaging method and device and method for down loading and device of a kind of SDK packets Active CN105049532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510543387.XA CN105049532B (en) 2015-08-28 2015-08-28 The packaging method and device and method for down loading and device of a kind of SDK packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510543387.XA CN105049532B (en) 2015-08-28 2015-08-28 The packaging method and device and method for down loading and device of a kind of SDK packets

Publications (2)

Publication Number Publication Date
CN105049532A CN105049532A (en) 2015-11-11
CN105049532B true CN105049532B (en) 2018-07-13

Family

ID=54455735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510543387.XA Active CN105049532B (en) 2015-08-28 2015-08-28 The packaging method and device and method for down loading and device of a kind of SDK packets

Country Status (1)

Country Link
CN (1) CN105049532B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468412B (en) * 2015-11-26 2020-09-08 金蝶软件(中国)有限公司 Dynamic packaging method and device
CN106843857B (en) * 2016-12-30 2021-02-02 北京五八信息技术有限公司 Method and device for realizing SDK (software development kit) conversion of code base based on SRP (sequence-related protocol)
CN107066291A (en) * 2017-02-09 2017-08-18 阿里巴巴集团控股有限公司 Packaging method, device and the equipment of SDK, computer-readable recording medium
CN107133043A (en) * 2017-05-04 2017-09-05 山东浪潮云服务信息科技有限公司 Web project packaging method and device based on domestic CPU and operating system
CN107357718A (en) * 2017-06-12 2017-11-17 百富计算机技术(深圳)有限公司 One kind structure method of testing and device
CN107678750A (en) * 2017-10-27 2018-02-09 北京腾云天下科技有限公司 A kind of SDK packaging methods, computing device and SDK packaging systems
CN107704238B (en) * 2017-11-28 2021-06-15 广州市千钧网络科技有限公司 Method and device for packaging items
CN108647033B (en) * 2018-04-03 2021-06-29 四川新网银行股份有限公司 SDK automatic packaging method for open platform
CN110688095B (en) * 2018-07-04 2023-08-25 深圳市科比特航空科技有限公司 Method and device for constructing unmanned aerial vehicle SDK development platform
CN109840109B (en) * 2019-02-02 2022-04-19 北京字节跳动网络技术有限公司 Method and apparatus for generating software development toolkit
CN109819042A (en) * 2019-02-02 2019-05-28 北京字节跳动网络技术有限公司 For providing the method and apparatus of Software Development Kit
CN111240657A (en) * 2020-01-17 2020-06-05 北京字节跳动网络技术有限公司 Method and device for generating SDK and electronic equipment
CN111722851A (en) * 2020-04-22 2020-09-29 深圳市伟文无线通讯技术有限公司 Device and method for supporting multi-cloud platform connection based on single chip microcomputer
CN112114871B (en) * 2020-09-28 2023-09-05 北京奇艺世纪科技有限公司 Code sharing method, device, server, terminal and medium
CN112965697B (en) * 2021-03-25 2023-07-25 北京奇艺世纪科技有限公司 Code file generation method and device and electronic equipment
CN113326038B (en) * 2021-06-11 2023-11-10 北京百度网讯科技有限公司 Method, apparatus, device, storage medium and program product for providing service
CN113434192B (en) * 2021-08-26 2021-12-07 广州易方信息科技股份有限公司 SDK platform-based packaging method and device and computer equipment
CN113934460A (en) * 2021-10-12 2022-01-14 郑州阿帕斯数云信息科技有限公司 Resource providing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102803900A (en) * 2010-03-23 2012-11-28 爱信艾达株式会社 Map update data supply device and map update data supply program
CN103701930A (en) * 2014-01-07 2014-04-02 浙江大学 Mobile application program real-time updating method and system
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
WO2014183447A1 (en) * 2013-05-14 2014-11-20 Tencent Technology (Shenzhen) Company Limited Method, system and sever for downloading installation package
CN104615453A (en) * 2014-09-26 2015-05-13 腾讯科技(深圳)有限公司 Map data processing method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102803900A (en) * 2010-03-23 2012-11-28 爱信艾达株式会社 Map update data supply device and map update data supply program
WO2014183447A1 (en) * 2013-05-14 2014-11-20 Tencent Technology (Shenzhen) Company Limited Method, system and sever for downloading installation package
CN103701930A (en) * 2014-01-07 2014-04-02 浙江大学 Mobile application program real-time updating method and system
CN103955363A (en) * 2014-04-08 2014-07-30 国云科技股份有限公司 Manufacturing method of program upgrade and installation package
CN104615453A (en) * 2014-09-26 2015-05-13 腾讯科技(深圳)有限公司 Map data processing method, device and system

Also Published As

Publication number Publication date
CN105049532A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105049532B (en) The packaging method and device and method for down loading and device of a kind of SDK packets
Mastorakis et al. On the evolution of ndnSIM: An open-source simulator for NDN experimentation
CN105389191B (en) A kind of method for upgrading software based on LAN, device and system
CN109428749A (en) Network management and relevant device
CN104407856B (en) Software tool develops the packaging method and device of APMB package
CN109391649A (en) The methods, devices and systems of page load
CN105516154B (en) Security policy configuration method and device applied to SEAndroid system
CN106843953A (en) Application program transverse direction switching system and method based on iOS system
CN107741844A (en) The generation method and device of a kind of application installation package
CN108376073A (en) A kind of test software packet generation method and terminal
CN108415821A (en) The generation method and device of test report
CN105075191B (en) Wireless network data processing unit and Radio Network System
CN109076448A (en) For selecting network to be sliced and the method and apparatus of service
US20200228448A1 (en) Packet processing method and apparatus
CN106326099B (en) A kind of method, apparatus and electronic equipment for program tracking
CN104348734B (en) It is long-range to update routing table
CN114553752A (en) Network performance testing method and device based on simulation software and computer equipment
CN109828840A (en) Resource method of combination, device, storage medium and electronic equipment
CN114302259A (en) User information collection method, device, equipment and computer readable storage medium
CN109617950A (en) A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN103746828A (en) Method and device for network node management
Luque-Schempp et al. Automadapt: Zero touch configuration of 5g qos flows extended for time-sensitive networking
CN104737505A (en) Routing method based on cache and route node
KR20100058186A (en) Apparatus, system and method for base station type control
CN108259199A (en) A kind of automation command generating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant