CN107577491A - The method of version updating, system in a kind of Mobile solution based on Weex - Google Patents

The method of version updating, system in a kind of Mobile solution based on Weex Download PDF

Info

Publication number
CN107577491A
CN107577491A CN201710677018.9A CN201710677018A CN107577491A CN 107577491 A CN107577491 A CN 107577491A CN 201710677018 A CN201710677018 A CN 201710677018A CN 107577491 A CN107577491 A CN 107577491A
Authority
CN
China
Prior art keywords
weex
bag
renewal
version
renewals
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
CN201710677018.9A
Other languages
Chinese (zh)
Other versions
CN107577491B (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.)
Fun Interactive (beijing) Technology Co Ltd
Original Assignee
Fun Interactive (beijing) 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 Fun Interactive (beijing) Technology Co Ltd filed Critical Fun Interactive (beijing) Technology Co Ltd
Priority to CN201710677018.9A priority Critical patent/CN107577491B/en
Publication of CN107577491A publication Critical patent/CN107577491A/en
Application granted granted Critical
Publication of CN107577491B publication Critical patent/CN107577491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses method, the system of version updating in a kind of Mobile solution based on Weex, method specifically comprises the following steps:Weex renewal bags are generated in Weex code libraries, according to Weex renewals bag described in the rules of arrangement layout of setting in Weex renewal bags warehouse, the Weex renewals bag is updated by API server.A set of Weex page scripts and resource file version issue, renewal, the rule loaded are defined in the present invention and certain extension is done to Weex SDK page load logics to meet above-mentioned regular needs, so as to realize the purpose of whole updating weex scripts and resource in reliable, efficient application.In addition, the present invention relies on Weex cross-platform characteristic, its renewal also possesses platform autonomous behavior, reduces compatibility issue probability of happening and applies shop restocking risk.

Description

The method of version updating, system in a kind of Mobile solution based on Weex
Technical field
The present invention relates to computer software fields, script field, more particularly to a kind of Mobile solution based on Weex Method, the system of interior version updating.
Background technology
Weex is a cross-platform page rendering solution increased income.Its principle is compiled by templating JavaScript The page rendering rule by the Weex platform independences defined is write, the JavaScript scripts text of standard is compiled as by webpack Part and being embedded into is integrated with Weex SDK Mobile solution.Performed when being run in Mobile solution by JavaScript The primary control that JavaScript script dynamic generations correspond to mobile platform is experienced so as to realize with native applications same subscriber. Weex can perfection take into account performance and dynamic, allow mobile Development person to write out the property of Native ranks by simple and direct front end grammer It can experience, and support the multiterminal such as iOS, Android, YunOS and Web to dispose.
In the prior art, although React-Native also provides the solution of identical purpose, in implementation and Develop in style and Weex is different.Typically, application version renewal needs to recompilate binary system installation kit and answered Issued again with market.Using user need re-download, install installation kit could update correspondence version.Using interior version more Newly refer to skip above-mentioned steps, application function, the existing interior update scheme of application are automatically updated in the case of user's unaware There are JSPatch (iOS), Andfix (android), Code Push (react native) etc..
But in the prior art, the shortcomings that following be present using interior update scheme:
1.1, the Weex methods for although providing the single page remote loading in Mobile solution, but Mobile solution generally wraps The Multi-media Material resource such as multiple inter-related pages and related image, audio is included.Weex lack to multiple pages and Related resource is updating using interior unification and is managing the solution of version.
The Android platforms such as 1.2, Andfix are limited by the operating system version and running environment of equipment using interior renewal, In the presence of certain compatibility issue.
The iOS such as 1.3, JSPatch are very big upper due to by Apple application restocking specification limits, existing using interior renewal Frame risk.Namely simultaneously for for the application of multi-platform issue, while the multiple version updatings for managing different application increase Exploitation and operation cost are added.
The content of the invention
The method that the technical problem to be solved in the present invention is to provide version updating in a kind of Mobile solution based on Weex, Whole updating weex scripts and resource in reliable, efficient application can be achieved.
Solve above-mentioned technical problem, the invention provides a kind of method of version updating in Mobile solution based on Weex, Comprise the following steps:
Weex renewal bags are generated in Weex code libraries,
Wrapped in Weex renewal bags warehouse according to Weex renewals described in the rules of arrangement layout of setting,
The Weex renewals bag is updated by API server.
Further, the Weex renewals bag is divided into:Full dose updates and incremental update,
The full dose renewal bag includes:The Weex resource files of renewal bag version needs are changed to from any version,
The incremental update bag includes:The Weex resource files of renewal bag version needs are changed to from particular version.
Further, the generation method of the Weex renewals bag includes:
Bundle.json corresponding to extracting Weex code library package.json files and generation describes file,
Weex code libraries are compiled by WebPack, and generates the JavaScript file of each page and copies to renewal Wrap in js catalogues,
According to JavaScript quoting resource relation, corresponding resources duplication is wrapped in assets catalogues to renewal,
The bundle.json, the js catalogues and the assets catalogues pack into zip file, as version Full dose more new file,
The rules of arrangement in bag warehouse is updated according to the Weex and travels through other baseline version full dose renewal bags, and generation pair The incremental update bag of version is answered,
The available delta of the existing version of renewal updates bag version to the corresponding version, while increases the full dose of the correspondence version Renewal bag record.
Further, the file format of the Weex renewals bag is specially:
File is described comprising a bundle.json under the top-level directory of Weex renewal bags, there is defined two Individual field:Main fields and version fields,
The main fields to as start page file relative address,
The version fields to as renewal bag digital version number,
Two subdirectories, js catalogues and assets catalogues are also included under the top-level directory,
The js catalogues are the Weex page JavaScript files after compiling,
The assets catalogues are the local material resource file that the Weex pages rely on.
Further, All Files and subdirectory are formed institute by single file of zip format compressions in the top-level directory State Weex renewal bags.
Further, in Weex renewal bag warehouse inquiring about the rules of arrangement of full dose and/or incremental update bag It is specific as follows:
By each first level subdirectory name under renewal bag warehouse root, as renewal bag baseline version A,
By the filename under each first level subdirectory, as version number B full dose or incremental update bag,
If A equals B for the version number, version number B is baseline version A full dose renewal bag,
If the version number A is not equal to B, version number B is the incremental update bag from A renewals to B.
Further, the method for Weex renewals bag renewal is specially in the different Mobile solutions:
By extending Weex SDK, start start page,
Whether inquired about in the API server has more redaction,
If without renewal, homepage is directly initiated,
If there is renewal, standby catalogue is arrived in renewal,
Master catalogue is switched to from standby catalogue, registers redaction,
It is loaded into homepage.
Further, the Mobile solution includes:IOS platforms weex applies the interior renewal bag renewal of application or Android Platform weex applies application interior weex renewal bag renewals.
Based on above-mentioned, present invention also offers a kind of system of version updating in Mobile solution based on Weex, including: API server, Weex renewal bags warehouse, Weex renewal bags generation module, Weex scripted codes storehouse,
The Weex scripted codes storehouse, to store Weex renewal APMB packages,
The Weex updates bag generation module, updates bag to generate new Weex,
The Weex renewal bags warehouse, wrapped to Weex renewals described in the rules of arrangement layout according to setting,
The API server, to update the Weex renewals bag, and provide query interface.
Further, the API server is also applied or Android platform weex applications to, there is provided iOS platforms weex Registration interface.
Beneficial effects of the present invention:
1) in the rule issued, update, loaded invention defines a set of Weex page scripts and resource file version simultaneously Certain extension is done to Weex SDK page load logics to meet above-mentioned regular needs, it is whole in reliable, efficient application so as to realize Body updates the purpose of weex scripts and resource.
2) present invention is based on cross-platform Weex Development of Framework.Weex cross-platform characteristic is relied on, its renewal also possesses flat Platform autonomous behavior, reduce compatibility issue probability of happening and apply shop restocking risk.
3) further, because Weex resources whole updating only needs to manage Weex renewal one version of bag, just effectively It is avoided that the version dependence for managing the different pages.
4) one compression dictionary of all resource sharings are wrapped in further, Weex renewals, the relatively independent page have it is smaller under Carry size.Moreover, Weex renewals bag can be by material resource that page JavaScript is relied on together embedded renewal bag.So as to logical The renewal bag download size of version iteration renewal can be effectively reduced by crossing incremental update bag.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram in one embodiment of the invention;
Weex renewal pack arrangement schematic diagrames in Fig. 2 Fig. 1;
Fig. 3 is the generation method schematic diagram of Weex renewal bags;
Fig. 4 is the file format schematic diagram of Weex renewal bags;
Fig. 5 is rules of arrangement schematic diagram in Weex renewal bags warehouse;
Fig. 6 is the system structure diagram of the present invention;
Fig. 7 is the generating process schematic diagram of Weex renewal bags;
Fig. 8 is using interior renewal bag update method schematic flow sheet.
Embodiment
The principle of the disclosure is described referring now to some example embodiments.It is appreciated that these embodiments are merely for saying It is bright and help it will be understood by those skilled in the art that with the purpose of the embodiment disclosure and describe, rather than suggest the model to the disclosure Any restrictions enclosed.Content of this disclosure described here can in a manner of described below outside various modes implement.
As described herein, term " comprising " and its various variants are construed as open-ended term, it means that " bag Include but be not limited to ".Term "based" is construed as " being based at least partially on ".Term " one embodiment " it is understood that For " at least one embodiment ".Term " another embodiment " is construed as " at least one other embodiment ".
Refer to Fig. 1 is the method flow schematic diagram in one embodiment of the invention, and method specifically includes:
Step S100 generates Weex renewal bags in Weex code libraries,
Step S100 is wrapped in Weex renewal bags warehouse according to Weex renewals described in the rules of arrangement layout of setting,
Step S100 updates the Weex renewals bag by API server.
Multiple pages and related resource are being updated using interior unification and managing version in the prior art, Weex lacks Solution, method justice in the present embodiment a set of Weex page scripts and resource file version issue, renewal, loading Rule simultaneously does certain extension to Weex SDK page load logics to meet above-mentioned regular needs, so as to realize reliable, high effect With interior whole updating weex scripts and the purpose of resource.
As preferred in the present embodiment, the method for Weex renewals bag renewal is specific in the different Mobile solutions For:
By extending Weex SDK, start start page,
Whether inquired about in the API server has more redaction,
If without renewal, homepage is directly initiated,
If there is renewal, standby catalogue is arrived in renewal,
Master catalogue is switched to from standby catalogue, registers redaction,
It is loaded into homepage.
As preferred in the present embodiment, the Mobile solution includes:IOS platforms weex applies the interior renewal bag renewal of application Or Android platform weex applies application interior weex renewal bag renewals.
As preferred in the present embodiment, the Weex renewal pack arrangement schematic diagrames in Fig. 1 as shown in Figure 2, the Weex is more Newly 1 point of bag is:Full dose renewal 11 and incremental update 12, the full dose renewal bag 11 include:Renewal bag is changed to from any version The Weex resource files that version needs, the incremental update bag 12 include:Change to what renewal bag version needed from particular version Weex resource files.
It is the generation method schematic diagram of Weex renewal bags as shown in Figure 3, in the present embodiment as preferred in the present embodiment Described in Weex renewal bag generation method be:
Step S300 extracts bundle.json descriptions text corresponding to Weex code library package.json files and generation Part,
Step S301 compiles weex code libraries by WebPack, and generates the JavaScript file of each page and answer Make in renewal bag js catalogues,
Corresponding resources duplication is wrapped assets mesh by step S302 according to JavaScript quoting resource relation to renewal In record,
Step S303 packs bundle.json, the js catalogues and the assets catalogues into zip file, makees For the full dose more new file of version,
The rules of arrangement that step S304 is updated according to the Weex in bag warehouse travels through other baseline version full dose renewal bags, And the incremental update bag of corresponding version is generated,
The available delta of the existing version of step S305 renewals updates bag version to the corresponding version, while increases the correspondence version This full dose renewal bag record.
The part can be achieved to automatically generate full dose and incremental update bag and the process registered in API server from code library, Then Weex application programs can inquire about available renewal bag by API server.
The generating process schematic diagram that Fig. 7 is Weex renewal bags is refer to, it is real including following part, the part Now full dose and incremental update bag are automatically generated from code library and in the process of API server registration.Weex application programs can pass through The available renewal bag of API server inquiry.
In Weex code libraries 2001, extract corresponding to Weex code library package.json files and generation Bundle.json describes file.
In WebPcak modules 2002, weex code libraries are compiled by WebPack, generate each page JavaScript file is simultaneously copied in renewal bag js catalogues.
In renewal bag Diff modules 2004, bag warehouse rules of arrangement is updated according to Weex and travels through other baseline version full doses Renewal bag, generate the Weex incremental updates bag 2005 of corresponding version;JavaScript quoting resource is analyzed, by corresponding resource Copy in renewal bag assets catalogues.Bundle.json, js catalogue of packing and assets catalogues are into zip file, as version This full dose renewal bag 2003.
In bag API module 2006 is updated, the available delta for updating existing version updates bag version to this version, and increases The full dose renewal bag record of this version.
In certain embodiments, it is the file format schematic diagram of above-mentioned Weex renewals bag as shown in Figure 4, in the Weex more File 21 is described comprising a bundle.json under the top-level directory newly wrapped, there is defined two fields:Main fields 211 With version fields 212,
The main fields 211 to as start page file relative address,
The version fields 212 to as renewal bag digital version number,
Two subdirectories, js catalogues 22 and assets catalogues 23 are also included under the top-level directory,
The js catalogues 22 are the Weex page JavaScript files after compiling,
The assets catalogues 23 are the local material resource file that the Weex pages rely on.
In certain embodiments, in above-mentioned top-level directory All Files and subdirectory using zip format compressions as single text Part forms Weex renewal bags.
In certain embodiments, Weex renewals bag is divided into two kinds of full dose renewal and incremental update.Full dose renewal include from appoint What version changes to the Weex resource files that renewal bag version needs, and incremental update bag includes from particular version and changes to renewal bag The Weex resource files that version needs.
It is rules of arrangement schematic diagram in Weex renewal bags warehouse as shown in Figure 5 as preferred in the present embodiment, specific bag Include following steps:
Step S501 is by each first level subdirectory name under renewal bag warehouse root, as renewal bag baseline version Number A,
Step S502 is by the filename under each first level subdirectory, as version number B full dose or incremental update bag,
If A equals B for the step S503 version numbers, version number B is baseline version A full dose renewal bag,
If the step S504 version number A are not equal to B, version number B is the incremental update bag from A renewals to B.
Because above-mentioned formatting is pressed in above-mentioned Weex renewal bags warehouse, so other modules can be quickly found out accordingly Full dose or incremental update bag.
It refer to the system structure diagram that Fig. 6 is the present invention, a kind of Mobile solution based on Weex in the present embodiment The system of interior version updating, including:API server 100, Weex update bag warehouse 200, Weex updates bag generation module 300, Weex scripted codes storehouse 400, the Weex scripted codes storehouse 400, to store Weex renewal APMB packages, the Weex renewals bag Generation module 300, update bag, the Weex renewal bags warehouse 200, to the rules of arrangement according to setting to generate new Weex Weex renewals bag described in layout, the API server 100, to update the Weex renewals bag, and provide query interface.
In certain embodiments, the API server 100 is also applied to, there is provided iOS platforms weex or Android is put down The registration interface of platform weex applications.
Weex renewal bags in above-mentioned Weex renewal bags generation module 300 are divided into:Full dose updates and incremental update,
The full dose renewal bag includes:The Weex resource files of renewal bag version needs are changed to from any version,
The incremental update bag includes:The Weex resource files of renewal bag version needs are changed to from particular version.
The generation method of Weex renewal bags includes described in above-mentioned Weex renewal bags generation module 300:
Bundle.json corresponding to extracting Weex code library package.json files and generation describes file,
Weex code libraries are compiled by WebPack, and generates the JavaScript file of each page and copies to renewal Wrap in js catalogues,
According to JavaScript quoting resource relation, corresponding resources duplication is wrapped in assets catalogues to renewal,
The bundle.json, the js catalogues and the assets catalogues pack into zip file, as version Full dose more new file,
The rules of arrangement in bag warehouse is updated according to the Weex and travels through other baseline version full dose renewal bags, and generation pair The incremental update bag of version is answered,
The available delta of the existing version of renewal updates bag version to the corresponding version, while increases the full dose of the correspondence version Renewal bag record.
The file format of Weex renewal bags is specially described in above-mentioned Weex renewal bags generation module 300:
File is described comprising a bundle.json under the top-level directory of Weex renewal bags, there is defined two Individual field:Main fields and version fields,
The main fields to as start page file relative address,
The version fields to as renewal bag digital version number,
Two subdirectories, js catalogues and assets catalogues are also included under the top-level directory,
The js catalogues are the Weex page JavaScript files after compiling,
The assets catalogues are the local material resource file that the Weex pages rely on.
In certain embodiments, in above-mentioned top-level directory All Files and subdirectory using zip format compressions as single file Form the Weex renewals bag.One compression dictionary of all resource sharings are wrapped in Weex renewals, the relatively independent page have it is smaller under Carry size.Moreover, Weex renewals bag can be by material resource that page JavaScript is relied on together embedded renewal bag.So as to logical The renewal bag download size of version iteration renewal can be effectively reduced by crossing incremental update bag.
In certain embodiments, in Weex renewal bag warehouse 200 inquiring about full dose and/or incremental update bag Rules of arrangement is specific as follows:
By each first level subdirectory name under renewal bag warehouse root, as renewal bag baseline version A,
By the filename under each first level subdirectory, as version number B full dose or incremental update bag,
If A equals B for the version number, version number B is baseline version A full dose renewal bag,
If the version number A is not equal to B, version number B is the incremental update bag from A renewals to B.
In certain embodiments, Weex updates the Weex renewals bag in the different Mobile solutions of bag generation module 300 The method of renewal is specially:
By extending Weex SDK, start start page,
Whether inquired about in the API server has more redaction,
If without renewal, homepage is directly initiated,
If there is renewal, standby catalogue is arrived in renewal,
Master catalogue is switched to from standby catalogue, registers redaction,
It is loaded into homepage.
Refer to Fig. 8 is specifically included using interior renewal bag update method schematic flow sheet, method:
Step S800 extends WeexSDK, such as, Android platform weex application extension Weex SDK's WXSDKInstance.renderByUrl methods, the page JavaScript file for making it support loading to be locally stored;Compare again Such as, iOS platforms weex application extension Weex SDK this. $ config, the packet of return is containing current renewal bag version
Step S801 starts start page, such as, Android platform and/or iOS platforms weex are applied and are being started page activity root Start page Weex JavaScript are loaded according to renewal bag bundle.json,
Step S802 inquires about more redaction, such as, Android platform and/or iOS platform weex application start pages Weex JavaScript obtains current renewal bag version from Weex SDK and asks whether API server has more redaction
Step S803 has available renewal
If so, then entering step S804 renewals arrives standby catalogue
Step S805 switches master catalogue
Step S806 registers redaction
If it is not, then entering step S807 starts homepage, such as, Android platform and/or iOS platforms weex applications are completed Expansion module loading homepage activity is called by Weex JavaScript after renewal.
Because Weex resources whole updating only needs to manage Weex renewal one version of bag, management is just effectively avoided that not With the version dependence of the page.
Preferably, Android platform weex applies application interior weex renewals bag update method specific as follows:
STEP1 extension Weex SDK WXSDKInstance.renderByUrl methods, make it support loading to be locally stored Page JavaScript file, page address agreement is file://INTERNAL/base-url.
The picture that STEP2 supports locally to deposit in graphics adapter IWXImgLoaderAdapter realizations parses.
STEP3 extension Weex SDK this. $ config, the packet of return is containing current renewal bag version.
STEP4 is starting page activity according to renewal bag bundle.json loading start page Weex JavaScript.
STEP5 start page Weex JavaScript obtain current renewal bag version from Weex SDK and ask API server Whether more redaction is had.
STEP6 API servers return to suitable full dose and incremental update bag version number, download address, file verification code.
STEP7 updates if available edition, and Weex JavaScript call expansion module to perform more new logic
STEP8 APP replicate current more new directory to standby update catalogue
STEP9 APP update the priority download checking of bag by incremental update bag, full dose and cover current version catalogue
Standby update catalogue is switched to current more new directory and registers redaction by STEP10 APP
If STEP11, which updates or updated without available edition, unsuccessfully skips renewal process.
STEP12 completes to call expansion module loading homepage activity by Weex JavaScript after updating.
The above method is different from the operation that the Android platform such as Andfix in the prior art is limited by equipment using interior renewal System version and running environment, certain compatibility issue be present.Cross-platform Weex Development of Framework is based in the present embodiment.According to The cross-platform characteristic in Weex is held in the palm, its renewal also possesses platform autonomous behavior, reduces compatibility issue probability of happening and application Shop restocking risk.
Preferably, iOS platforms weex applies application interior weex renewals bag update method specific as follows:
STEP1 extension Weex SDK this. $ config, the packet of return is containing current renewal bag version.
STEP2 is starting page controller according to renewal bag bundle.json loading start page Weex JavaScript.
STEP3 start page Weex JavaScript obtain current renewal bag version from Weex SDK and ask API server Whether more redaction is had.
STEP 4API servers return to suitable full dose and incremental update bag version number, download address, file verification code.
STEP5 updates if available edition, and Weex JavaScript call expansion module to perform more new logic
STEP6 APP replicate current more new directory to standby update catalogue
STEP7 APP update the priority download checking of bag by incremental update bag, full dose and cover current version catalogue
Standby update catalogue is switched to current more new directory and registers redaction by STEP 8APP
If STEP9, which updates or updated without available edition, unsuccessfully skips renewal process.
STEP10 completes to call expansion module loading homepage controller by Weex JavaScript after updating.
The above method is different from the iOS such as JSPatch in the prior art and updated using interior due to being advised by Apple applications restocking Model limits, and very big restocking risk be present.Namely simultaneously for for the application of multi-platform issue, at the same manage it is different should Multiple version updatings add exploitation and operation cost.Cross-platform Weex Development of Framework is based in the present embodiment.Rely on In Weex cross-platform characteristic, its renewal also possesses platform autonomous behavior, reduces compatibility issue probability of happening and using business Shop restocking risk.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
In general, the various embodiments of the disclosure can be with hardware or special circuit, software, logic or its any combination Implement.Some aspects can be implemented with hardware, and some other aspect can be with firmware or software implementation, and the firmware or software can With by controller, microprocessor or other computing devices.Although the various aspects of the disclosure be shown and described as block diagram, Flow chart is represented using some other drawing, but it is understood that frame described herein, equipment, system, techniques or methods can With in a non limiting manner with hardware, software, firmware, special circuit or logic, common hardware or controller or other calculating Equipment or some combinations are implemented.
Although in addition, operation is described with particular order, this is understood not to require this generic operation with shown suitable Sequence is performed or performed with generic sequence, or requires that all shown operations are performed to realize expected result.In some feelings Under shape, multitask or parallel processing can be favourable.Similarly, begged for although the details of some specific implementations is superincumbent By comprising but these are not necessarily to be construed as any restrictions to the scope of the present disclosure, but the description of feature is only pin in To specific embodiment.Some features described in some embodiments of separation can also be held in combination in single embodiment OK.Mutually oppose, the various features described in single embodiment can also in various embodiments be implemented separately or to appoint The mode of what suitable sub-portfolio is implemented.

Claims (10)

1. a kind of method of version updating in Mobile solution based on Weex, it is characterised in that comprise the following steps:
Weex renewal bags are generated in Weex code libraries,
Wrapped in Weex renewal bags warehouse according to Weex renewals described in the rules of arrangement layout of setting,
The Weex renewals bag is updated by API server.
2. the method for version updating in Mobile solution according to claim 1, it is characterised in that the Weex renewals bag point For:Full dose updates and incremental update,
The full dose renewal bag includes:The Weex resource files of renewal bag version needs are changed to from any version,
The incremental update bag includes:The Weex resource files of renewal bag version needs are changed to from particular version.
3. the method for version updating in Mobile solution according to claim 1 or 2, it is characterised in that the Weex renewals The generation method of bag includes:
Bundle.json corresponding to extracting Weex code library package.json files and generation describes file,
Weex code libraries are compiled by WebPack, and generates the JavaScript file of each page and copies to renewal bag js In catalogue,
According to JavaScript quoting resource relation, corresponding resources duplication is wrapped in assets catalogues to renewal,
The bundle.json, the js catalogues and the assets catalogues pack into zip file, the full dose as version More new file,
The rules of arrangement in bag warehouse is updated according to the Weex and travels through other baseline version full dose renewal bags, and generates corresponding version This incremental update bag,
The available delta of the existing version of renewal updates bag version to the corresponding version, while increases the full dose renewal of the correspondence version Bag record.
4. the method for version updating in Mobile solution according to claim 1, it is characterised in that the Weex renewals bag File format is specially:
File is described comprising a bundle.json under the top-level directory of Weex renewal bags, there is defined two words Section:Main fields and version fields,
The main fields to as start page file relative address,
The version fields to as renewal bag digital version number,
Two subdirectories, js catalogues and assets catalogues are also included under the top-level directory,
The js catalogues are the Weex page JavaScript files after compiling,
The assets catalogues are the local material resource file that the Weex pages rely on.
5. the method for version updating in Mobile solution according to claim 4, it is characterised in that institute in the top-level directory There are file and subdirectory to be formed the Weex renewals bag by single file of zip format compressions.
6. the method for version updating in Mobile solution according to claim 1, it is characterised in that the Weex renewals bag storehouse It is specific as follows to inquire about the rules of arrangement of full dose and/or incremental update bag in storehouse:
By each first level subdirectory name under renewal bag warehouse root, as renewal bag baseline version A,
By the filename under each first level subdirectory, as version number B full dose or incremental update bag,
If A equals B for the version number, version number B is baseline version A full dose renewal bag,
If the version number A is not equal to B, version number B is the incremental update bag from A renewals to B.
7. the method for version updating in Mobile solution according to claim 1, it is characterised in that in the different movements The method updated is wrapped using interior Weex renewals is specially:
By extending Weex SDK, start start page,
Whether inquired about in the API server has more redaction,
If without renewal, homepage is directly initiated,
If there is renewal, standby catalogue is arrived in renewal,
Master catalogue is switched to from standby catalogue, registers redaction,
It is loaded into homepage.
8. the method for version updating in Mobile solution according to claim 1, it is characterised in that the Mobile solution bag Include:IOS platforms weex applies the interior renewal bag renewal of application or Android platform weex to apply application interior weex renewals bag more Newly.
A kind of 9. system of version updating in Mobile solution based on Weex, it is characterised in that including:API server, Weex are more Xin Bao warehouses, Weex renewal bags generation module, Weex scripted codes storehouse,
The Weex scripted codes storehouse, to store Weex renewal APMB packages,
The Weex updates bag generation module, updates bag to generate new Weex,
The Weex renewal bags warehouse, wrapped to Weex renewals described in the rules of arrangement layout according to setting,
The API server, to update the Weex renewals bag, and provide query interface.
10. the system of version updating in Mobile solution according to claim 9, it is characterised in that the API server is also To, there is provided iOS platforms weex is applied or the registration interface of Android platform weex applications.
CN201710677018.9A 2017-08-09 2017-08-09 Weex-based method and system for updating version in mobile application Active CN107577491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710677018.9A CN107577491B (en) 2017-08-09 2017-08-09 Weex-based method and system for updating version in mobile application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710677018.9A CN107577491B (en) 2017-08-09 2017-08-09 Weex-based method and system for updating version in mobile application

Publications (2)

Publication Number Publication Date
CN107577491A true CN107577491A (en) 2018-01-12
CN107577491B CN107577491B (en) 2021-05-11

Family

ID=61034367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710677018.9A Active CN107577491B (en) 2017-08-09 2017-08-09 Weex-based method and system for updating version in mobile application

Country Status (1)

Country Link
CN (1) CN107577491B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228190A (en) * 2018-01-25 2018-06-29 杭州时趣信息技术有限公司 Continuous integrating and delivery method, system, equipment and computer readable storage medium
CN109725889A (en) * 2018-12-25 2019-05-07 浙江浙大中控信息技术有限公司 The implementation method of connection is established between cordova and weex
CN109948025A (en) * 2019-03-20 2019-06-28 上海古鳌电子科技股份有限公司 A kind of data referencing recording method
CN109977008A (en) * 2019-02-22 2019-07-05 福建天泉教育科技有限公司 A kind of method and terminal that the JS code that application program relies on is compatible with primary library
CN110059276A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Method for updating pages, device, equipment and storage medium
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110580146A (en) * 2018-06-07 2019-12-17 北京怡合春天科技有限公司 Hybrid application solution based on eros
CN110780899A (en) * 2019-10-22 2020-02-11 深圳墨世科技有限公司 Application hot updating method and device, computer equipment and storage medium
CN111240719A (en) * 2020-01-23 2020-06-05 复旦大学 Defect-driven third-party library version upgrade recommendation method
CN111290757A (en) * 2018-12-10 2020-06-16 阿里巴巴集团控股有限公司 Weex-based online code compiling method, device and equipment
CN112256296A (en) * 2020-09-22 2021-01-22 上海东普信息科技有限公司 Express delivery service APP updating method, device, equipment and storage medium based on Weex
CN112559021A (en) * 2020-12-23 2021-03-26 通联支付网络服务股份有限公司 Mobile terminal small application development management system
CN113535211A (en) * 2021-09-15 2021-10-22 中航信移动科技有限公司 Application program updating method and device, computer equipment and storage medium
CN113885894A (en) * 2021-09-15 2022-01-04 南京海泰医疗信息系统有限公司 Packaging and updating method and system based on electronic medical record product background
CN114995861A (en) * 2022-08-02 2022-09-02 中航信移动科技有限公司 Weex-based application program updating method, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103675A1 (en) * 2014-10-10 2016-04-14 Christian Aabye Methods and systems for partial personalization during mobile application update
CN105763369A (en) * 2016-02-04 2016-07-13 湖南长城信息金融设备有限责任公司 Terminal equipment remote software version distribution method and system
CN106708537A (en) * 2017-01-22 2017-05-24 百度在线网络技术(北京)有限公司 Application updating method and application updating device
CN106919382A (en) * 2017-01-22 2017-07-04 百度在线网络技术(北京)有限公司 For generating the method and apparatus that application updates bag

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103675A1 (en) * 2014-10-10 2016-04-14 Christian Aabye Methods and systems for partial personalization during mobile application update
CN105763369A (en) * 2016-02-04 2016-07-13 湖南长城信息金融设备有限责任公司 Terminal equipment remote software version distribution method and system
CN106708537A (en) * 2017-01-22 2017-05-24 百度在线网络技术(北京)有限公司 Application updating method and application updating device
CN106919382A (en) * 2017-01-22 2017-07-04 百度在线网络技术(北京)有限公司 For generating the method and apparatus that application updates bag

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228190A (en) * 2018-01-25 2018-06-29 杭州时趣信息技术有限公司 Continuous integrating and delivery method, system, equipment and computer readable storage medium
CN110580146B (en) * 2018-06-07 2023-05-23 北京怡合春天科技有限公司 Mixed application solving system based on eros
CN110580146A (en) * 2018-06-07 2019-12-17 北京怡合春天科技有限公司 Hybrid application solution based on eros
CN111290757A (en) * 2018-12-10 2020-06-16 阿里巴巴集团控股有限公司 Weex-based online code compiling method, device and equipment
CN111290757B (en) * 2018-12-10 2023-07-07 阿里巴巴(上海)有限公司 Weex-based online code compiling method, device and equipment
CN109725889A (en) * 2018-12-25 2019-05-07 浙江浙大中控信息技术有限公司 The implementation method of connection is established between cordova and weex
CN109725889B (en) * 2018-12-25 2022-03-25 浙江中控信息产业股份有限公司 Method for establishing connection between cordova and weex
CN109977008B (en) * 2019-02-22 2022-03-29 福建天泉教育科技有限公司 Method and terminal for making JS code depended on by application program compatible with native library
CN109977008A (en) * 2019-02-22 2019-07-05 福建天泉教育科技有限公司 A kind of method and terminal that the JS code that application program relies on is compatible with primary library
CN110058873B (en) * 2019-03-12 2021-09-17 天津五八到家科技有限公司 Application page updating method, device, equipment and storage medium
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
CN110059276A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Method for updating pages, device, equipment and storage medium
CN109948025B (en) * 2019-03-20 2023-10-20 上海古鳌电子科技股份有限公司 Data reference recording method
CN109948025A (en) * 2019-03-20 2019-06-28 上海古鳌电子科技股份有限公司 A kind of data referencing recording method
CN110780899A (en) * 2019-10-22 2020-02-11 深圳墨世科技有限公司 Application hot updating method and device, computer equipment and storage medium
CN111240719A (en) * 2020-01-23 2020-06-05 复旦大学 Defect-driven third-party library version upgrade recommendation method
CN112256296A (en) * 2020-09-22 2021-01-22 上海东普信息科技有限公司 Express delivery service APP updating method, device, equipment and storage medium based on Weex
CN112559021A (en) * 2020-12-23 2021-03-26 通联支付网络服务股份有限公司 Mobile terminal small application development management system
CN113885894A (en) * 2021-09-15 2022-01-04 南京海泰医疗信息系统有限公司 Packaging and updating method and system based on electronic medical record product background
CN113535211B (en) * 2021-09-15 2021-12-28 中航信移动科技有限公司 Application program updating method and device, computer equipment and storage medium
CN113535211A (en) * 2021-09-15 2021-10-22 中航信移动科技有限公司 Application program updating method and device, computer equipment and storage medium
CN113885894B (en) * 2021-09-15 2023-12-12 南京海泰医疗信息系统有限公司 Method and system for packaging and updating background based on electronic medical record products
CN114995861A (en) * 2022-08-02 2022-09-02 中航信移动科技有限公司 Weex-based application program updating method, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107577491B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN107577491A (en) The method of version updating, system in a kind of Mobile solution based on Weex
CN102073512B (en) JAVA cluster application system code loading and upgrading device and method
CN109491695A (en) A kind of increment updating method of integrated Android application
CN103970563B (en) The method of dynamic load Android class
CN104714828A (en) Methods and devices for installing and operating application
CN110442327B (en) Application program construction method, device and server
CN111309335B (en) Compiling method and device of plug-in application and computer readable storage medium
CN109542459A (en) Application program packaging method and device, computer installation and computer storage medium
CN106681718A (en) Toolkit-based desktop side plugin frame and implementation method thereof
CN104090946A (en) Method and device for adding information to application installation package
CN104423948B (en) Automatized script operation method and device
CN111651219A (en) Method and equipment for managing multi-module project configuration file
CN112051994A (en) Visual component information processing and page visual design method and device
JP7048663B2 (en) Code execution methods, devices, rendering devices, storage media, and programs
CN110532016B (en) Version management method, version updating method and version management system
CN108845800A (en) A kind of implementation method, device, equipment and the storage medium of component extension function
US9092292B2 (en) Shared application binary storage
CN103501341A (en) Method and device for establishing Web service
CN106775916B (en) Method and device for reducing application installation packages and electronic equipment
CN106557343A (en) Systematic function application and the method and device of loading resource
CN109857430B (en) Data processing method, payment method and device for cross-container offline package and client
CN110955415A (en) Method for adapting projection multi-platform service
CN116243923A (en) Applet processing method and device and electronic equipment
CN105550050A (en) Hardware communication method and apparatus
CN114995834A (en) Artificial intelligence application deployment environment construction method and device

Legal Events

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