Module Management Method, Device, Storage Medium and Electronic Device for Application Program
By implementing the module management method in the iOS modular management system, and supporting the loading of dynamic library modules on demand, it solves the problems of long startup time and low operation efficiency of the application in the existing technology, and achieves more efficient modular management.
Patent Information
- Application Number
- CN201910562273.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-26
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2039-06-26
AI Technical Summary
The existing iOS modular management system is based on the cocoapods framework and cannot support the loading of dynamic library modules on demand, resulting in long startup time and low running efficiency.
By implementing a module management method in the application, using the configuration table to pull module information from the server, download and load the dynamic library module on demand, and modify the application's engineering configuration file based on the module information.
It realizes the management of loading dynamic library modules on demand, reduces the application startup time and improves the application running efficiency.
Smart Images

Figure CN112231008B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method, device, storage medium and electronic device for module management of an application program. Background Art
[0002] Generally, with the continuous development and growth of business, the functions undertaken by the application program become heavier and heavier. Especially after the code has changed hands several times, it begins to become chaotic, and things that affect the whole by a small change often occur. In order to cope with the development mode after the team grows, it is necessary to isolate functions and realize the modularization of the application program.
[0003] Currently, the iOS modular management system is basically based on the open-source framework cocoapods, but the functions provided by this framework are limited and do not support loading dynamic library modules on demand. The dynamic library module loaded on demand is not loaded when the application program starts, but is loaded when needed, and this loading time is controllable by the developer. Using the dynamic library module loaded on demand can greatly reduce the startup time of the application program and improve the running efficiency of the application program.
[0004] Therefore, a new method, device, storage medium and electronic device for module management of an application program are needed to realize the modular management of loading dynamic libraries on demand.
[0005] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present invention, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0006] In view of this, the present invention provides a method, device, storage medium and electronic device for module management of an application program to realize the modular management of loading dynamic libraries on demand.
[0007] Other features and advantages of the present invention will become apparent through the following detailed description, or be learned in part through the practice of the present invention.
[0008] According to a first aspect of an embodiment of the present invention, a method for module management of an application program is provided, wherein the method includes:
[0009] Pull a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one dynamic library module loaded on demand of the application program;
[0010] Download a module from a server according to the module information in the configuration table, and load the module into the project of the application program;
[0011] Modify the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module.
[0012] In some exemplary embodiments of the present invention, based on the foregoing solution, the method includes:
[0013] Obtain the type information of the module from the server based on the module selected by the user;
[0014] Build the module based on the type information of the module, and synchronize the module information of the module to the server;
[0015] Based on the trigger integration operation of the user, determine the module information of the module, and store the module information in the configuration table of the server.
[0016] In some exemplary embodiments of the present invention, based on the foregoing solution, modifying the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module includes:
[0017] Delete the module information of the on-demand loading dynamic library module from the configuration table;
[0018] Obtain the module information list in the configuration table after deleting the on-demand loading dynamic library module;
[0019] Modify the configuration file of the project of the application program based on the module information list.
[0020] In some exemplary embodiments of the present invention, based on the foregoing solution, modifying the configuration file of the project of the application program based on the module information list includes:
[0021] Modify the values corresponding to the first keyword and the second keyword in the configuration file of the project of the application program based on the module information list.
[0022] In some exemplary embodiments of the present invention, based on the foregoing solution, modifying the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module includes:
[0023] Modify the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module according to the method hook.
[0024] In some exemplary embodiments of the present invention, based on the foregoing solution, the module information includes: module name, version number, and module type.
[0025] In some exemplary embodiments of the present invention, based on the foregoing solution, the method is applied to the ios system.
[0026] According to the second aspect of the embodiments of the present invention, there is provided a module management device for an application program, wherein the device includes:
[0027] A pulling module configured to pull a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of the application program;
[0028] A loading module configured to download a module from a server according to the module information in the configuration table and load the module into the project of the application program;
[0029] A modifying module configured to modify a configuration file of the project of the application program based on the information of the on-demand loading dynamic library module.
[0030] In some exemplary embodiments of the present invention, based on the foregoing solution, the device further includes:
[0031] An obtaining module for obtaining type information of the module from the server based on the module selected by the user;
[0032] A synchronizing module for constructing the module based on the type information of the module and synchronizing the module information of the module to the server;
[0033] A storing module for determining the module information of the module based on a triggering integration operation of the user and storing the module information in the configuration table of the server.
[0034] In some exemplary embodiments of the present invention, based on the foregoing solution, the modifying module includes:
[0035] A deleting unit for deleting the module information of the on-demand loading dynamic library module from the configuration table;
[0036] An obtaining unit for obtaining a list of module information in the configuration table after deleting the on-demand loading dynamic library module;
[0037] A modifying unit for modifying a configuration file of the project of the application program based on the list of module information.
[0038] In some exemplary embodiments of the present invention, based on the foregoing solution, the modifying unit is further configured to modify values corresponding to a first keyword and a second keyword in a configuration file of the project of the application program based on the list of module information.
[0039] In some exemplary embodiments of the present invention, based on the foregoing solution, the modifying unit is further configured to modify a configuration file of the project of the application program based on the information of the on-demand loading dynamic library module according to a method hook.
[0040] In some exemplary embodiments of the present invention, based on the foregoing solution, the module information includes: module name, version number, and module type.
[0041] In some exemplary embodiments of the present invention, based on the foregoing solution, the method is applied to the iOS system.
[0042] According to a third aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, wherein when the program is executed by a processor, the method steps described in the first aspect are implemented.
[0043] According to a fourth aspect of the embodiments of the present invention, there is provided an electronic device, including: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method steps as described in the first aspect.
[0044] In the embodiments of the present invention, a configuration table is pulled from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of an application program; modules are downloaded from a server based on the module information in the configuration table, and the modules are loaded into the project of the application program; and a configuration file of the project of the application program is modified based on the information of the on-demand loading dynamic library module. The modular management of on-demand loading dynamic libraries is realized, and the running efficiency of the application program is improved.
[0045] It should be understood that the above general description and subsequent detailed description are only exemplary and explanatory, and cannot limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present invention, and are used together with the specification to explain the principles of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts. In the drawings:
[0047] Figure 1 is a flowchart showing a method for managing modules of an application program according to an exemplary embodiment;
[0048] Figure 2 is a flowchart showing a method for releasing modules according to an exemplary embodiment;
[0049] Figure 3 is a flowchart showing the integration of on-demand loading dynamic library modules according to an exemplary embodiment;
[0050] Figure 4 It is a schematic structural diagram of an application program module management device shown according to an exemplary embodiment;
[0051] Figure 5 It is a schematic structural diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0052] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. Like reference numerals in the figures denote like or similar parts, and thus their repetitive description will be omitted.
[0053] In addition, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present invention. However, those skilled in the art will realize that the technical solutions of the present invention can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present invention.
[0054] The block diagrams shown in the drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0055] The flowcharts shown in the drawings are merely illustrative and do not necessarily include all the contents and operations / steps, nor are they necessarily executed in the described order. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation.
[0056] Next, with reference to specific embodiments, the method for managing modules of an application program proposed in the embodiments of the present invention will be described in detail. It should be noted that the execution subject of the embodiments of the present invention can be executed by a device with computing and processing capabilities, such as: a server and / or a terminal device, but the present invention is not limited thereto. The method for managing application program modules proposed in the embodiments of the present invention is applicable to the iOS system.
[0057] Figure 1It is a schematic flowchart of a method for managing modules of an application shown according to an exemplary embodiment. As Figure 1 shown, the method may include but is not limited to the following steps:
[0058] In S110, pull a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of the application.
[0059] In an embodiment of the present invention, request the configuration table information interface of the server to pull down the configuration table information. The configuration table describes all the module information that needs to be integrated in the application. In an embodiment of the present invention, the module information includes module information of at least one on-demand loading dynamic library module of the application. It should be noted that the module information may also include module information of some other modules. For example, module information of a certain dynamic library module, module information of a certain static library module.
[0060] In an embodiment of the present invention, the module information at least includes a module name, a version number, and a module type. The module type may include: a dynamic library module, a static library module, and an on-demand loading dynamic library module.
[0061] A dynamic library module refers to a library that contains code and data that can be used by multiple programs simultaneously. For example, in the Windows operating system, Comdlg32.dll executes common functions related to dialog boxes. Therefore, each program can use the functions contained in this DLL to implement an "open" dialog box. This helps to avoid code reuse and promote the effective use of memory. By using DLLs, programs can be modularized and consist of relatively independent components. For example, an accounting program can be developed by module. Each module can be loaded into the main program at runtime (if the corresponding module is installed). Since the modules are independent of each other, the program loads faster, and the modules are only loaded when the corresponding functions are requested.
[0062] A static library module refers to a library in which some common code that needs to be used repeatedly in an application is compiled into a "library" file; in the linking step, the linker obtains the required code from the library file and copies it into the generated executable file.
[0063] In S120, download modules from the server according to the module information in the configuration table, and load the modules into the project of the application to query the account identifier corresponding to the face information based on the face information.
[0064] In an embodiment of the present invention, after the user triggers the installation and executes the "pod install" command, the script logic written in the Podfile will be executed. The script reads the configuration table obtained in the previous step and introduces all the module information required in the configuration table into the project of the application in the form of "pod xxx, version number (such as 1.0.0)". Then, according to the module information, the corresponding binary files are downloaded from the server and loaded into the project of the application.
[0065] In an embodiment of the present invention, the server may include, but is not limited to, a cloud server.
[0066] In S130, modify the configuration file of the project of the application based on the information of the on-demand loading dynamic library module.
[0067] In an embodiment of the present invention, after the module is loaded into the project of the application, the module information of the on-demand loading dynamic library module is deleted from the configuration table, and the module information list in the configuration table after deleting the on-demand loading dynamic library module is obtained, and the configuration file of the project of the application is modified based on the module information list.
[0068] In an embodiment of the present invention, when modifying the configuration file of the project of the application based on the module information list, the values corresponding to the first keyword and the second keyword in the configuration file of the project of the application can be modified based on the module information list.
[0069] It should be noted that the first keyword may be FRAMEWORK_SEARCH_PATHS, and the second keyword may be OTHER_LDFLAGS. The values corresponding to these two keywords describe the relevant configuration information of the static library module and the dynamic library module that the project of the application needs to connect to. After deleting the module information of the on-demand loading dynamic library module from the configuration table, the values corresponding to these two keywords are modified based on the module information of the remaining static library module and dynamic library module in the configuration table. For example, the value corresponding to the first keyword FRAMEWORK_SEARCH_PATHS can be modified to be in the form of "FRAMEWORK_SEARCH_PATH=$(inherited) "@{PODS_CONFIGURATION_BUILD_DIR} / modulename_1.0.0". Another example is that the value corresponding to the second keyword OTHER_LDFLAGS can be modified to be in the form of "OTHER_LDFLAGS=$(inherited) -framework modulename".
[0070] It should be noted that the values corresponding to the first keyword and the second keyword correspond to at least one dynamic library module or static library module. That is to say, no matter how many static library modules and dynamic library modules remain in the configuration table, only the first keyword and the second keyword need to be modified once.
[0071] In the embodiments of the present invention, when modifying the configuration file of the application project, it can be implemented based on the hook method. After the hook is installed, the hook calls the post_install method. The core logic is written in the post_install method block, deleting the module information of the modules marked as dynamically loaded libraries on demand in the configuration table, obtaining the module information list in the configuration table after deleting the dynamically loaded libraries on demand, reading the.xcconfig file of the main target, and by executing the "sed -i" command, finding keywords such as FRAMEWORK_SEARCH_PATHS and OTHER_LDFLAGS and their corresponding values, and modifying the values corresponding to these two keywords based on the module information list.
[0072] In the embodiments of the present invention, the configuration table is pulled from the server based on the configuration table information interface; the configuration table includes the module information of at least one dynamically loaded library module of the application; the module is downloaded from the server according to the module information in the configuration table and loaded into the application project; the configuration file of the application project is modified based on the information of the dynamically loaded library module on demand. The modular management of dynamically loaded libraries on demand is realized, and the running efficiency of the application is improved.
[0073] Figure 2 It is a schematic flowchart of a module publishing method shown according to an exemplary embodiment. As Figure 2 shown, the method may include but is not limited to the following steps:
[0074] In S210, based on the module selected by the user, the type information of the module is obtained from the server.
[0075] In the embodiments of the present invention, in response to the publishing instruction clicked by the user, an interface is displayed. The interface displays modules for the user to select. After the user selects a module on this interface, based on the module selected by the user, the type information of these modules can be obtained from the server.
[0076] It should be pointed out that in the embodiments of the present invention, the module selected by the user includes at least one dynamically loaded library module on demand.
[0077] In S220, the module is constructed based on the type information of the module, and the module information of the module is synchronized to the server.
[0078] In the embodiments of the present invention, based on the module information obtained from the server, the module name, module type, and version number of the module selected by the user can be confirmed. Based on the module information, the module selected by the user can be constructed. After the module is constructed, the module information of the constructed module is synchronized to the server and recorded.
[0079] In S230, based on the user's trigger integration operation, the module information of the module is determined and the module information is stored in the configuration table of the server.
[0080] It should be noted that after the module information of the constructed module is synchronized to the server, the server may include multiple version number information of a module. Based on the integration operation triggered by the user, the final version number can be determined from the multiple version number information of a module, and the version number, name, and type of the module are stored in the configuration table of the server. Thus, the configuration table includes the module information of the application program to implement the module management of the application program.
[0081] The implementation scenarios of the present invention will be described in detail below in combination with specific application scenarios. Figure 3 is a flowchart of the integration of on-demand loading dynamic library modules shown according to an exemplary embodiment. As Figure 3 shown, when the user clicks the integration operation, the goal is to integrate all the modules under the current application program into the main project and complete the relevant project configuration. Request the server configuration table information interface to pull down the configuration table information, which describes all the module information to be integrated, including the module name, version number, and module type (three types). Then trigger the installation and execute the pod install command. At this time, the script logic written in the podfile will be executed. The script reads the configuration table information obtained in the previous step and introduces all the modules required in the configuration table into the project in the form of "pod xxx, version number (such as 1.0.0)". Next, the corresponding binary file will be downloaded from the server according to the module information, loaded into the project, and the corresponding configuration will be completed. Configuration is the key point. By releasing a gem package in advance, this gem package contains Figure 3 all the ruby script logic of the steps in the dotted area in
[0082] Install A.hook and call the post_install method.
[0083] Write the core logic in the B.post_install method block.
[0084] C. Based on the configuration table information obtained previously, eliminate the modules marked as dynamically loaded libraries of the on-demand loading type.
[0085] D. Read the.xcconfig file of the main target. By executing the "sed -i" command, find the keywords and corresponding values such as FRAMEWORK_SEARCH_PATHS and OTHER_LDFLAGS. These two values describe the configuration information related to the static and dynamic libraries that the project needs to link. After finding these two values, take the module list obtained in the previous step after eliminating the modules marked as dynamically loaded libraries of the on-demand loading type, and rewrite the corresponding values.
[0086] E. Rewrite the value corresponding to FRAMEWORK_SEARCH_PATHS in the form of "FRAMEWORK_SEARCH_PATH=$(inherited) @{PODS_CONFIGURATION_BUILD_DIR} / modulename_1.0.0".
[0087] F. Rewrite OTHER_LDFLAGS in the form of "OTHER_LDFLAGS=$(inherited) -framework modulename".
[0088] Finally, after the configuration modification is completed, wait for the application to be packaged.
[0089] In the above embodiments of the present invention, by installing the ruby script through the built-in gem and triggering the modification of the.xcconfig configuration file by the hook installation method, the goal of the iOS modular management solution supporting on-demand loading of dynamic libraries is achieved.
[0090] It should be clearly understood that the present invention describes how to form and use specific examples, but the principles of the present invention are not limited to any details of these examples. On the contrary, based on the teachings of the content disclosed in the present invention, these principles can be applied to many other embodiments.
[0091] The following is an embodiment of the device of the present invention, which can be used to execute the method embodiment of the present invention. In the following description of the device, the same parts as the foregoing method will not be described again.
[0092] Figure 4 It is a schematic structural diagram of an application program module management device shown according to an exemplary embodiment. Among them, the device 400 includes:
[0093] A pulling module 410, configured to pull a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of an application program;
[0094] A loading module 420, configured to download a module from a server according to the module information in the configuration table and load the module into the project of the application program;
[0095] A modification module 430, configured to modify a configuration file of the project of the application program based on the information of the on-demand loading dynamic library module.
[0096] In an embodiment of the present invention, a configuration table is pulled from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of an application program; a module is downloaded from a server according to the module information in the configuration table and loaded into the project of the application program; a configuration file of the project of the application program is modified based on the information of the on-demand loading dynamic library module. The modular management of on-demand loading dynamic libraries is realized, and the running efficiency of the application program is improved.
[0097] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist alone without being assembled into the device. The above computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device can execute: pulling a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of an application program; downloading a module from a server according to the module information in the configuration table and loading the module into the project of the application program; modifying a configuration file of the project of the application program based on the information of the on-demand loading dynamic library module.
[0098] Figure 5 It is a schematic structural diagram of an electronic device shown according to an exemplary embodiment. It should be noted that, Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present application.
[0099] Such as Figure 5As shown, computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage section 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0100] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read from it can be installed into the storage section 508 as needed.
[0101] Specifically, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above functions defined in the terminal of the present application are executed.
[0102] It should be noted that the computer-readable medium shown in this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0103] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0104] The units involved in the embodiments described in this application can be implemented in software or in hardware. The described units can also be provided in a processor. For example, it can be described as: a processor includes a pulling module, a loading module, and a modifying module. Among them, the names of these modules do not constitute a limitation to the module itself in some cases.
[0105] The exemplary embodiments of the present invention have been specifically shown and described above. It should be understood that the present invention is not limited to the detailed structures, arrangements, or implementation methods described herein; on the contrary, the present invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A method for module management of an application program, characterized in that, the method includes: Pulling a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of the application program, and the module information includes a module name, a version number, and a module type; Downloading a module from a server according to the module information in the configuration table, and loading the module into the project of the application program; Modifying a configuration file of the project of the application program based on the information of the on-demand loading dynamic library module; Among them, modifying the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module includes: Deleting the module information of the on-demand loading dynamic library module from the configuration table; Obtaining a module information list in the configuration table after deleting the on-demand loading dynamic library module; Modifying the configuration file of the project of the application program based on the module information list.
2. The method according to claim 1, characterized in that, the method further includes: Obtaining type information of a module from the server based on a module selected by a user; Constructing the module based on the type information of the module, and synchronizing the module information of the module to the server; Based on a trigger integration operation of a user, determining the module information of the module, and storing the module information in the configuration table of the server.
3. The method according to claim 1, characterized in that, modifying the configuration file of the project of the application program based on the module information list includes: Modifying values corresponding to a first keyword and a second keyword in the configuration file of the project of the application program based on the module information list.
4. The method according to claim 1, characterized in that, modifying the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module includes: Modifying the configuration file of the project of the application program based on the information of the on-demand loading dynamic library module according to a method hook.
5. The method according to any one of claims 1-4, characterized in that, the module information includes: a module name, a version number, and a module type.
6. The method according to any one of claims 1-4, characterized in that, the method is applied to an ios system.
7. A module management device for an application program, characterized in that, the device includes: A pulling module configured to pull a configuration table from a server based on a configuration table information interface; the configuration table includes module information of at least one on-demand loading dynamic library module of the application program, and the module information includes a module name, a version number, and a module type; A loading module configured to download a module from a server according to the module information in the configuration table, and load the module into the project of the application program; A modification module, configured to modify a configuration file of a project of the application based on information of the dynamically loaded library module on demand, wherein modifying the configuration file of the project of the application based on the information of the dynamically loaded library module on demand includes: deleting module information of the dynamically loaded library module on demand from the configuration table; obtaining a list of module information in the configuration table after deleting the dynamically loaded library module on demand; and modifying the configuration file of the project of the application based on the list of module information.
8. A computer-readable storage medium, having a computer program stored thereon, wherein, when the program is executed by a processor, the method steps described in any one of claims 1-6 are implemented.
9. An electronic device, wherein, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method steps described in any one of claims 1-6.
Citation Information
Patent Citations
Method and device for obtaining application functions based on iOS platform
CN106325847A