CN109918055B - Application program generation method and device - Google Patents

Application program generation method and device Download PDF

Info

Publication number
CN109918055B
CN109918055B CN201910080659.5A CN201910080659A CN109918055B CN 109918055 B CN109918055 B CN 109918055B CN 201910080659 A CN201910080659 A CN 201910080659A CN 109918055 B CN109918055 B CN 109918055B
Authority
CN
China
Prior art keywords
module
development
program
functional
development environment
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.)
Active
Application number
CN201910080659.5A
Other languages
Chinese (zh)
Other versions
CN109918055A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910080659.5A priority Critical patent/CN109918055B/en
Publication of CN109918055A publication Critical patent/CN109918055A/en
Priority to PCT/CN2019/118560 priority patent/WO2020155775A1/en
Application granted granted Critical
Publication of CN109918055B publication Critical patent/CN109918055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention is applicable to the technical field of software programs, and provides a method and equipment for generating an application program, wherein the method comprises the following steps: acquiring a program description document of an application program; downloading source code data of a core thread associated with a program type, and building a core development environment of an application program according to the source code data; configuring module identifiers for all functional modules in the functional module list, and creating module development areas of all module identifiers in a core development environment; determining the module type of the functional module, and constructing a module development environment of the functional module; receiving a source code file related to a functional module, and generating a program subfile related to the functional module according to the source code file and a module development environment; and generating a program file of the application program according to the core development environment and the program subfiles of the functional modules. The invention reduces the coupling degree among all modules, realizes the purpose of independent compiling, improves the compiling efficiency and reduces the development time.

Description

Application program generation method and device
Technical Field
The invention belongs to the technical field of software programs, and particularly relates to a method and equipment for generating an application program.
Background
With the continuous progress of application programs or web pages, the functions of the application programs are increasing, and multiple development teams are often required to develop different functions respectively. However, in the existing development technology, compiling and deployment of the application project can be performed after code development of all functions is completed, if the compiling progress of different functional modules is inconsistent, a team with earlier development completion can compile after code compiling of a subsequent team is completed, so that the development efficiency of the application project is greatly reduced, and the development period is prolonged.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for generating an application program, so as to solve the problems of low development efficiency and long development period of an application program caused by that if the progress of compiling different functional modules is inconsistent, a team who completes early development needs to wait for the completion of code compiling of a subsequent team to compile.
A first aspect of an embodiment of the present invention provides a method for generating an application program, including:
acquiring a program description document of an application program; the program description document contains a list of functional modules of the application program and a program type;
Downloading source code data of a core thread associated with the program type, and building a core development environment of the application program according to the source code data;
configuring module identifiers for all functional modules in the functional module list, and creating module development areas of all the module identifiers in the core development environment;
determining the module type of the functional module, and importing a module development assembly corresponding to the module type into the module development area to construct a module development environment of the functional module;
receiving a source code file related to the functional module, and generating a program subfile related to the functional module according to the source code file and the module development environment;
and generating a program file of the application program according to the core development environment and the program subfiles of the functional modules.
A second aspect of an embodiment of the present invention provides an application generating device, including:
a program description document acquisition unit configured to acquire a program description document of an application program; the program description document contains a list of functional modules of the application program and a program type;
The core development environment generating unit is used for downloading source code data of a core thread associated with the program type and building a core development environment of the application program according to the source code data;
a module development area creation unit, configured to configure a module identifier for each functional module in the functional module list, and create a module development area for each module identifier in the core development environment;
the development environment construction unit is used for determining the module type of the functional module, importing a module development assembly corresponding to the module type into the module development area and constructing a module development environment of the functional module;
a program subfile generating unit, configured to receive a source code file related to the functional module, and generate a program subfile related to the functional module according to the source code file and the module development environment;
and the program file generating unit is used for generating a program file of the application program according to the core development environment and the program subfiles of the functional modules.
A third aspect of the embodiments of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present invention provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the first aspect.
The application program generation method and the application program generation device provided by the embodiment of the invention have the following beneficial effects:
according to the embodiment of the invention, when the program file of the application program is developed, the core development environment of the application program is established according to the program description information of the application program, so that the core part of the application program is extracted from each functional module, the coupling degree between different functional modules is reduced, and the purpose of mutually independence between the functional modules is realized; in order to facilitate the independent compiling of different functional modules, the module development environment corresponding to each functional module is configured according to the module type of each functional module, and a developer can import source code data of the functional module into the development environment to generate a program subfile of the functional module; and then after all the functional modules are compiled, the program files of the application program can be generated according to all the program subfiles and the core development environment. Compared with the existing application program generation technology, the method reduces the coupling degree among all modules, achieves the purpose of independent compiling, improves the compiling efficiency and reduces the development time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an implementation of a method for generating an application according to a first embodiment of the present invention;
fig. 2 is a flowchart of an implementation of a method S104 for generating an application according to a second embodiment of the present invention;
fig. 3 is a flowchart showing an implementation of an application generating method S1044 according to a third embodiment of the present invention;
fig. 4 is a flowchart showing an implementation of a method S105 for generating an application according to a fourth embodiment of the present invention;
fig. 5 is a flowchart showing an implementation of a method S106 for generating an application according to a fifth embodiment of the present invention;
FIG. 6 is a block diagram of an application generation device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device according to another embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
According to the embodiment of the invention, when the program file of the application program is developed, the core development environment of the application program is established according to the program description information of the application program, so that the core part of the application program is extracted from each functional module, the coupling degree between different functional modules is reduced, and the purpose of mutually independence between the functional modules is realized; in order to facilitate the independent compiling of different functional modules, the module development environment corresponding to each functional module is configured according to the module type of each functional module, and a developer can import source code data of the functional module into the development environment to generate a program subfile of the functional module; and then after all the functional modules are compiled, the program files of the application program can be generated according to all the program subfiles and the core development environment, so that the problems of low development efficiency and long development period of the application program are solved, if the compiling progress of different functional modules is inconsistent, a team who completes early development needs to wait for the completion of the code compiling of a subsequent team to compile.
In the embodiment of the present invention, the execution subject of the flow is a terminal device. The terminal device includes, but is not limited to: and the server, the computer, the smart phone, the tablet computer and other devices capable of executing the generation operation of the application program. Fig. 1 shows a flowchart of an implementation of the method for generating an application program according to the first embodiment of the present invention, which is described in detail below:
in S101, a program description document of an application program is acquired; the program description document contains a list of functional modules of the application program and a program type.
In this embodiment, before an application program is developed, a developer writes a program description document related to the application program, which may also be referred to as a requirement document of the application program, where a list of functional modules included in the application program to be developed and a program type corresponding to the application program are recorded in the program description document. The function module list at least includes a module identifier of a function module, where the module identifier may be a module name of the function module and/or description information of the function module, for example, a certain function module may be represented by a module name of a "real-time video call module", or the function module may be described by a description information of "providing a real-time video call between at least two users".
Alternatively, in this embodiment, the function module list may be specifically configured to define a module list included in the main menu of the application program, that is, a module list that can be directly skipped through a navigation bar on the main interface when the user opens the main interface of the application program. The different function modules may define their sub-functions by configuring a sub-list of modules, i.e. creating a secondary navigation under the navigation bar of the main interface. Each functional module in the navigation bar of the main interface can be submitted to a development team for development, and the number of sub-modules included under the functional module can be determined according to the requirements of the module, which is not limited herein.
In this embodiment, the developer may add program description documents of all the application programs to be developed into the program development list. The terminal device may select one or more application programs with highest priorities as the target application program by acquiring development priorities of the respective application programs in the program development list, and perform the related operations of S101 to S106 on the target application program. Of course, the developer may also send a program start instruction to the terminal device to actively trigger the generation flow of the application program.
In S102, source code data of a core thread associated with the program type is downloaded, and a core development environment of the application program is built according to the source code data.
In this embodiment, in order to reduce the coupling degree between the functional modules, the terminal device needs to first construct a core development environment related to the application program, and when the core development environment is created, and a subsequent development team compiles the functional modules, each functional module can directly call a core thread in the core development environment and a core interface included in the core thread to start the functional module, and execute related test operations, so that the compiling operation of other functional modules is not affected, the purpose of independent development of each module is achieved, the development efficiency of the application program is improved, and multiple development teams can perform parallel development.
In this embodiment, there is a difference between the core threads corresponding to different program types. For example, for an application program of a webpage type, a core thread related to webpage display, including a flash component, a domain name resolution component, a login component and the like, is needed; for chat interaction type application programs, the core thread mainly comprises a TCP protocol analysis component, a NAT conversion component, a Socket analysis component and the like. Since the program type defines the functions mainly provided by the application program, all the functional modules are auxiliary functions based on the construction of the main functions, i.e. the starting auxiliary functions need to be invoked in the state of starting the main functions. Thus, the core thread included in the main function can construct a core development environment for the application. The terminal equipment extracts the program type from the program description document, determines the main function of the application program according to the program type, and downloads all core threads corresponding to the main function.
In this embodiment, after the terminal device obtains the source code data of the core threads, the terminal device may parse each source code data to obtain the thread interfaces included in each core thread, and based on the interface functions of each thread interface, establish the connection relationship between the interfaces of each core thread, so as to combine the source code data of all the core threads based on the connection relationship, thereby generating the core development environment of the application program.
In S103, a module identifier is configured for each functional module in the functional module list, and a module development area for each module identifier is created in the core development environment.
In this embodiment, the terminal device may extract a list of function modules from the program description document, determine all the function modules that the application program is expected to include, and then configure a unique identifier, that is, the above-mentioned module identifier for each function module, where the module identifier may be a serial number of the function module in the list of function modules, and generate, based on the serial number and a module name of the function module, the module identifier of the function module, so that, for function modules with the same module name, it may also be distinguished by different ranks in the list.
Alternatively, the manner of generating the identification of the module may be: the function module list records module description information of each function module. The terminal equipment can carry out semantic analysis on the module description information, so that module keywords contained in the module description information are extracted, the occurrence times of the module keywords are counted, one module keyword with the largest occurrence times is selected as a core keyword, and the core keyword is identified as a module identifier of the functional module.
Optionally, in this embodiment, the terminal device creates, for the module identifier, an access path for the functional module in the common core module, so that the user can directly jump to the corresponding use interface of the functional module on the common core module through the access path. For example, if the common core module includes a navigation bar, the terminal device may add a module identifier of each functional module to the navigation bar, and set a jump link on a character string corresponding to the module identifier, that is, the above access path, and when the user clicks the module identifier, the terminal device may directly access the functional module. Through the configuration, each functional module has independent functional interfaces, so that the coupling degree between the functional modules is reduced, and the functional modules can jump on the common core module, so that the access is convenient.
The terminal device creates a storage area of each functional module in the database according to the module identifier of each functional module. The development team may store all source code data for the functional module and module files in the storage area. In particular, if the function module is developed in JavaScript, the js folder for the function module may be created in the database, and all js files for the function module may be stored in the js folder for the function module.
Alternatively, the terminal device may determine the capacity value of the module storage area based on the module type of the functional module. The different functional modules have different demands on the data capacity, for example, for a video playing module, the module storage area of the module type has larger demands on the data capacity because the video data to be played needs to be locally cached; for the functional module for displaying the static product, as each UI control and the displayed content are fixed, the data volume is smaller, and therefore the capacity of the module storage area initially allocated by the terminal equipment is smaller.
In this embodiment, after configuring a module storage area for a function module, the terminal device may acquire an address range of the module storage area, and establish an association relationship between the storage address range and an access path, so that the terminal device may jump to the module storage area of the function module directly based on the access path, thereby achieving the purpose of function module call.
In S104, determining a module type of the functional module, and importing a module development component corresponding to the module type into the module development area to construct a module development environment of the functional module.
In this embodiment, in order to further improve the building speed of the application program, and facilitate different functional modules to select a database type with a higher degree of matching with their own functions in the process of building, the terminal device may build corresponding module development environments in advance for different module types, that is, set scaffold assemblies corresponding to different functional modules. The terminal equipment can download all module development components related to the functional modules from the component library and import the module development components into the corresponding module development areas of the functional modules, so that the mutual influence of the functional modules in the development process is reduced, all basic interfaces and basic threads required by the functional modules can be provided according to all the module development components, and a developer can perform subsequent development operation based on the basic interfaces and the basic threads, so that the basic threads and the basic interfaces do not need to be written for each development, the workload of development is greatly reduced, and only source code data related to the characteristics of the functional modules need to be written.
For example, a certain functional module is built based on an angular technology, that is, the data needs to be stored and processed in a data form associated with the angular technology, another functional module is built based on a reaction technology, and core technologies used by the two functional modules are different, so that in the prior art, a development environment compatible with the two technologies needs to be built, so that functional modules based on different core technologies can be integrated. Since the S102 and S103 separate the functional modules and separate the core common module, the terminal device may directly build the development environments related to the two core technologies, without considering the fusion situation of the two development environments.
In this embodiment, the terminal device may determine, according to the module description information of the functional module, a module type of the functional module, and may determine, by using the module type, a main function to be provided by the functional module, and select each module development component having a degree of association with the module type greater than a preset association threshold, and create a module development environment in a module development area based on all the module development components.
In S105, a source code file for the functional module is received, and a program subfile for the functional module is generated according to the source code file and the module development environment.
In this embodiment, a developer may write a source code file related to the functional module based on the development environment, and after the source code file is written, the source code file may be imported into the development environment for compiling. During compilation, the functional modules may invoke common interfaces and common threads of the common core module. The developer can detect whether each operation parameter of the functional module accords with the preset development requirement by importing the test case corresponding to the functional module. If the functional module passes the compiling test and the actual running parameters of each test case meet the preset development requirements, judging that the development of the functional module is completed, and at the moment, the terminal equipment packages the development environment and the source code file of the functional module to generate a program subfile of the functional module.
In S106, a program file of the application program is generated according to the core development environment and the program subfiles of the respective function modules
In this embodiment, after detecting that the program subfiles of each function module are created, the terminal device may execute the related operation of S106. The terminal equipment establishes a connection relation between the core development environment and the program subfiles, so that source code data of the core development environment and the program subfiles of all the functional modules are packaged, and a program file of an application program is generated.
Optionally, the terminal device may further receive a program creation instruction sent by the developer, based on which the terminal device may detect whether each functional module already has a corresponding program sub-file, and if all the functional modules are configured with a corresponding program sub-file, package the program sub-files and the access paths of the common core module and all the functional modules, and generate a program file of the application program; if any function module is not configured with a program sub-file, the function module is not developed, at this time, the terminal device hides the module identifier of the function module on the core common module, and generates a program file of the application program according to the access path and the program sub-file of the common core module and the developed function module. After the program file is generated, if the development of the unpackaged function module is completed, the terminal device redisplays the module identifier of the function module on the core public module, and adds the program subfiles and the access paths of the function module into the program file.
As can be seen from the above, in the method for generating an application program according to the embodiment of the present invention, when a program file of the application program is developed, a core development environment of the application program is established according to program description information of the application program, so that a core portion of the application program is extracted from each functional module, coupling degrees between different functional modules are reduced, and a purpose of mutually independent between each functional module is achieved; in order to facilitate the independent compiling of different functional modules, the module development environment corresponding to each functional module is configured according to the module type of each functional module, and a developer can import source code data of the functional module into the development environment to generate a program subfile of the functional module; and then after all the functional modules are compiled, the program files of the application program can be generated according to all the program subfiles and the core development environment. Compared with the existing application program generation technology, the method reduces the coupling degree among all modules, achieves the purpose of independent compiling, improves the compiling efficiency and reduces the development time.
Fig. 2 shows a flowchart of a specific implementation of an application generating method S104 according to a second embodiment of the present invention. Referring to fig. 2, with respect to the embodiment described in fig. 1, the method S104 for generating an application program provided in this embodiment includes: s1041 to S1044 are specifically described below:
further, the determining the module type of each functional module, and downloading the development environment corresponding to the module type, includes:
in S1041, the module development component associated with the module type is acquired from a component database.
In this embodiment, the upper server may store different module development components in a database, i.e., a component database, and configure each module development component with an associated one or more associated module types. For example, for a recording component, both a real-time communication type functional module and a video recording type functional module need to be used for the component, so that one module development component can correspond to a plurality of module types. The terminal device may extract all module development components related to the module type from the component database as target development components, and download source code data of the module development components from the component database.
In S1042, a development system compatible with all the component types is determined based on the component types of the respective module development components, and a system configuration file of the development system is downloaded.
In this embodiment, since the module development environment for the functional module needs to be built to be compatible with each module development assembly, that is, each module development assembly needs to operate in the module development environment, based on this, the terminal device needs to determine the assembly type of each module development assembly first, which may specifically be a development language used by the module development assembly, or a database type, and determine a development system capable of being compatible with all assembly types according to the assembly type of each module development assembly. For example, a certain module development component can only run under the Android system, while another module development component can run under the IOS system, the Windows system and the Android system, and the terminal device can select the Android system as the development system of the functional module.
In this embodiment, after determining the development system used by the functional module, the terminal device may download a system configuration file of the development system from the database, so that the development system may be built locally based on the system configuration file.
In S1043, the system configuration file is run in a module development area, global system configuration is performed on the template development area, and the development system of the functional module is built.
In this embodiment, the terminal device imports the obtained system configuration file into the module development area associated with the functional module, and runs the system configuration file in the module development area, where the system configuration file performs global configuration of data format and environmental parameters on the whole storage area in the module development area, so as to generate a development system related to the functional module, so that a developer can perform related compiling operation under the development system.
In S1044, each of the template development components is added in the development system, and a module development environment for the functional module is generated.
In this embodiment, after the development system is built, each template development component may be added into the development environment, so that the development system includes all basic interfaces and basic threads required by the functional module, and thus compiling can be performed in a state where the basic threads and interfaces of the functional module are configured completely.
In the embodiment of the invention, the compatibility between the development environment and each component is improved, and the stability and accuracy of building the module development environment are improved by determining the component type of each module development component, selecting the development system matched with each component type, and building the development environment of the functional module based on the development system.
Fig. 3 is a flowchart showing a specific implementation of an application generating method S1044 according to a third embodiment of the present invention. Referring to fig. 3, with respect to the embodiment described in fig. 1, the method S1044 for generating an application program provided in this embodiment includes: s301 to S304 are specifically described below:
in S301, a configuration page of the development system is displayed; the configuration page contains component identifications for each of the module development components.
In this embodiment, after the terminal device builds the development system of the functional module, the terminal device may configure the placement positions of the development components of each module, and then set a module page to which the functional module belongs. Thus, the terminal device generates a configuration page of the development system, on which the component identifications of all associated module development components of the functional module are marked. The component identifier can be a UI interface of a module development component, or can be an identifier through a character string or a preset component shape.
In S302, receiving configuration information about each of the template development components fed back by the user based on the configuration page; the configuration information includes display coordinates of each template development component.
In this embodiment, a user may determine display coordinates of each module development component by dragging the component identifier, and when the terminal device detects a configuration completion instruction input by the user, generate configuration information about the module development component according to a current position dragged by the user; of course, the user may also directly input the display coordinates of the component, alternatively, the configuration page divides each development system into a plurality of placeable areas, and then the user may input the area identifier of the placeable area, so that the area coordinates of the placeable area are used as the display coordinates of the module development component.
In S303, each of the template development components is added to the configuration page based on the display coordinates, and a module page concerning the function module is constructed.
In this embodiment, the terminal device may add the module development components to the configuration page according to the display coordinates of each module development component, so that according to the display coordinates, a positional relationship between different module development components may be determined, whether shielding or overlapping situations exist between the components may be determined, and if the placement positions of the development components meet the requirements of the developer, a module page related to the functional module may be generated.
In S304, a module development environment for the functional module is generated based on the module page and the respective module development components.
In this embodiment, the terminal device generates a corresponding start instruction according to the display coordinates of the module development component on the module page, that is, when detecting that the user clicks the display coordinates in the module page, starts the module development component, and establishes an association relationship between the start instruction and the source code data of the module development component, thereby generating a development environment related to the functional module.
In the embodiment of the invention, the user can configure the display position of each module development assembly, thereby generating the required module page in a personalized way and improving the generation efficiency of the module page.
Fig. 4 is a flowchart showing a specific implementation of an application generation method S105 according to the third embodiment of the present invention. Referring to fig. 4, with respect to the embodiments described in fig. 1 to 3, the method S105 for generating an application program provided in this embodiment includes: s1051 to S1053 are specifically described below:
further, the importing the source code data of the functional module into the development environment to generate a program subfile related to the functional module includes:
In S1051, receiving an edit request regarding the module development environment; the edit request includes authorization information and an edit type.
In this embodiment, different functional modules may be handed over to different development teams to perform development operations, that is, developers to which the functional modules belong have differences, so in order to facilitate the management of each functional module by the development team and avoid malicious tampering of source code data and development environments of the functional modules by lawless persons, the terminal device may configure corresponding verification information for different functional modules, and when each developer imports source code data to the development environment or adjusts the development environment, it is necessary to upload own authorization information to the terminal device.
In this embodiment, when the developer needs to edit the source code data of the functional module, an edit request is created. The editing request carries the authorization information of the developer, wherein the authorization information can be the user name and the user password of the developer, and can also be an authorization serial number. The editing request also carries the editing type of the editing operation, and the editing type comprises: a source code modification type, a source code deletion type, a source code addition type and a source code viewing type. The developer can generate an editing request at a local user terminal and send the editing request to the terminal device.
In S1052, an edit permission list associated with the authorization information is acquired, and it is determined whether the edit type is within the edit permission list.
In this embodiment, after receiving an editing request about a function module, the terminal device obtains registered authorization information of the function module based on a module identifier of the function module, and determines whether the authorization information is the registered authorization information of the function module, if not, the terminal device indicates that the editing request is an illegal editing request, and returns request failure information; if so, the edit request is a legal edit request, and the related operation of S1052 is executed.
In this embodiment, after determining that the authorization information is registered authorization information, the terminal device obtains an edit permission list associated with the authorization information, where executable edit operations of the authorization information are recorded in the edit permission list, and then detects whether the edit type is in the edit permission list, so as to determine whether the edit request is legal. If the editing type is not in the editing authority list, returning request failure information; otherwise, if the edit type is in the edit permission list, the related operation of S1053 is performed.
In S1053, if the edit type is within the edit permission list, edit content is extracted from the edit request, and the module development environment is modified based on the edit content.
In this embodiment, the terminal device extracts the editing content in the editing request, and imports the editing content into the development environment, so as to complete the editing operation initiated by the developer.
In the embodiment of the invention, the corresponding authority information is configured for different functional modules, so that the safety of editing operation and source code data can be improved, and illegal tampering of source code data by illegal molecules is avoided.
Fig. 5 shows a flowchart of a specific implementation of an application generating method S106 according to a fourth embodiment of the present invention. Referring to fig. 5, with respect to the embodiments described in fig. 1 to 3, a method S106 for generating an application program provided in this embodiment includes: s1061 to S1063 are specifically described below:
in S1061, a first data type of the module development environment of the functional module is acquired, and a second data type of the core development environment is acquired.
In this embodiment, since the development environments of different functional modules are independent of the common core module, that is, the data formats adopted by the two modules may have a difference, and since the functional modules need to be started up by relying on the operation of the common core module, and the interfaces and threads of the common core module are called, there is data interaction between the two modules. To achieve interworking of data between two different modules a data conversion interface needs to be created. Based on this, the terminal device needs to first determine the development environment and the data types corresponding to the common core module, i.e. the first data type and the second data type described above.
In S1062, a data conversion interface is generated according to the first data type and the second data type.
In this embodiment, after determining the first data type of the development environment and the second data type of the common core module, the terminal device may detect whether the two data types are the same, and if the two data types are the same, the terminal device does not need to perform data conversion, and directly performs data interaction; otherwise, if the two data types are different, a data conversion interface is created, so that the first data type is converted into the second data type, and the second data type is converted into the first data type.
In S1063, an access path is generated with respect to the function module based on the start instruction of the data conversion interface, and if the access path is detected to be clicked, the data conversion interface is activated.
In this embodiment, after an interface for implementing conversion of two data types is created by the terminal device, a start instruction of the interface may be added to the access path, and when the user clicks the access path, the data conversion interface may be automatically activated, so that data in the core common module may be converted into a data type matched with the functional module, and data interconnection between the two modules is ensured.
In the embodiment of the invention, the data conversion interfaces are configured for different functional modules, so that the interconnection between the data can be ensured even if the development environments adopted by the two modules are different, and the degree of freedom of development is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
Fig. 6 is a block diagram of an application generating device according to an embodiment of the present invention, where the application generating device includes units for executing steps in the embodiment corresponding to fig. 1. Please refer to fig. 1 and the related description of the embodiment corresponding to fig. 1. For convenience of explanation, only the portions related to the present embodiment are shown.
Referring to fig. 6, the application generating apparatus includes:
a program description document acquisition unit 61 for acquiring a program description document of an application program; the program description document contains a list of functional modules of the application program and a program type;
a core development environment generating unit 62, configured to download source code data of a core thread associated with the program type, and build a core development environment of the application program according to the source code data;
A module development area creating unit 63, configured to configure a module identifier for each functional module in the functional module list, and create a module development area for each module identifier in the core development environment;
a development environment construction unit 64, configured to determine a module type of the functional module, import a module development component corresponding to the module type into the module development area, and construct a module development environment of the functional module;
a program sub-file generating unit 65 for receiving a source code file for the function module and generating a program sub-file for the function module according to the source code file and the module development environment;
a program file generating unit 66, configured to generate a program file of the application program according to the core development environment and the program subfiles of the respective function modules.
Optionally, the development environment construction unit includes:
a module development component acquiring unit configured to acquire the module development component associated with the module type from a component database;
a system configuration file downloading unit, configured to determine a development system compatible with all the component types based on the component types of the module development components, and download a system configuration file of the development system;
The development system creation unit is used for running the system configuration file in a module development area, carrying out global system configuration on the template development area and creating the development system of the functional module;
and the module development environment generating unit is used for adding each template development component into the development system to generate a module development environment related to the functional module.
Optionally, the module development environment generating unit includes:
a configuration page display unit, configured to display a configuration page of the development system; the configuration page contains component identifications for respective ones of the module development components;
the component coordinate configuration unit is used for receiving configuration information about each template development component fed back by a user based on the configuration page; the configuration information comprises display coordinates of each template development component;
a development component adding unit configured to add each of the template development components to the configuration page based on the display coordinates, to construct a module page regarding the function module;
and the module page synthesis unit is used for generating a module development environment related to the functional module based on the module page and each module development assembly.
Optionally, the program subfile generating unit 65 includes:
an editing request receiving unit configured to receive an editing request concerning the development environment; the editing request comprises authorization information and editing types;
an editing authority determination unit, configured to obtain an editing authority list associated with the authorization information, and determine whether the editing type is in the editing authority list;
and the editing execution unit is used for extracting editing content from the editing request and modifying the development environment based on the editing content if the editing type is in the editing authority list.
Optionally, the program file generating unit 66 includes:
a data type obtaining unit, configured to obtain a first data type of the development environment of the functional module, and obtain a second data type of the common core module;
a data interface creation unit for generating a data conversion interface according to the first data type and the second data type;
and the data interface association unit is used for adding a starting instruction of the data conversion interface to the access path, and activating the data conversion interface if clicking the access path is detected.
Therefore, the application program generating device provided by the embodiment of the invention can also reduce the coupling degree between each module, realize the purpose of independent compiling, improve the compiling efficiency and reduce the development time.
Fig. 7 is a schematic diagram of a terminal device according to another embodiment of the present invention. As shown in fig. 7, the terminal device 7 of this embodiment includes: a processor 70, a memory 71 and a computer program 72, such as a generation program of an application program, stored in said memory 71 and executable on said processor 70. The steps in the above-described respective application program generation method embodiments are implemented when the processor 70 executes the computer program 72, for example, S101 to S106 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, performs the functions of the units in the above-described device embodiments, such as the functions of the modules 61 to 66 shown in fig. 6.
By way of example, the computer program 72 may be divided into one or more units, which are stored in the memory 71 and executed by the processor 70 to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing a specific function for describing the execution of the computer program 72 in the terminal device 7. For example, the computer program 72 may be divided into a program description document acquisition unit, a core development environment generation unit, a module development area creation unit, a development environment construction unit, a program subfile generation unit, and a program file generation unit, each of which functions specifically as described above.
The terminal device 7 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of the terminal device 7 and does not constitute a limitation of the terminal device 7, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 70 may be a central processing unit (Central Processing Unit, CPU), or may be another general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may be an external storage device of the terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the terminal device 7. The memory 71 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 71 may also be used for temporarily storing data that has been output or is to be output.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. A method for generating an application program, comprising:
acquiring a program description document of an application program; the program description document contains a list of functional modules of the application program and a program type;
downloading source code data of a core thread associated with the program type, and building a core development environment of the application program according to the source code data;
Configuring module identifiers for all functional modules in the functional module list, and creating module development areas of all the module identifiers in the core development environment;
determining the module type of the functional module, and importing a module development assembly corresponding to the module type into the module development area to construct a module development environment of the functional module;
receiving a source code file related to the functional module, and generating a program subfile related to the functional module according to the source code file and the module development environment;
generating a program file of the application program according to the core development environment and the program subfiles of the functional modules;
the determining the module type of the functional module, importing a module development assembly corresponding to the module type into the module development area, and constructing a module development environment of the functional module, including:
obtaining the module development component associated with the module type from a component database;
determining development systems compatible with all component types based on the component types of the module development components, and downloading system configuration files of the development systems;
Operating the system configuration file in a module development area, performing global system configuration on the module development area, and establishing the development system of the functional module;
adding each module development component in the development system to generate a module development environment about the functional module;
the generating a program file of the application program according to the core development environment and the program subfiles of the functional modules includes:
acquiring a first data type of the module development environment of the functional module and acquiring a second data type of the core development environment;
generating a data conversion interface according to the first data type and the second data type;
and generating an access path related to the functional module based on the starting instruction of the data conversion interface, and activating the data conversion interface if clicking the access path is detected.
2. The method of generating according to claim 1, wherein the adding each of the module development components in the development system generates a module development environment for the functional module, comprising:
displaying a configuration page of the development system; the configuration page contains component identifications for respective ones of the module development components;
Receiving configuration information about each module development component fed back by a user based on the configuration page; the configuration information comprises display coordinates of each module development assembly;
adding each of the module development components to the configuration page based on the display coordinates, and constructing a module page about the functional module;
based on the module page and the respective module development components, a module development environment is generated with respect to the functional module.
3. The method according to any one of claims 1-2, wherein the receiving a source code file for the functional module and generating a program subfile for the functional module based on the source code file and the module development environment, comprises:
receiving an edit request regarding the module development environment; the editing request comprises authorization information and editing types;
acquiring an editing authority list associated with the authorization information, and judging whether the editing type is in the editing authority list;
and if the editing type is in the editing authority list, extracting editing content from the editing request, and modifying the module development environment based on the editing content.
4. An application program generation apparatus, comprising:
a program description document acquisition unit configured to acquire a program description document of an application program; the program description document contains a list of functional modules of the application program and a program type;
the core development environment generating unit is used for downloading source code data of a core thread associated with the program type and building a core development environment of the application program according to the source code data;
a module development area creation unit, configured to configure a module identifier for each functional module in the functional module list, and create a module development area for each module identifier in the core development environment;
the development environment construction unit is used for determining the module type of the functional module, importing a module development assembly corresponding to the module type into the module development area and constructing a module development environment of the functional module;
a program subfile generating unit, configured to receive a source code file related to the functional module, and generate a program subfile related to the functional module according to the source code file and the module development environment;
a program file generating unit, configured to generate a program file of the application program according to the core development environment and the program subfiles of the respective function modules;
The development environment construction unit includes:
a module development component acquiring unit configured to acquire the module development component associated with the module type from a component database;
a system configuration file downloading unit, configured to determine a development system compatible with all the component types based on the component types of the module development components, and download a system configuration file of the development system;
the development system creation unit is used for running the system configuration file in a module development area, carrying out global system configuration on the module development area and creating the development system of the functional module;
a module development environment generating unit configured to add each of the module development components in the development system, and generate a module development environment for the functional module;
the program file generation unit includes:
a data type obtaining unit, configured to obtain a first data type of the module development environment of the functional module, and obtain a second data type of the core development environment;
a data interface creation unit for generating a data conversion interface according to the first data type and the second data type;
And the data interface association unit is used for adding the starting instruction of the data conversion interface to the access path of the functional module, and activating the data conversion interface if the access path is detected to be clicked.
5. The generating apparatus according to claim 4, wherein the module development environment generating unit includes:
a configuration page display unit, configured to display a configuration page of the development system; the configuration page contains component identifications for respective ones of the module development components;
the component coordinate configuration unit is used for receiving configuration information about each module development component fed back by a user based on the configuration page; the configuration information comprises display coordinates of each module development assembly;
a development component adding unit configured to add each of the module development components to the configuration page based on the display coordinates, to construct a module page concerning the function module;
and the module page synthesis unit is used for generating a module development environment related to the functional module based on the module page and each module development assembly.
6. A terminal device, characterized in that it comprises a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the steps of the method according to any one of claims 1 to 3.
7. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 3.
CN201910080659.5A 2019-01-28 2019-01-28 Application program generation method and device Active CN109918055B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910080659.5A CN109918055B (en) 2019-01-28 2019-01-28 Application program generation method and device
PCT/CN2019/118560 WO2020155775A1 (en) 2019-01-28 2019-11-14 Method and device for generating application program based on core development environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910080659.5A CN109918055B (en) 2019-01-28 2019-01-28 Application program generation method and device

Publications (2)

Publication Number Publication Date
CN109918055A CN109918055A (en) 2019-06-21
CN109918055B true CN109918055B (en) 2023-10-31

Family

ID=66960921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910080659.5A Active CN109918055B (en) 2019-01-28 2019-01-28 Application program generation method and device

Country Status (2)

Country Link
CN (1) CN109918055B (en)
WO (1) WO2020155775A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918055B (en) * 2019-01-28 2023-10-31 平安科技(深圳)有限公司 Application program generation method and device
CN110781425B (en) * 2019-10-25 2022-09-20 北京创鑫旅程网络技术有限公司 Display method, device and equipment of mobile terminal H5 page and storage medium
CN111258555A (en) * 2020-01-15 2020-06-09 上海知白智能科技有限公司 Software implementation device
CN111290737B (en) * 2020-01-20 2023-03-21 北京字节跳动网络技术有限公司 Method and device for application program development and electronic equipment
CN112035104B (en) * 2020-08-28 2024-03-22 重庆长安汽车股份有限公司 Modeling method for dynamically changing functional configuration of mobile application
CN112380188B (en) * 2020-11-12 2023-12-05 海光信息技术股份有限公司 Construction method of working environment and code database, electronic equipment and storage medium
CN112306543B (en) * 2020-11-13 2023-08-29 成都中科大旗软件股份有限公司 Management method for IOS system derived project
CN113377354B (en) * 2021-05-31 2024-04-05 北京沃东天骏信息技术有限公司 Modularized development system for mobile terminal application
CN113467772B (en) * 2021-07-12 2022-06-14 工银科技有限公司 Project template generation method and device, electronic equipment and storage medium
CN113625999B (en) * 2021-08-10 2024-04-09 北京阅见未来网络科技有限公司 Application program generation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368987A (en) * 2012-03-27 2013-10-23 百度在线网络技术(北京)有限公司 Cloud server, application program verification, certification and management system and application program verification, certification and management method
CN107748662A (en) * 2017-11-17 2018-03-02 深圳市泉眼网络科技有限公司 Application development method, terminal and computer-readable recording medium
CN108132802A (en) * 2017-12-07 2018-06-08 鞍钢集团自动化有限公司 A kind of application process of allocation models in system development
CN108681473A (en) * 2018-05-18 2018-10-19 广州酷狗计算机科技有限公司 Application program generation, operation method, device, computer equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170052765A1 (en) * 2015-08-17 2017-02-23 Pai-Tsung Lee Method and system for creating app
JP2017091070A (en) * 2015-11-06 2017-05-25 ルネサスエレクトロニクス株式会社 Executable code generation program and executable code generation device
CN106201481A (en) * 2016-06-30 2016-12-07 传线网络科技(上海)有限公司 Assembly management method and apparatus in application development system
CN106547553A (en) * 2016-10-26 2017-03-29 安徽扬远信息科技有限公司 A kind of software development environment method for setting up object to be developed
CN108733368A (en) * 2017-05-16 2018-11-02 研祥智能科技股份有限公司 Machine vision general software development system
CN109918055B (en) * 2019-01-28 2023-10-31 平安科技(深圳)有限公司 Application program generation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368987A (en) * 2012-03-27 2013-10-23 百度在线网络技术(北京)有限公司 Cloud server, application program verification, certification and management system and application program verification, certification and management method
CN107748662A (en) * 2017-11-17 2018-03-02 深圳市泉眼网络科技有限公司 Application development method, terminal and computer-readable recording medium
CN108132802A (en) * 2017-12-07 2018-06-08 鞍钢集团自动化有限公司 A kind of application process of allocation models in system development
CN108681473A (en) * 2018-05-18 2018-10-19 广州酷狗计算机科技有限公司 Application program generation, operation method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109918055A (en) 2019-06-21
WO2020155775A1 (en) 2020-08-06

Similar Documents

Publication Publication Date Title
CN109885311B (en) Application program generation method and device
CN109918055B (en) Application program generation method and device
US20190310835A1 (en) Application development method, tool, and device, and storage medium
US8856805B2 (en) Virtual channel for embedded process communication
WO2021184725A1 (en) User interface test method and apparatus, storage medium, and computer device
US20060265469A1 (en) XML based scripting framework, and methods of providing automated interactions with remote systems
US11726799B2 (en) Preventing framework conflicts for multi-OS applications
WO2018036342A1 (en) Csar-based template design visualization method and device
WO2016095570A1 (en) Debugging method and apparatus for embedded system, and storage medium
CN110955409B (en) Method and device for creating resources on cloud platform
US10057331B2 (en) Automatic abstraction of flow of control in a distributed virtualization platform
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
WO2017034953A1 (en) System and method for object compression and state synchronization
US20240103928A1 (en) Information processing method and apparatus for animation resource, device, medium and product
US10268456B2 (en) Standardized approach to contextual code identification in editors and IDEs
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
CN105765531A (en) Generic unpacking of program binaries
US10567472B2 (en) Manipulation of PDF files using HTML authoring tools
US11604662B2 (en) System and method for accelerating modernization of user interfaces in a computing environment
US10606569B2 (en) Declarative configuration elements
CN110874216B (en) Complete code generation method, device, equipment and storage medium
CN106778270B (en) Malicious application detection method and system
CN113360379B (en) Program test environment creation method and program test environment creation apparatus
CN111782196A (en) MVP architecture-based development method and device
CN116991380B (en) Application program construction method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant