Component-based mobile application generation method and device

By acquiring and combining business components, independent functional components and general components from the component library, and generating mobile applications based on demand analysis, the problem of low efficiency in component organization and management in the existing technology is solved, and mobile applications are realized quickly and efficiently. Generation and extensibility.

CN113110830BActive Publication Date: 2024-10-29QI AN XIN TECHNOLOGY GROUP INC +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010033627.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-13
Publication Date
2024-10-29
Estimated Expiration
2040-01-13

AI Technical Summary

Technical Problem

The component organization and management method of mobile applications in the prior art results in low generation efficiency, high code coupling, long modification and compilation time, and unclear modular concept, making it difficult to quickly and efficiently generate mobile applications.

Method used

By obtaining business components, independent functional components and general components from the component library, and combining and compiling them according to demand analysis, mobile application data packages are generated, including determining business functions, selecting and deleting components, and making modifications and updates by using library references. Combination and compilation.

Benefits of technology

It achieves fast and efficient generation of mobile applications, avoids redundant codes, reduces the amount of data packets, and improves generation efficiency and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113110830B_ABST
    Figure CN113110830B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a component-based mobile application generation method and device, including: analyzing the needs of the mobile application to be generated, determining the services to be included in the mobile application to be generated; obtaining service components from a component library according to the services to be included in the mobile application to be generated; combining and compiling all the obtained service components to generate a data packet of the mobile application. The component-based mobile application generation method and device provided by the embodiment of the present invention generates a mobile application by selecting components from a component library, has the advantages of flexibility and efficiency, and can also effectively avoid redundant codes and reduce the data volume of the mobile application data packet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a component-based mobile application generation method and device. Background Art

[0002] The widespread use of smart mobile devices and the rapid development of mobile Internet technology have promoted the arrival of the mobile Internet era. The mobile Internetization of business activities, social management and other affairs has become a trend. Whether it is enterprises, social groups, or government agencies, they all need to develop and run their own mobile applications to meet the needs.

[0003] The development and maintenance of mobile applications is not a short-term task, and usually requires continuous version iteration and function addition. With the iteration of versions and the addition of functions, the business of mobile applications will become more and more complex.

[0004] A common practice in the prior art is to place all codes of all versions of the same mobile application under one component, which increases code coupling, makes code modification and compilation more time-consuming, makes unit testing difficult, and also increases the difficulty for software engineers to familiarize themselves with and modify the code.

[0005] In order to solve the above problems, the prior art proposes a method of making the business package depend on a dependency library. Although this method can alleviate the above problems to a certain extent, a dependency project (module) in the dependency library is often filled with a large amount of business logic, and the business logic is filled with various network requests and data operations, and the modularization concept is not obvious.

[0006] In actual applications, a mobile application product has multiple product forms according to different functions. Different forms of products of the same type have both similarities and differences. The organization and management methods of components in the existing technology are not conducive to the rapid and efficient generation of mobile applications. With the increase and iteration of version functions, the efficiency will become lower and lower. Summary of the invention

[0007] The embodiments of the present invention provide a component-based mobile application generation method and device, which are used to solve the defect that the organization and management mode of components in the prior art leads to low efficiency in mobile application generation, and realize fast and efficient generation of mobile applications.

[0008] A first aspect of the present invention provides a component-based mobile application generation method, comprising:

[0009] Analyze the needs of the mobile application to be generated and determine the services to be included in the mobile application to be generated;

[0010] Obtain business components from the component library according to the business to be included in the mobile application to be generated;

[0011] All acquired business components are combined and compiled to generate a data package for the mobile application;

[0012] The business is a combination of interrelated functions;

[0013] The component library includes business components, independent functional components and general components; the business components are components used to implement the business; the independent functional components are components used to implement a single function; the general components are components used to implement a single general function; the business components depend on the independent functional components and / or general components, and the independent functional components depend on the general components.

[0014] The above technical solution also includes:

[0015] Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0016] Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes:

[0017] Selecting independent functional components and / or general components from the component library according to the functions of the business to be included in the mobile application to be generated;

[0018] The independent functional components and / or common components are combined and compiled to obtain business components corresponding to the business to be included in the mobile application to be generated.

[0019] The above technical solution also includes:

[0020] Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0021] Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes:

[0022] Selecting corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0023] According to the functions in the business to be included in the mobile application to be generated, redundant independent functional components and / or common components in the selected business components are deleted.

[0024] The above technical solution also includes:

[0025] Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0026] Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes:

[0027] Select corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0028] According to the functions in the business to be included in the mobile application to be generated, the independent functional components and / or common components included in the business components are modified and updated.

[0029] In the above technical solution, the combining and compiling of all acquired business components includes:

[0030] A business component is determined from all the acquired business components, a compilation script is generated from the business component, and all the acquired business components are combined and compiled by library reference.

[0031] A second aspect of the present invention provides a component-based mobile application generation device, comprising:

[0032] A first demand analysis module is used to analyze the demand for the mobile application to be generated and determine the services to be included in the mobile application to be generated;

[0033] A business component acquisition module is used to acquire business components from a component library according to the business to be included in the mobile application to be generated;

[0034] The combination and compilation module is used to combine and compile all the acquired business components to generate a data package of the mobile application; wherein,

[0035] The business is a combination of interrelated functions;

[0036] The component library includes business components, independent functional components and general components; the business components are components used to implement the business; the independent functional components are components used to implement a single function; the general components are components used to implement a single general function; the business components depend on the independent functional components and / or general components, and the independent functional components depend on the general components.

[0037] The above technical solution also includes:

[0038] The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0039] Accordingly, the business component acquisition module is also used for:

[0040] Selecting independent functional components and / or general components from the component library according to the functions of the business to be included in the mobile application to be generated;

[0041] The independent functional components and / or common components are combined and compiled to obtain business components corresponding to the business to be included in the mobile application to be generated.

[0042] The above technical solution also includes:

[0043] The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0044] Accordingly, the business component acquisition module is also used for:

[0045] Selecting corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0046] According to the functions in the business to be included in the mobile application to be generated, redundant independent functional components and / or common components in the selected business components are deleted.

[0047] The above technical solution also includes:

[0048] The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0049] Accordingly, the business component acquisition module is also used for:

[0050] Select corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0051] According to the functions in the business to be included in the mobile application to be generated, the independent functional components and / or common components included in the business components are modified and updated.

[0052] In the above technical solution, the combination and compilation module is used to combine and compile all the acquired business components and further includes:

[0053] A business component is determined from all the acquired business components, a compilation script is generated from the business component, and all the acquired business components are combined and compiled by library reference.

[0054] The third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the component-based mobile application generation method described in the first aspect of the present invention are implemented.

[0055] The fourth aspect of the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the component-based mobile application generation method as described in the first aspect of the present invention.

[0056] A fifth aspect of the present invention provides a computer program product, which includes computer executable instructions, which, when executed, are used to implement the steps of the component-based mobile application generation method described in the first aspect of the present invention.

[0057] The component-based mobile application generation method and device provided in the embodiment of the present invention generates a mobile application by selecting components from a component library, has the advantages of flexibility and efficiency, and can also effectively avoid redundant codes and reduce the data volume of the mobile application data packet. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 A flowchart of a component-based mobile application generation method provided by an embodiment of the present invention;

[0060] Figure 2 A schematic diagram of a component-based mobile application generation device provided by an embodiment of the present invention;

[0061] Figure 3 An example physical structure diagram of an electronic device is provided. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of 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.

[0063] Before describing in detail the component-based mobile application generation method provided by the embodiment of the present invention, the component library used in the method is first described.

[0064] The component library is a collection of multiple components. The components contained in the component library are divided into the following types: shell components, business components, independent functional components and common components.

[0065] The shell component is the shell of a mobile application. Other types of components can be packaged into the shell component to generate a complete mobile application.

[0066] Business is a combination of related functions. Business components are components used to implement business. Business components usually correspond to the actual business of the project, such as components used to implement the following businesses: main (main business), message, application policy, login, settings, VPN, push, antivirus, reader, application market, etc. Business components can be integrated into the shell project as aar, or debugged as a separate apk, and different aars can be inserted into the shell project according to different product forms to achieve the effect of selecting product forms.

[0067] An independent functional component is a component used to implement a single function. It can provide functional services for the business in the project, such as components used to implement the following functions: positioning, push SDK, player, reader SDK, code scanning, glide, mtp-sdk, routing framework, etc. The independent functional component itself can be obtained by secondary packaging of the SDK package. The independent functional component can also be packaged into an independent aar package to provide services for other applications.

[0068] A common component is a component that implements a single common function. It can provide basic services to most or even all types of components, such as components that implement the following functions: utils tool class, network, probuf, database, log, json parsing, base class, custom controls, etc.

[0069] There is a dependency relationship between business components, independent functional components and common components. Business components will call the code of independent functional components and / or common components, and independent functional components will also call the code of common components. Business components generally rely on both independent functional components and common components during implementation. Independent functional components need to rely on common components during implementation. In addition, although business components rely on independent functional components during implementation, independent functional components are not required for every business component. Business components select specific independent functional components according to their own needs.

[0070] The component-based mobile application generation method provided in the embodiment of the present invention is based on a component library and generates a mobile application according to project requirements.

[0071] Figure 1 A flowchart of a component-based mobile application generation method provided by an embodiment of the present invention, such as Figure 1 As shown, the component-based mobile application generation method provided by the embodiment of the present invention includes:

[0072] Step 101: Analyze the requirements of the mobile application to be generated, and determine the services to be included in the mobile application to be generated.

[0073] According to the software design process, the requirements of a mobile application need to be clarified before it is generated, and the services included in the mobile application can be determined based on the requirements.

[0074] For example, a mobile application for selling movie tickets is to be generated. According to the movie ticket sales process, it can be known that to complete a complete movie ticket sales process, the user must first log in to determine the sales target of the movie ticket, then display the movie screenings for the audience to choose, then select the viewing information such as the show time and seats, and finally complete the payment process after confirming the viewing information. By analyzing the movie ticket sales process, the specific requirements of the mobile application can be determined, such as it should be able to support login, it should be able to support the display of movie information, it should be able to support the selection of viewing information, and it should be able to support payment. According to the specific requirements of the mobile application, the services that the mobile application should include can be determined: login service, movie guide service, setting service and payment service.

[0075] After obtaining the requirements of the mobile application to be generated, the services to be included in the mobile application to be generated can be determined according to the requirements by using technical means known in the prior art. For example, a service description table is pre-constructed, and the specific functions to be implemented by the service are described in the service description table. By comparing the requirements with the specific functions to be implemented by the service described in the service description table, the correspondence between the requirements and the service can be achieved. For another example, a mapping relationship table between requirements and services is pre-constructed, and the mapping relationship between common requirements and corresponding services is defined. When determining the services to be included in the mobile application to be generated according to the requirements, it can be achieved by searching this mapping relationship table. The specific implementation method of determining the services according to the requirements is not limited to the description in the embodiments of the present invention. Other methods known to those skilled in the art can also be applied to the process of determining the services according to the requirements.

[0076] Step 102: Obtain business components from a component library according to the business to be included in the mobile application to be generated.

[0077] The component library contains various types of business components, so corresponding business components can be selected from the component library according to the business to be included in the mobile application to be generated.

[0078] There are many ways to obtain business components from the component library according to the business. For example, a correspondence table between the business and the business component can be established, and the business component corresponding to a certain business can be found in the correspondence table. For another example, description information can be set for the business component, and the description information has a more detailed description of the work that the business component can accomplish. After clarifying the business to be included in the mobile application to be generated, the business component that matches the business is searched according to the description information of each business component. The implementation method of obtaining business components from the component library is not limited to the description in the embodiment of the present invention, and other methods known to those skilled in the art can also be applied to the acquisition of business components.

[0079] Step 103: Combine and compile all acquired business components to generate a data package of the mobile application.

[0080] How to combine and compile all the acquired business components is common knowledge for those skilled in the art, and there are many implementation methods. In one example, there is a main business in the business component, which takes the lead in generating a compilation script, and then combines and compiles the various business components through library references, and finally adds a shell component to generate a complete mobile application data package.

[0081] The format of the data packet of the generated mobile application may vary depending on the operating system environment. Taking Android application as an example, the data packet of the generated mobile application is an Android program package, including: an installation package APK and a third-party library aar package.

[0082] The component-based mobile application generation method provided in the embodiment of the present invention generates a mobile application by selecting components from a component library, has the advantages of flexibility and efficiency, and can also effectively avoid redundant codes and reduce the data volume of the mobile application data packet.

[0083] Based on any of the above embodiments, in an embodiment of the present invention, the component-based mobile application generation method further includes:

[0084] Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0085] Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes:

[0086] Select independent functional components and / or common components from the component library according to the functions of the business to be included in the mobile application to be generated;

[0087] The independent functional components and / or common components are combined and compiled to obtain business components corresponding to the business to be included in the mobile application to be generated.

[0088] A business is a combination of interrelated functions. Therefore, when analyzing the requirements for generating mobile applications, you can also analyze the functions included in the business.

[0089] Still taking the mobile application for selling movie tickets mentioned in the previous embodiment of the present invention as an example, the login service of the mobile application can be further divided into a code scanning function and a network request function.

[0090] Although the component library contains many types of business components, in some cases, some mobile applications need to implement businesses that do not have corresponding business components in the component library. In this case, it is necessary to select independent functional components and / or general components corresponding to the functions from the component library based on the business functions learned during the previous demand analysis, and use these independent functional components and / or general components to build business components.

[0091] For example, assuming that the component library does not include a business component for implementing the VPN service, a compilation script is generated according to the functions included in the VPN service, and the VPN SDK function component in the independent function component and the util component in the common component are selected from the component library; then the two components are compiled separately by library reference, and the compiled results are combined to generate a business component for implementing the VPN service.

[0092] The component-based mobile application generation method provided in the embodiment of the present invention can select independent functional components and / or common components from the component library to generate business components according to the functions included in the business, and use the obtained business components to generate mobile applications. It has the advantages of flexibility and efficiency, and can also effectively avoid redundant codes and reduce the data volume of mobile application data packets.

[0093] Based on any of the above embodiments, in an embodiment of the present invention, the component-based mobile application generation method further includes:

[0094] Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0095] Accordingly, the acquiring of the business components from the component library according to the business to be included in the mobile application to be generated includes:

[0096] Select corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0097] According to the functions in the business to be included in the mobile application to be generated, redundant independent functional components and / or common components in the selected business components are deleted.

[0098] The business components in the component library generally include relatively complete functions of the business. For example, a business component for a login business provides multiple login methods such as password login, fingerprint login, and code scanning login. However, in actual applications, according to customer needs, the mobile application to be generated may not necessarily provide users with multiple login methods, such as only providing password login. In this case, the login business component needs to be modified to delete the functional components related to fingerprint login and scanning login.

[0099] The component-based mobile application generation method provided in the embodiment of the present invention can modify the existing business components in the component library according to the functions included in the business, delete redundant independent functional components and / or general components, so that the mobile application finally generated can effectively meet customer needs, increase the scalability of the mobile application, and effectively avoid redundant code and reduce the data volume of the mobile application data packet.

[0100] Based on any of the above embodiments, in an embodiment of the present invention, the component-based mobile application generation method further includes:

[0101] Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0102] Accordingly, the acquiring of the business components from the component library according to the business to be included in the mobile application to be generated includes:

[0103] Select corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0104] According to the functions in the business to be included in the mobile application to be generated, the independent functional components and / or common components included in the business components are modified and updated.

[0105] As user requirements are continuously updated, some functions in the business will also change. This is reflected in the component library as changes in the independent functional components and / or common components that the business components rely on. Therefore, after comparing with the requirements, if it is found that the independent functional components and / or common components that the business components rely on need to be changed, the independent functional components and / or common components contained in the business components are modified and updated.

[0106] The component-based mobile application generation method provided in the embodiment of the present invention can modify the existing business components in the component library according to the functions included in the business, and replace the previous independent functional components and / or general components with new independent functional components and / or general components, so that the finally generated mobile application can effectively meet customer needs, increase the scalability of the mobile application, and effectively avoid redundant code and reduce the data volume of the mobile application data packet.

[0107] Based on any of the above embodiments, Figure 2 A schematic diagram of a component-based mobile application generation device provided by an embodiment of the present invention, such as Figure 2 As shown, a schematic diagram of a component-based mobile application generation device provided by an embodiment of the present invention includes:

[0108] A first demand analysis module 201 is used to analyze the demand for the mobile application to be generated and determine the services to be included in the mobile application to be generated;

[0109] A business component acquisition module 202 is used to acquire business components from a component library according to the business to be included in the mobile application to be generated;

[0110] The combination and compilation module 203 is used to combine and compile all the acquired business components to generate a data package of the mobile application; wherein,

[0111] The business is a combination of interrelated functions;

[0112] The component library includes business components, independent functional components and general components; the business components are components used to implement the business; the independent functional components are components used to implement a single function; the general components are components used to implement a single general function; the business components depend on the independent functional components and / or general components, and the independent functional components depend on the general components.

[0113] The component-based mobile application generation device provided in the embodiment of the present invention generates a mobile application by selecting components from a component library, has the advantages of flexibility and high efficiency, and can also effectively avoid redundant codes and reduce the data volume of the mobile application data packet.

[0114] Based on any of the above embodiments, in an embodiment of the present invention, the component-based mobile application generation device further includes:

[0115] The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0116] Accordingly, the business component acquisition module is also used for:

[0117] Selecting independent functional components and / or general components from the component library according to the functions of the business to be included in the mobile application to be generated;

[0118] The independent functional components and / or common components are combined and compiled to obtain business components corresponding to the business to be included in the mobile application to be generated.

[0119] The component-based mobile application generation device provided in the embodiment of the present invention can select independent functional components and / or common components from the component library to generate business components according to the functions included in the business, and use the obtained business components to generate mobile applications. It has the advantages of flexibility and efficiency, and can also effectively avoid redundant codes and reduce the data volume of mobile application data packets.

[0120] Based on any of the above embodiments, in an embodiment of the present invention, the component-based mobile application generation device further includes:

[0121] The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0122] Accordingly, the business component acquisition module is also used for:

[0123] Selecting corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0124] According to the functions in the business to be included in the mobile application to be generated, redundant independent functional components and / or common components in the selected business components are deleted.

[0125] The component-based mobile application generation device provided in the embodiment of the present invention can modify the existing business components in the component library according to the functions included in the business, and delete unnecessary independent functional components and / or general components, so that the mobile application finally generated can effectively meet customer needs, increase the scalability of the mobile application, and effectively avoid redundant code and reduce the data volume of the mobile application data packet.

[0126] Based on any of the above embodiments, in an embodiment of the present invention, the component-based mobile application generation device further includes:

[0127] The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated;

[0128] Accordingly, the business component acquisition module is also used for:

[0129] Select corresponding business components from the component library according to the business to be included in the mobile application to be generated;

[0130] According to the functions in the business to be included in the mobile application to be generated, the independent functional components and / or common components included in the business components are modified and updated.

[0131] The component-based mobile application generation method provided in the embodiment of the present invention can modify the existing business components in the component library according to the functions included in the business, and replace the previous independent functional components and / or general components with new independent functional components and / or general components, so that the finally generated mobile application can effectively meet customer needs, increase the scalability of the mobile application, and effectively avoid redundant code and reduce the data volume of the mobile application data packet.

[0132] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the following method: analyzing the requirements of the mobile application to be generated, determining the services to be included in the mobile application to be generated; obtaining service components from the component library according to the services to be included in the mobile application to be generated; combining and compiling all the obtained service components to generate a data packet of the mobile application.

[0133] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0134] On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the methods provided in the above embodiments, for example, including: analyzing the requirements for the mobile application to be generated, and determining the services to be included in the mobile application to be generated; obtaining business components from a component library according to the services to be included in the mobile application to be generated; and combining and compiling all the obtained business components to generate a data packet for the mobile application.

[0135] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0136] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A component-based mobile application generation method, It is characterized in that include: Analyze the needs of the mobile application to be generated and determine the services to be included in the mobile application to be generated; Obtain business components from the component library according to the business to be included in the mobile application to be generated; All acquired business components are combined and compiled to generate a data package for the mobile application; The business is a combination of interrelated functions; The component library includes business components, independent functional components and general components; the business components are components used to implement the business, and the business components select specific independent functional components according to their own needs; the independent functional components are components used to implement a single function, and can provide functional services for the business in the project; the general components are components used to implement a single general function, and can provide basic services to most types of components or even all types of components; the business components depend on the independent functional components and / or general components, and the independent functional components depend on the general components; The step of combining and compiling all acquired business components to generate a data package of a mobile application includes: The main business of all the business components takes the lead in generating a compilation script, combining and compiling the various business components through library references, and finally adding a shell component to generate a complete mobile application data package. The shell component is the shell of the mobile application.

2. The component-based mobile application generation method according to claim 1, It is characterized in that Also includes: Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated; Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes: Selecting independent functional components and / or general components from the component library according to the functions of the business to be included in the mobile application to be generated; The independent functional components and / or common components are combined and compiled to obtain business components corresponding to the business to be included in the mobile application to be generated.

3. The component-based mobile application generation method according to claim 1, It is characterized in that Also includes: Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated; Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes: Selecting corresponding business components from the component library according to the business to be included in the mobile application to be generated; According to the functions in the business to be included in the mobile application to be generated, redundant independent functional components and / or common components in the selected business components are deleted.

4. The component-based mobile application generation method according to claim 1, It is characterized in that Also includes: Analyze the needs of the mobile application to be generated and determine the functions included in the business of the mobile application to be generated; Correspondingly, the acquiring of business components from the component library according to the business to be included in the mobile application to be generated further includes: Select corresponding business components from the component library according to the business to be included in the mobile application to be generated; According to the functions in the business to be included in the mobile application to be generated, the independent functional components and / or common components included in the business components are modified and updated.

5. A component-based mobile application generation device, It is characterized in that include: A first demand analysis module is used to analyze the demand for the mobile application to be generated and determine the services to be included in the mobile application to be generated; A business component acquisition module is used to acquire business components from a component library according to the business to be included in the mobile application to be generated; The combination and compilation module is used to combine and compile all the acquired business components to generate a data package of the mobile application; wherein, The business is a combination of interrelated functions; The component library includes business components, independent functional components and general components; the business components are components used to implement the business, and the business components select specific independent functional components according to their own needs; the independent functional components are components used to implement a single function, and can provide functional services for the business in the project; the general components are components used to implement a single general function, and can provide basic services to most types of components or even all types of components; the business components depend on the independent functional components and / or general components, and the independent functional components depend on the general components; The combination and compilation module is specifically used for: the main business among all the business components takes the lead in generating a compilation script, combining and compiling each business component by library reference, and finally adding a shell component to generate a complete mobile application data package, wherein the shell component is the shell of the mobile application.

6. The component-based mobile application generation device according to claim 5, It is characterized in that Also includes: The second demand analysis module is used to analyze the demand for the mobile application to be generated and determine the functions included in the business of the mobile application to be generated; Accordingly, the business component acquisition module is also used for: Selecting independent functional components and / or general components from the component library according to the functions of the business to be included in the mobile application to be generated; The independent functional components and / or common components are combined and compiled to obtain business components corresponding to the business to be included in the mobile application to be generated.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the component-based mobile application generation method according to any one of claims 1 to 4 are implemented.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the component-based mobile application generation method as described in any one of claims 1 to 4 are implemented.

9. A computer program product comprising computer executable instructions, It is characterized in that When the instructions are executed, they are used to implement the steps of the component-based mobile application generation method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • OSGi-based (open service gateway initiative) functional unit type integrated development system

    CN104298512A

  • WEB application development method and system

    CN109783083A

  • Software system generation method and device, computer readable storage medium and server

    CN109871208A

  • Front-end development method and device based on modularization, equipment and storage medium

    CN109901838A

  • Customer specific function module generation method for intelligent telecommunication network - uses service independent building blocks as graphical elements of graphical planning and development surface

    DE10006532A1