Component processing method and device and storage medium

By decoupling the dependency layer of the application and component splitting, a flexible component calling relationship is formed, which solves the long development cycle problem caused by business logic coupling in the existing technology, and achieves more efficient development and maintenance.

CN119045911APending Publication Date: 2024-11-29BEIYIN FINANCIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411195310.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the prior art, accessibility development couples all business logic together, resulting in a long development cycle, increasing development and maintenance costs, and making it difficult to add new features.

Method used

By decoupling the dependency layer of the application to be processed, the component dependencies are split, multiple basic libraries with different functions are formed, and each basic library is encapsulated, and the corresponding relationship between components is established based on the routing framework method to realize the inter-components. Flexible calls.

Benefits of technology

It avoids repeated development of complex logic, shortens the development cycle, improves development efficiency, and simplifies the process of adding new functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045911A_ABST
    Figure CN119045911A_ABST
Patent Text Reader

Abstract

The invention discloses a component processing method and device and a storage medium, and the method comprises the steps: decoupling a to-be-processed application program, and obtaining component dependence; performing dependent splitting on the component to obtain a plurality of basic libraries with different functions; packaging each basic library to obtain a first component set; based on the first component set and the development service of the to-be-processed application program, a second component set is created, and the second component set comprises at least one service function component and at least one service basic component; based on a routing framework method, a first corresponding relation between each component in the second component set and the first component is established, and the first corresponding relation is used for indicating the first component called by the components in the second component set. Namely, the business logic is split into the multiple components, flexible calling among the components is achieved by calling the basic library in the first component through the second component, repeated development of complex logic is avoided, the development period is shortened, and the development efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a component processing method, device and storage medium. Background Art

[0002] In order to make it easier for people with visual impairments, hearing impairments, and physical disabilities to use APPs, barrier-free adaptation has become a part of APP development. How to quickly achieve barrier-free adaptation, avoid repeated development of complex logic, and improve development efficiency has become a crucial part of APP development.

[0003] In the existing technology, barrier-free development couples all business logics together, resulting in the need to sort out the entire business logic for any change, making it difficult to add new functions, which in turn leads to a long development cycle and increased development and maintenance costs. Summary of the invention

[0004] The present invention provides a component processing method, device and storage medium, which are used to solve the problem in the prior art that business logics are coupled together, resulting in a long development cycle.

[0005] In a first aspect, an embodiment of the present application provides a component processing method, the method comprising:

[0006] Obtaining an application to be processed, decoupling a dependency layer of the application to be processed, and obtaining component dependencies;

[0007] Splitting the component dependencies to obtain multiple basic libraries with different functions;

[0008] Encapsulating each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library;

[0009] Creating a second component set based on the first component set and the development business corresponding to the application to be processed, wherein the second component set includes at least one business function component and at least one business basic component;

[0010] Based on the routing framework method, a first corresponding relationship between each component in the second component set and the first component in the first component set is established, wherein the first corresponding relationship is used to indicate that the component in the second component set calls the first component.

[0011] In a possible implementation, the method further includes:

[0012] For any business basic component, determining whether the any business basic component runs independently based on the development business;

[0013] When it is determined that the business basic component is not running independently, a second corresponding relationship between any business functional component and the business basic component is established based on the routing framework method, wherein the second corresponding relationship is used to indicate the business basic component called by the any business functional component.

[0014] In a possible implementation manner, encapsulating each basic library to obtain a first component set further includes:

[0015] Determining whether a basic library corresponding to the first component needs to be updated based on the development business;

[0016] When it is determined that the basic library needs to be updated, the basic library is unsealed based on the development business, and the resource files in the basic library are updated;

[0017] The updated basic library is encapsulated to obtain a first component.

[0018] In a possible implementation, determining whether a basic library corresponding to the first component needs to be updated based on the development business includes:

[0019] When the configuration parameters of the resource file in the basic library corresponding to the first component are inconsistent with the configuration parameters of the preset conditions of the development business, determining that the basic library needs to be updated;

[0020] When the configuration parameters of the resource file corresponding to the first component are consistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library does not need to be updated.

[0021] In a possible implementation manner, before packaging the updated basic library, the method further includes:

[0022] Saving the component name of the first component to the updated basic library;

[0023] In the updated basic library, the component name is used as a naming prefix of the file name of each resource file, and the file name of the resource file is renamed.

[0024] In a second aspect, an embodiment of the present application provides a component processing device, the device comprising:

[0025] A decoupling unit, used to obtain an application to be processed, decouple a dependency layer of the application to be processed, and obtain component dependencies;

[0026] A splitting unit, used for splitting the component dependencies to obtain multiple basic libraries with different functions;

[0027] The component creation unit is used to encapsulate each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; based on the first component set and the development business corresponding to the application to be processed, create a second component set, wherein the second component set includes at least one business function component and at least one business basic component;

[0028] A correspondence establishing unit is used to establish a first correspondence between each component in the second component set and the first component in the first component set based on a routing framework method, wherein the first correspondence is used to indicate that the component in the second component set calls the first component.

[0029] In a possible implementation manner, the component creation unit is specifically used to:

[0030] For any business basic component, determining whether the any business basic component runs independently based on the development business;

[0031] The corresponding relationship establishing unit is specifically used for:

[0032] When it is determined that the business basic component is not running independently, a second corresponding relationship between any business functional component and the business basic component is established based on the routing framework method, wherein the second corresponding relationship is used to indicate the business basic component called by the any business functional component.

[0033] In a possible implementation manner, the component creation unit is specifically used to:

[0034] Determining whether a basic library corresponding to the first component needs to be updated based on the development business;

[0035] When it is determined that the basic library needs to be updated, the basic library is unsealed based on the development business, and the resource files in the basic library are updated;

[0036] The updated basic library is encapsulated to obtain a first component.

[0037] In a possible implementation manner, the component creation unit is specifically used to:

[0038] When the configuration parameters of the resource file in the basic library corresponding to the first component are inconsistent with the configuration parameters of the preset conditions of the development business, determining that the basic library needs to be updated;

[0039] When the configuration parameters of the resource file corresponding to the first component are consistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library does not need to be updated.

[0040] In a possible implementation manner, the component creation unit is specifically used to:

[0041] Saving the component name of the first component to the updated basic library;

[0042] In the updated basic library, for each resource file, the component name is used as a naming prefix of the file name of each resource file, and the file name of the resource file is renamed.

[0043] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the method in the first aspect above.

[0044] The beneficial effects of the present invention are as follows:

[0045] The present application provides a component processing method, device and storage medium, which obtains component dependencies by decoupling the acquired application to be processed; splits the component dependencies to obtain multiple basic libraries with different functions; encapsulates each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; creates a second component set based on the first component set and the development business corresponding to the application to be processed, wherein the second component set includes at least one business function component and at least one business basic component; based on the routing framework method, establishes a first correspondence between each component in the second component set and the first component in the first component set, wherein the first correspondence is used to indicate that the component in the second component set calls the first component. In other words, the present application splits the business logic into multiple components, and realizes flexible calling between components through the second component calling the basic library in the first component, avoiding repeated development of complex logic, shortening the development cycle, and improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0047] Figure 1 A schematic diagram of a process flow of a component processing method provided in an embodiment of the present application;

[0048] Figure 2 A structural diagram of a component processing method provided in an embodiment of the present application;

[0049] Figure 3A flowchart of another component processing method provided in an embodiment of the present application;

[0050] Figure 4 A structural diagram of another component processing method provided in an embodiment of the present application;

[0051] Figure 5 A flowchart of another component processing method provided in an embodiment of the present application;

[0052] Figure 6 A schematic diagram of the structure of a component processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0054] The terms "first" and "second" in this document are used for descriptive purposes only and should not be understood as explicitly or implicitly indicating relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0055] In order to facilitate the use of APP by people with visual impairments, hearing impairments, and physical disabilities, barrier-free adaptation has become a part of APP development. How to quickly achieve barrier-free adaptation, avoid repeated development of complex logic, and improve development efficiency has become a crucial part of APP development. In existing technologies, barrier-free development couples all business logic together, and the same code is repeated in multiple systems. Any change requires combing through all business logic and multiple debugging work, resulting in a long development cycle and difficulty in adding new functions, increasing development and maintenance costs.

[0056] Based on the above problems, the present application embodiment provides a component processing method, such as Figure 1 , which is a flow chart of a component processing method provided in an embodiment of the present application.

[0057] S101, obtaining an application to be processed, decoupling a dependency layer of the application to be processed, and obtaining component dependencies;

[0058] Specifically, the dependency layer and business layer related codes in the application to be processed are coupled together, resulting in the same code being repeated in multiple systems and the same function being reused in multiple projects, which in turn leads to a long development cycle and low development efficiency. This application decouples the dependency layer and the business layer in the application to be processed to obtain component dependencies of the dependency layer.

[0059] S102, splitting component dependencies to obtain multiple basic libraries with different functions;

[0060] Specifically, component dependencies include basic libraries that can implement specific functions, such as: image loading basic library, network request basic library, log monitoring basic library, etc. These basic libraries can be used as component dependencies of the application to be processed, and specific functions can be quickly integrated. By splitting the component dependencies, multiple basic libraries with different functions are obtained, including: image loading basic library, network request basic library, log monitoring basic library, data operation basic library, and permission operation basic library. In other words, this application realizes the splitting of business logic in the application to be processed by splitting component dependencies.

[0061] S103, encapsulating each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library;

[0062] Specifically, multiple basic libraries are encapsulated to obtain multiple first components, and the multiple first components constitute a first component set. For example, the first component obtained by encapsulating the image loading basic library is used for image loading, the first component obtained by encapsulating the network request basic library is used for network request, the first component obtained by encapsulating the log monitoring basic library is used for log monitoring, the first component obtained by encapsulating the data operation basic library is used for data operation, and the first component obtained by encapsulating the permission operation basic library is used for permission operation.

[0063] S104: Create a second component set based on the first component set and the development business corresponding to the application to be processed, wherein the second component set includes at least one business function component and at least one business basic component;

[0064] Business function components refer to modules that directly support business functions, such as user management, order processing, etc. Business basic components are underlying modules that support the operation of business components, such as database access, log monitoring and recording, etc. Based on the first component set and the development business corresponding to the application to be processed, a second component set is created, and the created second component set includes at least one business function component and at least one business basic component.

[0065] S105. Based on the routing framework method, establish a first corresponding relationship between each component in the second component set and the first component in the first component set, wherein the first corresponding relationship is used to indicate that the component in the second component set calls the first component.

[0066] Specifically, in order to realize the component communication between the first component set and the second component set, a first correspondence relationship between each component in the second component set and the first component in the first component set is established based on the routing framework method, so as to realize the first component called by the component in the second component set. For example, taking the second component as a business basic component as an example, if the business basic component is used for log monitoring and recording, a first correspondence relationship between the business basic component and the first component used for log monitoring is established based on the routing framework method, so as to realize the business basic component calling the first component used for log monitoring. For example, taking the second component as a business function component as an example, if the business function component is used for user management, a first correspondence relationship between the business function component and the first component used for permission operation and the first component used for network request is established based on the routing framework method, so as to realize the business function component calling the first component used for permission operation and calling the first component used for network request. It should be noted that in step S104, multiple basic libraries are encapsulated to obtain multiple first components, so as to facilitate the second component to call the basic library in the first component and realize flexible calling between components.

[0067] The present application provides a component processing method, which decouples the obtained application to be processed to obtain component dependencies; splits the component dependencies to obtain multiple basic libraries with different functions; encapsulates each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; based on the first component set and the development business corresponding to the application to be processed, a second component set is created, wherein the second component set includes at least one business function component and at least one business basic component; based on the routing framework method, a first correspondence is established between each component in the second component set and the first component in the first component set, wherein the first correspondence is used to indicate the first component called by the component in the second component set. In other words, the present application splits the business logic into multiple components, and realizes flexible calling between components through the second component calling the basic library in the first component, avoiding repeated development of complex logic, shortening the development cycle, and improving development efficiency.

[0068] In a possible implementation, Figure 2 As shown, it is a structural diagram of a component processing method provided in an embodiment of the present application, wherein the first component set 201 includes multiple first components, and the second component set 202 includes at least one business function component and at least one business basic component.

[0069] In a specific embodiment, multiple basic libraries are encapsulated to obtain a first component set, and a second component set is created based on the first component set and the development business corresponding to the application to be processed. Based on a routing framework method, a first corresponding relationship between each component in the second component set and the first component in the first component set is established. Based on the routing framework method, the second component calls the basic library in the first component, thereby realizing flexible calling between components and improving development efficiency.

[0070] In a possible implementation, Figure 3 , which is a flow chart of another component processing method provided in an embodiment of the present application.

[0071] S301. For any business basic component, determine whether any business basic component runs independently based on the development business;

[0072] S302: When it is determined that the business basic component is not running independently, a second corresponding relationship between any business function component and the business basic component is established based on a routing framework method, wherein the second corresponding relationship is used to indicate that any business function component calls the business basic component.

[0073] In a specific embodiment, Figure 4 As shown, it is a structural diagram of another component processing method provided in an embodiment of the present application. For any business basic component in the second component set 202, it is determined whether any business basic component runs independently based on the development business. When it is determined that the business basic component does not run independently, it is necessary to establish a second corresponding relationship between any business function component and the business basic component to realize the calling of the business function component to the business basic component. When it is determined that the business basic component runs independently, it is not necessary to establish a second corresponding relationship between any business function component and the business basic component, that is, any business function component cannot call the business basic component.

[0074] It should be noted that whether the business basic component runs independently is determined based on setting the component independent debugging switch in the application to be processed. For example, specifically, the first variable isModule is set in the application to be processed. When the first variable isModule is set to the first fixed value false, it is determined that the business basic component does not run independently. When the first variable isModule is set to the second fixed value true, it is determined that the business basic component runs independently.

[0075] In addition, when it is determined that the business basic component is running independently, a target business basic component set is constructed based on each independently running business basic component through file dynamic configuration. The target business basic component set can be used for individual debugging by the user, and can also be used for integrated debugging in the second component set by the user. Combining individual debugging and integrated debugging shortens the development cycle and improves development efficiency.

[0076] In a possible implementation, Figure 5 FIG. 1 is a flow chart of another component processing method provided in an embodiment of the present application. The specific steps are as follows:

[0077] S501, determining whether a basic library corresponding to a first component needs to be updated based on a development business;

[0078] Specifically, when the configuration parameters of the resource file in the basic library corresponding to the first component are inconsistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library needs to be updated; when the configuration parameters of the resource file corresponding to the first component are consistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library does not need to be updated.

[0079] S502: When it is determined that the basic library needs to be updated, the basic library is unsealed based on the development business, and the resource files in the basic library are updated;

[0080] S503: Encapsulate the updated basic library to obtain a first component.

[0081] In a specific embodiment, when it is determined that the basic library is updated, the component name of the first component is saved to the updated basic library; in the updated basic library, for each resource file, the component name is used as a naming prefix of the file name of each resource file, and the file name of the resource file is renamed.

[0082] For example, when the first component is used to represent login, the component name of the first component is "login". The component name "login" of the first component is saved to the updated basic library, and each resource file in the basic library is renamed. Specifically, the component name "login" is used as the naming prefix of the file name of each resource file. For anim files, if the anim file is originally named "slide_in.xml", the anim file is renamed to "login_slide_in.xml". For color files, if the color file is originally named "tab_text_color.xml", the color file is renamed to "login_tab_text_color.xml".

[0083] Based on the same inventive concept, an embodiment of the present application further provides a component processing device, the principle of which is similar to that of the above-mentioned component processing method, and the repeated parts will not be repeated.

[0084] like Figure 6 FIG. 1 is a schematic diagram of a component processing device provided in an embodiment of the present application, the device comprising:

[0085] A decoupling unit 601 is used to obtain an application to be processed, decouple a dependency layer of the application to be processed, and obtain component dependencies;

[0086] A splitting unit 602 is used to split the component dependency to obtain a plurality of basic libraries with different functions;

[0087] The component creation unit 603 is used to encapsulate each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; based on the first component set and the development business corresponding to the application to be processed, create a second component set, wherein the second component set includes at least one business function component and at least one business basic component;

[0088] The correspondence establishing unit 604 is used to establish a first correspondence between each component in the second component set and the first component in the first component set based on the routing framework method, wherein the first correspondence is used to indicate that the component in the second component set calls the first component.

[0089] The present application provides a component processing device, which obtains component dependencies by decoupling the acquired application to be processed; splits the component dependencies to obtain multiple basic libraries with different functions; encapsulates each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; based on the first component set and the development business corresponding to the application to be processed, a second component set is created, wherein the second component set includes at least one business function component and at least one business basic component; based on the routing framework method, a first correspondence between each component in the second component set and the first component in the first component set is established, wherein the first correspondence is used to indicate that the component in the second component set calls the first component. In other words, the present application splits the business logic into multiple components, and realizes flexible calling between components through the second component calling the basic library in the first component, avoiding repeated development of complex logic, shortening the development cycle, and improving development efficiency.

[0090] In a possible implementation manner, the component creation unit 603 is specifically configured to:

[0091] For any business basic component, determining whether the any business basic component runs independently based on the development business;

[0092] The corresponding relationship establishing unit 604 is specifically used for:

[0093] When it is determined that the business basic component is not running independently, a second corresponding relationship between any business functional component and the business basic component is established based on the routing framework method, wherein the second corresponding relationship is used to indicate the business basic component called by the any business functional component.

[0094] In a possible implementation manner, the component creation unit 603 is specifically configured to:

[0095] Determining whether a basic library corresponding to the first component needs to be updated based on the development business;

[0096] When it is determined that the basic library needs to be updated, the basic library is unsealed based on the development business, and the resource files in the basic library are updated;

[0097] The updated basic library is encapsulated to obtain a first component.

[0098] In a possible implementation manner, the component creation unit 603 is specifically configured to:

[0099] When the configuration parameters of the resource file in the basic library corresponding to the first component are inconsistent with the configuration parameters of the preset conditions of the development business, determining that the basic library needs to be updated;

[0100] When the configuration parameters of the resource file corresponding to the first component are consistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library does not need to be updated.

[0101] In a possible implementation manner, the component creation unit 603 is specifically configured to:

[0102] Saving the component name of the first component to the updated basic library;

[0103] In the updated basic library, for each resource file, the component name is used as a naming prefix of the file name of each resource file, and the file name of the resource file is renamed.

[0104] Based on the same inventive concept, the embodiment of the present application also provides a computer-readable storage medium, which has similar principles to the above-mentioned component processing method and device, and the repeated parts are not repeated here.

[0105] An embodiment of the present disclosure provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute any one of the methods described in the first aspect.

[0106] In summary, in the embodiments of the present disclosure, a component processing method, device and storage medium are provided, which obtain component dependencies by decoupling the acquired application to be processed; split the component dependencies to obtain multiple basic libraries with different functions; encapsulate each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; based on the first component set and the development business corresponding to the application to be processed, a second component set is created, wherein the second component set includes at least one business function component and at least one business basic component; based on the routing framework method, a first correspondence between each component in the second component set and the first component in the first component set is established, wherein the first correspondence is used to indicate that the component in the second component set calls the first component. In other words, the present application splits the business logic into multiple components, and realizes flexible calling between components through the second component calling the basic library in the first component, avoiding repeated development of complex logic, shortening the development cycle, and improving development efficiency.

[0107] The present application is described above with reference to the block diagrams and / or flow charts showing the methods, devices (systems) and / or computer program products according to the embodiments of the present application. It should be understood that a block of the block diagram and / or flow chart diagram and a combination of blocks of the block diagram and / or flow chart diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer and / or other programmable data processing device to produce a machine, so that the instructions executed by the computer processor and / or other programmable data processing device create a method for implementing the functions / actions specified in the block diagram and / or flow chart block.

[0108] Accordingly, the present application may also be implemented with hardware and / or software (including firmware, resident software, microcode, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium, which has a computer-usable or computer-readable program code implemented in the medium, for use by an instruction execution system or in conjunction with an instruction execution system. In the context of the present application, a computer-usable or computer-readable medium may be any medium that may contain, store, communicate, transmit, or convey a program for use by an instruction execution system, device, or apparatus, or in conjunction with an instruction execution system, device, or apparatus.

[0109] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A component processing method, characterized in that: The method comprises: Obtaining an application to be processed, decoupling a dependency layer of the application to be processed, and obtaining component dependencies; Splitting the component dependencies to obtain multiple basic libraries with different functions; Encapsulating each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; Creating a second component set based on the first component set and the development business corresponding to the application to be processed, wherein the second component set includes at least one business function component and at least one business basic component; Based on the routing framework method, a first corresponding relationship between each component in the second component set and the first component in the first component set is established, wherein the first corresponding relationship is used to indicate that the component in the second component set calls the first component.

2. The method according to claim 1, characterized in that The method further comprises: For any business basic component, determining whether the any business basic component runs independently based on the development business; When it is determined that the business basic component is not running independently, a second corresponding relationship between any business functional component and the business basic component is established based on the routing framework method, wherein the second corresponding relationship is used to indicate the business basic component called by the any business functional component.

3. The method according to claim 1, characterized in that The encapsulating each basic library to obtain a first component set also includes: Determining whether a basic library corresponding to the first component needs to be updated based on the development business; When it is determined that the basic library needs to be updated, the basic library is unsealed based on the development business, and the resource files in the basic library are updated; The updated basic library is packaged to obtain a first component.

4. The method according to claim 3, characterized in that The determining, based on the development business, whether a basic library corresponding to the first component needs to be updated includes: When the configuration parameters of the resource file in the basic library corresponding to the first component are inconsistent with the configuration parameters of the preset conditions of the development business, determining that the basic library needs to be updated; When the configuration parameters of the resource file corresponding to the first component are consistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library does not need to be updated.

5. The method according to claim 3, characterized in that Before packaging the updated basic library, the method further includes: Saving the component name of the first component to the updated basic library; In the updated basic library, for each resource file, the component name is used as a naming prefix of the file name of each resource file, and the file name of the resource file is renamed.

6. A component processing device, characterized in that: The device comprises: A decoupling unit, used to obtain an application to be processed, decouple a dependency layer of the application to be processed, and obtain component dependencies; A splitting unit, used for splitting the component dependencies to obtain multiple basic libraries with different functions; The component creation unit is used to encapsulate each basic library to obtain a first component set, wherein the first component included in the first component set is obtained by encapsulating each basic library; based on the first component set and the development business corresponding to the application to be processed, create a second component set, wherein the second component set includes at least one business function component and at least one business basic component; A correspondence establishing unit is used to establish a first correspondence between each component in the second component set and the first component in the first component set based on a routing framework method, wherein the first correspondence is used to indicate that the component in the second component set calls the first component.

7. The device according to claim 6, characterized in that The component creation unit is specifically used for: For any business basic component, determining whether the any business basic component runs independently based on the development business; The corresponding relationship establishing unit is specifically used for: When it is determined that the business basic component is not running independently, a second corresponding relationship between any business functional component and the business basic component is established based on the routing framework method, wherein the second corresponding relationship is used to indicate the business basic component called by the any business functional component.

8. The device according to claim 6, characterized in that The component creation unit is specifically used for: Determining whether a basic library corresponding to the first component needs to be updated based on the development business; When it is determined that the basic library needs to be updated, the basic library is unsealed based on the development business, and the resource files in the basic library are updated; The updated basic library is encapsulated to obtain a first component.

9. The device according to claim 8, characterized in that The component creation unit is specifically used for: When the configuration parameters of the resource file in the basic library corresponding to the first component are inconsistent with the configuration parameters of the preset conditions of the development business, determining that the basic library needs to be updated; When the configuration parameters of the resource file corresponding to the first component are consistent with the configuration parameters of the preset conditions of the development business, it is determined that the basic library does not need to be updated.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 5.