CN107133064A - The hot update method of the page and device of native applications - Google Patents
The hot update method of the page and device of native applications Download PDFInfo
- Publication number
- CN107133064A CN107133064A CN201710157358.9A CN201710157358A CN107133064A CN 107133064 A CN107133064 A CN 107133064A CN 201710157358 A CN201710157358 A CN 201710157358A CN 107133064 A CN107133064 A CN 107133064A
- Authority
- CN
- China
- Prior art keywords
- native applications
- target
- update program
- parameter
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Abstract
The invention discloses a kind of hot update method of the page of native applications and device, applied to Mobile solution development field, this method includes:When getting the target update program based on the generation of RN frameworks, the communication bridge joint set up between the target update program and native applications;Target update program sends jump instruction by the bridge joint that communicates to native applications;When native applications receive jump instruction, display interface is jumped into the target pages based on target update Program Generating from current page.The present invention, which solves page frequent updating, can expend the technical problem of more audit time, so that no longer needing to send out version after tediously long Review Cycle for the frequent updating page, and directly carry out hot renewal by redirecting, so as to simplify the renewal process of Mobile solution, the renewal speed of Mobile solution is accelerated.
Description
Technical field
The present invention relates to Mobile solution technical field, more particularly to a kind of hot update method of the page of native applications and dress
Put.
Background technology
Nowadays the update cycle of Mobile solution is shorter and shorter, such as domestic live platform there is provided Mobile solution update week
Phase is two weeks, and updates the page layout adjustment for also having some small in addition to larger functionality change every time, and is updated every time
The AKU of hair version afterwards, re-downloads AKU from application market and is upgraded.The renewal of particularly IOS applications, even
The renewal of the page of some applications, and the hair version after updating every time will pass through the tediously long Review Cycles of Apple, therefore IOS is applied
Update Review Cycle once long, and some when, the adjustment for being updated simply some page layouts of IOS applications, and IOS is applied
Not yet realize hot more New function, even if therefore the renewal of the adjustment of page layout be also required to by Review Cycle tediously long Apple,
And the page applied changes frequent, therefore consume more audit time.
The content of the invention
The embodiment of the present invention solves five application page by providing a kind of hot update method of the page of native applications and device
Frequent updating can expend the technical problem of more audit time.
In a first aspect, the embodiments of the invention provide a kind of hot update method of the page of native applications, applied to including aobvious
Show in the mobile terminal at interface, the native applications are configured to run on the mobile terminal, the native applications are based on institute
The primary programming language for stating mobile terminal is write, and methods described includes:
Get based on RN frameworks generate target update program when, set up the target update program with it is described it is primary should
Communication bridge joint between;
The target update program sends jump instruction by the communication bridge joint to the native applications;
When the native applications receive the jump instruction, the display interface is jumped to based on institute from current page
State the target pages of target update Program Generating.
Optionally, the target update program sends jump instruction, bag by the communication bridge joint to the native applications
Include:
The target update program is by calling the selection view control interface of the communication bridge joint to the native applications
Send the communication information;
The native applications parse the jump by calling the selection view control interface from the communication information
Turn instruction.
Optionally, after the communication bridge joint set up between the target update program and the native applications, institute
Stating method also includes:
The target update program sends parameter readjustment to the native applications by the communication bridge joint and asked;
The native applications receive from the target update program parameter readjustment request when, the native applications to
The target update program is returned adjusts back the target component that request is specified by the parameter;
The display interface jumped into the page object based on the target update Program Generating from current page described
After face, methods described also includes:
The target component is shown in the target pages.
Optionally, the native applications return to the target ginseng that the parameter readjustment request is specified to the target update program
Number, including:
Extracted from the native applications and the target component that request is specified is adjusted back by the parameter, wherein, the target ginseng
Number is JSON parameter types in the native applications;
The native applications carry out object encapsulation, target component after being encapsulated to the target component;
Target component after the encapsulation is returned to the target update program by the native applications;
The target update program receives target component after the encapsulation;
The target update program is converted to target component after the encapsulation and RN frameworks from the JSON parameter types
The parameter type of matching.
Optionally, it is described get based on RN frameworks generate target update program, including:Receive from server
When updating request, the target update program is downloaded from the server.
Second aspect, the embodiments of the invention provide a kind of hot updating device of the page of native applications, applied to including aobvious
Show in the mobile terminal at interface, the native applications are configured to run on the mobile terminal, the native applications are based on institute
The primary programming language for stating mobile terminal is write, and described device includes:
More new procedures acquiring unit, for getting during the target update program based on the generation of RN frameworks, sets up the mesh
The communication marked between more new procedures and the native applications is bridged;
Jump instruction transmitting element, for making the target update program be bridged by the communication to the native applications
Send jump instruction;
Page jump unit, when receiving the jump instruction for the native applications, by the display interface from work as
The preceding page jump extremely target pages based on the target update Program Generating.
Optionally, the jump instruction transmitting element, including:
The communication information is sent to unit, for making the target update program by calling the selection of the communication bridge joint to regard
Figure control interface sends the communication information to the native applications;
Subelement is parsed, for making the native applications by calling the selection view control interface, from the communication
The jump instruction is parsed in information.
Optionally, described device also includes:
Request transmitting unit, for making the target update program be sent by the communication bridge joint to the native applications
Parameter readjustment request;
Parameter adjusts back unit, please for making the native applications receive the parameter readjustment from the target update program
When asking, the native applications return to the target update program and adjust back the target component that request is specified by the parameter;
Parameter display unit, for jumping to the display interface based on the target update from current page described
After the target pages of Program Generating, the target component is shown in the target pages.
Optionally, the parameter readjustment unit, including:
Parameter extraction subelement, the target ginseng that request is specified is adjusted back for being extracted from the native applications by the parameter
Number, wherein, the target component is JSON parameter types in the native applications;
Parameter encapsulates subelement, for making the native applications carry out object encapsulation to the target component, is encapsulated
Target component afterwards;
Subelement is returned, the target update journey is returned to for making the native applications by target component after the encapsulation
Sequence;
Parameter receiving subelement, for making the target update program receive target component after the encapsulation;
Type conversion subunit, for making the target update program join target component after the encapsulation from the JSON
Several classes of types are converted to the parameter type with RN frames match.
Optionally, the more new procedures acquiring unit, specifically for:When receiving the renewal request from server, from
The server downloads the target update program.
One or more technical schemes provided in an embodiment of the present invention, at least realize following technique effect or advantage:
Set up when getting the target update program based on the generation of RN frameworks between target update program and native applications
Communication is bridged, then target update program sends jump instruction by the bridge joint that communicates to native applications;Native applications receive and redirect finger
Display interface is jumped into the target pages based on target update Program Generating from current page when making, so that the bridge joint that communicates makes RN
Information transmission can be carried out between the target update program and native applications of Development of Framework, target update program is called original
The primary service logic of raw application, the target pages that heat is updated to target update Program Generating is carried out to the page so that for frequency
Numerous renewal page no longer needs to send out version after tediously long Review Cycle, and directly carries out hot renewal by redirecting, so as to simplify
The renewal process of Mobile solution, accelerates the renewal speed of Mobile solution.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart of the hot update method of the page of native applications in the embodiment of the present invention;
Fig. 2 is the module map of the hot updating device of the page of native applications in the embodiment of the present invention.
Embodiment
The hot update method of the page of a kind of native applications provided in an embodiment of the present invention, applied to the shifting including display interface
Dynamic terminal.In the present invention is implemented, mobile terminal is specially the mobile terminal based on ios platform, and native applications are configured in base
In operation on the mobile terminal of ios platform, wherein, native applications is write by the primary programming language of mobile terminal, specifically
, native applications are that the programming language based on iOS platforms is write.
It should be noted that in embodiments of the present invention, the page heat of native applications provided in an embodiment of the present invention updates
Method is applied to iOS9.0 and above version.
With reference to shown in Fig. 1, the hot update method of the page of native applications provided in an embodiment of the present invention comprises the following steps:
S101:When getting the target update program based on the generation of RN frameworks, target update program and native applications are set up
Between communication bridge joint;
S102:Target update program sends jump instruction by the bridge joint that communicates to native applications;
S103:When native applications receive jump instruction by the bridge joint that communicates, display interface is jumped to from current page
Target pages based on target update Program Generating.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
With reference to Fig. 1, the hot update method of the page to native applications provided in an embodiment of the present invention is described in detail:
First, S101 is performed:Get based on RN frameworks generate target update program when, set up target update program with
Communication bridge joint between native applications.
It should be noted that in embodiments of the present invention, target update includes target pages being presented on display interface
Element, for native applications carry out renewal of the page program bag.RN (react native) framework is increase income cross-platform
Mobile solution Development Framework, supports ios platform and Android platform.Get the target update program generated based on RN frameworks
When, native applications are updated on backstage based on target update program.
Specifically, creating bridge joint instrument BridgeManager between target update program and native applications, pass through bridge joint
The communication bridge joint that instrument is set up between target update program and native applications.
BridgeModule protocol functions in the React code libraries that bridge joint instrument BridgeManager passes through RN frameworks
To create.
In specific implementation process, bridge joint instrument can be realized by the code including BridgeModule protocol functions
BridgeManager establishment.
Wherein, establishment bridge joint instrument BridgeManager implementation process is:Pass through invocation protocol function
BridgeModule, a bridge joint instrument RNToolManager object is created with singleton pattern.Wherein, RNToolManager classes
It is inherited from RCTEventEmitter classes.System can be ensured by creating bridge joint instrument RNToolManager objects by singleton pattern
In a class only one of which example, and the example is easy to extraneous access, so as to convenient control to example number and save and be
System resource.
Specifically, the singleton of instrument RNToolManager objects is bridged by dispatch_once function creations, wherein,
Dispatch_one functions perform code block once, incoming sensing onceToken variable, when onceToken is zero
Code block is run, and after dispatch_once ran code block, onceToken value is changed into non-zero.In this implementation
In example, the code block in one RNToolManager object of Memory Allocation is performed:{ instance=[[RNToolManager
alloc]init];}.
In one embodiment, the program bag of target update program is obtained from server.In specific implementation process, server
Update notification is sent to mobile terminal, update notification is used to notify mobile terminal, then mobile terminal is received from server
After update notification so that mobile terminal is listened to has target update program in server, target update journey is downloaded from server
Sequence, is combined into new procedures bag, new procedures bag is in mobile terminal by the target update program of download and native applications in mobile terminal
Backstage complete install.
Then, S102 is performed:Target update program sends jump instruction by the bridge joint that communicates to native applications.
In one embodiment, performed when the application after new procedures bag completes to install on the backstage of mobile terminal starts
S102。
Specifically, being provided with selection view control (SelectViewController) interface, target in bridge joint instrument
More new procedures are by calling the SelectViewController interfaces bridged that communicate to send the communication information to native applications;It is primary
Using by calling SelectViewController interfaces, jump instruction is parsed from the communication information received.
In specific implementation process, target update program is by calling SelectViewController interfaces to be answered to primary
With the communication information is sent, it can be realized by following code:
RNToolManager.selectViewController(‘YubaViewController’)
In specific implementation process, native applications are by calling SelectViewController interfaces communication letter
Breath, and jump instruction is parsed from the communication information, it can be realized by following code:
Wherein, implementation process is:The selectMethodNamePush functions using name as parameter are called, are passed through
Dispatch_async opens an asynchronous operation, by calling dispatch_get_main_queue () method in asynchronous fortune
The operation task in major queue is submitted in main thread in row and performed, the operation task in major queue is:Commission judges example
In whether have the method named with selectMethodNamePush, if so, just name is handed on.In the present embodiment,
Name is the Page Name of target pages, for marking target pages.
Followed by execution S103:When native applications receive jump instruction by the bridge joint that communicates, by display interface from current
The page jump extremely target pages based on target update Program Generating.
Specifically, marking the Page Name of target pages according to native applications, display interface is jumped to from current page
Target pages based on target update Program Generating.
Specifically, marking the Page Name of target pages according to native applications, display interface is jumped to from current page
Target pages based on target update Program Generating.Concrete implementation process is:Pass through no return value
SelectMethodNamePush functions arouse page jump, and target is found according to the Page Name passed over from native applications
The page, enters to be about to the page from current using the pushViewController methods of NavigationViewController functions
The target pages that the page is marked to vcname so that the target pages jumped to are same in NavigationViewController
In container.In the present embodiment, the target pages that vcname needs to redirect for mark.
It can be realized by following code and arouse page jump, to jump to target pages:
In one embodiment, after the bridge joint of the communication between target update program and native applications is set up, in addition to:Mesh
More new procedures are marked to ask to native applications transmission parameter readjustment by the bridge joint that communicates;Native applications are received from target update journey
During the parameter readjustment request of sequence, native applications return to target update program and adjust back the target component that request is specified by parameter.Tool
Body, the target component that parameter readjustment request is specified is extracted from native applications, and the target component specified can be user data,
Such as, user name, modification logging, the pet name, user's head portrait etc..
Specifically, native applications are asked according to whether receiving parameter readjustment, judge whether native applications are needed to target
More new procedures return parameters:If native applications receive parameter readjustment request, native applications are needed to target update program
Return parameters, if native applications do not receive parameter readjustment request, native applications need not be returned to target update program
Parameter.
Further, technical scheme provided in an embodiment of the present invention also includes:Redirected by display interface from current page
After to the target pages based on target update Program Generating, target component is shown in target pages.
Because the programming language of target update program and native applications is inconsistent, it is necessary to carry out data type to target component
Conversion.Then specifically, native applications are returned to target update program adjusts back the target component that request is specified by parameter, including:
Extracted from native applications and the target component that request is specified is adjusted back by parameter, to the target extracted from native applications
Parameter carries out object encapsulation, and target component after encapsulation is returned to target update journey by target component after being encapsulated, native applications
Sequence, target update program is received after the encapsulation of return after target component, after target update program will be encapsulated target component from
JSON parameter types are converted to the parameter type with RN frames match.
For example, parameter readjustment request specify need return target component include user name and user's head portrait, then from
User name and head portrait are extracted in native applications.JSON parameter types are the parameter type of native applications Plays.Specifically, using
RCTEventDispatcher function pairs carry out object encapsulation for the target component of JSON parameter types, with target after being encapsulated
Parameter.
If not needing return parameters, it can realize that target update notifications native applications are not required to by following code
Want return parameters:
RCT_EXPORT_METHOD(functionWithNoCallBack:(id)object)
If necessary to return parameters, then it can realize that target update notifications native applications need to return by asynchronism callback
Return parameter:
RCT_EXPORT_METHOD(getUserInfo:(RCTResponseSenderBlock)
userInfoCallback){userInfoCallBack(@[[error],object])}
Realize that native applications return to target component to target update program by asynchronism callback.Specifically, judging to return to ginseng
Whether number is empty, if being not sky, by calling object.prototype.toString.call () method to judge what is returned
The type of target component, judges that native applications whether there is target component, if it does, native applications are then to target update program
Target component is returned, realizes that code is as follows:
Based on same inventive concept, the embodiments of the invention provide a kind of hot updating device of the page of native applications, application
In the mobile terminal including display interface, native applications are configured to run on mobile terminals, and native applications are based on mobile whole
The primary programming language at end is write.
With reference to shown in Fig. 2, the hot updating device of the page of the native applications includes:
More new procedures acquiring unit 201, for getting during the target update program based on the generation of RN frameworks, sets up described
Communication bridge joint between target update program and the native applications;
Jump instruction transmitting element 202, for making the target update program be bridged by the communication to described primary
Using transmission jump instruction;
Page jump unit 203, when receiving the jump instruction for the native applications, by the display interface from
Current page jumps to the target pages based on the target update Program Generating.
Optionally, the jump instruction transmitting element 202, including:
The communication information is sent to unit, for making the target update program by calling the selection of the communication bridge joint to regard
Figure control interface sends the communication information to the native applications;
Subelement is parsed, for making the native applications by calling the selection view control interface, from the communication
The jump instruction is parsed in information.
Optionally, described device also includes:
Request transmitting unit, for making the target update program be sent by the communication bridge joint to the native applications
Parameter readjustment request;
Parameter adjusts back unit, please for making the native applications receive the parameter readjustment from the target update program
When asking, the native applications return to the target update program and adjust back the target component that request is specified by the parameter;
Parameter display unit, for jumping to the display interface based on the target update from current page described
After the target pages of Program Generating, the target component is shown in the target pages.
Optionally, the parameter readjustment unit, including:
Parameter extraction subelement, the target ginseng that request is specified is adjusted back for being extracted from the native applications by the parameter
Number, wherein, the target component is JSON parameter types in the native applications;
Parameter encapsulates subelement, for making the native applications carry out object encapsulation to the target component, is encapsulated
Target component afterwards;
Subelement is returned, the target update journey is returned to for making the native applications by target component after the encapsulation
Sequence;
Parameter receiving subelement, for making the target update program receive target component after the encapsulation;
Type conversion subunit, for making the target update program join target component after the encapsulation from the JSON
Several classes of types are converted to the parameter type with RN frames match.
Optionally, the more new procedures acquiring unit, specifically for:When receiving the renewal request from server, from
The server downloads the target update program.
One or more embodiments provided in an embodiment of the present invention, at least realize following technique effect or advantage:
Set up when getting the target update program based on the generation of RN frameworks between target update program and native applications
Communication is bridged, then target update program sends jump instruction by the bridge joint that communicates to native applications;Native applications receive and redirect finger
Display interface is jumped into the target pages based on target update Program Generating from current page when making, so that the bridge joint that communicates makes RN
Information transmission can be carried out between the target update program and native applications of Development of Framework, target update program is called original
The primary service logic of raw application, the target pages that heat is updated to target update Program Generating is carried out to the page so that for frequency
Numerous renewal page no longer needs to send out version after tediously long Review Cycle, and directly carries out hot renewal by redirecting, so as to simplify
The renewal process of Mobile solution, accelerates the renewal speed of Mobile solution.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with based on teaching in this.According to each description above, construct this kind of system and want
The structure asked is obvious.In addition, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is each
Kind of programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this
The preferred forms of invention.
In the specification that this place is provided, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
All as the separate embodiments of the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can or similar purpose identical, equivalent by offer alternative features come generation
Replace.
Although in addition, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of be the same as Example does not mean in of the invention
Within the scope of and form different embodiments.For example, in the following claims, times of embodiment claimed
One of meaning mode can be used in any combination.
The present invention all parts embodiment can be realized with hardware, or with one or more processor run
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) realize that intelligent camera system according to embodiments of the present invention and network are taken the photograph
As some or all functions of some or all parts in head.The present invention is also implemented as being used to perform being retouched here
The some or all equipment or system program (such as computer program and computer program product) for the method stated.So
Realization the present invention program can store on a computer-readable medium, or can have one or more signal shape
Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal
Formula is provided.
It should be noted that the present invention will be described rather than limits the invention for the various embodiments described above, and
Those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.In claim
In, any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" is not excluded for
There is element not listed in the claims or step.Word "a" or "an" before element does not exclude the presence of many
Individual such element.The present invention can be by means of including the hardware of some different elements and by means of properly programmed calculating
Machine is realized.In if the unit claim of dry systems is listed, several in these systems can be by same
Hardware branch is embodied.Word first, second and third use do not indicate that any order.These words can be explained
For title.
Claims (10)
1. a kind of hot update method of the page of native applications, applied in the mobile terminal including display interface, it is characterised in that
The native applications are configured to run on the mobile terminal, primary programming of the native applications based on the mobile terminal
Language is write, and methods described includes:
When getting the target update program generated based on RN frameworks, set up the target update program and the native applications it
Between communication bridge joint;
The target update program sends jump instruction by the communication bridge joint to the native applications;
When the native applications receive the jump instruction, the display interface is jumped to based on the mesh from current page
Mark updates the target pages of Program Generating.
2. the hot update method of the page of native applications as claimed in claim 1, it is characterised in that the target update program is led to
Cross the communication bridge joint and send jump instruction to the native applications, including:
The target update program is by calling the selection view control interface of the communication bridge joint to be sent to the native applications
The communication information;
The native applications are parsed from the communication information and described redirect finger by calling the selection view control interface
Order.
3. the hot update method of the page of native applications as claimed in claim 2, it is characterised in that set up the target described
After communication bridge joint between more new procedures and the native applications, methods described also includes:
The target update program sends parameter readjustment to the native applications by the communication bridge joint and asked;
When the native applications receive the parameter readjustment request from the target update program, the native applications are to described
Target update program is returned adjusts back the target component that request is specified by the parameter;
It is described by the display interface from current page jump to the target pages based on the target update Program Generating it
Afterwards, methods described also includes:
The target component is shown in the target pages.
4. the hot update method of the page of native applications as claimed in claim 3, it is characterised in that the native applications are to described
Target update program returns to the target component that the parameter readjustment request is specified, including:
Extracted from the native applications and the target component that request is specified is adjusted back by the parameter, wherein, the target component exists
It is JSON parameter types in the native applications;
The native applications carry out object encapsulation, target component after being encapsulated to the target component;
Target component after the encapsulation is returned to the target update program by the native applications;
The target update program receives target component after the encapsulation;
The target update program is converted to target component after the encapsulation and RN frames match from the JSON parameter types
Parameter type.
5. the hot update method of the page of native applications as claimed in claim 1, it is characterised in that described to get based on RN frames
The target update program of frame generation, including:When receiving the renewal request from server, the mesh is downloaded from the server
Mark more new procedures.
6. a kind of hot updating device of the page of native applications, applied in the mobile terminal including display interface, it is characterised in that
The native applications are configured to run on the mobile terminal, primary programming of the native applications based on the mobile terminal
Language is write, and described device includes:
More new procedures acquiring unit, for getting during the target update program based on the generation of RN frameworks, sets up the target more
Communication bridge joint between new procedures and the native applications;
Jump instruction transmitting element, for making the target update program be sent by the communication bridge joint to the native applications
Jump instruction;
Page jump unit, when receiving the jump instruction for the native applications, by the display interface from current page
Face jumps to the target pages based on the target update Program Generating.
7. the hot updating device of the page of native applications as claimed in claim 6, it is characterised in that the jump instruction sends single
Member, including:
The communication information is sent to unit, for making the target update program by calling the selection view control that the communication is bridged
Interface processed sends the communication information to the native applications;
Subelement is parsed, for making the native applications by calling the selection view control interface, from the communication information
In parse the jump instruction.
8. the hot updating device of the page of native applications as claimed in claim 7, it is characterised in that described device also includes:
Request transmitting unit, parameter is sent for making the target update program be bridged by the communication to the native applications
Readjustment request;
Parameter adjusts back unit, and request is adjusted back for making the native applications receive the parameter from the target update program
When, the native applications return to the target update program and adjust back the target component that request is specified by the parameter;
Parameter display unit, for jumping to the display interface based on the target update program from current page described
After the target pages of generation, the target component is shown in the target pages.
9. the hot updating device of the page of native applications as claimed in claim 8, it is characterised in that the parameter adjusts back unit,
Including:
Parameter extraction subelement, the target component that request is specified is adjusted back for being extracted from the native applications by the parameter,
Wherein, the target component is JSON parameter types in the native applications;
Parameter encapsulates subelement, for making the native applications carry out object encapsulation, mesh after being encapsulated to the target component
Mark parameter;
Subelement is returned, the target update program is returned to for making the native applications by target component after the encapsulation;
Parameter receiving subelement, for making the target update program receive target component after the encapsulation;
Type conversion subunit, for making the target update program by target component after the encapsulation from the JSON parameters class
Type is converted to the parameter type with RN frames match.
10. the hot updating device of the page of native applications as claimed in claim 6, it is characterised in that the more new procedures are obtained
Unit, specifically for:When receiving the renewal request from server, the target update program is downloaded from the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710157358.9A CN107133064B (en) | 2017-03-16 | 2017-03-16 | Page hot updating method and device for native application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710157358.9A CN107133064B (en) | 2017-03-16 | 2017-03-16 | Page hot updating method and device for native application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107133064A true CN107133064A (en) | 2017-09-05 |
CN107133064B CN107133064B (en) | 2020-02-07 |
Family
ID=59720923
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710157358.9A Active CN107133064B (en) | 2017-03-16 | 2017-03-16 | Page hot updating method and device for native application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133064B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107621954A (en) * | 2017-09-19 | 2018-01-23 | 深圳市华傲数据技术有限公司 | Interface interchange method and device |
CN107943543A (en) * | 2017-11-29 | 2018-04-20 | 福州市智捷信息科技有限公司 | A kind of method and computer equipment of WEB application heat deployment |
CN108737899A (en) * | 2018-03-30 | 2018-11-02 | 上海极链网络科技有限公司 | Video interactive system dynamic update scheme |
CN109656773A (en) * | 2017-10-12 | 2019-04-19 | 卓望数码技术(深圳)有限公司 | A kind of processing frame collapsed extremely based on the application of IOS system |
CN111625260A (en) * | 2020-05-27 | 2020-09-04 | 哈尔滨文投科技有限公司 | Method and system based on mixed mobile application program upgrading |
CN112579191A (en) * | 2019-09-29 | 2021-03-30 | 华为终端有限公司 | Component loading method, device and system |
CN112905933A (en) * | 2021-01-29 | 2021-06-04 | 挂号网(杭州)科技有限公司 | Page jump method and device, electronic equipment and storage medium |
CN112988125A (en) * | 2019-12-02 | 2021-06-18 | 武汉斗鱼鱼乐网络科技有限公司 | Data bridging method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984582A (en) * | 2014-06-04 | 2014-08-13 | 网易(杭州)网络有限公司 | Method and device for hot updating |
US20150033216A1 (en) * | 2013-07-24 | 2015-01-29 | Oracle International Corporation | Applying hot fixes for metadata customizing user interactions based on a software program deployed in multiple versions |
CN105743984A (en) * | 2016-03-11 | 2016-07-06 | 中国建设银行股份有限公司 | Method, device and system for automatically updating mobile application |
CN106227554A (en) * | 2016-07-08 | 2016-12-14 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus carrying out applying heat renewal in ios system |
-
2017
- 2017-03-16 CN CN201710157358.9A patent/CN107133064B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150033216A1 (en) * | 2013-07-24 | 2015-01-29 | Oracle International Corporation | Applying hot fixes for metadata customizing user interactions based on a software program deployed in multiple versions |
CN103984582A (en) * | 2014-06-04 | 2014-08-13 | 网易(杭州)网络有限公司 | Method and device for hot updating |
CN105743984A (en) * | 2016-03-11 | 2016-07-06 | 中国建设银行股份有限公司 | Method, device and system for automatically updating mobile application |
CN106227554A (en) * | 2016-07-08 | 2016-12-14 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus carrying out applying heat renewal in ios system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107621954A (en) * | 2017-09-19 | 2018-01-23 | 深圳市华傲数据技术有限公司 | Interface interchange method and device |
CN109656773A (en) * | 2017-10-12 | 2019-04-19 | 卓望数码技术(深圳)有限公司 | A kind of processing frame collapsed extremely based on the application of IOS system |
CN107943543A (en) * | 2017-11-29 | 2018-04-20 | 福州市智捷信息科技有限公司 | A kind of method and computer equipment of WEB application heat deployment |
CN107943543B (en) * | 2017-11-29 | 2022-01-14 | 优速云(福建)科技有限公司 | WEB application hot deployment method and computer equipment |
CN108737899A (en) * | 2018-03-30 | 2018-11-02 | 上海极链网络科技有限公司 | Video interactive system dynamic update scheme |
CN112579191A (en) * | 2019-09-29 | 2021-03-30 | 华为终端有限公司 | Component loading method, device and system |
CN112988125A (en) * | 2019-12-02 | 2021-06-18 | 武汉斗鱼鱼乐网络科技有限公司 | Data bridging method, device, equipment and storage medium |
CN112988125B (en) * | 2019-12-02 | 2023-09-12 | 广州铭诚计算机科技有限公司 | Data bridging method, device, equipment and storage medium |
CN111625260A (en) * | 2020-05-27 | 2020-09-04 | 哈尔滨文投科技有限公司 | Method and system based on mixed mobile application program upgrading |
CN112905933A (en) * | 2021-01-29 | 2021-06-04 | 挂号网(杭州)科技有限公司 | Page jump method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107133064B (en) | 2020-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107133064A (en) | The hot update method of the page and device of native applications | |
CN105765527B (en) | The method and apparatus of software development kit (SDK) for customization | |
CN105389191B (en) | A kind of method for upgrading software based on LAN, device and system | |
US8612947B2 (en) | System and method for remotely compiling multi-platform native applications for mobile devices | |
CA2915620C (en) | Method and apparatus for code virtualization and remote process call generation | |
WO2017185606A1 (en) | Overlay mechanism-based apk development method and system | |
US20050251788A1 (en) | Methods and systems for generating a configurable user interface | |
US20120173962A1 (en) | Online application providing apparatus | |
CN111290778B (en) | AI model packaging method, platform and electronic equipment | |
CA2495024A1 (en) | System and method for adaptable provisioning of generic application content | |
CN112612452B (en) | API platform realization method, device, equipment and storage medium | |
CN111399814A (en) | Visual arrangement method and device for construction tasks | |
CN108255708A (en) | Method, apparatus, storage medium and the equipment of production file are accessed in test environment | |
CN110597564A (en) | Installation package construction and service component loading method, device and terminal equipment | |
CN107193565B (en) | Method for developing native APP (application) across mobile terminals | |
KR20150047219A (en) | System and method for producing smart phone application | |
CN107704499A (en) | A kind of page jump control method and device of application program | |
CN111596951A (en) | Method and device for configuring engineering file | |
CN113296742A (en) | APP data processing method and device and mobile terminal | |
CN113760736A (en) | Test method, device and system | |
CN109508193B (en) | Application deployment and operation method, device, terminal equipment and medium | |
CN111857658A (en) | Method, device, medium and electronic equipment for rendering dynamic component | |
WO2023020071A1 (en) | Upgrade package acquisition method and smart device | |
CN112130842A (en) | Page generation method and device | |
CN113204344B (en) | Information acquisition method and device for front-end development |
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 |