Method, device and storage medium for application generation based on Android system

By extracting and registering the annotation information of component call operations in the Android system, automatic communication between components is realized, which solves the problem of low development efficiency caused by complex dependencies between components and improves the development efficiency of mobile applications.

CN112925562BActive Publication Date: 2024-09-17BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110191967.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-19
Publication Date
2024-09-17
Estimated Expiration
2041-02-19

AI Technical Summary

Technical Problem

In traditional mobile application development, due to the complex interdependencies between components, development efficiency is low, requiring frequent communication and joint testing, which in turn affects application development efficiency.

Method used

By scanning and extracting the annotation information of component call operations required for business engineering in the Android system, a set of call operations is formed, and automatically registered in the bus routing component, enabling communication between components and realizing decoupling between components.

Benefits of technology

It improves the efficiency of component development and application development, reduces the communication needs between component developers, and simplifies the communication process between components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112925562B
    Figure CN112925562B
Patent Text Reader

Abstract

The present disclosure discloses a method, device and storage medium for generating an application based on an Android system. The method comprises: upon receiving a business compilation instruction, scanning and extracting annotation information of at least one call operation in a selected component required for a business project to form a call operation set; wherein the business project comprises script configuration information of the selected component; automatically registering the call operation set in a bus routing component so that the selected component communicates with other components through the bus routing component; and compiling the business project to generate an application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of mobile application technology, and in particular to a method, device and storage medium for generating an application based on an Android system. Background Art

[0002] With the development of mobile software, more and more mobile software are developed using componentization and modularization technologies.

[0003] Since components extract duplicate code and merge it into a single component, using a componentized approach to develop mobile software can increase the code reuse rate.

[0004] However, in the development process of traditional mobile applications, components are interdependent. As the business functions of mobile application development become more and more complex and the business scenarios become more and more complicated, the interdependence between components requires developers of different components to constantly communicate and conduct joint testing, resulting in low component development efficiency, and thus low application development efficiency. Summary of the invention

[0005] The present invention provides a method, device and storage medium for generating an application based on an Android system, so as to solve the above-mentioned technical problems existing in the prior art.

[0006] In the first aspect, in order to solve the above technical problems, the technical solution of a method for generating an application based on an Android system provided by the embodiment of the present disclosure is as follows:

[0007] When receiving the business compilation instruction, scanning and extracting annotation information of at least one call operation in the selected component required by the business project to form the call operation set; wherein the business project includes script configuration information of the selected component;

[0008] Automatically registering the call operation set into a bus routing component, so that the selected component communicates with other components through the bus routing component;

[0009] Compile the business project to generate an application.

[0010] In a possible implementation manner, before scanning and extracting annotation information of at least one call operation in the selected component required for the business project, the method further includes:

[0011] When receiving a component compilation instruction, scanning annotation information of at least one calling operation in a component project corresponding to the selected component through an annotation processor to form an information aggregation class of the at least one calling operation; wherein the component project includes the code to be compiled corresponding to the selected component;

[0012] Compiling the component project to generate the selected component;

[0013] The selected components and the information aggregation class are packaged as a library file for storage.

[0014] In a possible implementation, when receiving a business compilation instruction, the annotation information of at least one call operation in the selected component required by the business project is scanned and extracted to form a call operation set, including:

[0015] When receiving the service compilation instruction, determining the library file corresponding to the selected component from the stored library files;

[0016] The information aggregation class of the library file corresponding to the selected component is scanned and extracted to form the call operation set.

[0017] A possible implementation method is to automatically register the call operation set into the bus routing component, including:

[0018] Obtaining a call path corresponding to each call operation in the operation set, forming a call path set, and registering it in the bus routing component;

[0019] The component tag corresponding to the call path set is written into the list file of the business project, so that when the selected component in the business project is called, the corresponding component tag is obtained from the list file, so as to query the corresponding call path through the bus routing component.

[0020] In a possible implementation manner, the bus routing component includes:

[0021] A component routing information management module, used to manage the call operation set;

[0022] A routing module, used to receive a call request from a source component, and query the target component to be called from the component routing information management module according to the call request, call the target component, and pass the corresponding callback result to the source component through the bus module;

[0023] The bus module is used to transmit information between the source component and the routing module.

[0024] In a possible implementation manner, the routing module includes:

[0025] A routing management module, used to receive a call request from the source component, query a target call path of a target component to be called from the component routing information management module, select a module corresponding to the call request and locate the target component according to the target call path;

[0026] A page routing module, used for locating the target component for which the call request is a page call, and transmitting the corresponding callback result to the source component through the bus module;

[0027] A service routing module, used for locating the target component for which the call request is a service call, and transmitting the corresponding callback result to the source component through the bus module;

[0028] The aspect-oriented programming module is used to manage the calling process of the components in the routing module.

[0029] In a possible implementation manner, the calling operation includes one or more of the following:

[0030] Call page operations, call service operations, call custom operations.

[0031] In a possible implementation manner, the selected component inherits a component class having a component interface.

[0032] In a second aspect, an embodiment of the present disclosure provides a device for generating an application based on an Android system, comprising:

[0033] A component unit is used as a constituent element of a business project; wherein the business project includes script configuration information of the required selected components;

[0034] A bus routing component for enabling different selected components in the component unit to communicate;

[0035] A component automatic registration plug-in is used to scan and extract annotation information of at least one call operation in the components included in the business project when receiving a business compilation instruction, to form a call operation set; automatically register the call operation set in the bus routing component, so that the selected component can communicate with other components through the bus routing component;

[0036] The generating unit is used to compile the business project and generate an application.

[0037] In a possible implementation manner, the bus routing component includes:

[0038] A component routing information management module, used to manage the call operation set;

[0039] A routing module, used to receive a call request from a source component, and query the target component to be called from the component routing information management module according to the call request, call the target component, and pass the corresponding callback result to the source component through the bus module;

[0040] The bus module is used to transmit information between the source component and the routing module.

[0041] In a possible implementation manner, the routing module includes:

[0042] A routing management module, used to receive a call request from the source component, query a target call path of a target component to be called from the component routing information management module, select a module corresponding to the call request and locate the target component according to the target call path;

[0043] A page routing module, used for locating the target component for which the call request is a page call, and transmitting the corresponding callback result to the source component through the bus module;

[0044] A service routing module, used for locating the target component for which the call request is a service call, and transmitting the corresponding callback result to the source component through the bus module;

[0045] The aspect-oriented programming module is used to manage the calling process of the components in the routing module.

[0046] In a third aspect, the present disclosure also provides a device for generating an application based on an Android system, including:

[0047] at least one processor, and

[0048] a memory coupled to the at least one processor;

[0049] The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method as described in the first aspect above by executing the instructions stored in the memory.

[0050] In a fourth aspect, an embodiment of the present disclosure further provides a readable storage medium, including:

[0051] Memory,

[0052] The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium performs the method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A business function diagram of the automatic construction system of the mobile application provided by the present disclosure;

[0054] Figure 2 A flowchart of an Android-based application generation method provided in an embodiment of the present disclosure;

[0055] Figure 3 A schematic diagram of a display interface of an application provided in an embodiment of the present disclosure;

[0056] Figure 4 A schematic diagram of inter-component communication provided for an embodiment of the present disclosure;

[0057] Figure 5 A schematic diagram of the structure of an Android-based application generation device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0058] The embodiments of the present disclosure provide a method, device and storage medium for generating an application based on an Android system, so as to solve the above-mentioned technical problems existing in the prior art.

[0059] In order to better understand the above technical scheme, the technical scheme of the present disclosure is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present disclosure and the specific features in the embodiments are detailed descriptions of the technical scheme of the present disclosure, rather than limitations on the technical scheme of the present disclosure. In the absence of conflict, the embodiments of the present disclosure and the technical features in the embodiments can be combined with each other.

[0060] The automated construction system for mobile applications plans different roles and permissions for developers and users through user authority management. Users can view, upload, manage, and edit mobile components stored in the system through the mobile application open platform, and perform related operations such as mobile software construction, component combination, construction software management, detail query, and citation count through the system.

[0061] See also Figure 1 This is a business function diagram of the automated construction system for mobile applications provided by the present invention. The system mainly includes five parts: a mobile application open platform, a component and mobile application management background, a component source code hosting platform, a component package hosting platform, and a mobile application automated construction system.

[0062] The mobile application open platform is the entrance for the business system to interact with users. It is mainly connected with the components and mobile application management background through network interface calls. It mainly includes modules such as user management, component management, application construction management and permission management.

[0063] The component and mobile application management backend is mainly used to store component and mobile application information and their details, and provide business data for the mobile application open platform. It mainly includes the component management backend, mobile application management backend, business service backend and data backend.

[0064] The component source code hosting platform is mainly used for component source code storage and management. This part can be used as an independent closed-loop system, and can also be used to download source code and other operations through the external interface it provides. Its user management module is a self-contained system, mainly including source code management, user management, business interface, etc.

[0065] The component package hosting platform is mainly used for component package storage and management. This part can be used as an independent closed-loop system, and can also be used to download component dependency packages and other operations through the external interface it provides. Its user management module is a self-contained system, mainly including component management, user management, business interface, etc.

[0066] The mobile application automated build system is mainly used for mobile application automated build, workflow management, etc. This part can be used as an independent closed-loop system, or it can be used through the external interface it provides. Components and mobile application management background are connected through the network to call this part of the interface to pass the build parameters to the mobile application automated build system, thereby realizing a complete automated build process, mainly including Jenkins automated build, Android business scripts, IOS business scripts, etc.

[0067] The components in the above system are decoupled from each other in the following ways, thereby improving the efficiency of application development:

[0068] Please refer to Figure 2 , an embodiment of the present disclosure provides a method for generating an application based on an Android system, and the processing process of the method is as follows.

[0069] Step 201: When receiving a business compilation instruction, scan and extract annotation information of at least one call operation in a selected component required by the business project to form a call operation set; wherein the business project includes script configuration information of the selected component. Generally, the selected component is an element selected from a plurality of components to form an application.

[0070] Step 202: Automatically register the call operation set to the bus routing component, so that the selected component can communicate with other components through the bus routing component.

[0071] Step 203: Compile the business project to generate an application.

[0072] Before scanning and extracting annotation information of at least one call operation in the selected components included in the business project, if one or more selected components required by the business project do not exist yet, corresponding components need to be established. Establishing the selected components can be achieved in the following ways:

[0073] When a component compilation instruction is received, the annotation information of at least one calling operation in the component project corresponding to the selected component is scanned by the annotation processor to form an information aggregation class of at least one calling operation; wherein the component project includes the code to be compiled corresponding to the selected component; the component project is compiled to generate the selected component; the selected component and the information aggregation class are encapsulated into a corresponding library file for storage.

[0074] When writing the code of the selected component (i.e., component engineering), you can set a corresponding component class according to the corresponding function of the selected component, and let the component class inherit the component interface, so that the selected components that inherit the component class can communicate with each other through the component interface.

[0075] For example, when a selected component of a timeline needs to be developed, a component class of the timeline needs to be defined, and the component class inherits the component interface (IappComponent), so that the selected component developed in this way has a communication interface.

[0076] In the process of writing component code, you can use the Java annotation mechanism to make special marks on the code class to form annotation information. Based on the annotation information, you can determine what kind of call operation the selected component provides to the outside world.

[0077] The calling operation can be any one of calling a page operation, calling a service operation, calling a custom operation, or any combination thereof. Calling a custom operation includes obtaining data and passing messages. These calling operations can pass information through a general message object (BMessage).

[0078] For example, a photo album component (which is included in an application and is a selected component of the application) can provide a photo album query function. The call operation it can provide is a call page operation, through which the pictures in the photo album can be displayed. In the component project of the photo album component, a special mark can be made on the code class corresponding to the call page operation, such as "@Page" to form the corresponding annotation information.

[0079] For another example, an image processing service component (which is included in an application and is a selected component of the application) can provide image processing functions to the outside world. The call operation it can provide is the call service operation, through which the image can be processed (such as cropping and retouching the image). In the component project of the image processing service component, a special mark can be made on the code class corresponding to the call service operation, such as "@Service" to form the corresponding annotation information.

[0080] For another example, a picture upload component (which is included in an application and is a selected component of the application) can provide a picture upload function to the outside world. The call operation it can provide is to call a custom operation, through which the picture at the specified location can be uploaded to the target location. In the component project of the picture upload component, a special mark can be made on the code class corresponding to the call of the custom operation, such as "@Custom" to form the corresponding annotation information.

[0081] When the component project (i.e., the component code to be compiled) is completed, when the component compilation instruction is received, the annotation information of at least one calling operation in the component project corresponding to the component is scanned by the annotation processor to form an information aggregation class of at least one calling operation; and the component project is compiled to generate the corresponding selected component; the selected component and the information aggregation class are encapsulated into a corresponding library file for storage.

[0082] For example, after completing the writing of the component project of the album component, when receiving the component compilation instruction, the annotation information ("@Page") of the calling page operation in the component project of the album component is scanned through the annotation processor, and the information aggregation class of the calling page operation is formed in the system configuration file (i.e., the build file) of the album component. At the same time, the corresponding help class can also be formed, and the help class can better explain and assist developers to use this album component; then the component project of the album component is compiled to generate the album component, and then the gradle plug-in is used to package the component code and the information aggregation class and help class in the build file into an aar file (a library file), and store it in the Maven private repository for application calls.

[0083] When all the selected components required for an application are ready, the business project of the application can be written. The writing of the business project is to configure the script information of the selected components contained therein. When the writing of the business project is completed, the above steps 201 to 203 can be executed.

[0084] During the execution of step 201, when a business compilation instruction is received, the annotation information of at least one call operation in all selected components included in the business project is scanned and extracted to form a call operation set, which can be achieved in the following manner:

[0085] When receiving the business compilation instruction, the library file corresponding to the selected component is determined from the stored library files; and the information aggregation class of the library file corresponding to the selected component is scanned and extracted to form a call operation set.

[0086] For example, when a developer needs to develop an application, he can select the required selected components (assuming that they include album components, image processing service components, and image upload components) from the Maven private warehouse in the corresponding business project. When the script of the business project is completed and the business project is compiled, the compiler (ASM) scans and extracts the information aggregation classes in the library files corresponding to the album components, image processing service components, and image upload components used in the business project to form a call operation set. The call operation set can exist in the form of a table, such as a service table that includes the call operations, call paths, component identifiers, etc. corresponding to the album components, image processing service components, and image upload components.

[0087] After the call set is formed, step 202 and step 203 may be executed.

[0088] Wherein step 202 automatically registers the call operation set to the bus routing component, which can be achieved in the following ways:

[0089] Get the call path corresponding to each call operation in the operation set, form a call path set, and register it in the bus routing component; write the component tag corresponding to the call path set into the manifest file (Manifest) of the business project, so that when the component in the business project is called, the corresponding component tag is obtained from the manifest file, so as to query the corresponding call path through the bus routing component.

[0090] For example, the calling path of the photo album component in the business project is Maven.Photos, the calling path of the image processing service component is Maven.PhotoPro, and the calling path of the image upload component is Maven.PhotoUp. The calling path set consisting of Maven.Photos, Maven.PhotoPro, and Maven.PhotoUp is registered in the bus routing component. At the same time, the component tags (Photos, PhotoPro, PhotoUp) corresponding to the calling path set are written into the manifest file (Manifest) of the business project, so that when the components in the business project are called, the corresponding component tags are obtained from the manifest file, so that the corresponding calling path can be queried through the bus routing component. Finally, the business project can be compiled to generate the application.

[0091] In the present disclosure, the bus routing component includes a component routing information management module for managing a call operation set.

[0092] The component routing information management module is used to manage the call operation set.

[0093] The bus module is used to transfer information between the source components and the routing module.

[0094] The routing module is used to receive the call request of the source component, and query the target component to be called from the component routing information management module according to the call request, call the target component, and pass the corresponding callback result to the source component through the bus module.

[0095] In the present disclosure, the routing module includes:

[0096] The routing management module is used to receive the call request of the source component, query the target call path of the target component to be called from the component routing information management module, select the module corresponding to the call request and locate the target component according to the target call path;

[0097] The page routing module is used to locate the target component of the page call request and pass the corresponding callback result to the source component through the bus module;

[0098] The service routing module is used to locate the target component for the service call request and pass the corresponding callback result to the source component through the bus module;

[0099] Aspect Oriented Programming (AOP) module is used to manage the calling process of components in the routing module.

[0100] See also Figure 3 A schematic diagram of a display interface of an application provided in an embodiment of the present disclosure.

[0101] Figure 3 The application in the example is a property management platform. The selected components required by the property management platform include the "Home" component. The page corresponding to the "Home" component includes the "Complaints and Suggestions" component, the "Property Payment" component, the "Call Property" component, and the "Owner Information" component. Take the user accessing the "Owner Information" as an example. When the user clicks the "Owner Information" component in the "Home" component, the communication diagram between the "Home" component and the "Owner Information" component is as follows: Figure 4 As shown, Figure 4 A schematic diagram of communication between components provided for an embodiment of the present disclosure.

[0102] The "Home" component (source component) sends a call request to the "Bus Module", and the "Bus Module" passes the call request to the "Routing Management Module". The "Routing Management Module" queries the registration information of the target component (i.e., the "Owner Information" component) in the call request object through the "Component Routing Information Management Module", and after obtaining the corresponding response authorization information (including the call path), it determines that the module corresponding to the call request is the page routing module, and then allows the page routing module to locate the target component ("Owner Information" component) according to the call path, and generate the corresponding page object of "Owner Information", and then pass the callback result to the "Bus Module", and the bus module calls this page object back to the "Home Component", so that the user can access the owner information.

[0103] It should be noted that Figure 4 The functions implemented by the automatic registration plug-in of the component are the functions of step 201-step 202.

[0104] Based on the same inventive concept, an embodiment of the present disclosure provides a device for generating an application based on an Android system. The specific implementation of the application generation method of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 5 , the device comprises:

[0105] Component unit 501, used as a component element of a business project; wherein the business project includes the required script configuration information of the selected component;

[0106] A bus routing component 502, used to allow different selected components in the component unit 501 to communicate;

[0107] The component automatic registration plug-in 503 is used to scan and extract the annotation information of at least one call operation in the components included in the business project when receiving the business compilation instruction, so as to form a call operation set; automatically register the call operation set in the bus routing component, so that the selected component can communicate with other components through the bus routing component;

[0108] The generating unit 504 is used to compile the business project to generate an application.

[0109] In a possible implementation manner, the bus routing component 502 includes:

[0110] Component routing information management module 5021, used to manage the call operation set;

[0111] The routing module 5022 is used to receive the call request of the source component, and query the target component to be called from the component routing information management module according to the call request, call the target component, and pass the corresponding callback result to the source component through the bus module;

[0112] The bus module 5023 is used to transmit information between the source component and the routing module.

[0113] In a possible implementation manner, the routing module 5022 includes:

[0114] A routing management module, used to receive a call request from the source component, query a target call path of a target component to be called from the component routing information management module, select a module corresponding to the call request and locate the target component according to the target call path;

[0115] A page routing module, used for locating the target component for which the call request is a page call, and transmitting the corresponding callback result to the source component through the bus module;

[0116] A service routing module, used for locating the target component for which the call request is a service call, and transmitting the corresponding callback result to the source component through the bus module;

[0117] The aspect-oriented programming module is used to manage the calling process of the components in the routing module.

[0118] Based on the same inventive concept, an embodiment of the present disclosure provides a device for generating an application based on an Android system, comprising: at least one processor, and

[0119] a memory coupled to the at least one processor;

[0120] The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the above-mentioned method for generating an application by executing the instructions stored in the memory.

[0121] Based on the same inventive concept, the embodiment of the present disclosure further provides a readable storage medium, including:

[0122] Memory,

[0123] The memory is used to store instructions, and when the instructions are executed by the processor, the device including the readable storage medium completes the method for generating an application as described above.

[0124] Those skilled in the art will appreciate that the disclosed embodiments may be provided as methods, systems, or computer program products. Therefore, the disclosed embodiments may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the disclosed embodiments may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0125] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block 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, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

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

Claims

1. A method for generating an application based on an Android system, in, include: When receiving the business compilation instruction, scanning and extracting annotation information of at least one call operation provided externally by each selected component required by the business project, to form a call operation set; wherein the business project includes script configuration information of the selected component; Automatically registering the call operation set into a bus routing component, so that when using the application corresponding to the business project, the multiple selected components required by the business project call each other through the bus routing component; Compiling the business project to generate the application; Wherein, the bus routing component comprises: A component routing information management module, used to manage the call operation set; a routing module, configured to receive a call request for calling a target component generated by a source component in the application when the application is used, query a target call path of the target component from the component routing information management module according to the call request, call the target component according to the target call path, and pass the corresponding callback result to the source component through the bus module; wherein the source component and the target component are different selected components among the multiple selected components; The bus module is used to transmit information between the source component and the routing module.

2. The method according to claim 1, in, Before scanning and extracting annotation information of at least one call operation provided externally by each selected component required by the business project, it also includes: When receiving a component compilation instruction, scanning annotation information of at least one calling operation in a component project corresponding to the selected component through an annotation processor to form an information aggregation class of the at least one calling operation; wherein the component project includes the code to be compiled corresponding to the selected component; Compiling the component project to generate the selected component; The selected components and the information aggregation class are packaged into corresponding library files for storage.

3. The method according to claim 2, in, When receiving the business compilation instruction, the annotation information of at least one call operation provided externally in each selected component required by the business project is scanned and extracted to form a call operation set, including: When receiving the service compilation instruction, determining the library file corresponding to the selected component from the stored library files; The information aggregation class of the library file corresponding to the selected component is scanned and extracted to form the call operation set.

4. The method according to claim 3, in, Automatically registering the call operation set to the bus routing component includes: Obtaining a call path corresponding to each call operation of each selected component in the operation set, forming a call path set, and registering it in the bus routing component; The component tag corresponding to the call path set is written into the list file of the business project, so that when the selected component in the business project is called, the corresponding component tag is obtained from the list file, so as to query the corresponding call path through the bus routing component.

5. The method according to any one of claims 1 to 4, in, The routing module comprises: A routing management module, configured to receive a call request from the source component, query a target call path of the target component from the component routing information management module according to the call request, select a module corresponding to the call request, and locate the target component according to the target call path; A page routing module, used for locating the target component for which the call request is a page call, and transmitting the corresponding callback result to the source component through the bus module; A service routing module, used for locating the target component for which the call request is a service call, and transmitting the corresponding callback result to the source component through the bus module; The aspect-oriented programming module is used to manage the calling process of the components in the routing module.

6. The method according to any one of claims 1 to 4, in, The calling operation includes one or more of the following: Call page operations, call service operations, call custom operations.

7. The method according to any one of claims 1 to 4, in, The selected component inherits a component class having a component interface.

8. A device for generating applications based on the Android system, in, include: A component unit, used as a constituent element of a business project; wherein the business project includes script configuration information for each selected component as required; A bus routing component, used to allow the plurality of selected components included in the component unit to call each other through the bus routing component when using the application corresponding to the business project; A component automatic registration plug-in is used to scan and extract annotation information of at least one call operation provided externally by each selected component contained in the business project upon receiving a business compilation instruction, so as to form a call operation set; and automatically register the call operation set in the bus routing component, so that when the application is used, multiple selected components can call each other through the bus routing component; A generating unit, used for compiling the business project to generate the application; Wherein, the bus routing component comprises: A component routing information management module, used to manage the call operation set; a routing module, configured to receive a call request for calling a target component generated by a source component in the application when the application is used, query a target call path of the target component from the component routing information management module according to the call request, call the target component according to the target call path, and pass the corresponding callback result to the source component through the bus module; wherein the source component and the target component are different selected components among the multiple selected components; The bus module is used to transmit information between the source component and the routing module.

9. A device for automatic registration of components based on Android system, in, include: at least one processor, and a memory coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the at least one processor executes the method according to any one of claims 1 to 7 by executing the instructions stored in the memory.

10. A readable storage medium, in, Including memory, The memory is used to store instructions. When the instructions are executed by the processor, the device including the readable storage medium implements the method according to any one of claims 1 to 7.