CN114942754A - Component management method and device and electronic equipment - Google Patents

Component management method and device and electronic equipment Download PDF

Info

Publication number
CN114942754A
CN114942754A CN202110179058.7A CN202110179058A CN114942754A CN 114942754 A CN114942754 A CN 114942754A CN 202110179058 A CN202110179058 A CN 202110179058A CN 114942754 A CN114942754 A CN 114942754A
Authority
CN
China
Prior art keywords
format
component
graphical management
graphical
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110179058.7A
Other languages
Chinese (zh)
Inventor
刘振中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202110179058.7A priority Critical patent/CN114942754A/en
Publication of CN114942754A publication Critical patent/CN114942754A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The application provides a component management method, a device and an electronic device, wherein the method comprises the following steps: acquiring a component installation or update instruction; according to the component installation or update instruction, triggering the graphical management plug-in to read the configuration file in the first format, and updating the graphical management component in the first format in the configuration file in the first format into a local cache directory; updating the system components in the first format into 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 project engineering of the application program so as to generate the application program; and 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 configuration file in the second format in the project directory for the research and development platform to perform graphical configuration.

Description

Component management method and device and electronic equipment
Technical Field
The present application relates to the field of application development technologies, and in particular, to a method and an apparatus for managing a component, an electronic device, and a storage medium.
Background
At present, in the process of application program development, developers mostly save system components of users in preset files of a user system, however, when the development platform realizes the functions of graphical management components, the preset files need to be modified, which can cause the system components of the users and the graphical management components of the development platform to be mixed in the same file, which is difficult to distinguish, and has great invasiveness to the user system, thereby affecting the use experience of the users.
Disclosure of Invention
The method and the device aim at solving one of the technical problems that when a research and development platform in the related technology realizes the function of the graphical management component, a preset file needs to be modified, the system component and the graphical management component are difficult to distinguish, and the invasiveness to a user system is large to a certain extent.
Therefore, an embodiment of a first aspect of the present application provides a component management method, which may preset a graphical management plugin for a research and development platform, and may trigger the graphical management plugin to update a graphical management component in a first format to a preset local cache directory according to a component installation or update instruction, and update a system component in the first format to the system cache directory, that is, update paths of the system component and the graphical management component are not consistent, so that a function of the graphical management component may be implemented without modifying a preset file of a user system, an invasiveness of the user system is small, and a use experience of a user is improved.
The embodiment of the second aspect of the present application provides a component management device.
The embodiment of the third aspect of the application provides an electronic device.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium.
An embodiment of a first aspect of the present application provides a component management method, including: acquiring a component installation or update instruction of an application program project; triggering 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 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 a system cache directory; triggering the graphic management plug-in to integrate the graphic management component in the first format and the system component in the first format into the project engineering of the application program so as to generate the application program; and 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 into a configuration file in the second format in the project directory for a research and development platform to perform graphical configuration.
According to the component management method, the graphical management plug-in can be preset for the research and development platform, the graphical management plug-in can be triggered to update the graphical management component in the first format to the preset local cache directory according to the component installation or update instruction, and the system component in the first format is updated to the system cache directory, namely 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 file of the user system, the invasion to the user system is small, and the use experience of a user is improved.
In addition, the component management method according to the above-mentioned embodiment of the present application may further have the following additional technical features:
in an embodiment of the present application, the triggering the graphical management plugin to read a corresponding configuration file in a first format from the item directory includes: triggering the graphic management plug-in to interrupt a standard updating process, and reading the corresponding configuration file in the first format from the item directory.
In an embodiment of the present application, the updating the system component in the first format into a system cache directory includes: and executing a standard updating process, and updating the system component in the first format into the system cache directory.
In an embodiment of the application, before the triggering the graphical management plugin to read the corresponding configuration file in the first format from the item directory, the method further includes: installing the graphical management plug-in, which creates a blank configuration file of the first format and a blank configuration file of the second format under the project directory during installation.
In an embodiment of the application, before the triggering the graphical management plugin to read the corresponding configuration file in the first format from the item directory, the method further includes: and the graphical management plug-in is referred to in the standard updating flow.
In an embodiment of the application, before the updating the graphical management component in the first format in the configuration file in the first format into the preset local cache directory, the method further includes: generating a graphical management component of the first format according to development codes; and storing the graphical management component in the first format into a configuration file in the first format.
An embodiment of a second aspect of the present application provides a component management apparatus, including: the acquisition module is used for acquiring a component installation or update instruction of an application program project; the first updating module is used for triggering 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 updating instruction, and updating the graphical management component in the first format in the configuration file in the first format into a preset local cache directory; the second updating module is used for updating the system components in the first format into a system cache directory; the integration module is 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 so as to generate the application program; and the storage module is used for 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 into a configuration file in the second format in the project catalog for the development and development platform to perform graphical configuration.
The component management device can preset the graphical management plug-in for the research and development platform, can trigger the graphical management plug-in 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 according to the component installation or update instruction, namely 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 file of the user system, the invasion to the user system is small, and the use experience of a user is improved.
In addition, the component management apparatus according to the above-described embodiment of the present application may further have the following additional technical features:
in an embodiment of the present application, the first updating module is specifically configured to: triggering the graphic management plug-in to interrupt a standard updating process, and reading the corresponding configuration file in the first format from the item directory.
In an embodiment of the application, the second updating module is specifically configured to: and executing a standard updating process, and updating the system component in the first format into the system cache directory.
In an embodiment of the application, before the triggering the graphical management plugin reads the corresponding configuration file in the first format from the item directory, the first updating module is further configured to: installing the graphical management plug-in, which creates a blank configuration file of the first format and a blank configuration file of the second format under the project directory during installation.
In an embodiment of the application, before the triggering the graphical management plugin reads the corresponding configuration file in the first format from the item directory, the first updating module is further configured to: and the graphical management plug-in is referred to in the standard updating flow.
In an embodiment of the application, before the graphical management component in the first format in the configuration file in the first format is updated to the preset local cache directory, the first updating module is further configured to: generating a graphical management component of the first format according to development codes; and storing the graphical management component in the first format into a configuration file in the first format.
An embodiment of a third aspect of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the component management method as described in the foregoing embodiments of the first aspect when executing the program.
According to the electronic equipment, the processor executes the computer program stored on the memory, the graphical management plug-in can be preset for the research and development platform, the graphical management plug-in can be triggered to update the graphical management assembly in the first format to the preset local cache directory according to the assembly installation or update instruction, and the system assembly in the first format is updated to the system cache directory, namely the update paths of the system assembly and the graphical management assembly are inconsistent, so that the functions of the graphical management assembly can be realized without modifying the preset file of the user system, the invasiveness to the user system is small, and the use experience of a user is improved.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the component management method according to the embodiment of the first aspect.
The computer-readable storage medium stores a computer program and is executed by a processor, a graphical management plug-in can be preset for a research and development platform, the graphical management plug-in can be triggered to update a graphical management component in a first format to a preset local cache directory according to a component installation or update instruction, and a system component in the first format is updated to a system cache directory, namely 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 a preset file of a user system, the invasiveness of the user system is low, and the use experience of a user is improved.
Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow diagram illustrating a method for component management according to one embodiment of the present application;
FIG. 2 is a flow diagram illustrating a method for component management according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a component management apparatus according to an embodiment of the present application; and
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A component management method, an apparatus, an electronic device, and a storage medium according to embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a component management method according to an embodiment of the present application.
As shown in fig. 1, a component management method according to an embodiment of the present application includes:
s101, acquiring a component installation or update instruction of an application program project.
It should be noted that the execution subject of the component management method in the embodiment of the present application may be a component management apparatus, and the component management apparatus in the embodiment of the present application may be configured in any electronic device, so that the electronic device may execute the component management method in the embodiment of the present application. The electronic device may be a Personal Computer (PC), a cloud device, a mobile device, and the like, and the mobile device may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, a wearable device, and an in-vehicle device.
In an embodiment of the Application, a component installation or update instruction of an Application (APP) project may be obtained. It is understood that when a developer develops an application, a new component may be installed or updated, so that a component installation or update instruction of an application project may be issued, and accordingly, the component installation or update instruction may be obtained.
In the embodiments of the present application, the types of the application programs and the components are not limited. For example, applications include, but are not limited to, shopping, chat, game, etc. applications, and components include, but are not limited to, Activity, Service, Broadcast Receiver, Content Provider, network, etc.
S102, according to the component installation or update instruction, triggering the graphical management plug-in to read the corresponding configuration file in the first format from the 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.
In the embodiment of the application, a corresponding project directory can be constructed for an application program in advance, the application program and the project directory are in one-to-one correspondence, the project directory is used for storing a configuration file in a first format, and the configuration file in the first format comprises a graphical management component in the first format. That is, the graphical management component of the first format is preset in the item directory. The project catalog refers to a certain storage space of the research and development platform, and can be preset according to actual conditions. The first format may be set according to actual conditions, and is not limited herein.
Furthermore, the graphical management plug-in can be triggered to read the corresponding configuration file in the first format from the project directory according to the component installation or update instruction, and the graphical management component in the first format in the configuration file in the first format is updated to the preset local cache directory. That is to say, the configuration file in the first format may be read from the item directory by the graphical management plugin, and the graphical management component in the first format is updated to the preset local cache directory, so as to implement the update of the graphical management component in the first format in the local cache directory. The local cache directory refers to a certain storage space of the research and development platform, and can be preset according to actual conditions.
Optionally, the graphical management plug-in may be preset in a storage space of the development platform, so that a subsequent development platform may refer to the graphical management plug-in from its own storage space.
S103, updating the system components in the first format into a system cache directory.
In the embodiment of the present application, a corresponding system cache directory may be constructed for the system component in advance, and the system cache directory is used for storing the system component in the first format. The system cache directory refers to a certain storage space of the user system and can be set according to actual conditions.
Further, the system component in the first format can be updated to the system cache directory to realize the update of the system component in the first format in the system cache directory.
At present, in the process of application program development, developers mostly save system components of users in preset files of a user system, however, when the development platform realizes the functions of graphical management components, the preset files need to be modified, which can cause the system components of the users and the graphical management components of the development platform to be mixed in the same file, which is difficult to distinguish, and has great invasiveness to the user system, thereby affecting the use experience of the users.
In the embodiment of the application, the graphical management component in the first format can be updated to the preset local cache directory through the graphical management plug-in, and the system component in the first format is updated to the system cache directory, namely, 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 file of the user system, the invasiveness to the user system is small, and the use experience of a user is improved.
It should be noted that, in the embodiment of the present application, the type of the user system is not limited, for example, the user system may be an IOS system.
And 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 so as to generate the application program.
In the embodiment of the application, corresponding project engineering can be constructed for the application program in advance, the application program corresponds to the project engineering one by one, and the project engineering is used for storing components used for generating the application program.
Further, the graphical management component in the first format and the system component in the first format can be integrated into the project engineering of the application program by triggering the graphical management plug-in, so that a developer can acquire the graphical management component in the first format and the system component in the first format from the project engineering and develop the application program according to the acquired graphical management component in the first format and the system component in the first format. For example, code corresponding to the application is developed.
And S105, 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 into a configuration file in the second format in the project catalog for the research and development platform to perform graphical configuration.
In an embodiment of the present application, the project directory is further configured 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 may be set according to actual conditions, and may be a json format, for example, which is not limited herein.
It can be understood that the graphical management component in the first format is preset in the project catalog, but the development platform cannot perform graphical configuration according to the graphical management component in the first format, and can only perform graphical configuration according to the graphical management component in the second format.
In the embodiment of the application, the graphical management plug-in can be triggered to translate the graphical management component in the first format into the graphical management component in the second format, and store the graphical management component in the second format into the configuration file in the second format in the project directory, so that the graphical management component in the second format is updated in the configuration file in the second format, and therefore the research and development platform can acquire the graphical management component in the second format from the configuration file in the second format, and perform graphical configuration according to the graphical management component in the second format.
To sum up, according to the component management method of the embodiment of the application, a graphical management plug-in can be preset for a research and development platform, the graphical management plug-in can be triggered to update a graphical management component in a first format to a preset local cache directory according to a component installation or update instruction, and a system component in the first format is updated 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 realized without modifying a preset file of a user system, the invasiveness of the user system is small, and the use experience of a user is improved.
On the basis of any of the above embodiments, a corresponding standard update procedure may be set for the application program in advance, and is used to update the system component in the first format into the system cache directory.
In step S102, triggering the graphical management plugin to read the corresponding configuration file in the first format from the item directory may include triggering the graphical management plugin to interrupt the standard updating process, and reading the corresponding configuration file in the first format from the item directory. In step S103, updating the system component in the first format into the system cache directory may include executing a standard updating procedure to update the system component in the first format into the system cache directory.
Therefore, the method can trigger the graphical management plug-in to interrupt the standard updating process, read the corresponding configuration file in the first format from the project directory, further update the graphical management component in the first format to the preset local cache directory, then execute the standard updating process, and update the system component in the first format to the system cache directory.
On the basis of any of the above embodiments, before the step S102 of triggering the graphical management plugin to read the corresponding configuration file in the first format from the project directory, the method further includes installing the graphical management plugin, and the graphical management plugin creates a blank configuration file in the first format and a blank configuration file in the second format under the project directory in the installation process. Therefore, the method can install the graphical management plug-in, so that a subsequent development platform can refer to the graphical management plug-in from a storage space of the subsequent development platform, and the graphical management plug-in creates a blank configuration file in a first format and a blank configuration file in a second format under the project directory in the installation process, so that the graphical management component in the first format can be stored into the configuration file in the first format, and the graphical management component in the second format can be stored into the configuration file in the second format.
On the basis of any of the above embodiments, before triggering the graphical management plugin to read the corresponding configuration file in the first format from the item directory in step S102, the method further includes referring to the graphical management plugin in the standard updating process, so as to subsequently trigger the graphical management plugin to perform a corresponding operation.
On the basis of any of the 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, the method further 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.
In embodiments of the present application, development code may be pre-constructed for generating graphical management components in a first format. It is to be appreciated that different development code can generate different graphical management components in the first format.
Furthermore, according to the development code, a graphical management component in a first format is generated, and the graphical management component in the first format is stored in the configuration file in the first format, so that the graphical management component in the first format is extracted from the configuration file in the first format by a subsequent graphical management component, and the graphical management component in the first format is updated to a preset local cache directory.
It should be noted that, in the above embodiments, the steps of installing the graphical management plug-in, referring to the graphical management plug-in the standard update flow, 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 may be performed before the component installation or update instruction of the application program item is obtained in step S101, or after the component installation or update instruction of the application program item is obtained in step S101, which is not limited herein.
Fig. 2 is a flowchart illustrating a component management method according to another embodiment of the present application.
As shown in fig. 2, a component management method according to an embodiment of the present application includes:
s201, acquiring a component installation or update instruction of the application program project.
S202, judging whether the graphical management plug-in is installed.
If yes, executing step S204; if not, step S203 is executed.
S203, installing the graphical management plug-in, wherein the graphical management plug-in creates a blank configuration file in a first format and a blank configuration file in a second format under the project directory in the installation process.
In the embodiment of the application, whether the graphical management plug-in is installed or not can be judged, and if the graphical management plug-in is installed, whether the graphical management plug-in is quoted in the standard updating process or not can be continuously judged. If the graphical management plug-in is not installed, the graphical management plug-in can be installed, so that a subsequent development platform can refer to the graphical management plug-in from a storage space of the subsequent development platform, and the graphical management plug-in creates a blank configuration file in a first format and a blank configuration file in a second format under a project directory in the installation process, so that the graphical management component in the first format can be stored into the configuration file in the first format, and the graphical management component in the second format can be stored into the configuration file in the second format.
S204, judging whether the graphical management plug-in is referred in the standard updating flow.
If yes, go to step S206; if not, step S205 is performed.
S205, the graphical management plug-in is referred to in the standard updating flow.
In the embodiment of the application, it may be determined whether the graphical management plugin is referred to in the standard updating flow, and if the graphical management plugin is referred to in the standard updating flow, it may be continuously 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 referred to in the standard updating process, the graphical management plug-in can be referred to in the standard updating process so as to trigger the graphical management plug-in to execute corresponding operations subsequently.
S206, judging whether the configuration file of the first format has the graphical management component of the first format.
If yes, go to step S208; if not, step S207 is performed.
S207, generating a graphical management component in a first format according to the development code, and storing the graphical management component in the first format into a configuration file in the first format.
In the embodiment of the application, it may be determined whether the configuration file in the first format already has the graphical management component in the first format, and if the configuration file in the first format already has the graphical management component in the first format, the graphical management plugin may be directly triggered 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. If the graphic management component in the first format does not exist in the configuration file in the first format, the graphic management component in the first format can be generated according to the development code, and the graphic management component in the first format is stored in the configuration file in the first format, so that the graphic management component in the first format can be extracted from the configuration file in the first format by a subsequent graphic management component, and the graphic management component in the first format is updated to a preset local cache directory.
And S208, according to the component installation or update instruction, triggering the graphical management plug-in to read the corresponding configuration file in the first format from the project directory, and updating the graphical management component in the first format in the configuration file in the first format into a preset local cache directory.
S209, updating the system component in the first format into a system cache directory.
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 so as to generate the application program.
S211, triggering the graphic management plug-in to translate the graphic management assembly in the first format into the graphic management assembly in the second format, and storing the graphic management assembly in the second format into a configuration file in the second format in the project directory for the research and development platform to perform graphic configuration.
It should be noted that, the relevant contents of the steps S201 to S211 can refer to the above embodiments, and are not described herein again.
In summary, according to the component management method of the embodiment of the application, a graphical management plugin can be preset for a research and development platform, after a component installation or update instruction of an application program project is obtained, whether the graphical management plugin is installed or not, whether the graphical management plugin is referred in a standard update flow or not, and whether the graphical management component in the first format exists in a configuration file in the first format or not can be sequentially judged, and corresponding operation is executed according to a judgment result. Therefore, according to the component installation or update instruction, the graphical management plug-in is 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, namely 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 file of the user system, the invasion to the user system is small, and the use experience of a user is improved.
Corresponding to the component management method provided in the embodiments of fig. 1 to 2, the present disclosure also provides a component management apparatus, and since the component management apparatus provided in the embodiments of the present disclosure corresponds to the component management method provided in the embodiments of fig. 1 to 2, the implementation manner of the component management method is also applicable to the component management apparatus provided in the embodiments of the present disclosure, and is not described in detail in the embodiments of the present disclosure.
Fig. 3 is a schematic structural diagram of a component management apparatus according to an embodiment of the present application.
As shown in fig. 3, the component management apparatus 100 according to 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.
An obtaining module 110, configured to obtain a component installation or update instruction of an application program project;
the first updating module 120 is configured to trigger the graphical management plugin to read a corresponding configuration file in a 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;
a second updating module 130, configured to update the system component in the first format into a system cache directory;
the integration module 140 is configured 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 a project engineering of the application program, so as to generate the application program;
the storage module 150 is configured to trigger the graphic management plug-in to translate the graphic management component in the first format into a graphic management component in a second format, and store the graphic management component in the second format into a configuration file in the second format in the project directory, so that the research and development platform performs graphic configuration.
In an embodiment of the application, the first updating module 120 is specifically configured to: triggering the graphic management plug-in to interrupt a standard updating process, and reading the corresponding configuration file in the first format from the item directory.
In an embodiment of the application, the second updating module 130 is specifically configured to: and executing a standard updating process, and updating the system component in the first format into the system cache directory.
In an embodiment of the application, before the triggering the graphical management plugin reads the corresponding configuration file in the first format from the item directory, the first updating module 120 is further configured to: installing the graphical management plug-in, wherein the graphical management plug-in creates a blank configuration file in the first format and a blank configuration file in the second format under the project directory in the installation process.
In an embodiment of the application, before the triggering the graphical management plugin reads the corresponding configuration file in the first format from the item directory, the first updating module 120 is further configured to: and the graphical management plug-in is referred to in the standard updating flow.
In an embodiment of the application, before the 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 120 is further configured to: generating a graphical management component of the first format according to development codes; and storing the graphical management component in the first format into a configuration file in the first format.
The component management device can preset the 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 the 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, namely 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 file of the user system, the invasion to the user system is small, and the use experience of a user is improved.
In order to implement the above-mentioned embodiment, as shown in fig. 4, the present application further proposes an electronic device 200, including: the memory 210, the processor 220, and a computer program stored on the memory 210 and executable on the processor 220, when the processor 220 executes the program, the component management method as proposed in the foregoing embodiments of the present application is implemented.
According to the electronic equipment, the processor executes the computer program stored on the memory, the graphical management plug-in can be preset for the research and development platform, the graphical management plug-in can be triggered to update the graphical management assembly in the first format to the preset local cache directory according to the assembly installation or update instruction, and the system assembly in the first format is updated to the system cache directory, namely the update paths of the system assembly and the graphical management assembly are inconsistent, so that the functions of the graphical management assembly can be realized without modifying the preset file of the user system, the invasiveness to the user system is small, and the use experience of a user is improved.
In order to implement the foregoing embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the component management method as proposed by the foregoing embodiments of the present application.
The computer-readable storage medium of the embodiment of the application stores a computer program and is executed by a processor, a graphical management plug-in can be preset for a research and development platform, the graphical management plug-in can be triggered to update a graphical management component in a first format to a preset local cache directory according to a component installation or update instruction, and a system component in the first format is updated to the system cache directory, namely 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 a preset file of a user system, the intrusion on the user system is small, and the use experience of a user is improved.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specified otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer-readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (14)

1. A method for component management, comprising:
acquiring a component installation or update instruction of an application program project;
according to the component installation or update instruction, triggering a graphical management plug-in to read a corresponding configuration file in a first format from an item directory, and updating a graphical management component in the first format in the configuration file in the first format into a preset local cache directory;
updating the system component in the first format to a system cache directory;
triggering the graphic management plug-in to integrate the graphic management component in the first format and the system component in the first format into the project engineering of the application program so as to generate the application program;
and 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 into a configuration file in the second format in the project directory for a research and development platform to perform graphical configuration.
2. The method of claim 1, wherein triggering the graphical management plugin to read a corresponding configuration file in a first format from under an item directory comprises:
and triggering the graphic management plug-in to interrupt a standard updating process, and reading the corresponding configuration file in the first format from the item directory.
3. The method of claim 1, wherein updating the system component in the first format into a system cache directory comprises:
and executing a standard updating process, and updating the system component in the first format into the system cache directory.
4. The method of claim 1, wherein before triggering the graphical management plugin to read the corresponding configuration file in the first format from the item directory, the method further comprises:
installing the graphical management plug-in, which creates a blank configuration file of the first format and a blank configuration file of the second format under the project directory during installation.
5. The method of claim 2, wherein before triggering the graphical management plugin to read the corresponding configuration file in the first format from under the item directory, the method further comprises:
and the graphical management plug-in is referred to in the standard updating flow.
6. The method according to claim 1, before the updating the graphical management component in the first format in the configuration file in the first format into the preset local cache directory, further comprising:
generating a graphical management component of the first format according to development codes;
and storing the graphical management component in the first format into the configuration file in the first format.
7. A component management apparatus, comprising:
the acquisition module is used for acquiring a component installation or update instruction of an application program project;
the first updating module is used for triggering 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 updating instruction, and updating the graphical management component in the first format in the configuration file in the first format into a preset local cache directory;
the second updating module is used for updating the system components in the first format into a system cache directory;
the integration module is 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 so as to generate the application program;
and the storage module is used for 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 into a configuration file in the second format in the project catalog for the development and development platform to perform graphical configuration.
8. The apparatus of claim 7, wherein the first update module is specifically configured to:
triggering the graphic management plug-in to interrupt a standard updating process, and reading the corresponding configuration file in the first format from the item directory.
9. The apparatus of claim 7, wherein the second update module is specifically configured to:
and executing a standard updating process, and updating the system component in the first format into the system cache directory.
10. The apparatus of claim 7, wherein before the triggering the graphical management plugin reads the corresponding configuration file in the first format from the item directory, the first update module is further configured to:
installing the graphical management plug-in, which creates a blank configuration file of the first format and a blank configuration file of the second format under the project directory during installation.
11. The apparatus of claim 8, wherein before the triggering the graphical management plugin reads the corresponding configuration file in the first format from the item directory, the first update module is further configured to:
and the graphical management plug-in is referred to in the standard updating flow.
12. The apparatus of claim 7, wherein before the 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 configured to:
generating a graphical management component of the first format according to development codes;
and storing the graphical management component in the first format into a configuration file in the first format.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the component management method according to any one of claims 1-6 when executing the program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the component management method according to any one of claims 1 to 6.
CN202110179058.7A 2021-02-09 2021-02-09 Component management method and device and electronic equipment Pending CN114942754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110179058.7A CN114942754A (en) 2021-02-09 2021-02-09 Component management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110179058.7A CN114942754A (en) 2021-02-09 2021-02-09 Component management method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114942754A true CN114942754A (en) 2022-08-26

Family

ID=82905994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110179058.7A Pending CN114942754A (en) 2021-02-09 2021-02-09 Component management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114942754A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230076276A1 (en) * 2021-09-06 2023-03-09 Jpmorgan Chase Bank, N.A. Data configuration deployment framework

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230076276A1 (en) * 2021-09-06 2023-03-09 Jpmorgan Chase Bank, N.A. Data configuration deployment framework
US11789712B2 (en) * 2021-09-06 2023-10-17 Jpmorgan Chase Bank, N.A. Data configuration deployment framework

Similar Documents

Publication Publication Date Title
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN111475227B (en) Business plug-in loading implementation method and device and terminal equipment
EP2660761A1 (en) Timestamp management method for data synchronization and terminal therefor
CN105988805B (en) Application program management method and mobile terminal
CN111190673B (en) Page display method and device based on operation monitoring and electronic equipment
CN107577471B (en) Application control method and mobile terminal
CN109117153B (en) Application processing method, device, terminal and storage medium
CN105512294A (en) Multi-media file update prompting method and device
CN110633205A (en) Method and device for detecting embedded point event, terminal equipment and medium
CN110457049A (en) Realize method, apparatus, electronic equipment and the storage medium of plug-in unit automation
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN107329763B (en) Application program interface display method and device, electronic equipment and storage medium
CN114942754A (en) Component management method and device and electronic equipment
CN103500114A (en) Method and device for installing application program
CN113485722A (en) Application program shelf loading method and processing method for application store and computer equipment
CN110674050B (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN106293814B (en) Upgrading method and device
CN109901849B (en) Application program installation method and device, electronic equipment and storage medium
CN111309406A (en) Event processing method and device of application program and electronic equipment
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN111767062A (en) Application configuration data updating method, device, equipment and storage medium
CN111552537B (en) Theme switching method and device, computer equipment and storage medium
CN110069731B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN108845845B (en) Shortcut key creation method and device, electronic equipment and storage medium
CN113377382A (en) Software installation package processing method and device, electronic equipment and storage medium

Legal Events

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