Project application construction method and device, storage medium and electronic equipment

By filtering and using toolkits with the latest generation time to build project applications, the problem of inefficiency caused by the complexity of building applications on different platforms is solved, the efficiency of project application construction is improved, and the effective invocation of cross-platform toolkits is achieved.

CN118626055APending Publication Date: 2024-09-10INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410691429.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In software development, building applications for different platforms requires writing specific scripts and configuration files for different platforms, resulting in low efficiency in project application construction. Existing technologies cannot effectively solve this problem.

Method used

Provide a method for building project applications. By receiving build requests, the toolkit collection corresponding to the target environment is filtered from the toolkit library, the toolkit with the latest generation time is extracted, and the toolkit is used to build the project application to ensure that the toolkit is built in the target environment. Achieve target projects.

Benefits of technology

It improves the efficiency of project application construction, solves the problem of inefficiency caused by the complexity of building applications on different platforms, and realizes the effective invocation of cross-platform toolkits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626055A
    Figure CN118626055A
Patent Text Reader

Abstract

The invention discloses a project application construction method and device, a storage medium and electronic equipment. The method relates to the field of cloud computing, and comprises the following steps: receiving a construction request which is used for requesting to construct a project application which is to be operated in a target environment and is used for realizing a target project; in response to the construction request, first toolkits corresponding to the target environment are screened from a toolkit library to obtain a first toolkit set, the toolkit library is used for storing full toolkits, the first toolkits are used for developing project applications allowed to run in the target environment, the first toolkit set comprises N first toolkits, and N is a positive integer; extracting a target toolkit of which the generation time is closest to the current time from the first toolkit set; and constructing a project application for the target project by using the target toolkit to obtain a target project application. Through the method and the device, the problem of relatively low efficiency of project application construction in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing, and in particular to a method, device, storage medium and electronic device for constructing a project application. Background Art

[0002] In software development, SDK (Software Development Kit) is a software package provided to developers for creating specific types of applications. Usually, SDK contains a series of tools, libraries and documents to help developers simplify the application building process. Currently, building applications on different platforms requires writing specific scripts and configuration files for different platforms, which increases the complexity of development and maintenance and reduces the efficiency of project application building.

[0003] Currently, no effective solution has been proposed to address the problem of low efficiency in project application construction in related technologies. Summary of the invention

[0004] The main purpose of this application is to provide a method, device, storage medium and electronic device for constructing a project application to solve the problem of low efficiency in project application construction in related technologies.

[0005] In order to achieve the above object, according to one aspect of the present application, a method for constructing a project application is provided, which is applied to a project construction tool, and the method includes:

[0006] Receiving a build request, wherein the build request is used to request building a project application to be run in a target environment for implementing a target project;

[0007] In response to the build request, a first toolkit corresponding to the target environment is screened from a toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer;

[0008] Extracting a target toolkit whose generation time is closest to the current time from the first toolkit set;

[0009] The target toolkit is used to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

[0010] Optionally, the method of screening the first toolkit corresponding to the target environment from the toolkit library to obtain a first toolkit set includes: detecting the environment adapted by each toolkit stored in the toolkit library to obtain toolkits and environments having a corresponding relationship; searching for a toolkit that allows adaptation to the target environment from the corresponding relationship; and extracting a toolkit that allows adaptation to the target environment from the toolkit library as the first toolkit to obtain the first toolkit set.

[0011] Optionally, before detecting the environment adapted by each toolkit stored in the toolkit library, the method further includes: generating a target script according to the build request, wherein the target script is a file that allows the project build tool to run, and the target script is used to control the project build tool to filter the first toolkit corresponding to the target environment from the toolkit library through machine language; and inputting the target script into the project build tool.

[0012] Optionally, extracting the target toolkit whose generation time is closest to the current time from the first toolkit set includes: detecting a version identifier of each of the first toolkits included in the first toolkit set, wherein the version identifier is used to indicate the toolkit version of the first toolkit; searching the first toolkit set for the target toolkit that carries the toolkit version as the target toolkit version, wherein the target toolkit version is used to indicate that the toolkit version is the latest version; and calling a dependency management command to extract the target toolkit from the first toolkit set, wherein the dependency management command is used to execute interaction between the toolkit library and the project build tool.

[0013] Optionally, using the target toolkit to build a project application for the target project to obtain a target project application includes: building a source file through the target toolkit to obtain an initial application, wherein the source file is used to describe the project application; running the initial application through a test framework to obtain a test result of the initial application, wherein the test framework is used to control the initial application to execute a test case, the test case is used to indicate an operating scenario of the initial application, and the test result is used to indicate whether the operating status of the initial application executing the test case is normal; when the test result is used to indicate that the operating status of the initial application executing the test case is normal, the initial application is determined as the target project application.

[0014] Optionally, before building the source file through the target toolkit to obtain the initial application, the method also includes: obtaining target configuration information of the target toolkit, wherein the target configuration information includes an API key, access permission control and authentication parameters; detecting a configuration status of the target configuration information, wherein the configuration status is used to indicate whether the target configuration information conforms to a target format; and when the target configuration information conforms to the target format, building the source file through the target toolkit to obtain the initial application.

[0015] Optionally, before screening the first toolkit corresponding to the target environment from the toolkit library, the method further includes: obtaining an initial tool file and an initial dependency of the initial tool file, wherein the initial tool file is used to describe the first toolkit, and the initial dependency is used to indicate a second toolkit that the first toolkit is allowed to use, and the second toolkit is a toolkit stored in the toolkit library that is allowed to be called by the first toolkit; using the initial tool file and the initial dependency to generate a third toolkit, and a toolkit version corresponding to the third toolkit; loading the toolkit version into the third toolkit to obtain the first toolkit; and adding the first toolkit to the toolkit library.

[0016] In order to achieve the above object, according to another aspect of the present application, a device for constructing a project application is provided, which is applied to a project construction tool, and the device includes:

[0017] A receiving module, configured to receive a build request, wherein the build request is used to request the construction of a project application to be run in a target environment for implementing a target project;

[0018] a screening module, configured to respond to the build request, screen the first toolkit corresponding to the target environment from a toolkit library, and obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N of the first toolkits, where N is a positive integer;

[0019] An extraction module, used for extracting a target toolkit whose generation time is closest to the current time from the first toolkit set;

[0020] The first construction module is used to use the target toolkit to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

[0021] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0022] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0023] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0024] Through this application, the following steps are adopted: receiving a build request, wherein the build request is used to request the construction of a project application to be run in the target environment for realizing the target project; responding to the build request, screening the first toolkit corresponding to the target environment from the toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full amount of toolkits, the first toolkit is used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer; extracting the target toolkit whose generation time is closest to the current time from the first toolkit set; using the target toolkit to build a project application for the target project, obtaining a target project application, wherein the target project application is used to realize the target project in the target environment, solving the problem of low efficiency of project application construction in the related art. Thus, the effect of improving the efficiency of project application construction is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0026] Figure 1 It is a flowchart of a method for constructing a project application according to an embodiment of the present application;

[0027] Figure 2 is a schematic diagram of a process of extracting a target toolkit according to an embodiment of the present application;

[0028] Figure 3 is a flowchart of a process of generating a first toolkit according to an embodiment of the present application;

[0029] Figure 4 is a schematic diagram of a construction device for project application according to an embodiment of the present application;

[0030] Figure 5 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a method for constructing a project application according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0035] Step S101, receiving a build request, wherein the build request is used to request building a project application to be run in a target environment for implementing a target project;

[0036] Step S102, in response to the build request, screening the first toolkit corresponding to the target environment from the toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer;

[0037] Step S103, extracting the target toolkit whose generation time is closest to the current time from the first toolkit set;

[0038] Step S104: Use the target toolkit to build a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

[0039] Optionally, in the project application construction method provided in the embodiment of the present application, the project application construction method proposed in the present application is applied to a project construction tool, and the project construction tool can be but is not limited to being deployed in software for building a target project or project application. The project application construction method can be but is not limited to being applied to scenarios such as building a target project, adding a project application to a target project, etc.

[0040] In the technical solution provided in the above step S101, the above construction request may be, but is not limited to, triggered when building a target project, adding a project application to the target project, etc., and may, but is not limited to, carry a target environment in which the project application is to be run and a specific description of the project application, and the target environment may, but is not limited to, include: an operating system of a mobile terminal, a website, etc. The specific description of the project application may, but is not limited to, be a program code for building the project application, and the project construction tool may, but is not limited to, call a toolkit according to the specific description of the project application to realize the construction of the project application.

[0041] In the technical solution provided in the above step S102, the above toolkit library may be, but is not limited to, a storage space storing a full amount of software development toolkits for building project applications.

[0042] Optionally, in the project application construction method provided in the embodiment of the present application, in order to deploy the project application in different environments, it is necessary to select a toolkit that is adapted to the environment. Therefore, it is necessary to screen a full set of toolkits adapted to the target environment from the toolkit library as the first toolkit according to the target environment indicated by the build request, for example: determine the target environment from the build request, and then screen the toolkit adapted to the target environment from the corresponding target environment and toolkit as the first toolkit; or, extract a toolkit carrying an environment identifier to indicate that it is adapted to the target environment from the toolkit library as the first toolkit, etc.

[0043] In an exemplary embodiment, the first toolkit corresponding to the target environment can be screened from the toolkit library to obtain a first toolkit set in the following manner, but not limited to: detecting the environment adapted by each toolkit stored in the toolkit library to obtain toolkits and environments with corresponding relationships; searching for a toolkit that allows adaptation to the target environment from the corresponding relationship; extracting a toolkit that allows adaptation to the target environment from the toolkit library as the first toolkit to obtain the first toolkit set.

[0044] Optionally, in the project application construction method provided in the embodiment of the present application, the environment to which the toolkit is adapted may be, but is not limited to, determined in the process of building the toolkit. Therefore, it may be, but is not limited to, in the process of building the toolkit, to mark the environment to which the toolkit is adapted using an environment identifier, and to determine whether the environment to which the toolkit is adapted is the target environment by detecting the environment identifier marked by the toolkit stored in the toolkit library.

[0045] Alternatively, a toolkit adapted to the target environment is obtained, and the toolkit adapted to the target environment is searched and extracted from the toolkit library as the first toolkit to obtain a first toolkit set.

[0046] In an exemplary embodiment, before detecting the environment adapted by each toolkit stored in the toolkit library, the project construction tool may be run in the following manner but is not limited to: generating a target script according to the build request, wherein the target script is a file that allows the project construction tool to run, and the target script is used to control the project construction tool to filter the first toolkit corresponding to the target environment from the toolkit library through machine language; and inputting the target script into the project construction tool.

[0047] Optionally, in the project application construction method provided in the embodiment of the present application, a target script is generated according to a build request to drive the project construction tool to run according to the build request, and the target script is input into the project construction tool to control the project construction tool to filter the first toolkit corresponding to the target environment from the toolkit library and perform subsequent construction operations.

[0048] In an exemplary embodiment, before screening the first toolkit corresponding to the target environment from the toolkit library, the first toolkit can be generated in the following manner but is not limited to: obtaining an initial tool file and an initial dependency of the initial tool file, wherein the initial tool file is used to describe the first toolkit, and the initial dependency is used to indicate a second toolkit that the first toolkit is allowed to use, and the second toolkit is a toolkit stored in the toolkit library that is allowed to be called by the first toolkit; using the initial tool file and the initial dependency to generate a third toolkit and a toolkit version corresponding to the third toolkit; loading the toolkit version into the third toolkit to obtain the first toolkit; and adding the first toolkit to the toolkit library.

[0049] Optionally, in the method for constructing a project application provided in the embodiment of the present application, the initial tool file may include, but is not limited to, library files, header files, sample codes, documents, etc. The toolkits stored in the toolkit library may, but are not less than, be allowed to call each other, for example: toolkit A calls toolkit B and toolkit C, toolkit B calls toolkit D, etc.

[0050] Optionally, in the project application construction method provided in the embodiment of the present application, the initial tool file and the initial dependencies of the initial tool file are compiled, linked and other construction tools are used to make them compatible with the corresponding operating system, and then the installation program creation tool is used to create an installation package to obtain a third toolkit. In the process of generating the current third toolkit, the third toolkit can be marked with a toolkit version, but is not limited to it, such as: marking the "latest" logo and deleting the latest logo of other toolkits, using the generation time as the version logo, using the version as the version logo, etc.

[0051] Optionally, in the project application construction method provided in the embodiment of the present application, before adding the first toolkit to the toolkit library, the compiled first toolkit can be tested on the environment to which the first toolkit is adapted, but is not limited to, to ensure that the first toolkit can work normally in different configurations and environments before adding it to the toolkit library.

[0052] In the technical solution provided in the above step S103, it is possible but not limited to detecting the generation time of each first toolkit included in the first toolkit set, and then extracting the first toolkit whose generation time is closest to the current time as the target toolkit.

[0053] Optionally, in the project application construction method provided in the embodiment of the present application, the distance between the generation time of the first toolkit and the current time can be determined based on the toolkit version of the first toolkit, but is not limited to, such as: determining that the generation time of the latest version of the first toolkit is closest to the current time. Or, determining that the generation time of the oldest version of the first toolkit is farthest from the current time, etc.

[0054] In an exemplary embodiment, the target toolkit whose generation time is closest to the current time can be extracted from the first toolkit set in the following manner, but is not limited to: detecting the version identifier of each of the first toolkits included in the first toolkit set, wherein the version identifier is used to indicate the toolkit version of the first toolkit; searching the first toolkit set for the target toolkit that carries the toolkit version as the target toolkit version, wherein the target toolkit version is used to indicate that the toolkit version is the latest version; and calling a dependency management command to extract the target toolkit from the first toolkit set, wherein the dependency management command is used to execute the interaction between the toolkit library and the project building tool.

[0055] Optionally, in the project application construction method provided in the embodiment of the present application, the above-mentioned version identification may be, but is not limited to, generated by marking the first toolkit using the toolkit version of the first toolkit during the process of generating the first toolkit; or, the above-mentioned version identification may be, but is not limited to, generated by loading the toolkit version into the first toolkit, etc.

[0056] Optionally, in the project application construction method provided in the embodiment of the present application, the target version identifier can be carried for the latest generated first toolkit, but is not limited to it. For example, the version identifier carried for the latest first toolkit currently generated is latest, indicating that the latest version is used.

[0057] Optionally, in the project application construction method provided in the embodiment of the present application, the dependency management command can be used, but is not limited to, to call a dependency management tool to download a target toolkit required for the project.

[0058] In the technical solution provided in the above step S104, in the process of using the target toolkit to build a project application for the target project, it is necessary to first set the environment variables of the target toolkit, specify the library path, introduce the header files, etc., and then add the library files and header files in the target toolkit to the project application, and use the API and library provided by the target toolkit to write the application code, compile the application code, and ensure that the linker can find and correctly link the library in the target toolkit, perform unit testing and integration testing during the development process to ensure that the functions of the application meet expectations, and when the application development is completed and passed the test, the target project application is obtained, and finally the target project application is deployed in the target project to achieve the addition of the target project application to the target project.

[0059] In an exemplary embodiment, the target toolkit can be used to build a project application for the target project to obtain a target project application in the following manner, but is not limited to: construct a source file through the target toolkit to obtain an initial application, wherein the source file is used to describe the project application; run the initial application through a test framework to obtain a test result of the initial application, wherein the test framework is used to control the initial application to execute a test case, the test case is used to indicate an operating scenario of the initial application, and the test result is used to indicate whether the operating status of the initial application executing the test case is normal; when the test result is used to indicate that the operating status of the initial application executing the test case is normal, the initial application is determined as the target project application.

[0060] Optionally, in the project application construction method provided in the embodiment of the present application, the source file is a program code used to describe the project application, so the initial application can be obtained by writing and compiling the application code using, but not limited to, the API and library provided by the target toolkit.

[0061] Optionally, in the project application construction method provided in the embodiment of the present application, the test framework includes test cases to be executed by the initial application, and can be, but is not limited to, controlling the initial application to execute each test case in sequence in the test framework to obtain the test results of the initial application executing each test case.

[0062] Optionally, in the project application construction method provided in the embodiment of the present application, when the initial application completes each test case, the test result output by the test framework is used to indicate that the running state of the initial application executing the test case is normal;

[0063] Alternatively, when the initial application fails to complete any test case, the test result output by the test framework is used to indicate that the running status of the initial application executing the test case is abnormal; or, when the number of times the initial application fails to complete the test case reaches a threshold, the test result output by the test framework is used to indicate that the running status of the initial application executing the test case is abnormal, etc.

[0064] In an exemplary embodiment, before the initial application is obtained by building the source file through the target toolkit, the initial application can be built in the following manner but is not limited to: obtaining target configuration information of the target toolkit, wherein the target configuration information includes API key, access permission control and authentication parameters to build the initial application; detecting the configuration status of the target configuration information, wherein the configuration status is used to indicate whether the target configuration information conforms to the target format; and when the target configuration information conforms to the target format, building the source file through the target toolkit to obtain the initial application.

[0065] Optionally, in the project application construction method provided in the embodiment of the present application, in order to prevent abnormal calls to the target toolkit, it is possible but not limited to configuring API keys, access permission controls and authentication parameters for the target toolkit. That is, in the case of a request to call the target toolkit, it is necessary to further verify the API keys, access permission controls and authentication parameters of the user who requests to call the target toolkit. If the verification is passed, the user is allowed to call the target toolkit.

[0066] Optionally, in the project application construction method provided in the embodiment of the present application, the target configuration information may be stored in a secure place, such as an encrypted configuration file or a key management service, to ensure that the configuration information is not accessed or tampered with by unauthorized personnel. Further, the target configuration information may be adaptively updated, such that when a new toolkit is generated, the latest configuration information can be read to ensure that the toolkit calling process can be correctly executed.

[0067] In an exemplary embodiment, an example of a process of extracting a target toolkit is provided. Figure 2 is a schematic diagram of a process of extracting a target toolkit according to an embodiment of the present application, such as Figure 2 As shown, taking the toolkit library storing toolkits 1 to toolkit 6, and the build request filtering request building a project application to be run in environment 1 for implementing the target project as an example, a target script is generated according to the build request, and the project construction tool filters the first toolkit set corresponding to environment 1 from toolkits 1 to toolkit 6 by executing the target script, including: toolkit 1, toolkit 3 and toolkit 6.

[0068] According to the identifier of the latest version on toolkit 3, toolkit 3 is extracted from the toolkit library as the target toolkit.

[0069] It should be noted that the above target script can be, but is not limited to, generated by the project construction tool in response to a construction request, or can also be sent to the project construction tool after being built by other tools other than the project construction tool to control the project construction tool.

[0070] Optionally, in this embodiment, in order to better understand the process of generating the first toolkit in the construction method of the project application proposed in this application, the above process is described in conjunction with an optional embodiment below, but it is not used to limit the technical solution of the embodiment of this application.

[0071] In an exemplary embodiment, an example of a process of generating a first toolkit is provided. Figure 3 is a flowchart of a process of generating a first toolkit according to an embodiment of the present application, such as Figure 3 As shown, the first toolkit may be generated by, but is not limited to, the following steps:

[0072] Step S301: creating a plug-in for generating a first toolkit and an environment that allows deployment of the first toolkit to be generated;

[0073] It should be noted that the plug-in used to generate the first toolkit can be deployed in, but is not limited to, a local repository or a private repository of the dependency.

[0074] Step S302: the plug-in obtains dependencies (initial dependencies) for generating the first toolkit and program code (initial tool file) for describing the first toolkit according to the environment;

[0075] Step S303: the plug-in generates an initial toolkit (third toolkit) using the dependencies and program code;

[0076] It should be noted that the process of building the initial toolkit is usually determined according to the requirements of the project application that the first toolkit allows to build.

[0077] Step S304: the plug-in tests the generated initial toolkit, specifically by: using the project application built with the initial toolkit in the test framework;

[0078] It should be noted that integrated automated testing is a key step in ensuring the quality and stability of the generated toolkit during the packaging process. Testing requirements may include, but are not limited to: writing test cases for the initial toolkit to cover normal and boundary conditions; using assertion methods to verify whether the initial toolkit behavior meets expectations; organizing test cases into test suites, divided by function or module, and performing processes such as unit testing and integration testing;

[0079] You can, but are not limited to, learn the number of test cases that passed the test, the number of test cases that failed, and the running time based on the test log of the initial toolkit; for test processes with errors, locate the problem through test reports or debugging tools and repair the initial toolkit;

[0080] In addition, the testing process is integrated into the initial toolkit generation process. Each toolkit submission will trigger the testing process to ensure the correct implementation of the functions.

[0081] Step S305: If the initial toolkit passes the test, the toolkit version (version identifier) ​​is marked for the initial toolkit, and the permission information (configuration information) allowed to call this toolkit is determined, specifically including: determining the API key, access permission control and authentication parameters of the user allowed to access this toolkit.

[0082] It should be noted that the toolkit and its permission information can be stored, but is not limited to, after the toolkit is finally generated. Before the initial application is obtained by using the toolkit to build the source file, the permission information of the toolkit is obtained during the verification of the toolkit, and the permission information is compared with the target configuration information of the toolkit. If they are consistent, it is determined that the target configuration information of the toolkit conforms to the target format.

[0083] Step S306: Generate a binary file corresponding to the initial toolkit and store it in the toolkit library as the first toolkit.

[0084] Through the project application construction method proposed in this application, the call for the generation of a cross-platform toolkit is realized, allowing you to use a set of toolkits to build applications that support multiple platforms.

[0085] The method for constructing a project application provided in an embodiment of the present application receives a construction request, wherein the construction request is used to request the construction of a project application to be run in a target environment for realizing a target project; in response to the construction request, the first toolkit corresponding to the target environment is screened from a toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full amount of toolkits, the first toolkit is used to develop a project application that is allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer; extracts a target toolkit whose generation time is closest to the current time from the first toolkit set; uses the target toolkit to construct a project application for the target project, and obtains a target project application, wherein the target project application is used to realize the target project in the target environment, thereby solving the problem of low efficiency in project application construction in the related art. Thus, the effect of improving the efficiency of project application construction is achieved.

[0086] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0087] The present application embodiment also provides a device for constructing a project application. It should be noted that the device for constructing a project application in the present application embodiment can be used to execute the method for constructing a project application provided in the present application embodiment. The following introduces the device for constructing a project application provided in the present application embodiment.

[0088] Figure 4 Schematic diagram of a construction device for project application according to an embodiment of the present application. Figure 4 As shown, the device comprises:

[0089] A receiving module 41 is used to receive a build request, wherein the build request is used to request to build a project application to be run in a target environment for implementing a target project;

[0090] A screening module 42 is used to respond to the build request, screen the first toolkit corresponding to the target environment from the toolkit library, and obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer;

[0091] An extraction module 43, configured to extract, from the first toolkit set, a target toolkit whose generation time is closest to the current time;

[0092] The first construction module 44 is configured to use the target toolkit to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

[0093] Optionally, in the device for constructing a project application provided in an embodiment of the present application, the screening module includes:

[0094] A first detection unit is used to detect the environment adapted by each toolkit stored in the toolkit library, and obtain the toolkit and environment having a corresponding relationship;

[0095] A first searching unit, configured to search the corresponding relationship for a toolkit that allows adaptation to the target environment;

[0096] A first extraction unit is configured to extract a toolkit that allows adaptation to the target environment from the toolkit library as the first toolkit, to obtain the first toolkit set.

[0097] Optionally, in the device for constructing a project application provided in an embodiment of the present application, before detecting the environment adapted by each toolkit stored in the toolkit library, the device further includes:

[0098] A first generating module is used to generate a target script according to the building request, wherein the target script is a file that allows the project building tool to run, and the target script is used to control the project building tool to select the first toolkit corresponding to the target environment from the toolkit library through machine language;

[0099] An input module is used to input the target script into the project construction tool.

[0100] Optionally, in the project application construction device provided in the embodiment of the present application, the extraction module includes:

[0101] A second detection unit, configured to detect a version identifier of each first toolkit included in the first toolkit set, wherein the version identifier is used to indicate a toolkit version of the first toolkit;

[0102] A second searching unit is used to search the target toolkit from the first toolkit set, wherein the toolkit version is the target toolkit version, wherein the target toolkit version is used to indicate that the toolkit version is the latest version;

[0103] The second extraction unit is used to call a dependency management command to extract the target toolkit from the first toolkit set, wherein the dependency management command is used to execute the interaction between the toolkit library and the project construction tool.

[0104] Optionally, in the project application construction device provided in the embodiment of the present application, the first construction module includes:

[0105] A construction unit, configured to construct a source file through the target toolkit to obtain an initial application, wherein the source file is used to describe the project application;

[0106] A running unit, used to run the initial application through a test framework to obtain a test result of the initial application, wherein the test framework is used to control the initial application to execute a test case, the test case is used to indicate an operating scenario of the initial application, and the test result is used to indicate whether the operating state of the initial application executing the test case is normal;

[0107] A determination unit is used to determine the initial application as the target project application when the test result indicates that the running state of the initial application executing the test case is normal.

[0108] Optionally, in the device for constructing a project application provided in an embodiment of the present application, before constructing the source file by the target toolkit to obtain the initial application, the device further includes:

[0109] A first acquisition module, configured to acquire target configuration information of the target toolkit, wherein the target configuration information includes an API key, access permission control, and authentication parameters;

[0110] A detection module, used to detect a configuration state of the target configuration information, wherein the configuration state is used to indicate whether the target configuration information conforms to a target format;

[0111] The second construction module is used to construct the source file through the target toolkit to obtain the initial application when the target configuration information conforms to the target format.

[0112] Optionally, in the device for constructing a project application provided in an embodiment of the present application, before screening the first toolkit corresponding to the target environment from the toolkit library, the device further includes:

[0113] A second acquisition module is used to acquire an initial tool file and an initial dependency of the initial tool file, wherein the initial tool file is used to describe the first toolkit, the initial dependency is used to indicate a second toolkit that the first toolkit allows to use, and the second toolkit is a toolkit stored in the toolkit library that is allowed to be called by the first toolkit;

[0114] A second generation module, used to generate a third toolkit and a toolkit version corresponding to the third toolkit using the initial tool file and the initial dependencies;

[0115] A loading module, used for loading the toolkit version into the third toolkit to obtain the first toolkit;

[0116] An adding module is used to add the first toolkit to the toolkit library.

[0117] The project application construction device provided by the embodiment of the present application receives a construction request, wherein the construction request is used to request the construction of a project application to be run in a target environment for realizing a target project; in response to the construction request, the first toolkit corresponding to the target environment is screened from the toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full amount of toolkits, the first toolkit is used to develop a project application that is allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer; extracts a target toolkit whose generation time is closest to the current time from the first toolkit set; uses the target toolkit to construct a project application for the target project, and obtains a target project application, wherein the target project application is used to realize the target project in the target environment, thereby solving the problem of low efficiency of project application construction in the related art. Thus, the effect of improving the efficiency of project application construction is achieved.

[0118] The construction device of the project application includes a processor and a memory. The above modules, units, etc. are stored in the memory as program units, and the processor executes the above program units stored in the memory to realize corresponding functions.

[0119] The processor contains a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the efficiency of project application construction can be improved by adjusting kernel parameters.

[0120] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0121] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for constructing the project application is implemented.

[0122] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the method for constructing the project application when it is running.

[0123] like Figure 5 As shown, an embodiment of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:

[0124] Receiving a build request, wherein the build request is used to request building a project application to be run in a target environment for implementing a target project;

[0125] In response to the build request, a first toolkit corresponding to the target environment is screened from a toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer;

[0126] Extracting a target toolkit whose generation time is closest to the current time from the first toolkit set;

[0127] The target toolkit is used to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

[0128] Optionally, the method of screening the first toolkit corresponding to the target environment from the toolkit library to obtain a first toolkit set includes: detecting the environment adapted by each toolkit stored in the toolkit library to obtain toolkits and environments having a corresponding relationship; searching for a toolkit that allows adaptation to the target environment from the corresponding relationship; and extracting a toolkit that allows adaptation to the target environment from the toolkit library as the first toolkit to obtain the first toolkit set.

[0129] Optionally, before detecting the environment adapted by each toolkit stored in the toolkit library, the method further includes: generating a target script according to the build request, wherein the target script is a file that allows the project build tool to run, and the target script is used to control the project build tool to filter the first toolkit corresponding to the target environment from the toolkit library through machine language; and inputting the target script into the project build tool.

[0130] Optionally, extracting the target toolkit whose generation time is closest to the current time from the first toolkit set includes: detecting a version identifier of each of the first toolkits included in the first toolkit set, wherein the version identifier is used to indicate the toolkit version of the first toolkit; searching the first toolkit set for the target toolkit that carries the toolkit version as the target toolkit version, wherein the target toolkit version is used to indicate that the toolkit version is the latest version; and calling a dependency management command to extract the target toolkit from the first toolkit set, wherein the dependency management command is used to execute interaction between the toolkit library and the project build tool.

[0131] Optionally, using the target toolkit to build a project application for the target project to obtain a target project application includes: building a source file through the target toolkit to obtain an initial application, wherein the source file is used to describe the project application; running the initial application through a test framework to obtain a test result of the initial application, wherein the test framework is used to control the initial application to execute a test case, the test case is used to indicate an operating scenario of the initial application, and the test result is used to indicate whether the operating status of the initial application executing the test case is normal; when the test result is used to indicate that the operating status of the initial application executing the test case is normal, the initial application is determined as the target project application.

[0132] Optionally, before building the source file through the target toolkit to obtain the initial application, the method also includes: obtaining target configuration information of the target toolkit, wherein the target configuration information includes an API key, access permission control and authentication parameters; detecting a configuration status of the target configuration information, wherein the configuration status is used to indicate whether the target configuration information conforms to a target format; and when the target configuration information conforms to the target format, building the source file through the target toolkit to obtain the initial application.

[0133] Optionally, before screening the first toolkit corresponding to the target environment from the toolkit library, the method further includes: obtaining an initial tool file and an initial dependency of the initial tool file, wherein the initial tool file is used to describe the first toolkit, and the initial dependency is used to indicate a second toolkit that the first toolkit is allowed to use, and the second toolkit is a toolkit stored in the toolkit library that is allowed to be called by the first toolkit; using the initial tool file and the initial dependency to generate a third toolkit, and a toolkit version corresponding to the third toolkit; loading the toolkit version into the third toolkit to obtain the first toolkit; and adding the first toolkit to the toolkit library.

[0134] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0135] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:

[0136] Receiving a build request, wherein the build request is used to request building a project application to be run in a target environment for implementing a target project;

[0137] In response to the build request, a first toolkit corresponding to the target environment is screened from a toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer;

[0138] Extracting a target toolkit whose generation time is closest to the current time from the first toolkit set;

[0139] The target toolkit is used to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

[0140] Optionally, the method of screening the first toolkit corresponding to the target environment from the toolkit library to obtain a first toolkit set includes: detecting the environment adapted by each toolkit stored in the toolkit library to obtain toolkits and environments having a corresponding relationship; searching for a toolkit that allows adaptation to the target environment from the corresponding relationship; and extracting a toolkit that allows adaptation to the target environment from the toolkit library as the first toolkit to obtain the first toolkit set.

[0141] Optionally, before detecting the environment adapted by each toolkit stored in the toolkit library, the method further includes: generating a target script according to the build request, wherein the target script is a file that allows the project build tool to run, and the target script is used to control the project build tool to filter the first toolkit corresponding to the target environment from the toolkit library through machine language; and inputting the target script into the project build tool.

[0142] Optionally, extracting the target toolkit whose generation time is closest to the current time from the first toolkit set includes: detecting a version identifier of each of the first toolkits included in the first toolkit set, wherein the version identifier is used to indicate the toolkit version of the first toolkit; searching the first toolkit set for the target toolkit that carries the toolkit version as the target toolkit version, wherein the target toolkit version is used to indicate that the toolkit version is the latest version; and calling a dependency management command to extract the target toolkit from the first toolkit set, wherein the dependency management command is used to execute interaction between the toolkit library and the project build tool.

[0143] Optionally, using the target toolkit to build a project application for the target project to obtain a target project application includes: building a source file through the target toolkit to obtain an initial application, wherein the source file is used to describe the project application; running the initial application through a test framework to obtain a test result of the initial application, wherein the test framework is used to control the initial application to execute a test case, the test case is used to indicate an operating scenario of the initial application, and the test result is used to indicate whether the operating status of the initial application executing the test case is normal; when the test result is used to indicate that the operating status of the initial application executing the test case is normal, the initial application is determined as the target project application.

[0144] Optionally, before building the source file through the target toolkit to obtain the initial application, the method also includes: obtaining target configuration information of the target toolkit, wherein the target configuration information includes an API key, access permission control and authentication parameters; detecting a configuration status of the target configuration information, wherein the configuration status is used to indicate whether the target configuration information conforms to a target format; and when the target configuration information conforms to the target format, building the source file through the target toolkit to obtain the initial application.

[0145] Optionally, before screening the first toolkit corresponding to the target environment from the toolkit library, the method further includes: obtaining an initial tool file and an initial dependency of the initial tool file, wherein the initial tool file is used to describe the first toolkit, and the initial dependency is used to indicate a second toolkit that the first toolkit is allowed to use, and the second toolkit is a toolkit stored in the toolkit library that is allowed to be called by the first toolkit; using the initial tool file and the initial dependency to generate a third toolkit, and a toolkit version corresponding to the third toolkit; loading the toolkit version into the third toolkit to obtain the first toolkit; and adding the first toolkit to the toolkit library.

[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

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

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

[0150] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0151] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0152] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0153] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0155] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for constructing a project application, characterized in that: Applied to a project construction tool, the method includes: Receiving a build request, wherein the build request is used to request building a project application to be run in a target environment for implementing a target project; In response to the build request, a first toolkit corresponding to the target environment is screened from a toolkit library to obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N first toolkits, where N is a positive integer; Extracting a target toolkit whose generation time is closest to the current time from the first toolkit set; The target toolkit is used to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

2. The method according to claim 1, characterized in that The step of screening the first toolkit corresponding to the target environment from the toolkit library to obtain a first toolkit set includes: Detecting the environment adapted by each toolkit stored in the toolkit library to obtain the toolkit and environment having a corresponding relationship; Searching for a toolkit that allows adaptation to the target environment from the corresponding relationship; A toolkit that allows adaptation to the target environment is extracted from the toolkit library as the first toolkit, to obtain the first toolkit set.

3. The method according to claim 2, characterized in that Before detecting the environment adapted by each toolkit stored in the toolkit library, the method further includes: Generate a target script according to the build request, wherein the target script is a file that allows the project build tool to run, and the target script is used to control the project build tool to select the first toolkit corresponding to the target environment from the toolkit library through machine language; The target script is input into the project build tool.

4. The method according to claim 1, characterized in that: The step of extracting the target toolkit whose generation time is closest to the current time from the first toolkit set includes: Detecting a version identifier of each first toolkit included in the first toolkit set, wherein the version identifier is used to indicate a toolkit version of the first toolkit; Searching the target toolkit from the first toolkit set for a toolkit version that is a target toolkit version, wherein the target toolkit version is used to indicate that the toolkit version is the latest version; A dependency management command is called to extract the target toolkit from the first toolkit set, wherein the dependency management command is used to execute the interaction between the toolkit library and the project construction tool.

5. The method according to claim 1, characterized in that The using the target toolkit to construct a project application for the target project to obtain the target project application includes: Building a source file through the target toolkit to obtain an initial application, wherein the source file is used to describe the project application; Running the initial application through a test framework to obtain a test result of the initial application, wherein the test framework is used to control the initial application to execute a test case, the test case is used to indicate an operating scenario of the initial application, and the test result is used to indicate whether the operating state of the initial application executing the test case is normal; In a case where the test result is used to indicate that the running state of the initial application executing the test case is a normal state, the initial application is determined as the target project application.

6. The method according to claim 5, characterized in that Before the initial application is obtained by constructing the source file through the target toolkit, the method further includes: Obtaining target configuration information of the target toolkit, wherein the target configuration information includes an API key, access permission control, and authentication parameters; Detecting a configuration state of the target configuration information, wherein the configuration state is used to indicate whether the target configuration information conforms to a target format; In the case where the target configuration information conforms to the target format, the source file is constructed by the target toolkit to obtain the initial application.

7. The method according to claim 1, characterized in that Before screening the first toolkit corresponding to the target environment from the toolkit library, the method further includes: Acquire an initial tool file and initial dependencies of the initial tool file, wherein the initial tool file is used to describe the first toolkit, the initial dependencies are used to indicate a second toolkit that the first toolkit allows to use, and the second toolkit is a toolkit stored in the toolkit library that is allowed to be called by the first toolkit; Generate a third toolkit and a toolkit version corresponding to the third toolkit using the initial tool file and the initial dependencies; Loading the toolkit version into the third toolkit to obtain the first toolkit; The first toolkit is added to the toolkit library.

8. A device for constructing a project application, characterized in that: Applicable to project building tools, including: A receiving module, configured to receive a build request, wherein the build request is used to request the construction of a project application to be run in a target environment for implementing a target project; a screening module, configured to respond to the build request, screen the first toolkit corresponding to the target environment from a toolkit library, and obtain a first toolkit set, wherein the toolkit library is used to store a full set of toolkits, the first toolkits are used to develop project applications that are allowed to run in the target environment, and the first toolkit set includes N of the first toolkits, where N is a positive integer; An extraction module, used for extracting a target toolkit whose generation time is closest to the current time from the first toolkit set; The first construction module is used to use the target toolkit to construct a project application for the target project to obtain a target project application, wherein the target project application is used to implement the target project in the target environment.

9. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 7 when running.

10. An electronic device, characterized in that: The invention comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1 to 7.