A software product development method, device, equipment and medium

By using management plug-ins and module assembly whitelists in software product development, hierarchical management and component assembly of applications are realized, which solves the problem of long module debugging and compilation time, improves development efficiency and reduces costs.

CN113918170BActive Publication Date: 2024-09-13HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111397980.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-09-13
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

In the process of software product development, as the business complexity and the number of components increase, the compilation time for module debugging increases significantly, resulting in a reduction in development efficiency, and the unnecessary compilation time increases linearly with the number of components and developers, resulting in Huge cost.

Method used

By creating a management plug-in, defining the hierarchical structure of the application and the module assembly whitelist, obtaining the target module information that developers need to compile, filtering and assembling the minimum runnable program, the layered management of the application and the assembly of components are achieved, reducing unnecessary the compilation process.

Benefits of technology

It improves the compilation efficiency during module debugging, reduces waiting time, improves the development efficiency of software products, and reduces compilation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918170B
    Figure CN113918170B
Patent Text Reader

Abstract

The present application discloses a software product development method, device, equipment and medium, including: creating a management plug-in; defining the hierarchical structure of an application in the management plug-in, including an architecture layer, a module layer, and a component group layer; the management plug-in includes a module assembly whitelist, and the module assembly whitelist includes the first identification information of a designated module constituting the minimum executable program of the application; obtaining the second identification information of a target module that the developer needs to compile, and adding it to the module assembly whitelist to obtain a new module assembly whitelist; using the management plug-in and the new module assembly whitelist to filter the modules of the application, obtain the designated module, all component groups of the target module, and the non-designated component groups of the non-designated modules corresponding to the minimum executable program, assemble them into a target program, and compile the target program to realize the development of the software product. The compilation efficiency can be improved, thereby improving the development efficiency of the software product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software product development, and in particular to a software product development method, device, equipment and medium. Background Art

[0002] In the current software product development process, such as Android products, the project architecture usually adopts a modular development method, that is, each developer is responsible for their own module, which is finally integrated into the project. This is a popular project architecture and collaboration method in the industry. However, as the business becomes more and more complex, the number of components and modules (components are divided according to jar packages, one component is a jar package, and modules are divided according to functions, and one module can contain multiple components) has also become very large. Developers have to compile all modules every time they debug. Even if they are just debugging a small function, each component must be downloaded, decompressed, and loaded. On average, it takes more than ten or even dozens of minutes to compile once, which adds a lot of unnecessary waiting time. Even if there is a problem with other modules, it will cause compilation failure and cannot be debugged. It is necessary to wait for them to be repaired or rolled back, which adds a lot of unnecessary waiting time, seriously affecting development efficiency. For large projects, the time spent on unnecessary compilation increases linearly with the increase in the number of components and developers, which is a huge cost. If developers try to manually comment out other modules and only compile and debug their own modules, the compilation may fail due to the mutual dependence and influence between modules. This method requires developers to be very familiar with the overall project architecture and the dependencies between modules. It is OK for small projects, but it is obviously impossible for large and complex projects, and it is very easy to make mistakes. Even if you spend a lot of time to successfully remove other modules, it is easy to submit the changes caused by related debugging to the code repository, polluting the code or even causing bugs, which is both time-consuming and error-prone. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a software product development method, apparatus, device and medium, which can improve the compilation efficiency during module debugging, thereby improving the development efficiency of software products.

[0004] The specific plan is as follows:

[0005] In a first aspect, the present application discloses a software product development method, comprising:

[0006] Creating a management plug-in; wherein the management plug-in defines a hierarchical structure of an application, the hierarchical structure includes an architecture layer of the application, a module layer under the architecture layer, and a component group layer under the module layer, wherein the component group layer includes a component group layer corresponding to a specified component group; and the management plug-in further includes a module assembly whitelist, wherein the module assembly whitelist includes first identification information of a specified module of a minimum executable program constituting the application;

[0007] Obtaining second identification information of a target module of the application that the developer needs to compile, and adding the second identification information to the module assembly whitelist to obtain a new module assembly whitelist;

[0008] Filter the modules of the application program by using the management plug-in and the new module assembly whitelist to obtain the designated module and all component groups of the target module, and the non-designated component group of the non-designated module corresponding to the minimum executable program;

[0009] All the component groups and the non-specified component groups are assembled into a target program, and the target program is compiled to achieve development of a software product corresponding to the application program.

[0010] Optionally, the first identification information and the second identification information are module names of modules or regular expressions corresponding to modules.

[0011] Optionally, the architecture layer includes a framework layer, a basic layer, and a business layer of the application; wherein the module layers under the framework layer all correspond to the framework modules of the application, the module layers under the basic layer all correspond to the basic modules of the application, and the module layers under the business layer all correspond to the business modules of the application.

[0012] Optionally, also include:

[0013] The module name defined by the developer for the module layer under the architecture layer is obtained, and the module name is created under the architecture layer corresponding to the management plug-in.

[0014] Optionally, also include:

[0015] The component group name defined by the developer for the component group layer corresponding to the non-specified component group under the module layer is obtained, and the component group name is created under the module layer corresponding to the management plug-in.

[0016] Optionally, the management plug-in further includes a module plug-in control switch;

[0017] Accordingly, the method further includes:

[0018] In a test environment or a production environment, the module plug-in control switch is configured to be closed so as to compile and package the complete application to obtain a corresponding application package.

[0019] Optionally, after compiling the target program, the method further includes:

[0020] Running the target program;

[0021] Using a preset debugging component to display the module debugging entry of each module in the application program;

[0022] When a click operation on any of the module debugging entries is detected, the program jumps to the module corresponding to the module debugging entry to debug the module.

[0023] In a second aspect, the present application discloses a software product development device, comprising:

[0024] A management plug-in creation module, used to create a management plug-in; wherein the management plug-in defines a hierarchical structure of an application, the hierarchical structure includes an architecture layer of the application, a module layer under the architecture layer, and a component group layer under the module layer, wherein the component group layer includes a component group layer corresponding to a specified component group; and the management plug-in also includes a module assembly whitelist, wherein the module assembly whitelist includes first identification information of a specified module constituting a minimum executable program of the application;

[0025] A module identification acquisition module, used to acquire the second identification information of the target module of the application program that the developer needs to compile, and add the second identification information to the module assembly whitelist to obtain a new module assembly whitelist;

[0026] An application filtering module, used to filter the modules of the application using the management plug-in and the new module assembly whitelist, to obtain the designated module and all component groups of the target module, and the non-designated component group of the non-designated module corresponding to the minimum executable program;

[0027] A target program assembly module, used for assembling all the component groups and the non-specified component groups into a target program;

[0028] The target program compiling module is used to compile the target program to realize the development of the software product corresponding to the application program.

[0029] In a third aspect, the present application discloses an electronic device, comprising:

[0030] Memory, used to store computer programs;

[0031] The processor is used to execute the computer program to implement the aforementioned software product development method.

[0032] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned software product development method when executed by a processor.

[0033] It can be seen that the present application first creates a management plug-in, in which the hierarchical structure of the application is defined, the hierarchical structure includes the architecture layer of the application, the module layer under the architecture layer, and the component group layer under the module layer, and there is a component group layer corresponding to the specified component group in the component group layer; and the management plug-in also includes a module assembly whitelist, the module assembly whitelist includes the first identification information of the specified module that constitutes the minimum executable program of the application, and then obtains the second identification information of the target module of the application that the developer needs to compile, and adds it to the module assembly whitelist to obtain a new module assembly whitelist, and then uses the management plug-in and the new module assembly whitelist to filter the modules of the application to obtain the specified module and all component groups of the target module, and the non-specified component group of the non-specified module corresponding to the minimum executable program, and finally assembles all component groups and the non-specified component groups into a target program, and compiles the target program to achieve the development of the software product corresponding to the application. That is, the embodiment of the present application utilizes a management plug-in to implement hierarchical management of applications, filters applications through management components and module assembly whitelists, obtains components corresponding to the minimum executable program and all components of the module that the developer needs to debug, and forms a corresponding target program. The developer only needs to compile the target program without compiling the entire application. In this way, the compilation efficiency during module debugging can be improved, thereby improving the development efficiency of software products. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0035] Figure 1 A flowchart of a software product development method disclosed in this application;

[0036] Figure 2 A specific module layering diagram disclosed in this application;

[0037] Figure 3A schematic diagram of a specific preset debugging component disclosed in this application;

[0038] Figure 4 A schematic diagram of the structure of a software product development device disclosed in this application;

[0039] Figure 5 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.

[0041] At present, as the business becomes more and more complex, the number of components and modules of software products is also very large. Developers have to compile all modules every time they debug. Even if they only debug a small function, each component must be downloaded, decompressed, and loaded. On average, it takes more than ten or even dozens of minutes to compile once, which adds a lot of unnecessary waiting time. Even if there is a problem with other modules, it will cause compilation failure and cannot be debugged, and it is necessary to wait for it to be repaired or rolled back, which adds a lot of unnecessary waiting time, seriously affecting the development efficiency. To this end, the embodiment of the present application provides a software product development solution that can improve the compilation efficiency during module debugging, thereby improving the development efficiency of software products.

[0042] See also Figure 1 As shown, the embodiment of the present application discloses a software product development method, including:

[0043] Step S11: Create a management plug-in; wherein the management plug-in defines a hierarchical structure of the application, the hierarchical structure includes an architecture layer of the application, a module layer under the architecture layer, and a component group layer under the module layer, wherein the component group layer includes a component group layer corresponding to a specified component group; and the management plug-in also includes a module assembly whitelist, wherein the module assembly whitelist includes first identification information of a specified module of a minimum executable program constituting the application.

[0044] In a specific implementation, the architecture layer includes a framework layer, a basic layer, and a business layer of the application; wherein the module layers under the framework layer all correspond to the framework modules of the application, the module layers under the basic layer all correspond to the basic modules of the application, and the module layers under the business layer all correspond to the business modules of the application.

[0045] Furthermore, the module name defined by the developer for the module layer under the architecture layer may be obtained, and the module name may be created under the architecture layer corresponding to the management plug-in.

[0046] Furthermore, the component group name defined by the developer for the component group layer corresponding to the non-specified component group under the module layer may be obtained, and the component group name may be created under the module layer corresponding to the management plug-in.

[0047] That is, the management plug-in in the embodiment of the present application supports custom module names and component group names to obtain corresponding module layers and component group layers, wherein the name of the specified component group is defined internally by the management plug-in.

[0048] For example, based on DSL (Domain Specific Language) technology, a management plug-in StructureDslPlugin is created for app architecture layering and module layering management. It supports custom modules and internal layering, as well as module plugging and unplugging. The first layer, namely the architecture layer, includes framework (framework layer), basic (basic layer), and business (business layer). These are defined inside the plug-in, so developers do not need to worry about them. The second layer, namely the module layer, is the module name. Regardless of framework, basic, or business, developers customize their own module names at this layer. The third layer is the internal layering of the module, namely the component group layer. The UI component group is used to place purely business-related components (such as UI components or non-service components), and service (service) and API (Application Program Interface) are used to place the module's services or externally provided service-oriented interfaces. Developers can also customize blocks such as custom. In this way, the internal structure of a module is layered, see Figure 2 As shown, Figure 2 A specific module layering diagram provided for an embodiment of the present application.

[0049] In this way, since the UI component group stores purely business-related components, when developers compile the modules they are responsible for, they need the UI component group and other modules. The components in the UI component groups of other modules do not need to be compiled, but the non-UI component groups of other modules are the component groups required to constitute the minimum executable APP, so the embodiment of the present application can determine the UI component group as the designated component. However, the account module in the application is usually an indispensable module for the minimum executable program, and other modules all rely on the account module. Therefore, when filtering, it is necessary to retain the complete account module, including its UI component group. That is, the embodiment of the present application can determine the account module as the designated module. After using the plug-in, the module management is as follows:

[0050]

[0051]

[0052] It is understandable that with the above stratification, the management plug-in can split and combine modules very well. The modules and dependent components included in the entire project are very clear, and the specified module or component can be quickly located. Each component also belongs to a specific group. For example, the component business_A_ui_module_A belongs to the group business.business_A.ui. For components built by CI / CD (continuous integration / continuous delivery) systems, they can also be added to the specified group when integrated into the project. This is very convenient and accurate, and lays the foundation for module plugging and unplugging. When filtering, the specified module or component can be quickly located.

[0053] Step S12: obtaining the second identification information of the target module of the application program that the developer needs to compile, and adding the second identification information to the module assembly whitelist to obtain a new module assembly whitelist.

[0054] The first identification information and the second identification information are module names of modules or regular expressions corresponding to modules.

[0055] That is, in a specific implementation, the module assembly whitelist supports specifying the module name by user name or matching a regular expression.

[0056] Among them, regular expression is a logical formula for string operation, that is, using some pre-defined specific characters and the combination of these specific characters to form a "regular string", which is used to express a filtering logic for the string. For example, to assemble module A and module B, you can add "tuyadsl.whiteList = .*\\.(A|B)\\..*" to the whitelist. In this way, the compilation and operation only include these two modules, and are not affected by other modules.

[0057] Step S13: Filter the modules of the application program using the management plug-in and the new module assembly whitelist to obtain the designated module and all component groups of the target module, as well as the non-designated component groups of the non-designated modules corresponding to the minimum executable program.

[0058] For example, all modules of the application are filtered to obtain the account module, all component groups corresponding to module A and module B in the whitelist, and component groups of other modules excluding the UI component group. All component groups in the modules in the framework layer and the base layer are filtered out. In other words, if the developer does not configure the whitelist, the minimum executable APP can be obtained by using the management plug-in provided in the embodiment of the present application. By adding a whitelist, the developer can add the module he wants to debug and filter the component groups in other modules that are not related to the operation of the APP.

[0059] In addition, the management plug-in also includes a module plug-in control switch; accordingly, the method also includes: in a test environment or a production environment, configuring the module plug-in control switch to be closed so as to compile and package the complete application to obtain a corresponding application package.

[0060] That is, the management plug-in provided in the embodiment of the present application provides two configurations, whether to turn on the module plug-in switch and the module assembly whitelist, both of which are configured in gradle.properties (the gradle configuration file of the corresponding application project). The above two configurations are very simple and can be modified at any time, and are only effective for the local environment, without affecting other developers and the production environment.

[0061] Among them, the module plug-in switch is turned on by default. When it is turned on, the plug-in will automatically filter the component groups in the module according to the hierarchical structure of the application, and only rely on the specified components to achieve the purpose of the minimum executable app. In this way, when the app is running, it only contains the basic framework, basic components, service interfaces and common account modules (all modules must rely on the account module), which greatly reduces the number of unnecessary components and improves compilation efficiency. If developers want to debug the modules they are concerned about, they can add them to the whitelist. If they want to test the complete app functions locally, they can also turn off the switch, which is very flexible. The above is the configuration for local development and debugging. On the packaging machines in the test and production environments, the switch is turned off. All modules will be included in the packaging to provide a fully functional apk (Android application package) for testing or publishing to the application market.

[0062] Step S14: Assembling all the component groups and the non-specified component groups into a target program, and compiling the target program to achieve development of a software product corresponding to the application program.

[0063] In a specific implementation manner, after compiling the target program, the method further includes:

[0064] Running the target program;

[0065] Using a preset debugging component to display the module debugging entry of each module in the application program;

[0066] When a click operation on any of the module debugging entries is detected, the program jumps to the module corresponding to the module debugging entry to debug the module.

[0067] It should be pointed out that the entry of some modules may be relatively deep and need to rely on the jump of other modules. However, after the module is plugged in and out, there may be no entry module. Therefore, the embodiment of the present application also provides a module debugging entry. The module jumps by specifying a URI (i.e., Uniform Resource Identifier), an implicit jump method, similar to a browser opening a connection. After running the app, you can open the specified module and perform corresponding module debugging. In the debugging environment, a module debugging entry is added, and you can jump to the corresponding module by clicking. This entry is also controlled by a packaged plug-in. In the formal environment, the entry will be automatically removed and will not affect the production environment. That is, the packaged plug-in applies the preset debugging component in the debugging environment, and removes the preset debugging component in the formal environment.

[0068] For example, see Figure 3 As shown, an embodiment of the present application discloses a specific schematic diagram of a preset debugging component.

[0069] Based on the solution provided in the embodiment of the present application, a sampling test is performed on the compilation time of the developer's local environment. Since different developers have different local environments and machine configurations, the data will be different. Therefore, the different data of different developers before and after using the solution in the same local environment and machine configuration are compared. The statistical results are shown in Table 1.

[0070] Among them, development A to F represent developers who need to compile different modules or module groups. The time in the table is the compilation time, and multiple compilation results are separated by " / ".

[0071] Table 1

[0072] Turn off the module plug-in switch Turn on the module plug-in switch Compile speed improvement Development A 3m13s 1m34s 50% Development B 2m40s 1m2s 60% Development C 5m5s 1m49s 60% Development 5m10s / 5m9s / 4m32s 2m32s / 2m11s / 2m4s 50% Development 8m42s / 6m33s / 5m48s 3m39s / 3m39s 50% Development 16m28s / 15mm16s / 14m58s 8m58s / 8m45s 50%

[0073] It can be seen that the embodiment of the present application first creates a management plug-in, in which the hierarchical structure of the application is defined, the hierarchical structure includes the architecture layer of the application, the module layer under the architecture layer, and the component group layer under the module layer, and there is a component group layer corresponding to the specified component group in the component group layer; and the management plug-in also includes a module assembly whitelist, the module assembly whitelist includes the first identification information of the specified module constituting the minimum executable program of the application, and then obtains the second identification information of the target module of the application that the developer needs to compile, and adds it to the module assembly whitelist to obtain a new module assembly whitelist, and then uses the management plug-in and the new module assembly whitelist to filter the modules of the application to obtain the specified module and all component groups of the target module, and the non-specified component group of the non-specified module corresponding to the minimum executable program, and finally assembles all component groups and the non-specified component groups into a target program, and compiles the target program to achieve the development of the software product corresponding to the application. That is, the embodiment of the present application utilizes a management plug-in to implement hierarchical management of applications, filters applications through management components and module assembly whitelists, obtains components corresponding to the minimum executable program and all components of the module that the developer needs to debug, and forms a corresponding target program. The developer only needs to compile the target program without compiling the entire application. In this way, the compilation efficiency during module debugging can be improved, thereby improving the development efficiency of software products.

[0074] See also Figure 4 As shown, the embodiment of the present application discloses a software product development device, including:

[0075] A management plug-in creation module 11 is used to create a management plug-in; wherein the management plug-in defines a hierarchical structure of an application, the hierarchical structure includes an architecture layer of the application, a module layer under the architecture layer, and a component group layer under the module layer, wherein the component group layer includes a component group layer corresponding to a specified component group; and the management plug-in also includes a module assembly whitelist, wherein the module assembly whitelist includes first identification information of a specified module of a minimum executable program constituting the application;

[0076] A module identification acquisition module 12 is used to acquire the second identification information of the target module of the application program that the developer needs to compile, and add the second identification information to the module assembly whitelist to obtain a new module assembly whitelist;

[0077] An application filtering module 13, used to filter the modules of the application using the management plug-in and the new module assembly whitelist, to obtain the designated module and all component groups of the target module, and the non-designated component group of the non-designated module corresponding to the minimum executable program;

[0078] A target program assembling module 14, used for assembling all the component groups and the non-specified component groups into a target program;

[0079] The target program compiling module 15 is used to compile the target program to realize the development of the software product corresponding to the application program.

[0080] It can be seen that the embodiment of the present application first creates a management plug-in, in which the hierarchical structure of the application is defined, the hierarchical structure includes the architecture layer of the application, the module layer under the architecture layer, and the component group layer under the module layer, and there is a component group layer corresponding to the specified component group in the component group layer; and the management plug-in also includes a module assembly whitelist, the module assembly whitelist includes the first identification information of the specified module constituting the minimum executable program of the application, and then obtains the second identification information of the target module of the application that the developer needs to compile, and adds it to the module assembly whitelist to obtain a new module assembly whitelist, and then uses the management plug-in and the new module assembly whitelist to filter the modules of the application to obtain the specified module and all component groups of the target module, and the non-specified component group of the non-specified module corresponding to the minimum executable program, and finally assembles all component groups and the non-specified component groups into a target program, and compiles the target program to achieve the development of the software product corresponding to the application. That is, the embodiment of the present application utilizes a management plug-in to implement hierarchical management of applications, filters applications through management components and module assembly whitelists, obtains components corresponding to the minimum executable program and all components of the module that the developer needs to debug, and forms a corresponding target program. The developer only needs to compile the target program without compiling the entire application. In this way, the compilation efficiency during module debugging can be improved, thereby improving the development efficiency of software products.

[0081] The first identification information and the second identification information are module names of modules or regular expressions corresponding to modules.

[0082] Among them, the architecture layer includes the framework layer, basic layer, and business layer of the application; among them, the module layers under the framework layer all correspond to the framework modules of the application, the module layers under the basic layer all correspond to the basic modules of the application, and the module layers under the business layer all correspond to the business modules of the application.

[0083] The device also includes:

[0084] The module name creation module is used to obtain the module name defined by the developer for the module layer under the architecture layer, and create the module name under the architecture layer corresponding to the management plug-in.

[0085] The device also includes:

[0086] The component group name creation module is used to obtain the component group name defined by the developer for the component group layer corresponding to the non-specified component group under the module layer, and create the component group name under the module layer corresponding to the management plug-in.

[0087] Furthermore, the management plug-in also includes a module plug-in control switch;

[0088] Accordingly, the device is also used for:

[0089] In a test environment or a production environment, the module plug-in control switch is configured to be closed so as to compile and package the complete application to obtain a corresponding application package.

[0090] In addition, the device also includes a debugging module: used to run the target program after compiling the target program; use a preset debugging component to display the module debugging entry of each module in the application; when a click operation on any of the module debugging entries is detected, jump to the module corresponding to the module debugging entry to debug the module.

[0091] See also Figure 5 As shown, an embodiment of the present application discloses an electronic device 20, including a processor 21 and a memory 22; wherein the memory 22 is used to store a computer program; the processor 21 is used to execute the computer program, the software product development method disclosed in the above embodiment.

[0092] For the specific process of the above-mentioned software product development method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.

[0093] Furthermore, the memory 22 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.

[0094] In addition, the electronic device 20 also includes a power supply 23, a communication interface 24, an input / output interface 25 and a communication bus 26; wherein the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input / output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0095] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the software product development method disclosed in the aforementioned embodiment.

[0096] For the specific process of the above-mentioned software product development method, reference may be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be described in detail here.

[0097] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0098] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0099] The above is a detailed introduction to a software product development method, device, equipment and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A software product development method, characterized in that: include: Create a management plug-in; wherein the management plug-in defines a hierarchical structure of an application, the hierarchical structure includes an architecture layer of the application, a module layer under the architecture layer, and a component group layer under the module layer, wherein the component group layer includes a component group layer corresponding to a specified component group, and the component group layer is a layering of an internal structure of a module; and the management plug-in also includes a module assembly whitelist, wherein the module assembly whitelist includes first identification information of a specified module constituting a minimum executable program of the application; wherein the specified component group stores purely business-related components, including UI components or non-service components; and the specified module is an indispensable module of the minimum executable program in the application; Obtaining second identification information of a target module of the application that the developer needs to compile, and adding the second identification information to the module assembly whitelist to obtain a new module assembly whitelist; Filtering the modules of the application program using the management plug-in and the new module assembly whitelist to obtain the designated module and all component groups of the target module, and the non-designated component group of the non-designated module corresponding to the minimum executable program; The designated module and all component groups of the target module, as well as the non-designated component groups of the non-designated modules corresponding to the minimum executable program are assembled into a target program, and the target program is compiled to achieve development of a software product corresponding to the application program.

2. The software product development method according to claim 1, characterized in that: The first identification information and the second identification information are module names of modules or regular expressions corresponding to modules.

3. The software product development method according to claim 1, characterized in that: The architecture layer includes the framework layer, basic layer, and business layer of the application; wherein the module layers under the framework layer correspond to the framework modules of the application, the module layers under the basic layer correspond to the basic modules of the application, and the module layers under the business layer correspond to the business modules of the application.

4. The software product development method according to claim 1, characterized in that: Also includes: The module name defined by the developer for the module layer under the architecture layer is obtained, and the module name is created under the architecture layer corresponding to the management plug-in.

5. The software product development method according to claim 1, characterized in that: Also includes: The component group name defined by the developer for the component group layer corresponding to the non-specified component group under the module layer is obtained, and the component group name is created under the module layer corresponding to the management plug-in.

6. The software product development method according to claim 1, characterized in that: The management plug-in also includes a module plug-in control switch; Accordingly, the method further includes: In a test environment or a production environment, the module plug-in control switch is configured to be closed so as to compile and package the complete application to obtain a corresponding application package.

7. The software product development method according to any one of claims 1 to 6, characterized in that: After compiling the target program, the method further comprises: Running the target program; Using a preset debugging component to display the module debugging entry of each module in the application program; When a click operation on any of the module debugging entries is detected, the program jumps to the module corresponding to the module debugging entry to debug the module.

8. A software product development device, characterized in that: include: A management plug-in creation module, used to create a management plug-in; wherein the management plug-in defines a hierarchical structure of an application, the hierarchical structure includes an architecture layer of the application, a module layer under the architecture layer, and a component group layer under the module layer, wherein the component group layer includes a component group layer corresponding to a specified component group, and the component group layer is a layering of an internal structure of a module; and the management plug-in also includes a module assembly whitelist, wherein the module assembly whitelist includes first identification information of a specified module constituting a minimum executable program of the application; wherein the specified component group stores purely business-related components, including UI components or non-service components; and the specified module is an indispensable module of the minimum executable program in the application; A module identification acquisition module, used to acquire the second identification information of the target module of the application program that the developer needs to compile, and add the second identification information to the module assembly whitelist to obtain a new module assembly whitelist; An application filtering module, used to filter the modules of the application using the management plug-in and the new module assembly whitelist, to obtain the designated module and all component groups of the target module, and the non-designated component group of the non-designated module corresponding to the minimum executable program; A target program assembly module, used for assembling the designated module and all component groups of the target module, and the non-designated component groups of the non-designated modules corresponding to the minimum executable program into a target program; The target program compiling module is used to compile the target program to realize the development of the software product corresponding to the application program.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the software product development method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the software product development method according to any one of claims 1 to 7.