CN116775146A - Independent mobile component dynamic loading method, system, equipment and medium - Google Patents
Independent mobile component dynamic loading method, system, equipment and medium Download PDFInfo
- Publication number
- CN116775146A CN116775146A CN202310550399.XA CN202310550399A CN116775146A CN 116775146 A CN116775146 A CN 116775146A CN 202310550399 A CN202310550399 A CN 202310550399A CN 116775146 A CN116775146 A CN 116775146A
- Authority
- CN
- China
- Prior art keywords
- component
- package
- mobile
- loading
- center client
- 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.)
- Pending
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 88
- 238000000034 method Methods 0.000 claims abstract description 37
- 230000006870 function Effects 0.000 claims description 9
- 238000009434 installation Methods 0.000 claims description 7
- 238000002360 preparation method Methods 0.000 claims description 6
- 230000001960 triggered effect Effects 0.000 claims description 6
- 238000005457 optimization Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Abstract
The application discloses an independent dynamic loading method, system, equipment and medium for a mobile component, which mainly relate to the technical field of dynamic loading of the mobile component and are used for solving the problem that the existing dynamic loading technology for the mobile component cannot directly integrate a dynamic loading frame. Comprising the following steps: uploading a component package to a component center server, and uploading the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction; installing a component center client corresponding to the component center server to the current mobile equipment through mobile application in the current mobile equipment; user authentication is carried out on user information transmitted to the current mobile equipment through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
Description
Technical Field
The present application relates to the field of dynamic loading technologies of mobile components, and in particular, to a method, a system, an apparatus, and a medium for dynamic loading of an independent mobile component.
Background
The abbreviations for mobile application Mobile Application are: MA. Generalized mobile applications include personal and enterprise-level applications. Narrow mobile applications refer to enterprise-level business applications. The mobile application is not only as simple as running software on a mobile phone, but also relates to the perfection and expansion of enterprise informatization application scenes.
The enterprise-level mobile application bears a large number of service functions, and as the service expands, the number of access components is increased, so that the problems of collision among components, increase of the size of application packages along with the increase of the components and the like exist, and dynamic component loading on the mobile application is required to be realized. Considering that the mobile application cannot perform architecture reconstruction, dynamic component loading cannot be directly performed in the mobile application. The scheme design realizes a mobile component dynamic loading method which is decoupled from a mobile application and can be independently operated, and solves the problem of dynamic component loading of the stock enterprise-level application.
The existing mature third-party dynamic loading technology is more, such as plug in frames of messenger shadow, 360, etc., but is inconsistent with the current enterprise mobile portal architecture system, and the dynamic loading frames cannot be directly integrated in the mobile portal. Therefore, an independent dynamic loading method, system, device and medium for mobile components are needed to solve the technical problems of how to realize dynamic loading of mobile components according to requirements and the safety, automatic identification and downloading of components developed by different teams on the premise that the architecture of a mobile portal cannot directly realize dynamic loading.
Disclosure of Invention
Aiming at the defects in the prior art, the application provides an independent dynamic loading method, system, equipment and medium for a mobile component, so as to solve the technical problems.
In a first aspect, the present application provides a method for dynamically loading an independent mobile component, the method comprising: uploading a component package to a component center server, and uploading the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction; installing a component center client corresponding to the component center server to the current mobile equipment through mobile application in the current mobile equipment; user authentication is carried out on user information transmitted to the current mobile equipment through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
Further, after the version information of the uploading component package is obtained through the component center server, the method further comprises: the package is scanned securely to determine that the components in the package are capable of operating securely.
Further, installing the component center client corresponding to the component center server to the current mobile device through the mobile application in the current mobile device specifically includes: after the service function of the mobile application in the mobile device is triggered, a component in the mobile application starts a component center client loading flow; downloading the component center client from the component center server when the mobile device does not have the component center client; when the mobile device has a component center client, determining whether the component center client is the latest version to update the component center client to the latest version.
Further, after authentication is successful, updating the component package corresponding to the component center client into the latest version of component package, which specifically comprises the following steps: transmitting the component information to the component center client through the mobile application; wherein the component information at least includes: component ID, component method name, and component parameters; when the component information does not exist, determining that the mobile equipment does not download the component package, and requesting to download the latest component package to a component center server; when the component information exists, requesting to download the component information of the latest version corresponding to the latest component package from the component center server; determining whether the latest version of the component information is consistent with the component information transferred by the mobile application; and when the package is inconsistent, downloading the latest version package to the package center server.
Further, the dynamic loading and running of the latest version of component package are completed through the component center client, which specifically comprises the following steps: starting a vacation shadow framework through a component center client to finish dynamic loading of components in a component package; taking the DynamicPluginManager as a loading inlet, and executing the PluginManagerImpl to finish component resource loading preparation; wherein, the component resource loading preparation at least comprises: storing the assembly apk to a preset path, performing dex optimization operation, putting a decompressed so library to a preset position, loading an inlet of a plug-in unit, and preparing for preloading; the dynamic loading and running of the components in the latest version of component package are completed in the PluginProcessService service.
In a second aspect, the present application provides a self-contained mobile component dynamic loading system, the system comprising: the uploading module is used for uploading the component package to the component center server and uploading the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction; the installation module is used for installing the component center client corresponding to the component center server to the current mobile equipment through the mobile application in the current mobile equipment; the operation module is used for carrying out user authentication on the user information transmitted by the current mobile equipment through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
Further, the installation module comprises an installation unit, and is used for starting a component center client loading flow by a component in the mobile application after the service function of the mobile application in the mobile device is triggered; downloading the component center client from the component center server when the mobile device does not have the component center client; when the mobile device has a component center client, determining whether the component center client is the latest version to update the component center client to the latest version.
Further, the operation module comprises an updating unit; for delivering component information to a component center client via a mobile application; wherein the component information at least includes: component ID, component method name, and component parameters; when the component information does not exist, determining that the mobile equipment does not download the component package, and requesting to download the latest component package to a component center server; when the component information exists, requesting to download the component information of the latest version corresponding to the latest component package from the component center server; determining whether the latest version of the component information is consistent with the component information transferred by the mobile application; and when the package is inconsistent, downloading the latest version package to the package center server.
In a third aspect, the present application provides an independent mobile component dynamic loading device, the device comprising: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform a method of dynamically loading individual mobile components as in any of the above.
In a fourth aspect, the present application provides a non-volatile computer storage medium having stored thereon computer instructions which, when executed, implement a self-contained mobile component dynamic loading method as described in any one of the preceding claims.
As will be appreciated by those skilled in the art, the present application has at least the following beneficial effects:
the application provides a method for loading independent dynamic components, which is decoupled from a mobile application. The component management function and the mobile application of the application are highly decoupled, and can solve the following problems: the established enterprise-level mobile application has a large number of stock service functions, is not suitable for architecture adjustment, cannot directly finish dynamic component loading on the mobile application, and has the problems of component-to-component conflict, increase of application package size along with component increase and the like due to the fact that the number of components is increased due to service expansion. In addition, the application is an independent dynamic loading technology of the mobile component, which is convenient for popularization and application in different enterprises.
Drawings
Some embodiments of the present disclosure are described below with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method for dynamically loading independent mobile components according to an embodiment of the present application.
Fig. 2 is a schematic diagram of an internal structure of a dynamic loading system for an independent mobile component according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an internal structure of a dynamic loading device for an independent mobile component according to an embodiment of the present application.
Detailed Description
It should be understood by those skilled in the art that the embodiments described below are only preferred embodiments of the present disclosure, and do not represent that the present disclosure can be realized only by the preferred embodiments, which are merely for explaining the technical principles of the present disclosure, not for limiting the scope of the present disclosure. Based on the preferred embodiments provided by the present disclosure, all other embodiments that may be obtained by one of ordinary skill in the art without inventive effort shall still fall within the scope of the present disclosure.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The following describes the technical scheme provided by the embodiment of the application in detail through the attached drawings.
The embodiment of the application also provides an independent dynamic loading method of the mobile component, as shown in fig. 1, which mainly comprises the following steps:
step 110, uploading the component package to a component center server, and uploading the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; and carrying out the loading or unloading operation on the component packages of different versions in the preset component library according to the triggering instruction.
Uploading the component package to the component center server side and uploading the component package to a preset component library can be specifically: and the service application research and development team is responsible for developing the special mobile native component of the service and uploading the special mobile native component to the preset component library through the component center server. The component center server is used for carrying out version management on the components uploaded by each specialty, retaining each historical version of the components, carrying out on-shelf and off-shelf management on different versions of the components, and also carrying out overall off-shelf on the components.
After the version information of the uploading component package is acquired through the component center server, the method can further comprise: the package is scanned securely to determine that the components in the package are capable of operating securely.
And 120, installing the component center client corresponding to the component center server to the current mobile equipment through the mobile application in the current mobile equipment.
The method comprises the following steps: after the service function of the mobile application in the mobile device is triggered, a component in the mobile application starts a component center client loading flow; downloading the component center client from the component center server when the mobile device does not have the component center client; when the mobile device has a component center client, determining whether the component center client is the latest version to update the component center client to the latest version.
130, carrying out user authentication on user information transmitted by the current mobile equipment through a component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
After the authentication is successful, the component package corresponding to the component center client is updated to the latest version of component package, which can be specifically: transmitting the component information to the component center client through the mobile application; wherein the component information at least includes: component ID, component method name, and component parameters; when the component information does not exist, determining that the mobile equipment does not download the component package, and requesting to download the latest component package to a component center server; when the component information exists, requesting to download the component information of the latest version corresponding to the latest component package from the component center server; determining whether the latest version of the component information is consistent with the component information transferred by the mobile application; and when the package is inconsistent, downloading the latest version package to the package center server.
The dynamic loading and running of the latest version of component package are completed through the component center client, which can be specifically as follows: starting a vacation shadow framework through a component center client to finish dynamic loading of components in a component package; taking the DynamicPluginManager as a loading inlet, and executing the PluginManagerImpl to finish component resource loading preparation; wherein, the component resource loading preparation at least comprises: storing the assembly apk to a preset path, performing dex optimization operation, putting a decompressed so library to a preset position, loading an inlet of a plug-in unit, and preparing for preloading; the dynamic loading and running of the components in the latest version of component package are completed in the PluginProcessService service.
In addition, fig. 2 is a schematic diagram of an independent mobile component dynamic loading system according to an embodiment of the present application. As shown in fig. 2, the system provided by the embodiment of the present application mainly includes:
the uploading module 210 is configured to upload the component package to the component center server, and upload the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction;
the installation module 220 is configured to install, by using a mobile application in the current mobile device, a component center client corresponding to the component center server to the current mobile device;
the installation module 220 includes an installation unit 221, configured to initiate a component center client loading procedure by a component in the mobile application after a service function of the mobile application in the mobile device is triggered; downloading the component center client from the component center server when the mobile device does not have the component center client; when the mobile device has a component center client, determining whether the component center client is the latest version to update the component center client to the latest version.
An operation module 230, configured to perform user authentication on user information transmitted to the current mobile device through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
The operation module 230 includes an update unit 231; for delivering component information to a component center client via a mobile application; wherein the component information at least includes: component ID, component method name, and component parameters; when the component information does not exist, determining that the mobile equipment does not download the component package, and requesting to download the latest component package to a component center server; when the component information exists, requesting to download the component information of the latest version corresponding to the latest component package from the component center server; determining whether the latest version of the component information is consistent with the component information transferred by the mobile application; and when the package is inconsistent, downloading the latest version package to the package center server.
In addition, the embodiment of the application also provides independent mobile component dynamic loading equipment. As shown in fig. 3, the apparatus includes: a processor; and a memory having executable code stored thereon that, when executed, causes the processor to perform an independent mobile component dynamic loading method as in the above embodiments.
Specifically, the server side uploads the component package to the component center server side, and uploads the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction; installing a component center client corresponding to the component center server to the current mobile equipment through mobile application in the current mobile equipment; user authentication is carried out on user information transmitted to the current mobile equipment through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
In addition, the embodiment of the application also provides a nonvolatile computer storage medium, on which executable instructions are stored, and when the executable instructions are executed, the independent mobile component dynamic loading method is realized.
Thus far, the technical solution of the present disclosure has been described in connection with the foregoing embodiments, but it is easily understood by those skilled in the art that the protective scope of the present disclosure is not limited to only these specific embodiments. The technical solutions in the above embodiments may be split and combined by those skilled in the art without departing from the technical principles of the present disclosure, and equivalent modifications or substitutions may be made to related technical features, which all fall within the scope of the present disclosure.
Claims (10)
1. A method for dynamic loading of independent mobile components, the method comprising:
uploading a component package to a component center server, and uploading the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction;
installing a component center client corresponding to the component center server to the current mobile equipment through mobile application in the current mobile equipment;
user authentication is carried out on user information transmitted to the current mobile equipment through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
2. The method for dynamically loading independent mobile components according to claim 1, wherein after the version information of the uploaded component package is acquired through the component center server, the method further comprises:
the package is scanned securely to determine that the components in the package are capable of operating securely.
3. The method for dynamically loading independent mobile components according to claim 1, wherein the step of installing the component center client corresponding to the component center server to the current mobile device through the mobile application in the current mobile device specifically comprises the steps of:
after the service function of the mobile application in the mobile device is triggered, a component in the mobile application starts a component center client loading flow; downloading the component center client from the component center server when the mobile device does not have the component center client; when the mobile device has a component center client, determining whether the component center client is the latest version to update the component center client to the latest version.
4. The method for dynamically loading independent mobile components according to claim 1, wherein updating the component package corresponding to the component center client to the latest version of component package after authentication is successful comprises:
transmitting the component information to the component center client through the mobile application; wherein the component information at least includes: component ID, component method name, and component parameters;
when the component information does not exist, determining that the mobile equipment does not download the component package, and requesting to download the latest component package to a component center server;
when the component information exists, requesting to download the component information of the latest version corresponding to the latest component package from the component center server; determining whether the latest version of the component information is consistent with the component information transferred by the mobile application; and when the package is inconsistent, downloading the latest version package to the package center server.
5. The method for dynamically loading independent mobile components according to claim 1, wherein the dynamic loading and running of the latest version of component packages are completed through the component center client, and specifically comprises the following steps:
starting a vacation shadow framework through a component center client to finish dynamic loading of components in a component package;
taking the DynamicPluginManager as a loading inlet, and executing the PluginManagerImpl to finish component resource loading preparation; wherein, the component resource loading preparation at least comprises: storing the assembly apk to a preset path, performing dex optimization operation, putting a decompressed so library to a preset position, loading an inlet of a plug-in unit, and preparing for preloading;
the dynamic loading and running of the components in the latest version of component package are completed in the PluginProcessService service.
6. A self-contained mobile component dynamic loading system, the system comprising:
the uploading module is used for uploading the component package to the component center server and uploading the component package to a preset component library; the method comprises the steps that version information of an uploading component package is obtained through a component center server; carrying out loading or unloading operation on component packages of different versions in a preset component library according to the trigger instruction;
the installation module is used for installing the component center client corresponding to the component center server to the current mobile equipment through the mobile application in the current mobile equipment;
the operation module is used for carrying out user authentication on the user information transmitted by the current mobile equipment through the component center client; after successful authentication, updating the corresponding component package of the component center client into the latest version component package; and the dynamic loading and running of the latest version of component package are completed through the component center client.
7. The self-contained mobile component dynamic loading system of claim 6, wherein the mounting module comprises a mounting unit,
after the service function of the mobile application in the mobile device is triggered, a component in the mobile application starts a component center client loading flow; downloading the component center client from the component center server when the mobile device does not have the component center client; when the mobile device has a component center client, determining whether the component center client is the latest version to update the component center client to the latest version.
8. The self-contained mobile component dynamic loading system of claim 6, wherein the run module comprises an update unit;
for delivering component information to a component center client via a mobile application; wherein the component information at least includes: component ID, component method name, and component parameters; when the component information does not exist, determining that the mobile equipment does not download the component package, and requesting to download the latest component package to a component center server; when the component information exists, requesting to download the component information of the latest version corresponding to the latest component package from the component center server; determining whether the latest version of the component information is consistent with the component information transferred by the mobile application; and when the package is inconsistent, downloading the latest version package to the package center server.
9. A self-contained mobile component dynamic loading device, the device comprising:
a processor;
and a memory having executable code stored thereon that, when executed, causes the processor to perform an independent mobile component dynamic loading method as recited in any of claims 1-5.
10. A non-transitory computer storage medium having stored thereon computer instructions which, when executed, implement a self-contained mobile component dynamic loading method as recited in any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310550399.XA CN116775146A (en) | 2023-05-16 | 2023-05-16 | Independent mobile component dynamic loading method, system, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310550399.XA CN116775146A (en) | 2023-05-16 | 2023-05-16 | Independent mobile component dynamic loading method, system, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116775146A true CN116775146A (en) | 2023-09-19 |
Family
ID=88010621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310550399.XA Pending CN116775146A (en) | 2023-05-16 | 2023-05-16 | Independent mobile component dynamic loading method, system, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116775146A (en) |
-
2023
- 2023-05-16 CN CN202310550399.XA patent/CN116775146A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9794727B1 (en) | Network access tiered based on application launcher installation | |
US8307095B2 (en) | Firmware upgrade system and method in a device management architecture | |
US6996818B2 (en) | Update system for facilitating software update and data conversion in an electronic device | |
US9740477B2 (en) | Entity wide software tracking and maintenance reporting tool | |
US20130227539A1 (en) | Updating applications | |
JP2004537895A (en) | System and method for peer-to-peer handset communication | |
US20170192773A1 (en) | Mobile applications | |
CN104765617A (en) | Stream application function interface distributing method and system realized on basis of HTML5 | |
CN101861567A (en) | Methods, apparatuses and computer program product for automatic download of software dependencies on installation | |
CN103353845A (en) | Method and device for uploading and pushing script | |
CN107220074B (en) | Method and device for accessing and upgrading supporting layer software function | |
US8423996B2 (en) | Delivery system, server device, terminal device, and delivery method | |
US20140068595A1 (en) | Automatic mobile application updates | |
CN110851151B (en) | Method, device, terminal, server and storage medium for pre-installing application | |
CN111966463A (en) | Container mirror image construction method and device, storage medium and electronic equipment | |
CN116775146A (en) | Independent mobile component dynamic loading method, system, equipment and medium | |
KR101083229B1 (en) | Method, apparatus, system, and recording medium for downloading necessary application of mobile terminal | |
CN115454575B (en) | jar packet conversion and automatic loading method, device, equipment and storage medium | |
US11656861B2 (en) | Selectively installing applications based on manifest files | |
US11500651B2 (en) | Method and system for management of a local craft terminal application executed by a network element | |
CN114489711A (en) | Terminal upgrading method and device and storage medium | |
CN113448609A (en) | Container upgrading method, device, equipment and storage medium | |
EP2053504A1 (en) | System and method for managing processing resources | |
CN111562924B (en) | Distributed mobile application running system and application method based on Reactnative | |
KR101437837B1 (en) | Method and apparatus for downloading of content interlock between dynamic platform in a mobile communication system |
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 |