CN113110830A - Mobile application program generation method and device based on components - Google Patents

Mobile application program generation method and device based on components Download PDF

Info

Publication number
CN113110830A
CN113110830A CN202010033627.2A CN202010033627A CN113110830A CN 113110830 A CN113110830 A CN 113110830A CN 202010033627 A CN202010033627 A CN 202010033627A CN 113110830 A CN113110830 A CN 113110830A
Authority
CN
China
Prior art keywords
component
mobile application
service
application program
generated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010033627.2A
Other languages
Chinese (zh)
Inventor
王维
张晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202010033627.2A priority Critical patent/CN113110830A/en
Publication of CN113110830A publication Critical patent/CN113110830A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Abstract

The embodiment of the invention provides a mobile application program generation method and device based on components, which comprises the following steps: analyzing the requirement of the mobile application program to be generated, and determining the service to be contained in the mobile application program to be generated; acquiring a service component from a component library according to a service to be included in a mobile application program to be generated; and combining and compiling all the acquired service components to generate a data packet of the mobile application program. The method and the device for generating the mobile application program based on the components, which are provided by the embodiment of the invention, have the advantages of flexibility and high efficiency by selecting the components from the component library, and can effectively avoid redundant codes and reduce the data volume of a data packet of the mobile application program.

Description

Mobile application program generation method and device based on components
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for generating a mobile application based on a component.
Background
The wide application of intelligent mobile equipment and the rapid development of mobile internet technology promote the coming of the mobile internet era. The mobile internet of business activities, social management, and the like has become a trend. Enterprises, social groups, and government agencies all need to develop and operate their mobile applications to meet their needs.
Development and maintenance of mobile applications is not a short-term task and often requires constant iterations of versions and increases in functionality. As versions are iterated and function increased, the business of mobile applications becomes more and more complex.
It is common practice in the prior art to place all code of all versions of the same mobile application under one component, which increases code coupling, makes modification and compilation of the code more time consuming, makes unit testing difficult, and also increases the difficulty for software engineers to become familiar with and modify the code.
In order to solve the above problems, the prior art proposes a method of relying a service package on a dependency library. Although this approach can alleviate the foregoing problems to some extent, a dependency item (module) in the dependency library is often full of a large amount of business logic, and the business logic is full of various network requests and data operations, and the concept of modularization is not obvious.
In practical application, a mobile application program product has multiple product forms according to different functions, and products with different forms in the same type have the same points and differences. In the prior art, the organization and management mode of the components is not beneficial to quickly and efficiently generating the mobile application program, and the efficiency is lower and lower along with the increase and iteration of version functions.
Disclosure of Invention
The embodiment of the invention provides a mobile application program generation method and device based on components, which are used for solving the defect of low generation efficiency of a mobile application program caused by an organization and management mode of the components in the prior art and realizing the rapid and efficient generation of the mobile application program.
An embodiment of a first aspect of the present invention provides a method for generating a mobile application based on a component, including:
analyzing the requirement of the mobile application program to be generated, and determining the service to be contained in the mobile application program to be generated;
acquiring a service component from a component library according to a service to be included in a mobile application program to be generated;
combining and compiling all the acquired service components to generate a data packet of the mobile application program; wherein the content of the first and second substances,
the service is a combination of functions related to each other;
the component library comprises a service component, an independent function component and a general component; the service component is a component for realizing the service; the independent functional component is a component for realizing a single function; the common component is a component for realizing a single common function; the business component depends on the independent functional component and/or the general component, and the independent functional component depends on the general component.
In the above technical solution, further comprising:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting an independent functional component and/or a universal component from the component library according to functions in services to be included in the mobile application program to be generated;
and combining and compiling the independent functional components and/or the universal components to obtain service components corresponding to the services to be included in the mobile application program to be generated.
In the above technical solution, further comprising:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting a corresponding service component from the component library according to a service to be included in a mobile application program to be generated;
and deleting redundant independent functional components and/or universal components in the selected service components according to the functions in the services to be included in the mobile application program to be generated.
In the above technical solution, further comprising:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting a corresponding service component from a component library according to a service to be included in a mobile application program to be generated;
and according to the functions in the services to be included in the mobile application program to be generated, modifying and updating the independent functional components and/or the general components included in the service components.
In the above technical solution, the combining and compiling all the obtained service components includes:
and determining a business component from all the obtained business components, generating a compiling script by the business component, and combining and compiling all the obtained business components in a library reference mode.
The embodiment of the second aspect of the present invention provides a device for generating a mobile application based on a component, including:
the first requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the service contained in the mobile application program to be generated;
the service component acquisition module is used for acquiring service components from the component library according to the service to be included in the mobile application program to be generated;
the combination and compilation module is used for combining and compiling all the acquired service components to generate a data packet of the mobile application program; wherein the content of the first and second substances,
the service is a combination of functions related to each other;
the component library comprises a service component, an independent function component and a general component; the service component is a component for realizing the service; the independent functional component is a component for realizing a single function; the common component is a component for realizing a single common function; the business component depends on the independent functional component and/or the general component, and the independent functional component depends on the general component.
In the above technical solution, further comprising:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting an independent functional component and/or a universal component from the component library according to functions in services to be included in the mobile application program to be generated;
and combining and compiling the independent functional components and/or the universal components to obtain service components corresponding to the services to be included in the mobile application program to be generated.
In the above technical solution, further comprising:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting a corresponding service component from the component library according to a service to be included in a mobile application program to be generated;
and deleting redundant independent functional components and/or universal components in the selected service components according to the functions in the services to be included in the mobile application program to be generated.
In the above technical solution, further comprising:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting a corresponding service component from a component library according to a service to be included in a mobile application program to be generated;
and according to the functions in the services to be included in the mobile application program to be generated, modifying and updating the independent functional components and/or the general components included in the service components.
In the above technical solution, the combining and compiling module is configured to combine and compile all the acquired service components, and further includes:
and determining a business component from all the obtained business components, generating a compiling script by the business component, and combining and compiling all the obtained business components in a library reference mode.
In a third embodiment of the present invention, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the component-based mobile application generation method according to the first embodiment of the present invention are implemented.
A fourth aspect of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the component-based mobile application generation method according to the first aspect of the present invention.
A fifth aspect embodiment of the present invention provides a computer program product, which includes computer executable instructions, and when executed, the instructions are configured to implement the steps of the component-based mobile application generation method according to the first aspect embodiment of the present invention.
The method and the device for generating the mobile application program based on the components, which are provided by the embodiment of the invention, have the advantages of flexibility and high efficiency by selecting the components from the component library, and can effectively avoid redundant codes and reduce the data volume of a data packet of the mobile application program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for generating a component-based mobile application according to an embodiment of the present invention;
FIG. 2 is a diagram of a component-based mobile application generation apparatus according to an embodiment of the present invention;
fig. 3 illustrates a physical structure diagram of an electronic device.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before describing the method for generating a mobile application based on a component according to an embodiment of the present invention in detail, a component library used in the method is first described.
A component library is a collection of multiple components. The components contained in the component library are classified according to types: shell components, business components, independent function components, and common components.
A shell component is a shell for a mobile application, and packaging of other types of components into a shell component can generate a complete mobile application.
A service is a combination of functions that are related to each other. And a business component is a component for implementing a business. Business components generally correspond to the actual business of a project, such as components for implementing the following businesses: main (main business), message, application policy, login, setup, VPN, push, antivirus, reader, application marketplace, etc. The business component can be integrated into the shell project as aar, can also be debugged as a single apk, and different aars are driven into the shell project according to different product forms, so that the effect of selecting the product form is achieved.
A separate functional component is a component for implementing a single function. It can provide functional services for the business in the project, such as components for implementing the following functions: locate, push SDK, player, reader SDK, swipe, glide, mtp-SDK, routing framework, etc. The independent functional components themselves may be obtained by secondary packaging of the sdk package. The independent functional components can also be packaged into independent aar packages to provide services for other applications.
A common component is a component for implementing a single common function that is capable of providing basic services to most types of components, and even all types of components, such as components for implementing the following functions: the tools of the utils, the network, the probuf, the database, the log, the json analysis, the base class, the custom control, etc.
The service component, the independent function component and the general component have dependency relationship, the service component can call the code of the independent function component and/or the general component, and the independent function component can also call the code of the general component. Business components typically rely on both independent functional components and generic components when implemented. Independent functional components need to rely on common components when implemented. In addition, although the business components depend on the independent functional components when being implemented, the independent functional components are not required by each business component, and the business components select specific independent functional components according to own requirements.
The method for generating the mobile application program based on the components provided by the embodiment of the invention is based on the component library and generates the mobile application program according to the requirement of the project.
Fig. 1 is a flowchart of a method for generating a mobile application based on a component according to an embodiment of the present invention, and as shown in fig. 1, the method for generating a mobile application based on a component according to an embodiment of the present invention includes:
step 101, analyzing the requirement of the mobile application program to be generated, and determining the service to be included in the mobile application program to be generated.
According to the design flow of software, the mobile application program needs to specify requirements before being generated, and the services contained in the mobile application program can be determined according to the requirements.
For example, a mobile application for selling movie tickets is generated. According to the selling process of the movie tickets, a user is required to log in to determine the selling objects of the movie tickets, show the showing conditions of the movies for the audience to select, realize the selection of the film watching information such as scenes, seats and the like, and finally finish the payment process after the film watching information is determined. Through analysis of the movie ticket sales process, specific requirements of the mobile application, such as login support, movie information display support, movie information selection support, and payment support, can be determined. According to the specific requirements of the mobile application, the services that the mobile application should contain can be determined: a login service, a movie guide service, a setup service and a payment service.
After the requirement of the mobile application to be generated is obtained, the service to be included in the mobile application to be generated is determined according to the requirement by adopting a technical means known in the prior art. If a service description table is constructed in advance, the functions to be realized by the service are described in the service description table, and the correspondence between the requirements and the service can be realized by comparing the requirements with the functions to be realized by the service described in the service description table. For another example, a mapping relation table of requirements and services is constructed in advance, a mapping relation between common requirements and corresponding services is defined, and when determining the services to be included in the mobile application program to be generated according to the requirements, the mapping relation table can be searched. The specific implementation of determining the service according to the requirement is not limited to the description in the embodiment of the present invention, and other methods known to those skilled in the art may also be applied to the process of determining the service according to the requirement.
And 102, acquiring a service component from a component library according to the service to be included in the mobile application program to be generated.
The component library comprises various types of service components, so that the corresponding service components can be selected from the component library according to the services to be included in the mobile application program to be generated.
There are many ways to obtain the service components from the component library according to the service, for example, a corresponding relation table between the service and the service components can be established, and the service component corresponding to a certain service is searched in the corresponding relation table. For another example, description information may be set for a business component, where the description information describes in more detail what the business component can do. After the business contained in the mobile application program to be generated is clarified, the business component corresponding to the business is searched according to the description information of each business component. The implementation of obtaining the service component 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 may be applied to obtaining the service component.
And 103, combining and compiling all the acquired service components to generate a data packet of the mobile application program.
How to combine and compile all the acquired business components is common knowledge of those skilled in the art, and there are many implementations. In one example, a main service exists in the service components, a compiling script is generated by the leading of the main service, then each service component is combined and compiled in a library reference mode, and finally a shell component is added to generate a complete data packet of the mobile application program.
The format of the generated data packet of the mobile application may vary according to the operating system environment. Taking an android application as an example, the generated data package of the mobile application program is an android program package, and the method comprises the following steps: an installation package APK and a third party library aar package.
The mobile application program generation method based on the components provided by the embodiment of the invention generates the mobile application program by selecting the components from the component library, has the advantages of flexibility and high efficiency, can effectively avoid redundant codes and reduce the data volume of a mobile application program data packet.
Based on any of the above embodiments, in an embodiment of the present invention, the method for generating a component-based mobile application further includes:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting an independent functional component and/or a universal component from a component library according to functions in services to be included in a mobile application program to be generated;
and combining and compiling the independent functional components and/or the universal components to obtain service components corresponding to the services to be included in the mobile application program to be generated.
A service is a combination of functions that are related to each other. Therefore, when the requirements of the mobile application to be generated are analyzed, the functions contained in the service can be analyzed.
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.
Although many types of service components are included in the component library, in some cases, the service to be implemented by some mobile applications does not have a corresponding service component in the component library. At this time, according to the functions contained in the service, which are known in the previous requirement analysis, independent functional components and/or general components corresponding to the functions are selected from a component library, and the service components are constructed by using the independent functional components and/or the general components.
For example, assuming that a service component for realizing the VPN service is not included in the component library, a compiling script is generated according to a function included in the VPN service, and a VPN SDK function component in the independent function component and a util component in the general component are selected from the component library; then, the two components are compiled respectively in a library reference mode, and the compiled results are combined to generate a service component for realizing VPN service.
The method for generating the mobile application program based on the components can select the independent functional components and/or the general components from the component library to generate the service components according to the functions contained in the service, and generate the mobile application program by using the obtained service components, so that the method has the advantages of flexibility and high efficiency, can effectively avoid redundant codes, and reduces the data volume of the data packets of the mobile application program.
Based on any of the above embodiments, in an embodiment of the present invention, the method for generating a component-based mobile application further includes:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated comprises the following steps:
selecting a corresponding service component from a component library according to a service to be included in a mobile application program to be generated;
and deleting redundant independent functional components and/or universal components in the selected service components according to the functions in the services to be included in the mobile application program to be generated.
The service components in the component library generally include more complete functions of the service, for example, a service component of a login service, which provides various login modes such as password login, fingerprint login, code scanning login and the like. However, in practical applications, the mobile application program to be generated does not necessarily need to provide a plurality of login modes to the user according to the requirements of the client, for example, only a login mode of password login is provided. In this case, modifications to the login service components are required, deleting the functional components related to fingerprint login and scan login.
The method for generating the mobile application program based on the components can modify the existing service components in the component library according to the functions contained in the service and delete redundant independent functional components and/or universal components, so that the finally generated mobile application program can practically meet the requirements of customers, the expansibility of the mobile application program is increased, meanwhile, redundant codes can be effectively avoided, and the data volume of a data packet of the mobile application program is reduced.
Based on any of the above embodiments, in an embodiment of the present invention, the method for generating a component-based mobile application further includes:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated comprises the following steps:
selecting a corresponding service component from a component library according to a service to be included in a mobile application program to be generated;
and according to the functions in the services to be included in the mobile application program to be generated, modifying and updating the independent functional components and/or the general components included in the service components.
With the continuous iterative update of the user requirements, the functions in some services will change accordingly. The independent functional components and/or the general components which are reflected in the component library are the service components, and therefore, when the independent functional components and/or the general components which are depended by the service components need to be changed after being compared with the requirements, the independent functional components and/or the general components which are contained in the service components are modified and updated.
The method for generating the mobile application program based on the components can modify the existing service components in the component library according to the functions contained in the service, and replace the previous independent function components and/or general components with the new independent function components and/or general components, so that the finally generated mobile application program can practically meet the requirements of customers, the expansibility of the mobile application program is increased, meanwhile, redundant codes can be effectively avoided, and the data volume of a data packet of the mobile application program is reduced.
Based on any of the above embodiments, fig. 2 is a schematic diagram of a mobile application generating device based on a component according to an embodiment of the present invention, and as shown in fig. 2, the schematic diagram of the mobile application generating device based on a component according to an embodiment of the present invention includes:
the first requirement analysis module 201 is configured to analyze a requirement of a mobile application to be generated, and determine a service to be included in the mobile application to be generated;
the service component acquisition module 202 is used for acquiring service components from the component library according to services to be included in the mobile application program to be generated;
a combining and compiling module 203, configured to combine and compile all the acquired service components to generate a data packet of a mobile application; wherein the content of the first and second substances,
the service is a combination of functions related to each other;
the component library comprises a service component, an independent function component and a general component; the service component is a component for realizing the service; the independent functional component is a component for realizing a single function; the common component is a component for realizing a single common function; the business component depends on the independent functional component and/or the general component, and the independent functional component depends on the general component.
The mobile application program generating device based on the components provided by the embodiment of the invention generates the mobile application program by selecting the components from the component library, has the advantages of flexibility and high efficiency, can effectively avoid redundant codes and reduce the data volume of a mobile application program data packet.
Based on any one of the above embodiments, in an embodiment of the present invention, the component-based mobile application generating apparatus further includes:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting an independent functional component and/or a universal component from the component library according to functions in services to be included in the mobile application program to be generated;
and combining and compiling the independent functional components and/or the universal components to obtain service components corresponding to the services to be included in the mobile application program to be generated.
The mobile application program generating device based on the components can select the independent functional components and/or the general components from the component library to generate the service components according to the functions contained in the service, and generate the mobile application program by using the obtained service components, so that the device has the advantages of flexibility and high efficiency, can effectively avoid redundant codes, and reduces the data volume of the data packets of the mobile application program.
Based on any one of the above embodiments, in an embodiment of the present invention, the component-based mobile application generating apparatus further includes:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting a corresponding service component from the component library according to a service to be included in a mobile application program to be generated;
and deleting redundant independent functional components and/or universal components in the selected service components according to the functions in the services to be included in the mobile application program to be generated.
The mobile application program generating device based on the components can modify the existing service components in the component library according to the functions contained in the service and delete redundant independent functional components and/or universal components, so that the finally generated mobile application program can practically meet the requirements of customers, the expansibility of the mobile application program is increased, meanwhile, redundant codes can be effectively avoided, and the data volume of a mobile application program data packet is reduced.
Based on any one of the above embodiments, in an embodiment of the present invention, the component-based mobile application generating apparatus further includes:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting a corresponding service component from a component library according to a service to be included in a mobile application program to be generated;
and according to the functions in the services to be included in the mobile application program to be generated, modifying and updating the independent functional components and/or the general components included in the service components.
The method for generating the mobile application program based on the components can modify the existing service components in the component library according to the functions contained in the service, and replace the previous independent function components and/or general components with the new independent function components and/or general components, so that the finally generated mobile application program can practically meet the requirements of customers, the expansibility of the mobile application program is increased, meanwhile, redundant codes can be effectively avoided, and the data volume of a data packet of the mobile application program is reduced.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor)310, a communication Interface (communication Interface)320, a memory (memory)330 and a communication bus 340, wherein the processor 310, the communication Interface 320 and the memory 330 communicate with each other via the communication bus 340. The processor 310 may call logic instructions in the memory 330 to perform the following method: analyzing the requirement of the mobile application program to be generated, and determining the service to be contained in the mobile application program to be generated; acquiring a service component from a component library according to a service to be included in a mobile application program to be generated; and combining and compiling all the acquired service components to generate a data packet of the mobile application program.
In addition, the logic instructions in the memory 330 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to perform the method provided by the foregoing embodiments, for example, including: analyzing the requirement of the mobile application program to be generated, and determining the service to be contained in the mobile application program to be generated; acquiring a service component from a component library according to a service to be included in a mobile application program to be generated; and combining and compiling all the acquired service components to generate a data packet of the mobile application program.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for component-based mobile application generation, comprising:
analyzing the requirement of the mobile application program to be generated, and determining the service to be contained in the mobile application program to be generated;
acquiring a service component from a component library according to a service to be included in a mobile application program to be generated;
combining and compiling all the acquired service components to generate a data packet of the mobile application program; wherein the content of the first and second substances,
the service is a combination of functions related to each other;
the component library comprises a service component, an independent function component and a general component; the service component is a component for realizing the service; the independent functional component is a component for realizing a single function; the common component is a component for realizing a single common function; the business component depends on the independent functional component and/or the general component, and the independent functional component depends on the general component.
2. The component-based mobile application generation method of claim 1, further comprising:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting an independent functional component and/or a universal component from the component library according to functions in services to be included in the mobile application program to be generated;
and combining and compiling the independent functional components and/or the universal components to obtain service components corresponding to the services to be included in the mobile application program to be generated.
3. The component-based mobile application generation method of claim 1, further comprising:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting a corresponding service component from the component library according to a service to be included in a mobile application program to be generated;
and deleting redundant independent functional components and/or universal components in the selected service components according to the functions in the services to be included in the mobile application program to be generated.
4. The component-based mobile application generation method of claim 1, further comprising:
analyzing the requirements of the mobile application program to be generated, and determining functions contained in the service in the mobile application program to be generated;
correspondingly, the acquiring the service component from the component library according to the service to be included in the mobile application program to be generated further comprises:
selecting a corresponding service component from a component library according to a service to be included in a mobile application program to be generated;
and according to the functions in the services to be included in the mobile application program to be generated, modifying and updating the independent functional components and/or the general components included in the service components.
5. The component-based mobile application generation method of claim 1, wherein said combining and compiling all of the obtained business components comprises:
and determining a business component from all the obtained business components, generating a compiling script by the business component, and combining and compiling all the obtained business components in a library reference mode.
6. A component-based mobile application generation apparatus, comprising:
the first requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the service contained in the mobile application program to be generated;
the service component acquisition module is used for acquiring service components from the component library according to the service to be included in the mobile application program to be generated;
the combination and compilation module is used for combining and compiling all the acquired service components to generate a data packet of the mobile application program; wherein the content of the first and second substances,
the service is a combination of functions related to each other;
the component library comprises a service component, an independent function component and a general component; the service component is a component for realizing the service; the independent functional component is a component for realizing a single function; the common component is a component for realizing a single common function; the business component depends on the independent functional component and/or the general component, and the independent functional component depends on the general component.
7. The component-based mobile application generation apparatus of claim 6, further comprising:
the second requirement analysis module is used for analyzing the requirement of the mobile application program to be generated and determining the function contained in the service in the mobile application program to be generated;
correspondingly, the service component acquisition module is further configured to:
selecting an independent functional component and/or a universal component from the component library according to functions in services to be included in the mobile application program to be generated;
and combining and compiling the independent functional components and/or the universal components to obtain service components corresponding to the services to be included in the mobile application program to be generated.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the component-based mobile application generation method according to any of claims 1 to 5 are implemented when the processor executes the program.
9. A non-transitory computer readable storage medium, having stored thereon a computer program, wherein the computer program, when being executed by a processor, is adapted to carry out the steps of the component-based mobile application generation method according to any of the claims 1 to 5.
10. A computer program product comprising computer executable instructions for implementing the steps of the component based mobile application generation method according to any of claims 1 to 5 when executed.
CN202010033627.2A 2020-01-13 2020-01-13 Mobile application program generation method and device based on components Pending CN113110830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010033627.2A CN113110830A (en) 2020-01-13 2020-01-13 Mobile application program generation method and device based on components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010033627.2A CN113110830A (en) 2020-01-13 2020-01-13 Mobile application program generation method and device based on components

Publications (1)

Publication Number Publication Date
CN113110830A true CN113110830A (en) 2021-07-13

Family

ID=76708764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010033627.2A Pending CN113110830A (en) 2020-01-13 2020-01-13 Mobile application program generation method and device based on components

Country Status (1)

Country Link
CN (1) CN113110830A (en)

Similar Documents

Publication Publication Date Title
US11789715B2 (en) Systems and methods for transformation of reporting schema
US10481884B2 (en) Systems and methods for dynamically replacing code objects for code pushdown
US10073974B2 (en) Generating containers for applications utilizing reduced sets of libraries based on risk analysis
US20200371760A1 (en) Systems and methods for code clustering analysis and transformation
US20230244465A1 (en) Systems and methods for automated retrofitting of customized code objects
US20240045850A1 (en) Systems and methods for database orientation transformation
CN108038051A (en) Dissemination method, device, computer equipment and the storage medium of micro services
US10387515B2 (en) Network search query
CN110858172A (en) Automatic test code generation method and device
US11100233B2 (en) Optimizing operating system vulnerability analysis
CN111722995B (en) Data processing method and device
CN117056240B (en) Data element development and debugging method and system supporting offline Jar package
US11195137B2 (en) Model-driven and automated system for shared resource solution design
US20210216434A1 (en) Creation of minimal working examples and environments for troubleshooting code issues
CN111435348A (en) Method for creating runtime executable program for data analysis function
WO2023050956A1 (en) Automatic selection of nodes on which to perform tasks
US20200167154A1 (en) Cognition-based analysis, interpretation, reporting and recommendations for customizations of cloud-implemented applications
CN113110830A (en) Mobile application program generation method and device based on components
US11442724B2 (en) Pattern recognition
CN113312900A (en) Data verification method and device
US11263269B2 (en) Expert-system translation of natural-language input into atomic requirements
US11593511B2 (en) Dynamically identifying and redacting data from diagnostic operations via runtime monitoring of data sources
CN109933573B (en) Database service updating method, device and system
US20230035522A1 (en) Certification of computer pipeline results
CN116679927A (en) Page configuration method and device, storage medium and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination