Component management method, device and electronic device

By setting up a graphical management plug-in for the R&D platform, the update paths of graphical management components and system components are distinguished, which solves the problem of indistinguishability of graphical management components from user system components, and improves the user experience.

CN114942754BActive Publication Date: 2025-01-14JINGDONG TECH HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110179058.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-09
Publication Date
2025-01-14
Estimated Expiration
2041-02-09

AI Technical Summary

Technical Problem

During application development, when the R&D platform realizes the functions of graphical management components, it needs to modify preset files, which makes it difficult to distinguish between system components and graphical management components, increasing the invasiveness of the user system and affecting the user experience.

Method used

By pre-setting graphical management plug-ins for the R&D platform, updating graphical management components to the local cache directory according to component installation or update instructions, and updating system components to the system cache directory to ensure that the update paths of the two are inconsistent, so that users do not need to be modified The system's preset files realize the functions of graphical management components while reducing intrusion to the user system.

Benefits of technology

The function of the graphical management component is realized without modifying the preset files of the user system, reducing the invasiveness of the user system and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114942754B_ABST
    Figure CN114942754B_ABST
Patent Text Reader

Abstract

The present application proposes a component management method, device and electronic device, the method comprising: obtaining component installation or update instructions; according to the component installation or update instructions, triggering a graphical management plug-in to read a configuration file in a first format, and updating a graphical management component in a first format in the configuration file in the first format to a local cache directory; updating a system component in a first format to a system cache directory; triggering the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into a project project of an application to generate an application; triggering the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in a second format, and storing it in a configuration file in the second format under the project directory for graphical configuration by a research and development platform. In this method, the update paths of the system component and the graphical management component are inconsistent, and the intrusion to the user system is relatively small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of application development, and in particular to a component management method, device, electronic device and storage medium. Background Art

[0002] At present, in the process of application development, developers mostly save the user's system components in the preset files of the user system. However, when the R&D platform implements the function of the graphical management component, it needs to modify the preset file, which will cause the user's system components and the graphical management components of the R&D platform to be mixed in the same file, making it difficult to distinguish. This is highly invasive to the user's system and affects the user experience. Summary of the invention

[0003] The present application aims to at least to some extent solve one of the technical problems in the related technology that when the R&D platform implements the function of the graphical management component, it is necessary to modify the preset files, making it difficult to distinguish between the system components and the graphical management components, which is highly invasive to the user system.

[0004] To this end, the first aspect of the present application proposes a component management method, which can pre-set a graphical management plug-in for the research and development platform, and can trigger the graphical management plug-in to update the graphical management component in the first format to a preset local cache directory according to the component installation or update instruction, and update the system component in the first format to the system cache directory. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be realized without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0005] A second embodiment of the present application provides a component management device.

[0006] A third aspect of the present application provides an electronic device.

[0007] The fourth aspect of the present application provides a computer-readable storage medium.

[0008] The first aspect of the present application proposes a component management method, including: obtaining component installation or update instructions for an application project; according to the component installation or update instructions, triggering a graphical management plug-in to read a corresponding configuration file in a first format from a project directory, and updating the graphical management component in the first format in the configuration file in the first format to a preset local cache directory; updating the system component in the first format to the system cache directory; triggering the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project project of the application to generate the application; triggering the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in a second format, and storing the graphical management component in the second format in the configuration file in the second format under the project directory for graphical configuration by the R&D platform.

[0009] According to the component management method of the embodiment of the present application, a graphical management plug-in can be pre-set for the research and development platform, and according to the component installation or update instruction, the graphical management plug-in can be triggered to update the graphical management component in the first format to the preset local cache directory, and update the system component in the first format to the system cache directory. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0010] In addition, the component management method according to the above embodiment of the present application may also have the following additional technical features:

[0011] In one embodiment of the present application, triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory includes: triggering the graphical management plug-in to interrupt the standard update process and reading the corresponding configuration file in the first format from the project directory.

[0012] In one embodiment of the present application, updating the system components in the first format to the system cache directory includes: executing a standard update process to update the system components in the first format to the system cache directory.

[0013] In one embodiment of the present application, before triggering the graphical management plug-in to read the corresponding first format configuration file from the project directory, it also includes: installing the graphical management plug-in, and the graphical management plug-in creates a blank first format configuration file and a blank second format configuration file in the project directory during the installation process.

[0014] In one embodiment of the present application, before triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the method further includes: referencing the graphical management plug-in in the standard update process.

[0015] In one embodiment of the present application, before updating the graphical management component in the first format in the configuration file in the first format to a preset local cache directory, it also includes: generating the graphical management component in the first format based on the development code; and storing the graphical management component in the first format in the configuration file in the first format.

[0016] The second aspect of the present application proposes a component management device, including: an acquisition module, used to obtain component installation or update instructions of an application project; a first update module, used to trigger a graphical management plug-in to read a corresponding configuration file in a first format from a project directory according to the component installation or update instructions, and update the graphical management component in the first format in the configuration file in the first format to a preset local cache directory; a second update module, used to update the system component in the first format to the system cache directory; an integration module, used to trigger the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project project of the application to generate the application; a storage module, used to trigger the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in a second format, and store the graphical management component in the second format in the configuration file in the second format under the project directory for graphical configuration by the R&D platform.

[0017] The component management device of the embodiment of the present application can pre-set a graphical management plug-in for the research and development platform, and can trigger the graphical management plug-in to update the graphical management component in the first format to a preset local cache directory and update the system component in the first format to the system cache directory according to the component installation or update instruction. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0018] In addition, the component management device according to the above embodiment of the present application may also have the following additional technical features:

[0019] In one embodiment of the present application, the first update module is specifically used to: trigger the graphical management plug-in to interrupt the standard update process and read the corresponding configuration file in the first format from the project directory.

[0020] In one embodiment of the present application, the second update module is specifically used to: execute a standard update process to update the system components in the first format to the system cache directory.

[0021] In one embodiment of the present application, before the graphical management plug-in is triggered to read the corresponding configuration file in the first format from the project directory, the first update module is also used to: install the graphical management plug-in, and the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory during the installation process.

[0022] In one embodiment of the present application, before the triggering of the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the first update module is further used to: reference the graphical management plug-in in the standard update process.

[0023] In one embodiment of the present application, before updating the graphical management component in the first format in the configuration file in the first format to a preset local cache directory, the first update module is also used to: generate the graphical management component in the first format based on the development code; and store the graphical management component in the first format in the configuration file in the first format.

[0024] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the component management method as described in the first aspect of the present application is implemented.

[0025] The electronic device of the embodiment of the present application can pre-set a graphical management plug-in for the research and development platform by executing a computer program stored in the memory through the processor, and can trigger the graphical management plug-in to update the graphical management component in the first format to a preset local cache directory and update the system component in the first format to the system cache directory according to the component installation or update instruction. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0026] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the component management method as described in the first aspect of the present application is implemented.

[0027] The computer-readable storage medium of the embodiment of the present application can pre-set a graphical management plug-in for the research and development platform by storing a computer program and being executed by a processor. According to the component installation or update instruction, the graphical management plug-in can be triggered to update the graphical management component in the first format to a preset local cache directory, and update the system component in the first format to the system cache directory. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0028] Additional aspects and advantages of the present application will be given in part in the following description, and in part will become apparent from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0030] Figure 1 A schematic diagram of a flow chart of a component management method according to an embodiment of the present application;

[0031] Figure 2 is a flowchart of a component management method according to another embodiment of the present application;

[0032] Figure 3 is a structural diagram of a component management device according to an embodiment of the present application; and

[0033] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0035] The component management method, device, electronic device and storage medium of the embodiments of the present application are described below with reference to the accompanying drawings.

[0036] Figure 1 The figure is a flowchart of a component management method according to an embodiment of the present application.

[0037] like Figure 1 As shown, the component management method of the embodiment of the present application includes:

[0038] S101, obtaining a component installation or update instruction of an application project.

[0039] It should be noted that the execution subject of the component management method of the embodiment of the present application may be a component management device, and the component management device of the embodiment of the present application may be configured in any electronic device so that the electronic device can execute the component management method of the embodiment of the present application. Among them, the electronic device may be a personal computer (PC), a cloud device, a mobile device, etc. The mobile device may be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a vehicle-mounted device, and other hardware devices with various operating systems, touch screens, and / or display screens.

[0040] In an embodiment of the present application, a component installation or update instruction of an application (Application, APP) project may be obtained. It is understandable that when a developer develops an application, he may install a new component or update a component, so that a component installation or update instruction of the application project may be issued, and accordingly, the above-mentioned component installation or update instruction may be obtained.

[0041] It should be noted that in the embodiments of the present application, there is no limitation on the types of applications and components. For example, applications include but are not limited to shopping, chatting, and gaming applications, and components include but are not limited to activity, service, broadcast receiver, content provider, and network (Intent) components.

[0042] S102, according to the component installation or update instruction, trigger the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, and update the graphical management component in the first format in the configuration file in the first format to a preset local cache directory.

[0043] In an embodiment of the present application, a corresponding project directory can be pre-built for an application, and there is a one-to-one correspondence between the application and the project directory. The project directory is used to store configuration files in a first format, and the configuration files in the first format include a graphical management component in a first format. In other words, the graphical management component in the first format is pre-set in the project directory. Among them, the project directory refers to a storage space of the R&D platform, which can be pre-set according to actual conditions. Among them, the first format can be set according to actual conditions, and no excessive restrictions are made here.

[0044] Furthermore, according to the component installation or update instruction, the graphical management plug-in can be triggered to read the corresponding configuration file of the first format from the project directory, and update the graphical management component of the first format in the configuration file of the first format to the preset local cache directory. In other words, the graphical management plug-in can read the configuration file of the first format from the project directory, and update the graphical management component of the first format to the preset local cache directory, so as to realize the update of the graphical management component of the first format in the local cache directory. Among them, the local cache directory refers to a storage space of the R&D platform, which can be preset according to actual conditions.

[0045] Optionally, the graphical management plug-in may be pre-set in the storage space of the research and development platform, so that the research and development platform may subsequently reference the graphical management plug-in from its own storage space.

[0046] S103, updating the system components in the first format to the system cache directory.

[0047] In the embodiment of the present application, a corresponding system cache directory can be pre-built for the system components, and the system cache directory is used to store the system components in the first format. The system cache directory refers to a storage space of the user system, which can be set according to actual conditions.

[0048] Furthermore, the system components in the first format may be updated to the system cache directory to implement the update of the system components in the first format in the system cache directory.

[0049] At present, in the process of application development, developers mostly save the user's system components in the preset files of the user system. However, when the R&D platform implements the function of the graphical management component, it needs to modify the preset file, which will cause the user's system components and the graphical management components of the R&D platform to be mixed in the same file, making it difficult to distinguish. This is highly invasive to the user's system and affects the user experience.

[0050] In an embodiment of the present application, a graphical management plug-in can be used to update a graphical management component in a first format to a preset local cache directory, and a system component in a first format to a system cache directory. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0051] It should be noted that in the embodiments of the present application, the type of user system is not limited. For example, the user system may be an IOS system.

[0052] S104, triggering the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project engineering of the application program to generate the application program.

[0053] In the embodiment of the present application, a corresponding project project may be constructed in advance for the application program, and there is a one-to-one correspondence between the application program and the project project, and the project project is used to store components used to generate the application program.

[0054] Furthermore, the graphical management plug-in can be triggered to integrate the graphical management component in the first format and the system component in the first format into the project engineering of the application, so that the developer can obtain the graphical management component in the first format and the system component in the first format from the project engineering, and develop the application according to the obtained graphical management component in the first format and the system component in the first format, for example, develop the code corresponding to the application.

[0055] S105, triggering the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in the second format, and storing the graphical management component in the second format in a configuration file in the second format under the project directory for graphical configuration by the R&D platform.

[0056] In an embodiment of the present application, the project directory is also used to store a configuration file in a second format, and the configuration file in the second format includes a graphical management component in the second format. The second format can be set according to actual conditions, for example, it can be in json format, and no further restrictions are made here.

[0057] It is understandable that the graphical management component of the first format is pre-set in the project directory, but the R&D platform cannot perform graphical configuration according to the graphical management component of the first format, and can only perform graphical configuration according to the graphical management component of the second format.

[0058] In an embodiment of the present application, a graphical management plug-in can be triggered to translate a graphical management component in a first format into a graphical management component in a second format, and store the graphical management component in the second format in a configuration file in the second format under the project directory to implement the update of the graphical management component in the second format in the configuration file in the second format, so that the R&D platform can obtain the graphical management component in the second format from the configuration file in the second format to perform graphical configuration according to the graphical management component in the second format.

[0059] In summary, according to the component management method of the embodiment of the present application, a graphical management plug-in can be pre-set for the research and development platform, and according to the component installation or update instruction, the graphical management plug-in can be triggered to update the graphical management component in the first format to the preset local cache directory, and update the system component in the first format to the system cache directory. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be realized without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0060] Based on any of the above embodiments, a corresponding standard update process may be pre-set for the application program to update the system components in the first format to the system cache directory.

[0061] In step S102, triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory may include triggering the graphical management plug-in to interrupt the standard update process and read the corresponding configuration file in the first format from the project directory. In step S103, updating the system components in the first format to the system cache directory may include executing the standard update process to update the system components in the first format to the system cache directory.

[0062] Therefore, this method can trigger the graphical management plug-in to interrupt the standard update process, read the corresponding configuration file in the first format from the project directory, and then update the graphical management component in the first format to the preset local cache directory. After that, the standard update process can be executed to update the system components in the first format to the system cache directory.

[0063] On the basis of any of the above embodiments, before triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory in step S102, it also includes installing the graphical management plug-in, and the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory during the installation process. Thus, the method can install the graphical management plug-in so that the subsequent R&D platform can reference the graphical management plug-in from its own storage space, and the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory during the installation process, so that the graphical management component in the first format can be stored in the configuration file in the first format, and the graphical management component in the second format can be stored in the configuration file in the second format.

[0064] Based on any of the above embodiments, before triggering the graphical management plug-in to read the corresponding first format configuration file from the project directory in step S102, it also includes referencing the graphical management plug-in in the standard update process to subsequently trigger the graphical management plug-in to perform corresponding operations.

[0065] Based on any of the above embodiments, before updating the graphical management component in the first format in the configuration file in the first format to the preset local cache directory in step S102, it also includes generating the graphical management component in the first format according to the development code and storing the graphical management component in the first format in the configuration file in the first format.

[0066] In the embodiment of the present application, a development code may be pre-built to generate a graphical management component in a first format. It is understandable that different development codes may generate different graphical management components in the first format.

[0067] Furthermore, a graphical management component in a first format can be generated based on the development code, and the graphical management component in the first format can be stored in a configuration file in the first format, so that a subsequent graphical management component can extract the graphical management component in the first format from the configuration file in the first format and update the graphical management component in the first format to a preset local cache directory.

[0068] It should be noted that the steps of installing the graphical management plug-in, referencing the graphical management plug-in in the standard update process, generating a graphical management component in a first format based on the development code, and storing the graphical management component in the first format in a configuration file in the first format in the above embodiment may be performed before obtaining the component installation or update instruction of the application project in step S101, or after obtaining the component installation or update instruction of the application project in step S101, and no further limitations are made here.

[0069] Figure 2 The figure is a flowchart of a component management method according to another embodiment of the present application.

[0070] like Figure 2 As shown, the component management method of the embodiment of the present application includes:

[0071] S201, obtaining a component installation or update instruction of an application project.

[0072] S202, determining whether the graphical management plug-in has been installed.

[0073] If yes, execute step S204; if no, execute step S203.

[0074] S203, installing the graphical management plug-in. During the installation process, the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory.

[0075] In the embodiment of the present application, it can be determined whether the graphical management plug-in has been installed. If the graphical management plug-in has been installed, it can be further determined whether the graphical management plug-in has been referenced in the standard update process. If the graphical management plug-in has not been installed, the graphical management plug-in can be installed so that the subsequent R&D platform can reference the graphical management plug-in from its own storage space, and the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory during the installation process, so that the graphical management component in the first format can be stored in the configuration file in the first format, and the graphical management component in the second format can be stored in the configuration file in the second format.

[0076] S204: Determine whether the graphical management plug-in has been referenced in the standard update process.

[0077] If yes, execute step S206; if no, execute step S205.

[0078] S205, referencing the graphical management plug-in in the standard update process.

[0079] In the embodiment of the present application, it can be determined whether the graphical management plug-in has been referenced in the standard update process. If the graphical management plug-in has been referenced in the standard update process, it can be further determined whether the graphical management component in the first format already exists in the configuration file in the first format. If the graphical management plug-in is not referenced in the standard update process, the graphical management plug-in can be referenced in the standard update process so as to subsequently trigger the graphical management plug-in to perform corresponding operations.

[0080] S206: Determine whether a graphical management component in the first format already exists in the configuration file in the first format.

[0081] If yes, execute step S208; if no, execute step S207.

[0082] S207: Generate a graphical management component in a first format according to the development code, and store the graphical management component in the first format in a configuration file in the first format.

[0083] In an embodiment of the present application, it can be determined whether a graphical management component in the first format already exists in the configuration file in the first format. If a graphical management component in the first format already exists in the configuration file in the first format, the graphical management plug-in can be directly triggered to read the corresponding configuration file in the first format from the project directory, and the graphical management component in the first format in the configuration file in the first format is updated to a preset local cache directory. If a graphical management component in the first format does not exist in the configuration file in the first format, a graphical management component in the first format can be generated according to the development code, and the graphical management component in the first format is stored in the configuration file in the first format, so that the subsequent graphical management component can extract the graphical management component in the first format from the configuration file in the first format, and update the graphical management component in the first format to the preset local cache directory.

[0084] S208, according to the component installation or update instruction, trigger the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, and update the graphical management component in the first format in the configuration file in the first format to a preset local cache directory.

[0085] S209, updating the system components in the first format to the system cache directory.

[0086] S210, triggering the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project engineering of the application program to generate the application program.

[0087] S211, triggering the graphical management plug-in to translate the graphical management component in the first format into the graphical management component in the second format, and storing the graphical management component in the second format in the configuration file in the second format under the project directory for graphical configuration by the R&D platform.

[0088] It should be noted that the relevant contents of the above steps S201-S211 can be found in the above embodiments and will not be repeated here.

[0089] In summary, according to the component management method of the embodiment of the present application, a graphical management plug-in can be pre-set for the R&D platform. After obtaining the component installation or update instructions of the application project, it can be judged in turn whether the graphical management plug-in has been installed, whether the graphical management plug-in has been referenced in the standard update process, and whether the graphical management component in the first format already exists in the configuration file in the first format, and the corresponding operation is performed according to the judgment result. Therefore, according to the component installation or update instructions, the graphical management plug-in can be triggered to update the graphical management component in the first format to the preset local cache directory, and the system component in the first format to the system cache directory, that is, the update paths of the system component and the graphical management component are inconsistent, so there is no need to modify the preset files of the user system to realize the function of the graphical management component, which is less invasive to the user system and improves the user experience.

[0090] With the above Figure 1 to Figure 2 Corresponding to the component management method provided in the embodiment, the present disclosure also provides a component management device. Figure 1 to Figure 2 The component management method provided in the embodiment corresponds to the component management method, so the implementation of the component management method is also applicable to the component management device provided in the embodiment of the present disclosure, and will not be described in detail in the embodiment of the present disclosure.

[0091] Figure 3 It is a structural diagram of a component management device according to an embodiment of the present application.

[0092] like Figure 3 As shown, the component management device 100 of the embodiment of the present application may include: an acquisition module 110 , a first update module 120 , a second update module 130 , an integration module 140 and a storage module 150 .

[0093] An acquisition module 110 is used to acquire a component installation or update instruction of an application project;

[0094] The first update module 120 is used to trigger the graphical management plug-in to read the corresponding configuration file in the first format from the project directory according to the component installation or update instruction, and update the graphical management component in the first format in the configuration file in the first format to a preset local cache directory;

[0095] A second updating module 130, configured to update the system components in the first format to a system cache directory;

[0096] An integration module 140, used to trigger the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project engineering of the application program to generate the application program;

[0097] The storage module 150 is used to trigger the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in the second format, and store the graphical management component in the second format in the configuration file in the second format under the project directory for graphical configuration by the R&D platform.

[0098] In one embodiment of the present application, the first update module 120 is specifically used to: trigger the graphical management plug-in to interrupt the standard update process and read the corresponding configuration file in the first format from the project directory.

[0099] In one embodiment of the present application, the second update module 130 is specifically used to: execute a standard update process to update the system components in the first format to the system cache directory.

[0100] In one embodiment of the present application, before the graphical management plug-in is triggered to read the corresponding configuration file in the first format from the project directory, the first update module 120 is also used to: install the graphical management plug-in, and the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory during the installation process.

[0101] In one embodiment of the present application, before triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the first update module 120 is further used to: reference the graphical management plug-in in the standard update process.

[0102] In one embodiment of the present application, before updating the graphical management component in the first format in the configuration file in the first format to a preset local cache directory, the first update module 120 is also used to: generate the graphical management component in the first format based on the development code; and store the graphical management component in the first format in the configuration file in the first format.

[0103] The component management device of the embodiment of the present application can pre-set a graphical management plug-in for the research and development platform, and can trigger the graphical management plug-in to update the graphical management component in the first format to a preset local cache directory and update the system component in the first format to the system cache directory according to the component installation or update instruction. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0104] In order to implement the above embodiment, Figure 4As shown, the present application also proposes an electronic device 200, comprising: a memory 210, a processor 220, and a computer program stored in the memory 210 and executable on the processor 220. When the processor 220 executes the program, the component management method proposed in the aforementioned embodiment of the present application is implemented.

[0105] The electronic device of the embodiment of the present application can pre-set a graphical management plug-in for the research and development platform by executing a computer program stored in the memory through the processor, and can trigger the graphical management plug-in to update the graphical management component in the first format to a preset local cache directory and update the system component in the first format to the system cache directory according to the component installation or update instruction. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0106] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the component management method proposed in the above embodiments of the present application is implemented.

[0107] The computer-readable storage medium of the embodiment of the present application can pre-set a graphical management plug-in for the research and development platform by storing a computer program and being executed by a processor. According to the component installation or update instruction, the graphical management plug-in can be triggered to update the graphical management component in the first format to a preset local cache directory, and update the system component in the first format to the system cache directory. That is, the update paths of the system component and the graphical management component are inconsistent, so that the function of the graphical management component can be implemented without modifying the preset files of the user system, which is less invasive to the user system and improves the user experience.

[0108] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0109] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0110] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0111] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0112] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0113] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0114] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0115] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A component management method, characterized in that: include: Get component installation or update instructions for the application project; According to the component installation or update instruction, trigger the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, and update the graphical management component in the first format in the configuration file in the first format to a preset local cache directory; updating the system components in the first format to the system cache directory; triggering the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project engineering of the application program to generate the application program; Triggering the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in the second format, and storing the graphical management component in the second format in the configuration file in the second format under the project directory for graphical configuration by the R&D platform; wherein, The triggering graphical management plug-in reads the corresponding configuration file in the first format from the project directory, including: Triggering the graphical management plug-in to interrupt the standard update process and read the corresponding configuration file in the first format from the project directory; The updating of the system components in the first format to the system cache directory includes: A standard update process is executed to update the system components in the first format to the system cache directory.

2. The method according to claim 1, characterized in that Before triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the method further includes: The graphical management plug-in is installed. During the installation process, the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory.

3. The method according to claim 1, characterized in that Before triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the method further includes: The graphical management plug-in is referenced in the standard update process.

4. The method according to claim 1, characterized in that: Before updating the graphical management component in the first format in the configuration file in the first format to the preset local cache directory, the method further includes: Generate a graphical management component in the first format according to the development code; The graphical management component in the first format is stored in a configuration file in the first format.

5. A component management device, characterized in that: include: Get module, used to get component installation or update instructions of application project; A first update module, configured to trigger the graphical management plug-in to read a corresponding configuration file in a first format from a project directory according to the component installation or update instruction, and update the graphical management component in the first format in the configuration file in the first format to a preset local cache directory; A second updating module, used for updating the system components in the first format to a system cache directory; An integration module, used for triggering the graphical management plug-in to integrate the graphical management component in the first format and the system component in the first format into the project engineering of the application program to generate the application program; A storage module, used to trigger the graphical management plug-in to translate the graphical management component in the first format into a graphical management component in the second format, and store the graphical management component in the second format in the configuration file in the second format under the project directory for graphical configuration by the R&D platform; wherein, The first updating module is specifically used for: Triggering the graphical management plug-in to interrupt the standard update process and read the corresponding configuration file in the first format from the project directory; The second updating module is specifically used for: A standard update process is executed to update the system components in the first format to the system cache directory.

6. The device according to claim 5, characterized in that Before the triggering of the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the first update module is further used to: The graphical management plug-in is installed. During the installation process, the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format in the project directory.

7. The device according to claim 5, characterized in that Before the triggering of the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, the first update module is further used to: The graphical management plug-in is referenced in the standard update process.

8. The device according to claim 5, characterized in that Before updating the graphical management component in the first format in the configuration file in the first format to the preset local cache directory, the first updating module is further used to: Generate a graphical management component in the first format according to the development code; The graphical management component in the first format is stored in a configuration file in the first format.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the component management method according to any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the component management method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Catalog-based software component management

    CN102804132A

  • Project file storage method, device and equipment and computer readable storage medium

    CN109669914A