CN105786567B - IOS application submodule dynamic update method and its intermediate system - Google Patents

IOS application submodule dynamic update method and its intermediate system Download PDF

Info

Publication number
CN105786567B
CN105786567B CN201610105738.3A CN201610105738A CN105786567B CN 105786567 B CN105786567 B CN 105786567B CN 201610105738 A CN201610105738 A CN 201610105738A CN 105786567 B CN105786567 B CN 105786567B
Authority
CN
China
Prior art keywords
application
light application
light
main
intermediate system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610105738.3A
Other languages
Chinese (zh)
Other versions
CN105786567A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610105738.3A priority Critical patent/CN105786567B/en
Publication of CN105786567A publication Critical patent/CN105786567A/en
Application granted granted Critical
Publication of CN105786567B publication Critical patent/CN105786567B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of iOS application submodule dynamic update method and its intermediate systems.The intermediate system is divided into alternation of bed, detection layers and management execution level, alternation of bed is responsible for the information exchange of main application and light application, detection is in the rights management and detection for being responsible for application version information and user, light application, management execution level is responsible for that light application is scheduled and is configured, the mapping of method call converts, read-write, storage and the encryption of the downloading of light application installation file and data check and light application data.Specific upgrade method is that developer uploads onto the server the upgraded module of application as light application production light application dynamic base, server push more new information, client receives more new information, according to their needs selectivity downloading and installation, i.e. completion iOS application submodule dynamic update.The present invention make iOS application can in time, dynamically update or install need module, improve application use fluency.

Description

IOS application submodule dynamic update method and its intermediate system
Technical field
Embodiments of the present invention are related to computer technology and field of software development, more specifically, embodiment party of the invention Formula is related to a kind of intermediate system interacted for light application with main application message and iOS application submodule dynamic update method.
Background technique
At present on the market iOS application distribution channel only there are two types of, one is the App Store restocking of apple official sale, One is issued by enterprise.Enterprise is very huge using App engineering in general, and functional module is more, it usually needs will entirely answer With program sub-module, team unity is divided the work.Submodule can be individually issued or upgraded using the method for submodule dynamic update Block, without upgrading entire application item, these submodules are also referred to as light application, light application have good scalability with Cohesion, convenient for the management and test of development process, especially in the case where scale of the project is relatively large, project can be with seldom Cost adapt to following variation.It is real different from the form of html5 (webpage) general at present in submodule dynamic update Existing, these submodules can be the iOS primary code that Objective-C/Swift writes, user experience can be accomplished it is ultimate attainment, Operational efficiency is also high.
A application generally comprises native applications, web application and light application.Native applications have very high operational efficiency And can and system interact, but being increasing with application function, will lead to application volume constantly increase it is too fat to move, And then it occupies a large amount of system resource and reduces the fluency of system.And the maintenance and upgrade of native applications is at high cost, is difficult Accomplish effectively to update.Although volume that web application and light application can solve application is excessive, is difficult to the problems such as maintenance upgrade, But operational efficiency and with system interaction it is poor.
Will make the period of exploitation when the function of application is excessive becomes very long, if to wait all functional developments completely Publication, efficiency will become very low.Secondly, user not necessarily just may require that the institute of a application is functional, opposite some pairs with Useless function could not only be brought in usage experience to user and be promoted for family, on the contrary can also because of make using become it is too fat to move and Reduce the experience of user.
When grave error occurs in application program, developer should find out the place module and timely of mistake as soon as possible It repairs.But developer wants modified application submitting to user but not being so easy.Under traditional mode, Developer first can only submit updated application version to apple, and user can just download update to apple after the approval.But It is that the application audit of apple one week easily, sometimes even longer, user is usually that cannot timely update bug.So in apple In this period for auditing application, the bug that could not be repaired in time can not only reduce the usage experience of user, but also can be to application Developer bring very big loss.
Summary of the invention
The present invention overcomes the deficiencies in the prior art, provide a kind of intermediate system for light application and the interaction of main application message System and iOS application submodule dynamic update method, it is expected that the volume that can solve native applications is excessive, it is difficult to safeguard, gently answer Low with operational efficiency, causing to apply when application function is excessive becomes too fat to move and reduces user experience, and application is when the error occurs, apple Fruit Review Cycle is long to lead to a series of problems, such as updating low efficiency.
In order to solve the above technical problems, an embodiment of the present invention adopts the following technical solutions:
A kind of intermediate system interacted for light application with main application message, it is made of framework, and inside is divided into 3 A level:
One, alternation of bed, comprising:
External interaction center, the information exchange being responsible between therein and main application receive the interface the UI hair of main application Application version detection module is activated when the light application download instruction penetrated, and is received the light application successively adjusted back and is downloaded successful message The Shi Xiangzhu application transmitting interface UI more new command;
Two, detection layers, comprising:
Application version detection module is responsible for connecing in the main application of testing and management client by the activation of external interaction center The relevant information of the light application received, and send it to permission detection module;
Permission detection module is responsible for the rights management and detection of user, light application, including receives application version detection module Judge whether this user has the right to download the light application after the information of transmission, judging result and authority information is obtained, by judging result It adjusts back external interaction center and reports and give client main application, and judging result and authority information are sent to using center;
Three, execution level is managed, comprising:
Using center, it is responsible for the queue of management service light application, the judging result including receiving permission detection module, according to sentencing Disconnected result is scheduled and configures to light application, to start download management module, and will scheduling and configuration information back to pair Outer interaction center;
Mapping block is operated, is responsible for light application and the main mapping using both sides' method call converts, including examined according to permission It surveys the authority information configuration correlation map file that module provides and is used for method call and data manipulation;
Download management module, including downloader and checker, the downloader receive the scheduling at the center of applying, and are responsible for from net Network downloads light application, and the checker carries out MD5 data check to the light application that downloading is completed, is then passed to configuration information pipe Manage module;
Configuration information management module, including database access device and file access device are responsible for data read-write operation, including right The successful light application of MD5 data check carries out database purchase or file encryption storage, and light application is downloaded successful message Successively pull back to external interaction center.
In the above-mentioned intermediate system interacted for light application with main application message, the relevant information of the light application is silence Message, client are saved to message center after receiving silent message, and message content includes light application version.
In the above-mentioned intermediate system interacted for light application with main application message, the intermediate system further includes data transmitting Module, based on using and the mutual call by passing other side interface of light application need data to be offered.
In the above-mentioned intermediate system interacted for light application with main application message, the intermediate system further includes data storage Module, the data for temporarily storing main application are called for light application.
The present invention also provides a kind of iOS application submodule dynamic update methods, are utilized above-mentioned for light application and master Application message interaction intermediate system, it the following steps are included:
(1) developer makes light application dynamic base as needed, and by the version information of light application and realizes function Method be written in corresponding file;
(2) light application that exploitation is completed uploads to iOS server after being locally packaged encapsulation, and server gets newest After light application, update message is pushed to the header length according to included in light application to qualified application;
(3) user client receives the more new information of light application, is divided into two kinds of situations:
A1, this light application are that the light application of installation may be selected, and light application is not installed but entered if user refuses installation Light application list after standby user to install, and the main application of user client is installed this automatically and gently answered if user receives installation With;
A2, this light application are the light application that must install then system default solar obligations, notify user to receive to install and select Select set-up time and/or network environment;
(4) after user selects installation or system default solar obligation light application, the intermediate system is downloaded from server Light application;
(5) client of user get the installation file of light application and carry out it is locally-installed, that is, complete iOS application son Module dynamic update.
In above-mentioned iOS application submodule dynamic update method, it is light that the selection set-up time refers to that user is inconvenient to install Using when selection retardation time installation or selection one regular time installation, the selection network environment, which refers to, to be selected to exist It is installed under WiFi network state or 3G/4G network state.
In above-mentioned iOS application submodule dynamic update method, the step (4) includes:
Before the installation file of server downloading light application, the main application of client, which can detect, works as b1, the intermediate system Preceding network environment is just directly downloaded if it is in WiFi network state, if it is 3G/4G network state just ask the user whether after Continuous installation;
B2, the intermediate system are before the installation file of server downloading light application, the main application and service of client Device will do it two-way safety verification, and during two-way safety verification, developer can specify special security protocol, only Having both sides all to meet the agreement could then continue to download by safety verification by safety verification, otherwise this install failure;
Before the installation file of server downloading light application, the main application of client can be checked for b3, the intermediate system The local installation file for whether having existed light application, downloads from a server, the client if having existed if not Whether the main application at end is newest installation file according to the local installation file of the version information of server push detection, if It is to be mounted directly, if not then from server downloading.
In above-mentioned iOS application submodule dynamic update method, the step (5) includes:
C1, the region of memory that the installation kit of light application is imported into the main application of client, main application is to gently answering during this It is used as safety inspection;
C2, by the way that after safety inspection, light application is introduced into the framework of its main program by main application;
C3, main application complete main application and the work that is connected of light application, including data, function interaction work using intermediate system Make;
C4, by the linking of intermediate system and the exchange of data, light application has reformed into a module of main application.
In above-mentioned iOS application submodule dynamic update method, the process of the step c3 includes:
1. the interface mappings that main application can call light application, into the intermediate system, light application also can by main application With the interface mappings of calling into the intermediate system, after completing mappings work, main application can call light application;
After 2. main application and light application get other side's interface message, it is also necessary to it is to be offered to tell that other side's calling interface needs Corresponding data is carried out data transmission by the data transfer module of intermediate system;
3. light application calls data or main application in region of memory will be described by intermediate system to main application application Data are stored in the data memory module of intermediate system, and light application can only access the data from intermediate system, and master answers Light application permission is assigned with by intermediate system;
4. light application passes through intermediate system to the specific region of memory of main program application, for protecting privately owned application number According to.
In above-mentioned iOS application submodule dynamic update method, after the completion of the iOS application submodule dynamic update, user Light application can be selectively deleted, light application is deleted and comprises the steps of:
D1, user select light application from the feature list of main application, send removal request;
After d2, main application get removal request, judge whether light application can delete, is this time asked if it cannot delete Ask failure, if it is possible to delete the removal request for then responding this;
D3, main apply to intermediate system send removal request, intermediate system receive find after removal request it is corresponding light Using after finding, intermediate system deletes the data that the light application is stored in intermediate system and private room first, then therefrom Between system method mapping table in remove mapping, finally delete light application installation kit;
The state of the light application is changed to not install from having installed in d4, main application.
Technical solution of the present invention is further detailed below.
The present invention utilizes a kind of intermediate system interacted for light application with main application message --- follow-on light application, The method for supporting the dynamic release installation of various iOS application submodules is provided, developer can first issue a answer In contrast major function is not the dynamic installation method subsequent issued that light application then can be used in critically important function, It is dynamic to add new sub-function module for issued application.In addition user can by light application issuing function module, The function that the installation of selectivity needs, can thus reduce the volume of application, promote the usage experience of user.When discovery is tested sternly When the bug of weight, developer can make in time light application to the module where bug and upload onto the server in time, in this way User cracking can repair bug by downloading and installing light application, avoid unnecessary loss.
Compared with prior art, beneficial effects of the present invention first is that: the present invention is a kind of various channels to be supported to distribute IOS application submodule dynamic installs the method with upgrading, not only supports the various iOS applications for being integrated with sub- application, also supports non- The independent utility of integrated son application.The present invention make iOS application can in time, dynamically update or install needs module, Each submodule is independent light application, and can carry out the shared interactions such as data, method with main application.This method is answered ensure that With function it is comprehensive while, greatly improved application using fluency, the stability and ease for maintenance of system.
Detailed description of the invention
Fig. 1 is the intermediate system structural framing figure that the present invention is interacted for light application with main application message.
The flow chart of intermediate system detection before light application is downloaded when Fig. 2 is iOS application submodule dynamic update of the present invention.
Fig. 3 be iOS application submodule dynamic update of the present invention when light application downloading process in each module of intermediate system work Make flow chart.
Fig. 4 is the flow chart of starting light application after the completion of iOS application submodule dynamic update of the present invention.
For light application after the completion of iOS application submodule dynamic update of the present invention, the encapsulation in corresponding system calls master to answer to Fig. 5 Flow chart.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The structure of the intermediate system that the present invention is interacted with main application message for light application as shown in Figure 1, it by Framework is constituted, and inside is divided into 3 levels:
One, alternation of bed, comprising:
External interaction center, the information exchange being responsible between therein and main application receive the interface the UI hair of main application Application version detection module is activated when the light application download instruction penetrated, and is received the light application successively adjusted back and is downloaded successful message The Shi Xiangzhu application transmitting interface UI more new command;
Two, detection layers, comprising:
Application version detection module is responsible for connecing in the main application of testing and management client by the activation of external interaction center The relevant information of the light application received, and send it to permission detection module;
Permission detection module is responsible for the rights management and detection of user, light application, including receives application version detection module Judge whether this user has the right to download the light application after the information of transmission, judging result and authority information is obtained, by judging result It adjusts back external interaction center and reports and give client main application, and judging result and authority information are sent to using center;
Three, execution level is managed, comprising:
Using center, it is responsible for the queue of management service light application, the judging result including receiving permission detection module, according to sentencing Disconnected result is scheduled and configures to light application, to start download management module, and will scheduling and configuration information back to pair Outer interaction center;
Mapping block is operated, is responsible for light application and the main mapping using both sides' method call converts, including examined according to permission It surveys the authority information configuration correlation map file that module provides and is used for method call and data manipulation;
Download management module, including downloader and checker, the downloader receive the scheduling at the center of applying, and are responsible for from net Network downloads light application, and the checker carries out MD5 data check to the light application that downloading is completed, is then passed to configuration information pipe Manage module;
Configuration information management module, including database access device and file access device are responsible for data read-write operation, including right The successful light application of MD5 data check carries out database purchase or file encryption storage, and light application is downloaded successful message Successively pull back to external interaction center.
The detailed technology embodiment of three above level modules is as follows, mainly includes four processes:
Process one is as shown in Fig. 2, include following sub-step: client downloads simultaneously install main application, and developer will make Good light application framework dynamic base is uploaded onto the server, and pushes relevant information to the main application of client, this message is quiet Silent message not will pop up prompting frame or prompt tone and only save after receiving this message to message when client receives this message Center, message content include light application dynamic library version and other relevant informations.Client terminal start-up main application is led to after program starting The external interaction center activation application version detection module for crossing intermediate system, has detected whether that new opplication PUSH message reaches, such as Step S0, S1, testing result are divided into two kinds of situations: branch 1 --- and it is reached without new opplication PUSH message, terminates process;Branch 2 --- there is the arrival of new opplication PUSH message, judges whether this user has permission by permission detection module and download the new opplication i.e. This is updated, such as step S2.The testing result of permission detection module is divided into two kinds of situations: branch 1 --- user does not have correlative weight Limit does not prompt user to download or update, terminates this process;Branch 2 --- user has an associated rights, prompts user's downloading or more Newly, user selects downloading or updates, and reports main application, main application Booting sequence two by external interaction center;User selects not Downloading updates, then terminates process, and next main application restarts process one when starting.
Process two is as shown in figure 3, include following sub-step: step S0, and user clicks the interface UI download button in client Downloading is opened, at this point, server and client side, which will do it bidirectional safe verifying, terminates process if verifying does not pass through;If verifying Pass through, then operation information is sent to by permission detection module by external interaction center and carries out permission detection, if permission detection failure, Then terminate this process, if permission detects successfully, operation information is sent to and the operation such as is scheduled, configures using center, such as Step S1.Step S2 configures correlation map file for method call, data manipulation etc. according to authority information.Before downloading, client End can be detected locally with the presence or absence of light application dynamic base, and testing result is divided into two kinds of situations: branch 1 --- and it is local that there is no gently answer With dynamic library file, then S3 is entered step, using central dispatching download management, creates downloader and open downloading sub-process, downloading MD5 data check is carried out by checker after the completion, as step S4 terminates this process if MD5 data check fails;If MD5 Data check success, is managed configuration information by configuration information management module, carries out database purchase, file encryption is deposited Storage operation, such as step S5;Branch 2 --- local there are light application dynamic library files, whether judge local light application file at this time For latest edition, judging result is divided into two kinds of situations again, branch 1. --- light application file is latest edition, then does not download, directly mention Show user installation, user's selection is not installed, and process is terminated, and user selects installation, then executes installation process;Branch is 2. --- this Ground light application file is not latest edition, enters step 3.Finally, message successively pulls back to external interaction center, light application is downloaded simultaneously Main application is notified to update the interface UI after installing successfully, such as step S6.
Process three is as shown in figure 4, include following sub-step: step S0, and user clicks UI and starts light application, by diplomacy Be sent to permission detection module after mutual center encapsulation, branch 1: permission detection failure, then Booting sequence terminates;Branch 2: permission detection Success, then be sent to and be scheduled configuration using center, such as step S1.Step S2, the configuration file created according to process two is to this Secondary start-up operation (starting applies, deletes application, downloads to update and apply, call using specific method, to using transmitting information etc.) Carry out method matching.Step S3 encapsulates event by application center and starts corresponding light application framework relevant operation.
Process four is as shown in figure 5, include following sub-step: step S0, and light application encapsulation in corresponding system calls master to answer With method, pass through the light application queue facility action event in application center.Specific operation pair is converted by operating mapping As such as step S1.Step S2 detects this operation by permission detection, branch 1: detection failure then terminates this stream Journey;Branch 2: detecting successfully, then is adjusted back by external interaction center main using specific method.
The dynamic installation of light application is as follows when iOS application submodule dynamic update of the invention:
Step 1: developer makes light application dynamic base as needed.Developer can completely self-contained exploitation one Money light application dynamic base, and for web application, it develops level of skill required by light application and wants low, development difficulty It is small.Developer only needs to develop modified light application according to a traditional light application is developed.After the completion of exploitation, exploit person Member only needs for the version information of light application and the method for realizing function to be written in corresponding file.For some heavy Corresponding secrecy provision also can be set in the data information wanted, light application.
Step 2: the light application that exploitation is completed can locally be packaged encapsulation, then dynamically upload onto the server again.Clothes After business device gets newest light application, so that it may which the header length according to included in light application is answered qualified With push update message.
Step 3: user client receives the more new information of light application, it at this time again can be in two kinds of situation:
A1, this light application are that the light application of installation may be selected.Light application can inquire whether the user needs to install this gently at this time Using if user is not sought after the function of light application, so that it may which selection refusal installs this light application, then this is gently answered A light application list can be entered with that will not install immediately.When needing to install this light application after user Continue to install.If user is in need at this point for the function of this light application, user may be selected by installing this immediately gently Using the main application of client will automatically install this light application.
A2, this light application must be installed.If this application is the application that system default must be installed, system meeting Selection notifies which kind of light application user will be installed, or can install on backstage.If user at this time is not very convenient to install this Using user is also an option that the one regular time installation of the set-up time for postponing application or selection.
Step 4: after user selects installation or system default solar obligation, it is above-mentioned to be used for light application and main application message Interactive intermediate system can be downloaded from server and install light application.
Further, installation process described in step 4 includes following sub-step:
Before the installation file of server downloading light application, the main application of client can detect current for b1, intermediate system Network environment is just directly downloaded if it is under WiFi state.If current network environment is 3G, 4G network, will inquire Whether user, which continues, is installed, and user can also postpone according to the situation of network and download, or specifying must be in WiFi network environment It is lower just to install.
B2, intermediate system are before the installation file of server downloading light application, the main the application and the server meeting of client Carry out two-way safety verification.Server can send the safety certificate of light application to client first, wherein just comprising light application Various version security information, simultaneously, customer side also can to server send safety certificate, include each of local client Kind security information.During the bi-directional verification of local client and server, developer can specify special security protocol, Only both sides' requirement for all meeting agreement, can just pass through safety verification.If be proved to be successful, continue installation process.If losing It loses, then this install failure.
Before the installation file of server downloading light application, the main application of client can be checked for b3, the intermediate system The local file for whether having existed light application downloads from a server, such as if locally no corresponding light application file Fruit locally has existed corresponding file, then the file for the version information detection local that client can be pushed according to server-side is No is newest installation file.If local file has been newest installation file, it is mounted directly.If not newest File then downloads file from server-side.
Step 5: client gets the installation file of light application and carries out locally-installed process.
Further, installation process described in step 5 kind includes following sub-step:
C1, the installation kit of light application is imported into the region of memory of the main application of client, this region is that this application institute is private Some memory headrooms, it is gently safe with to obtain that this guarantees this.When light application to be imported into memory, application program can also be to light It is to prevent the presence of the function of threatening the main application of client safe in light application in this way using corresponding safety inspection is done.
C2, by the way that after safety inspection, light application will be introduced into the framework of its main program by main application.
C3, after light application enters the function structure of main application, light application can't be used at this time.At this moment main application That light application and main application are completed using intermediate system is connected work, which is in main application comprising several submodules The functional module of block, major function are the data completed main application with light application, function interworking.
Further, process described in step c3 includes following sub-step:
1) into intermediate system, same light application can also incite somebody to action the interface mappings that main application can call some light applications The interface mappings that main application can call are to intermediate system, and after completing mappings work, main application can call light application.
2) after both sides get interface message, it is also necessary to other side's calling interface be told to need corresponding data to be offered.At this point, Intermediate system has the module of a transmitting data, and for certain data safety, security module is also can be used in intermediate system Certain safe handling is carried out to the data of transmitting.
3) light application can also call the data in region of memory, such as various bufferings to main application application by intermediate system Data and apply data.Main program can assign light application certain permission by intermediate system.Main program can also pass through Data are stored in the data module of intermediate system by intermediate system, at this time light application just can only from intermediate system access number According to this guarantees the safety of main program.
4) light application can also be by intermediate system to the specific region of memory of main program application, for saving privately owned answer Use data.
C4, by the link of intermediate system and the exchange of data, light application has reformed into a mould of main application at this time Block.
Step 6: light application is successfully installed.User can open light application.
After user installation light application, it is also an option that specific light application is deleted, wherein deleting light application includes following step It is rapid:
D1, corresponding light application is selected from the feature list of main application, after user selects the light application for needing to delete, just Removal request can be sent.
After d2, main application get removal request, judge whether the light application can delete.If it cannot delete this time Request failure.If can delete, this removal request is responded.
D3, main application can send the request of removing module to intermediate system, and intermediate system receives request and finds correspondence Light application.After finding corresponding light application, intermediate system can delete the light application first and be stored in intermediate system and privately owned Then the data in space can remove mapping from the method mapping table of intermediate system, finally then will be deleted the installation kit of light application.
The state of the light application is changed to not install from having installed in d4, main application.
Although reference be made herein to invention has been described for explanatory embodiment of the invention, however, it is to be understood that ability Field technique personnel can be designed that a lot of other modification and implementations, these modifications and implementations will fall in the application public affairs Within the scope and spirit opened.It more specifically, can be to the group of theme combination layout in range disclosed in the present application A variety of variations and modifications are carried out at component and/or layout.In addition to variations and improvements to the component parts and or layout, To those skilled in the art, other purposes also will be apparent.

Claims (10)

1. a kind of intermediate system interacted for light application with main application message, it is characterised in that it is made of framework, interior Part is 3 levels:
One, alternation of bed, comprising:
External interaction center, the information exchange being responsible between therein and main application receive the interface the UI transmitting of main application Application version detection module is activated when light application download instruction, receive when the light application successively adjusted back downloads successful message to Main application emits the interface UI more new command;
Two, detection layers, comprising:
Application version detection module is responsible for receiving in the main application of testing and management client by the activation of external interaction center Light application relevant information, and send it to permission detection module;
Permission detection module is responsible for the rights management and detection of user, light application, including receives application version detection module and send Information after judge whether this user has the right to download the light application, obtain judging result and authority information, judging result adjusted back External interaction center, which is reported, gives client main application, and judging result and authority information are sent to using center;
Three, execution level is managed, comprising:
Using center, it is responsible for the queue of management service light application, the judging result including receiving permission detection module is tied according to judgement Fruit is scheduled and configures to light application, to start download management module, and scheduling is returned to configuration information to diplomacy Mutual center;
Mapping block is operated, is responsible for light application and the main mapping using both sides' method call converts, including mould is detected according to permission The authority information configuration correlation map file that block provides is used for method call and data manipulation;
Download management module, including downloader and checker, the downloader receive the scheduling at the center of applying, and are responsible under network Light application is carried, the checker carries out MD5 data check to the light application that downloading is completed, is then passed to configuration information management mould Block;
Configuration information management module, including database access device and file access device are responsible for data read-write operation, including to MD5 The successful light application of data check carries out database purchase or file encryption storage, and it is layer-by-layer that light application downloaded successful message Pull back to external interaction center.
2. the intermediate system according to claim 1 interacted for light application with main application message, it is characterised in that described The relevant information of light application is silent message, and client is saved to message center, message content after receiving silent message Including light application version.
3. the intermediate system according to claim 1 interacted for light application with main application message, it is characterised in that also wrap Include data transfer module, based on using and the mutual call by passing other side interface of light application need data to be offered.
4. the intermediate system according to claim 1 interacted for light application with main application message, it is characterised in that described Intermediate system further includes data memory module, and the data for temporarily storing main application are called for light application.
5. a kind of iOS application submodule dynamic update method, it is characterised in that be utilized of any of claims 1 or 2 for light Using the intermediate system interacted with main application message, it the following steps are included:
(1) developer makes light application dynamic base as needed, and by the version information of light application and realizes the side of function Method is written in corresponding file;
(2) light application that exploitation is completed uploads to iOS server after being locally packaged encapsulation, and server, which is got, newest gently answers With rear, update message is pushed to the header length according to included in light application to qualified application;
(3) user client receives the more new information of light application, is divided into two kinds of situations:
A1, this light application are that the light application of installation may be selected, and light application is not installed but enters and gently answer if user refuses installation With list to install after standby user, this light application is installed in the main application of user client automatically if user receives installation;
A2, this light application are the light application that must install then system default solar obligations, notify user to receive to install and select to pacify ETL estimated time of loading and/or network environment;
(4) after user selects installation or system default solar obligation light application, the intermediate system is gently answered from server downloading With;
(5) client of user gets the installation file of light application and carries out locally-installed, that is, completes iOS application submodule Dynamic update.
6. iOS application submodule dynamic update method according to claim 5, it is characterised in that the selection set-up time Refer to and selects one regular time installation of retardation time installation or selection, the selection when user is inconvenient to install light application Network environment refers to that selection is installed under WiFi network state or 3G/4G network state.
7. iOS application submodule dynamic update method according to claim 5, it is characterised in that the step (4) includes:
Before the installation file of server downloading light application, the main application of client can detect current net for b1, the intermediate system Network environment, just directly downloads if it is in WiFi network state, just asks the user whether to continue to pacify if it is 3G/4G network state Dress;
B2, the intermediate system are before the installation file of server downloading light application, the main the application and the server meeting of client Two-way safety verification is carried out, during two-way safety verification, developer can specify special security protocol, only double Side, which all meets the agreement, then to continue to download by safety verification by safety verification, otherwise this install failure;
Before the installation file of server downloading light application, the main application of client can check local for b3, the intermediate system The installation file for whether having existed light application, downloads from a server if not, the client if having existed Whether main application is newest installation file according to the local installation file of the version information of server push detection, if it is It is mounted directly, if not then from server downloading.
8. iOS application submodule dynamic update method according to claim 5, it is characterised in that the step (5) includes:
C1, the region of memory that the installation kit of light application is imported into the main application of client, light application is done in main application during this Safety inspection;
C2, by the way that after safety inspection, light application is introduced into the framework of its main program by main application;
C3, main application complete main application and the work that is connected of light application, including data, function interworking using intermediate system;
C4, by the linking of intermediate system and the exchange of data, light application has reformed into a module of main application.
9. iOS application submodule dynamic update method according to claim 8, it is characterised in that the process of the step c3 Include:
1. the interface mappings that main application can call light application, into the intermediate system, light application also can adjust main application Interface mappings are into the intermediate system, and after completing mappings work, main application can call light application;
After 2. main application and light application get other side's interface message, it is also necessary to it is to be offered corresponding to tell that other side's calling interface needs Data are carried out data transmission by the data transfer module of intermediate system;
3. light application calls data in region of memory or main application by the data by intermediate system to main application application It is stored in the data memory module of intermediate system, and light application can only access the data from intermediate system, main application is logical It crosses intermediate system and assigns light application permission;
4. light application passes through intermediate system to the specific region of memory of main program application, for protecting privately owned application data.
10. iOS application submodule dynamic update method according to claim 5, it is characterised in that the iOS application submodule After the completion of block dynamic update, user can selectively delete light application, delete light application and comprise the steps of:
D1, user select light application from the feature list of main application, send removal request;
After d2, main application get removal request, judge whether light application can delete, this time request is lost if it cannot delete It loses, if it is possible to delete the removal request for then responding this;
D3, main apply to intermediate system send removal request, and intermediate system finds corresponding light application after receiving removal request, After finding, intermediate system deletes the data that the light application is stored in intermediate system and private room first, is then from centre Mapping is removed in the method mapping table of system, finally deletes the installation kit of light application;
The state of the light application is changed to not install from having installed in d4, main application.
CN201610105738.3A 2016-02-25 2016-02-25 IOS application submodule dynamic update method and its intermediate system Active CN105786567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610105738.3A CN105786567B (en) 2016-02-25 2016-02-25 IOS application submodule dynamic update method and its intermediate system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610105738.3A CN105786567B (en) 2016-02-25 2016-02-25 IOS application submodule dynamic update method and its intermediate system

Publications (2)

Publication Number Publication Date
CN105786567A CN105786567A (en) 2016-07-20
CN105786567B true CN105786567B (en) 2019-01-11

Family

ID=56403024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610105738.3A Active CN105786567B (en) 2016-02-25 2016-02-25 IOS application submodule dynamic update method and its intermediate system

Country Status (1)

Country Link
CN (1) CN105786567B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227554A (en) * 2016-07-08 2016-12-14 百度在线网络技术(北京)有限公司 A kind of method and apparatus carrying out applying heat renewal in ios system
CN106502656B (en) * 2016-10-09 2018-08-03 武汉斗鱼网络科技有限公司 List View construction method and system in a kind of IOS systems
CN106341420A (en) * 2016-10-21 2017-01-18 广东亿迅科技有限公司 Method and system for rapid developing applications based on search and play mode
CN107067298B (en) * 2017-03-28 2021-01-15 北京小米移动软件有限公司 Method and device for processing article display information
CN108874390B (en) * 2017-05-10 2023-05-16 腾讯科技(北京)有限公司 Data processing method and device, equipment and storage medium
CN109271756B (en) * 2017-07-14 2022-12-20 迈普通信技术股份有限公司 Authority control method and device and server
CN108153832B (en) * 2017-12-13 2022-01-11 北京小米移动软件有限公司 Push information display method and device
CN108712377A (en) * 2018-04-03 2018-10-26 国家电网公司 A kind of portable terminal off-line operation pattern
CN108900487B (en) * 2018-06-20 2021-09-28 河北上通云天网络科技有限公司 Shared net disk for implanting middleware
CN110908728B (en) * 2018-09-15 2021-04-09 Oppo广东移动通信有限公司 Authority configuration method and related product
CN110333868B (en) * 2019-06-12 2023-12-19 创新先进技术有限公司 Method and system for generating installation packages of sub-applications
CN110413292B (en) * 2019-07-22 2023-11-14 深圳证券交易所 Light application installation method of application program, mobile terminal and storage medium
CN112579190A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Webpage embedded application interaction method and device
CN110659021B (en) * 2019-11-29 2020-03-17 南京百敖软件有限公司 Development and test system for micro application in mobile terminal
CN111124450B (en) * 2019-12-21 2023-09-19 广州鲁邦通物联网科技股份有限公司 Distributed management method based on multilayer sharing center and cloud platform
CN111399860B (en) * 2020-03-06 2023-07-07 金蝶蝶金云计算有限公司 Light application deployment method, light application deployment device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8146074B2 (en) * 2006-04-14 2012-03-27 Fujitsu Limited Computer-readable recording medium containing application management program, and method and apparatus for application management
CN103617218A (en) * 2013-11-21 2014-03-05 北京奇虎科技有限公司 Light application creating method and clients
CN104158722A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Message push method and device used for light applications, as well as terminal and server
CN104572278A (en) * 2014-12-22 2015-04-29 百度在线网络技术(北京)有限公司 Method, device and equipment for light application to call local end capability

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8146074B2 (en) * 2006-04-14 2012-03-27 Fujitsu Limited Computer-readable recording medium containing application management program, and method and apparatus for application management
CN103617218A (en) * 2013-11-21 2014-03-05 北京奇虎科技有限公司 Light application creating method and clients
CN104158722A (en) * 2014-07-21 2014-11-19 小米科技有限责任公司 Message push method and device used for light applications, as well as terminal and server
CN104572278A (en) * 2014-12-22 2015-04-29 百度在线网络技术(北京)有限公司 Method, device and equipment for light application to call local end capability

Also Published As

Publication number Publication date
CN105786567A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105786567B (en) IOS application submodule dynamic update method and its intermediate system
US10613853B2 (en) Updating software components through online stores
CN111027921B (en) Service processing method and device, electronic equipment and storage medium
CN104978191B (en) Using dispositions method and service device
US10191733B2 (en) Software change process orchestration in a runtime environment
US20120110566A1 (en) Apparatus and method for setting up multi-tenant saas applications
CN106293701A (en) The application engine method for designing of many tenants version management based on cloud server
CN106610839B (en) Method for issuing upgrade package, lightweight upgrade method, device and system
CN109726094A (en) The method and apparatus of pressure test
US6425096B1 (en) Method and system for audio portion test management in a client/server testing architecture
CN107896244A (en) A kind of distribution method of version file, client and server
CN107632829A (en) A kind of App automation continuous integration systems and method based under iOS system
CN113434158B (en) Custom management method, device, equipment and medium for big data component
CN102541609A (en) Installation program manufacturing method, device and network device
CN115860143A (en) Operator model generation method, device and equipment
WO2020199543A1 (en) Method and apparatus applicable to release and upgrade of hybrid application, and intelligent device
CN113297055A (en) Cloud testing system and method
CN110502242A (en) Code automatic generation method, device, computer equipment and storage medium
CN111429127A (en) Service management method and device applied to payment
CN113296796A (en) Project release method, device, system, storage medium and electronic equipment
CN110489132A (en) Distributed software dispositions method and system under a kind of cloud computing environment
US10728323B2 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture
CN109145591A (en) The plug-in loading method of application program
CN114936152A (en) Application testing method and device
US20240176605A1 (en) Method and apparatus for application deployment in software-as-a-service platform and storage medium

Legal Events

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