CN106951240A - A kind of batch packaging method of user's customed product - Google Patents

A kind of batch packaging method of user's customed product Download PDF

Info

Publication number
CN106951240A
CN106951240A CN201710142034.8A CN201710142034A CN106951240A CN 106951240 A CN106951240 A CN 106951240A CN 201710142034 A CN201710142034 A CN 201710142034A CN 106951240 A CN106951240 A CN 106951240A
Authority
CN
China
Prior art keywords
user
product
customed
customed product
batch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710142034.8A
Other languages
Chinese (zh)
Other versions
CN106951240B (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.)
SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI HANYIN INFORMATION 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 SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI HANYIN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201710142034.8A priority Critical patent/CN106951240B/en
Publication of CN106951240A publication Critical patent/CN106951240A/en
Application granted granted Critical
Publication of CN106951240B publication Critical patent/CN106951240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/22Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0621Item configuration or customization

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of batch packaging method of user's customed product, belong to technical field of software development;Method includes:Step S1, forming one is used to perform the logic unit that the Lower level logical of user's customed product is operated;Step S2, forms a display unit for being used to show the product element of user's customed product;Step S3, the corresponding relation formed between logic unit and display unit;Step S4, arranges the configuration information of user's customed product, includes the configuration file of different user's customed products to be formed;All user's customed products in same batch are carried out batch packaging operation, to form the product installation file for being associated with each user's customed product respectively by step S5 according to configuration file.The beneficial effect of above-mentioned technical proposal is:The manpower and materials cost in user's customed product packing process can be reduced, the packing time is reduced, lifting packing efficiency.

Description

A kind of batch packaging method of user's customed product
Technical field
The present invention relates to technical field of software development, more particularly to a kind of batch packaging method of user's customed product.
Background technology
So-called user's customed product, such as original equipment manufacturer (Original Equipment Manufacturer, OEM software product that is) manufacturing and being sold to third-party agent business etc., it, which has, to change product performance according to different clients The characteristics of.
Just because of user's customed product has These characteristics, cause different third-party agent business private customized for it Demand is very more and extremely complex, believes such as wishing the icon of private customized company, telephone number, the publicity website of company Breath, the OEM bags that this results in user's customed product are more and more, and modification every time is required for the different codes of duplication new to constitute OEM bags, are not easy to management very much.Also, after edition upgrading, all progresses of work are required for just giving me change, reduction It is also easy to mistake occur while treatment effeciency.
To sum up, need to put into substantial amounts of man power and material in the exploitation of existing user's customed product and processing procedure, It can take a substantial amount of time, and can not ensure to test effect, this brings many control unknown risks to software development process.
The content of the invention
According to the above-mentioned problems in the prior art, a kind of skill of the batch packaging method of user's customed product is now provided Art scheme, it is intended to reduce the manpower and materials cost in user's customed product packing process, reduces the packing time, lifting packing effect Rate.
Above-mentioned technical proposal is specifically included:
A kind of batch packaging method of user's customed product, it is adaptable to Android system;Wherein, each user's customization production Product have multiple different configuration informations;
Include for the batch packaging method of all user's customed products in same batch:
Step S1, forming one is used to perform the logic unit that the Lower level logical of user's customed product is operated;
Step S2, forms a display unit for being used to show the product element of user's customed product;
Step S3, the corresponding relation formed between the logic unit and the display unit;
Step S4, arranges the configuration information of user's customed product, and including the different users with formation determines The configuration file of product processed;
All user's customed products in same batch are carried out batch according to the configuration file and beaten by step S5 Package operation, to form the product installation file for being associated with each user's customed product respectively;
Each product installation file is included in the display unit corresponding to the described of user's customed product The code text operated in configuration file, and the logic unit corresponding to the Lower level logical of user's customed product Part.
It is preferred that, the batch packaging method, wherein, the configuration information includes:
The icon information of user's customed product;And/or
The heading message of user's customed product;And/or
The signing messages of user's customed product;And/or
The corresponding agent's home tip of user's customed product.
It is preferred that, the batch packaging method, wherein, the Lower level logical operation that the logic unit is performed includes performing The service code of user's customed product, and perform the data protocol interactive operation of user's customed product.
It is preferred that, the batch packaging method, wherein, in the step S3, the logic unit and the display unit it Between the corresponding relation include:
The display unit works dependent on the logic unit.
It is preferred that, the batch packaging method, wherein, in the display unit, for each user's customed product shape The product documentation folder answered in a pair, the product documentation folder includes all configurations of corresponding user's customed product Information;
In the step S5, the process that user's customed product is packed is specifically included:
Step S51, increases by a definable subdirectory respectively for each user's customed product;
Step S52, source collection node is increased for each user's customed product respectively, each source collection node difference Point to the storage location of the corresponding product documentation folder under the source code directory of user's customed product;
Step S53, corresponding default configuration attribute is respectively modified for each user's customed product;
All user's customed products in same batch are carried out batch packaging operation, with shape respectively by step S54 Into the product installation file for being associated with each user's customed product.
It is preferred that, the batch packaging method, wherein, in the step S5, by changing Gradle configuration scripts to described User's customed product carries out batch packing.
It is preferred that, the batch packaging method, wherein, in the step S5, by changing Gradle configuration scripts to described User's customed product carries out batch packing;
In the step S51, the definable subdirectory is the productFlavors in the Gradle configuration scripts Node.
It is preferred that, the batch packaging method, wherein, in the step S5, by changing Gradle configuration scripts to described User's customed product carries out batch packing;
In the step S52:
The source collection node is the sourceSets nodes in the Gradle configuration scripts.
It is preferred that, the batch packaging method, wherein, in the step S5, by changing Gradle configuration scripts to described User's customed product carries out batch packing;
In the step S53, the default configuration attribute is the defaultConfig category in the Gradle configuration scripts Property.
The beneficial effect of above-mentioned technical proposal is:A kind of batch packaging method of user's customed product is provided, can be reduced Manpower and materials cost in user's customed product packing process, reduces the packing time, lifting packing efficiency.
Brief description of the drawings
Fig. 1 be the present invention preferred embodiment in, a kind of overall procedure of the batch packaging method of user's customed product Schematic diagram;
Fig. 2 be the present invention preferred embodiment in, on the basis of Fig. 1, the tool packed to user's customed product Body schematic flow sheet.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually combination.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
In the preferred embodiment of the present invention, based on the above-mentioned problems in the prior art, a kind of user is now provided and determined The batch packaging method of product processed, this method is applied to Android (Android) system.Specifically, each user's customed product tool There are multiple different configuration informations (configuration information can hereinafter be described in detail).
Then in above-mentioned batch packaging method, have for the batch packaging method of all user's customed products of same batch Body as shown in figure 1, including:
Step S1, forming one is used to perform the logic unit that the Lower level logical of user's customed product is operated;
Step S2, forms a display unit for being used to show the product element of user's customed product;
Step S3, the corresponding relation formed between logic unit and display unit;
Step S4, arranges the configuration information of user's customed product, includes the configuration of different user's customed products to be formed File;
All user's customed products in same batch are carried out batch packaging operation by step S5 according to configuration file, To form the product installation file for being associated with each user's customed product respectively;
Each product installation file includes corresponding to the configuration file of user's customed product, and logic in display unit The code file operated in unit corresponding to the Lower level logical of user's customed product.
Specifically, in the present embodiment, above-mentioned user's customed product is OEM products, therefore hereinafter replaced using OEM products In generation " user's customed product ", is described.
In the present embodiment, the logic unit formed in above-mentioned steps S1 is the logical layer of OEM products applications, the logical layer Work in terms of main responsible service code and data protocol interaction.
In the present embodiment, the display unit formed in above-mentioned steps S2 is the presentation layer of OEM products applications, the presentation layer The main work for being responsible for showing each OEM product.
Therefore, in the present embodiment, above-mentioned steps S1 and step S2 it is actual be using by the way of point storehouse, will be entirely using division Into logical layer and presentation layer two major parts.
In the present embodiment, the above " logic unit " and " display unit " is exploitation and forms OEM products The correlation unit of development and application.In other words, development and application point city logical layer and the presentation layer two major parts of OEM products will be developed.
Further, the mode for logic unit being formed in above-mentioned steps S1 is to extract the logic layer identification code in application.
Correspondingly, the mode for display unit being formed in above-mentioned steps S2 is to extract the displaying layer identification code in application.
In the present embodiment, in above-mentioned steps S3, the corresponding relation between above-mentioned logic unit and display unit is specially:Patrol Volume unit as display unit be relied on unit (i.e. logic unit as display unit dependence storehouse).
That is in above-mentioned steps S1, the respective code for extracting logical layer simultaneously forms an independent logic unit, and by logic Unit relies on storehouse as core;Correspondingly, in above-mentioned steps S2, extract UI layers of respective code and form an independent displaying Unit, and the Library of service code as the display unit of above-mentioned logical layer is included, that is, set up logic unit and displaying is single The dependence of member.
In the present embodiment, in above-mentioned steps S4, according to above-mentioned separated logic unit and display unit, to same All OEM products of batch carry out the arrangement of configuration information, include all OEM products of the same batch to be formed and match somebody with somebody Put file.The configuration file is in the mode that the storage of display unit and exhibition method are tree-like file.In the tree-like file, Root is the product resource of different OEM products, and the different subdirectories under root represent each of the OEM products respectively Configuration information.
In the present embodiment, final application makees the file of each OEM products according to the above-mentioned configuration file formed Packed successively for an independent storehouse, corresponding product peace will be formed respectively with the batch packing of a batch of OEM products File is filled, the product installation file includes corresponding to the configuration file of user's customed product, and logic list in display unit The code file operated in member corresponding to the Lower level logical of user's customed product.
In the present embodiment, above-mentioned steps S1-S5 can repeat, to be criticized respectively to the OEM products of different batches Measure packaging operation.
At least one hereinafter can be included in the preferred embodiment of the present invention, in above-mentioned configuration information:
The icon information (logo information) of user's customed product;
The heading message of user's customed product;
The signing messages of user's customed product;And
The corresponding agent's home tip of user's customed product.
Then in preferred embodiment of the invention, in above-mentioned tree-like file, the different subdirectory difference under root Represent one kind in above-mentioned configuration information.
In the preferred embodiment of the present invention, in above-mentioned display unit, for each user's customed product one correspondence of formation Product documentation folder, product documentation folder include all configuration informations of corresponding user's customed product;
Then in above-mentioned steps S5, the process packed to user's customed product is specific as shown in Figure 2, including:
Step S51, increases by a definable child node respectively for each user's customed product;
Step S52, source collection node is increased for each user's customed product respectively, and each source collection node is respectively directed to user The storage location of corresponding product documentation folder under the source code directory of customed product;
Step S53, corresponding default configuration attribute is respectively modified for each user's customed product;
All user's customed products in same batch are carried out batch packaging operation, to form pass respectively by step S54 It is coupled to the product installation file of each user's customed product.
In the preferred embodiment of the present invention, carrying out packing to above-mentioned OEM products can be by changing in android system Gradle configuration scripts realize, i.e., by changing Gradle configuration scripts by the file of each OEM products as one Independent storehouse carries out packaging operation.
Specifically, in above-mentioned steps S51, under above-mentioned definable child node is android system In productFlavors nodes, i.e. above-mentioned steps S51, corresponding one is increased respectively for each OEM products ProductFlavors nodes, have several OEM to be increased by several child nodes.
In above-mentioned steps S52, above-mentioned source collection node is the sourceSets nodes under android system, for each The sourceSets nodes of OEM files are respectively directed to the storage position of the file under the corresponding source codes of the OEM (SRC) catalogue Put.
In above-mentioned steps S53, above-mentioned default configuration attribute is the defaultConfig attributes under android system.On If stating in each OEM files has identical attribute, it can unify to be configured herein.
In above-mentioned steps S54, batch packaging operation is performed eventually through Gradle orders.Specifically, instruction issues control Gradlew assembleRelease are packed to all Release bags, it would however also be possible to employ Gradle is instructed to specified OEM is packed.
It is relatively only to be formed by the way that the code point storehouse of logical layer and presentation layer module is taken apart in technical solution of the present invention Vertical logic unit and display unit with dependence again, then during newly-increased every time or modification OEM bags, it is only necessary to increase or Modification configuration node simultaneously changes the configuration file picture under corresponding node catalogue.Core when batch is packed is being carried out to OEM The code for relying on storehouse only needs to compiling once, therefore improves packing speed, and causes the exploitation division of labor more clearly, and version management is more It is convenient.
Preferred embodiments of the present invention are the foregoing is only, embodiments of the present invention and protection model is not thereby limited Enclose, to those skilled in the art, should can appreciate that made by all utilization description of the invention and diagramatic content Scheme obtained by equivalent and obvious change, should be included in protection scope of the present invention.

Claims (9)

1. a kind of batch packaging method of user's customed product, it is adaptable to Android system;Characterized in that, each user determines Product processed has multiple different configuration informations;
Include for the batch packaging method of all user's customed products in same batch:
Step S1, forming one is used to perform the logic unit that the Lower level logical of user's customed product is operated;
Step S2, forms a display unit for being used to show the product element of user's customed product;
Step S3, the corresponding relation formed between the logic unit and the display unit;
Step S4, arranges the configuration information of user's customed product, includes different users customization productions to be formed The configuration file of product;
All user's customed products in same batch are carried out batch packing according to the configuration file and grasped by step S5 Make, to form the product installation file for being associated with each user's customed product respectively;
Each product installation file includes corresponding to the configuration of user's customed product in the display unit The code file operated in file, and the logic unit corresponding to the Lower level logical of user's customed product.
2. batch packaging method as claimed in claim 1, it is characterised in that the configuration information includes:
The icon information of user's customed product;And/or
The heading message of user's customed product;And/or
The signing messages of user's customed product;And/or
The corresponding agent's home tip of user's customed product.
3. batch packaging method as claimed in claim 1, it is characterised in that the Lower level logical that the logic unit is performed Operation includes performing the service code of user's customed product, and performs the data protocol interaction of user's customed product Operation.
4. batch packaging method as claimed in claim 1, it is characterised in that in the step S3, the logic unit and institute The corresponding relation stated between display unit includes:
The display unit works dependent on the logic unit.
5. batch packaging method as claimed in claim 1, it is characterised in that in the display unit, for each use The corresponding product documentation folder of family customed product formation one, the product documentation folder includes corresponding user's customed product All configuration informations;
In the step S5, the process that user's customed product is packed is specifically included:
Step S51, increases by a definable child node respectively for each user's customed product;
Step S52, source collection node is increased for each user's customed product respectively, and each source collection node is respectively directed to The storage location of the corresponding product documentation folder under the source code directory of user's customed product;
Step S53, corresponding default configuration attribute is respectively modified for each user's customed product;
All user's customed products in same batch are carried out batch packaging operation, to form pass respectively by step S54 It is coupled to the product installation file of each user's customed product.
6. batch packaging method as claimed in claim 1, it is characterised in that in the step S5, matched somebody with somebody by changing Gradle Put script and batch packing is carried out to user's customed product.
7. batch packaging method as claimed in claim 5, it is characterised in that in the step S5, matched somebody with somebody by changing Gradle Put script and batch packing is carried out to user's customed product;
In the step S51, the definable child node is the productFlavors nodes in the Gradle configuration scripts.
8. batch packaging method as claimed in claim 5, it is characterised in that in the step S5, matched somebody with somebody by changing Gradle Put script and batch packing is carried out to user's customed product;
In the step S52:
The source collection node is the sourceSets nodes in the Gradle configuration scripts.
9. batch packaging method as claimed in claim 5, it is characterised in that in the step S5, matched somebody with somebody by changing Gradle Put script and batch packing is carried out to user's customed product;
In the step S53, the default configuration attribute is the defaultConfig attributes in the Gradle configuration scripts.
CN201710142034.8A 2017-03-10 2017-03-10 Batch packaging method for user customized products Active CN106951240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710142034.8A CN106951240B (en) 2017-03-10 2017-03-10 Batch packaging method for user customized products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710142034.8A CN106951240B (en) 2017-03-10 2017-03-10 Batch packaging method for user customized products

Publications (2)

Publication Number Publication Date
CN106951240A true CN106951240A (en) 2017-07-14
CN106951240B CN106951240B (en) 2020-06-05

Family

ID=59467869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710142034.8A Active CN106951240B (en) 2017-03-10 2017-03-10 Batch packaging method for user customized products

Country Status (1)

Country Link
CN (1) CN106951240B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678750A (en) * 2017-10-27 2018-02-09 北京腾云天下科技有限公司 A kind of SDK packaging methods, computing device and SDK packaging systems
CN110134381A (en) * 2019-04-02 2019-08-16 珠海安居宝电子科技有限公司 A kind of system and method intelligently generating source code configuration for alarm host machine
CN116991426A (en) * 2023-09-26 2023-11-03 杭州实在智能科技有限公司 Automatic editing method and system for general preprocessing command for packaging OEM version software

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593183A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Construction method for system compatible with mainline version and OEM versions
CN104484430A (en) * 2014-12-18 2015-04-01 北京奥普维尔科技有限公司 OEM (Original Equipment Manufacture) information customization method and system
CN105373390A (en) * 2015-12-03 2016-03-02 北京小鸟科技发展有限责任公司 OEM-oriented online software customization packaging release method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593183A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Construction method for system compatible with mainline version and OEM versions
CN104484430A (en) * 2014-12-18 2015-04-01 北京奥普维尔科技有限公司 OEM (Original Equipment Manufacture) information customization method and system
CN105373390A (en) * 2015-12-03 2016-03-02 北京小鸟科技发展有限责任公司 OEM-oriented online software customization packaging release method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678750A (en) * 2017-10-27 2018-02-09 北京腾云天下科技有限公司 A kind of SDK packaging methods, computing device and SDK packaging systems
CN110134381A (en) * 2019-04-02 2019-08-16 珠海安居宝电子科技有限公司 A kind of system and method intelligently generating source code configuration for alarm host machine
CN116991426A (en) * 2023-09-26 2023-11-03 杭州实在智能科技有限公司 Automatic editing method and system for general preprocessing command for packaging OEM version software

Also Published As

Publication number Publication date
CN106951240B (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN104636139B (en) One kind visualizes cross-platform mobile application exploitation and generation system
CN111666526B (en) Page generation method, device, equipment and storage medium
CN104573066B (en) Page multiplexing method and device
CN103970737B (en) A kind of data configuration method and apparatus
CN108170740A (en) Data migration method, system and computer readable storage medium
US20170091317A1 (en) Location correlation between query script and data flow
CN111428177A (en) Method and system for WEB content generation
CN104572035B (en) The dynamic creation method and dynamic generating system of web page code
CN101510207B (en) Tree menu dynamic maintenance method and apparatus based on web page
US8782597B2 (en) Ontology updating apparatus, method and system
CN103559040A (en) System and method based on SDK for rapidly building mobile internet application module
CN108388445A (en) One kind being based on the continuous integrating method of " platform+application " pattern
CN106951240A (en) A kind of batch packaging method of user's customed product
CN106412015A (en) Data publishing method, equipment and system
CN104823158A (en) Method and system for simplified knowledge engineering
CN111198852A (en) Knowledge graph driven metadata relation reasoning method under micro-service architecture
CN107346239A (en) A kind of applicating and exploitation based on APP
US20150286720A1 (en) Methods and systems for collecting, managing, and sharing data
CN103020318A (en) Method for maintenance of database tables in database
CN104166701A (en) Machine learning method and system
CN115495069A (en) Model-driven coal industry software flow implementation method, device and equipment
CN103425490B (en) Based on the management method running object data in crm system
CN106708479B (en) A kind of page rendering method and device
CN104166545A (en) Webpage resource sniffing method and device
CN101794240B (en) Method and system for aggregating data content

Legal Events

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