CN113849161A - Application control method and device, storage medium and electronic equipment - Google Patents

Application control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113849161A
CN113849161A CN202111129309.7A CN202111129309A CN113849161A CN 113849161 A CN113849161 A CN 113849161A CN 202111129309 A CN202111129309 A CN 202111129309A CN 113849161 A CN113849161 A CN 113849161A
Authority
CN
China
Prior art keywords
application
framework
components
component
componentized
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
CN202111129309.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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111129309.7A priority Critical patent/CN113849161A/en
Publication of CN113849161A publication Critical patent/CN113849161A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application control method, an application control device, a storage medium and electronic equipment, and relates to the technical field of computers, wherein the method comprises the following steps: acquiring a unified component framework corresponding to a plurality of applications in the intelligent equipment; performing componentization splitting processing on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components; leading a plurality of components corresponding to each application into a unified component framework to form a componentized framework corresponding to each application; and merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application. The application method and the application device effectively improve the controllability of the application in the intelligent equipment and reduce consumption of system resources.

Description

Application control method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application control method, an application control apparatus, a storage medium, and an electronic device.
Background
At present, with the development of an ecosystem of an intelligent device, more and more service applications are run on the intelligent device, and the service applications occupy more system resources, for example, the applications can be started when the device is started, and further occupy the system resources, and when the system resources are in shortage, the system is easy to be jammed, even the system is restarted, and the like, so that it is very important to effectively control the applications.
In the prior art, generally, the applications are respectively limited to be started and operated according to a certain strategy, or the number of the applications installed on the intelligent device is limited to perform application control, however, in the face of wide application requirements of the applications, a large number of applications are generally required to be installed, so that the problems that the applications are difficult to effectively control and system resources are unreasonably consumed exist in the intelligent device.
Disclosure of Invention
The embodiment of the application provides a scheme, which can effectively improve the controllability of the application in the intelligent equipment and reduce the consumption of system resources.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
according to an embodiment of the present application, an application control method includes: acquiring a unified component framework corresponding to a plurality of applications in the intelligent equipment; performing componentization splitting on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components; importing a plurality of components corresponding to each application into the unified component framework to form a componentized framework corresponding to each application; and merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
In some embodiments of the present application, the performing componentization splitting on each application to obtain a plurality of components corresponding to each application, where the components include a functional component and a common component, and include: acquiring component splitting information corresponding to each application; and according to the component splitting information corresponding to each application, functionally splitting the code of each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components.
In some embodiments of the present application, the importing the plurality of components corresponding to each of the applications into the unified component framework to form a componentized framework corresponding to each of the applications includes: importing the unified component framework and the application shell project into each application to obtain an application framework to be imported corresponding to each application; and respectively importing a plurality of components corresponding to each application into the application frame to be imported corresponding to each application to form a componentized frame corresponding to each application.
In some embodiments of the present application, each of the components is a code repository of a separate distributed version control system; the respectively importing a plurality of components corresponding to each application in an application framework to be imported corresponding to each application comprises: and respectively importing a plurality of code warehouses corresponding to each application into an application frame to be imported corresponding to each application in a manner of importing sub-modules by a distributed version control system.
In some embodiments of the present application, merging the functional component and the common component based on the componentized framework to generate a componentized framework application includes: acquiring a modular framework application template consistent with the framework of the unified component framework; and importing target components in the componentization framework corresponding to all the applications into the componentization framework application template to generate the componentization framework application, wherein the target components comprise the common components and target function components in the function components corresponding to each application.
In some embodiments of the present application, each of the components is a code repository of a separate distributed version control system; the importing the target components in the componentization framework corresponding to all the applications into the componentization framework application template includes: importing the code warehouse corresponding to the public component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system; and importing the code warehouse corresponding to the target function component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system.
In some embodiments of the present application, after the merging the functional component and the common component based on the componentized framework to generate a componentized framework application to control the componentized framework application, the method further includes: determining installation paths of the plurality of applications from an operating system of the smart device; removing the plurality of applications from the operating system according to installation paths of the plurality of applications.
According to one embodiment of the present application, an application control apparatus, the apparatus comprising: the acquisition module is used for acquiring a unified component framework corresponding to a plurality of applications in the intelligent equipment; the splitting module is used for performing componentization splitting on each application to obtain a plurality of components corresponding to each application, and each component comprises a functional component and a public component; the import module is used for importing a plurality of components corresponding to each application into the unified component framework to form a componentized framework corresponding to each application; and the merging module is used for merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of an embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method in the embodiment of the application.
In the embodiment of the application, uniform component frameworks corresponding to a plurality of applications in the intelligent equipment are obtained; performing componentization splitting on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components; leading a plurality of components corresponding to each application into a unified component framework to form a componentized framework corresponding to each application; and merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
In this way, by performing componentization splitting on a plurality of applications in the intelligent equipment, the applications are split into a plurality of components by taking the components as a unit and are led into a unified component frame, the applications are all converted into the componentization frame of the unified frame, further components comprise functional components and public components, the functional components and the public components of each application based on the componentization frame of the unified frame are combined, a componentization frame application with reliable functions can be generated, control management is performed through the componentization frame application, the operation of a target component can be controlled according to requirements in a total application, and the intelligent television only needs to control the componentization frame application as a whole, so that a large number of applications can be combined and controlled on the intelligent equipment, the applications in the intelligent equipment are effectively improved, and the consumption controllability of system resources is reduced. Meanwhile, compared with a mode of directly merging codes by taking a module as a unit in the related art, the reliability of application merging operation is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of a system to which embodiments of the present application may be applied.
FIG. 2 shows a flow diagram of an application control method according to an embodiment of the present application.
Fig. 3 shows a flowchart of an application control method in a scenario according to an embodiment of the present application.
Fig. 4 shows a flow chart of an application control method in a scenario according to the embodiment of fig. 3.
Fig. 5 shows a block diagram of an application control device according to an embodiment of the present application.
FIG. 6 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, as those of ordinary skill in the art will appreciate that various steps and operations described below may be implemented in hardware.
FIG. 1 shows a schematic diagram of a system 100 to which embodiments of the present application may be applied. As shown in fig. 1, the system 100 may include a server 101, a terminal 102, and a smart device 103, as shown in fig. 1. The terminal 102 may be any computer device, such as a computer or the like; the smart device 103 may be any smart device, such as a computer, a mobile phone, a smart watch, a home appliance, and the like. The server 101 may be a server cluster or a cloud server, etc. In one example, the smart device 103 is a smart television and the server 101 is a cloud server.
The server 101 and the smart device 103 may be directly or indirectly connected through a wired or wireless connection.
The intelligent device 103 may install applications, installation resource files of the applications may be issued by the server 101 to the terminal 102 or the terminal 102 may request installation resource files of required applications from the server 101, and the installation resource files of the applications may be constructed on the terminal 102 and transmitted to the server 101 or the intelligent device 103.
In one embodiment of this example, the server 101, the terminal 102, or the smart device 103 may: acquiring a unified component framework corresponding to a plurality of applications in the intelligent device 103; performing componentization splitting on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components; importing a plurality of components corresponding to each application into the unified component framework to form a componentized framework corresponding to each application; and merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
Fig. 2 schematically shows a flow chart of an application control method according to an embodiment of the present application. The execution subject of the application control method may be any device, such as the server 101, the terminal 102, or the smart device 103 shown in fig. 1.
As shown in fig. 2, the application control method may include steps S210 to S240.
Step S210, acquiring a unified assembly framework corresponding to a plurality of applications in the intelligent equipment;
step S220, performing componentization splitting processing on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components;
step S230, importing a plurality of components corresponding to each application into a unified component framework to form a componentized framework corresponding to each application;
and S240, merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
The unified assembly framework is a unified assembly framework which is selected by a plurality of applications by taking Android system components such as Service as basic units. After determining the plurality of applications in the smart device, the unified component frames corresponding to the plurality of applications may be obtained from the target location or specified by the user.
And performing componentization splitting processing on each application, namely splitting the code in each application by taking the component as a unit, and splitting to obtain a plurality of components corresponding to each application, wherein each component comprises a functional component and a public component. Common components may be components that all applications have, such as system service components; the functional components may be personalized components corresponding to each application, such as business functional components. By splitting functional components and common components, reliable merging of components can be performed based on component functionality.
Importing a plurality of components corresponding to each application into a unified component framework, for example, importing a plurality of components (including common components and functional components) corresponding to the application A into the unified component framework to obtain a componentized framework corresponding to the application A; and (3) introducing a plurality of components (including common components and functional components) corresponding to the application B into the unified component framework to obtain a componentized framework corresponding to the application B. The componentization framework corresponding to each application is based on the uniform component framework, and the components of the applications can be reliably combined through the componentization framework corresponding to each application.
The componentization framework corresponding to each application follows a unified component framework (namely, a unified component framework), so that the combination of contents (namely, functional components and common components) in the framework can be carried out according to the framework structure of the unified component framework, the componentization framework application containing the components in each application is constructed, the operation of the componentization framework application on the intelligent equipment can be controlled only through the operation of one application, the combination control of a large number of applications on the intelligent equipment is realized, the controllability of the applications in the intelligent equipment is effectively improved, and the consumption of system resources is reduced.
In this way, based on steps S210 to S240, by performing componentized splitting on a plurality of applications in the smart device, the application is divided into a plurality of components by taking the components as units and is led into a unified component framework, the plurality of applications are all converted into a componentized framework of the unified framework, the further components comprise functional components and common components, the functional components and the common components of each application are combined based on the componentized framework of the unified framework, a functionally reliable componentized framework application can be generated, through which control management is performed, the operation of the target component can be controlled according to the requirement in one general application, and the intelligent television only needs to control the componentized framework application as a whole, and then can realize on the intelligent device and merge the control a large amount of applications, effectively promote the controllability of using in the intelligent device, reduce the consumption of system resource. Meanwhile, compared with a mode of directly merging codes by taking a module as a unit in the related art, the reliability of application merging operation is effectively improved.
The following describes a specific procedure of each step performed when the application control is performed.
In step S210, a unified component framework corresponding to a plurality of applications in the smart device is obtained.
In the embodiment of the present example, the unified component framework is that a plurality of applications use Android system components such as Service as basic units, and a unified componentization framework is jointly selected. The plurality of applications in the smart device may be a plurality of applications designated by a user or a plurality of applications classified according to application information of all applications in the smart device. After determining the plurality of applications in the smart device, the unified component frames corresponding to the plurality of applications may be obtained from the target location or specified by the user.
When the corresponding uniform component framework of the pair of applications is obtained from the target location, the uniform componentization framework may be jointly selected by the plurality of applications with Android system components such as Service as a basic unit, specifically, system component information (such as an identifier or a number) of the system components in each application may be determined, then the same information of the system component information in each application is extracted, and then a matching componentization framework is determined from preset componentization frameworks according to the same information.
On the basis of the unified component framework, unified support of states such as componentization, decoupling and the like can be carried out on each component split by the application.
In one embodiment, step S210, acquiring a unified component framework corresponding to a plurality of applications in an intelligent device includes: acquiring application information of all applications in the intelligent equipment; classifying all applications according to the application information to obtain a plurality of application sets, wherein each application set comprises a plurality of applications; and acquiring a unified component framework corresponding to a plurality of applications in the target application set.
The application information of the application may include information such as size, start information, and type of the application, and then may be classified according to similarity between the application information to obtain a plurality of application sets. The target application set is a plurality of application sets, the target application sets are similar in application, the obtained unified component framework can effectively and uniformly support the components of the plurality of applications in the target application set, and the reliability of the combined and processed component framework application in the subsequent step is improved.
In step S220, each application is split into multiple components corresponding to each application, where the components include a functional component and a common component.
In the embodiment of the present example, each application is subjected to componentization splitting processing, that is, a code in each application is split by taking a component as a unit, and split to obtain a plurality of components corresponding to each application, where the components include a functional component and a common component. Common components may be components that all applications have, such as system service components; the functional components may be personalized components corresponding to each application, such as business functional components. By splitting functional components and common components, reliable merging of components can be performed based on component functionality.
When the code is split by taking the component as a unit, the code can be functionally split according to the preconfigured component splitting information which describes the functions of the component, such as the service splitting information and the system component information, so that the common component and the functional component are split.
In one embodiment, in step S220, performing componentization splitting on each application to obtain a plurality of components corresponding to each application, where the components include functional components and common components, and the method includes:
acquiring component splitting information corresponding to each application; and functionally splitting the code of each application according to the component splitting information corresponding to each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components.
The Service division information may be information describing each Service in the application, for example, information of a Service such as a search Service or a play Service, and the system component information may be information of an Android system component such as Service.
The application program code can be correspondingly functionally divided based on the information of each component in the component splitting information to obtain the component code of each component, and the component code of each component can execute the complete function of the component. At least one component corresponding to each application is obtained.
In step S230, a plurality of components corresponding to each application are imported into the unified component framework, and a componentized framework corresponding to each application is formed.
In the embodiment of the present example, a plurality of components corresponding to each application are imported into the unified component framework, for example, a plurality of components (including common components and functional components) corresponding to the application a are imported into the unified component framework, so as to obtain a componentized framework corresponding to the application a; and (3) introducing a plurality of components (including common components and functional components) corresponding to the application B into the unified component framework to obtain a componentized framework corresponding to the application B.
The componentization framework corresponding to each application is based on the uniform component framework, and the components of the applications can be reliably combined through the componentization framework corresponding to each application.
In one embodiment, step S230, importing a plurality of components corresponding to each application into a unified component framework, and forming a componentized framework corresponding to each application includes:
importing a unified assembly frame and an application shell project into each application to obtain an application frame to be imported corresponding to each application; and respectively importing a plurality of components corresponding to each application into the application framework to be imported corresponding to each application to form a componentized framework corresponding to each application.
And importing the unified component framework and the application shell project into each application to obtain an application framework to be imported corresponding to each application, for example, importing the unified component framework and the application shell project into the service application a to form an application framework to be imported a1 corresponding to the service application a. Then, a plurality of components corresponding to each application are respectively imported into the application framework to be imported corresponding to each application, for example, a plurality of components corresponding to the service application a are imported into the application framework to be imported a1 to form a componentized framework a11 corresponding to the service application. When the components corresponding to the application are led into the unified component framework, application Shell engineering (App Shell) is led in, and the reconstruction of the integrated codes of the application is completed.
In one embodiment, each of the components is a code repository of a separate distributed version control system; the respectively importing a plurality of components corresponding to each application in an application framework to be imported corresponding to each application comprises: and respectively importing a plurality of code warehouses corresponding to each application into the application framework to be imported corresponding to each application in a mode of importing sub-modules by a distributed version control system.
The distributed version control system is a git, a code warehouse of the distributed version control system is a git code warehouse, and each component can be an independent git code warehouse obtained by splitting.
And (3) leading the components (namely the code warehouses) into the application framework to be led in a distributed version control system leading-in sub-module mode. For example, a plurality of components (i.e. code warehouses) corresponding to the service application A are imported into an application framework to be imported corresponding to the service application A in a git submodule mode. This approach may allow efficient maintenance of code in the case of componentized reconfiguration of the code.
In step S240, the functional components and the common components are merged based on the componentized framework, and a componentized framework application is generated.
In the embodiment of the example, the componentization framework corresponding to each application follows a unified component framework (i.e., a unified component framework), and then the content (i.e., the functional component and the common component) in the framework can be merged according to the framework structure of the unified component framework, so as to construct the componentization framework application containing the component in each application, and the operation of the componentization framework application on the intelligent device can be controlled by only one application, so that a large number of applications can be merged and controlled on the intelligent device, the controllability of the application in the intelligent device is effectively improved, and the consumption of system resources is reduced.
In one embodiment, step S240, merging the functional components and the common components based on the componentized framework, and generating a componentized framework application includes:
acquiring a modular framework application template consistent with the framework of the unified component framework; and importing target components in the componentization framework corresponding to all the applications into a componentization framework application template to generate the componentization framework application, wherein the target components comprise common components and target function components in the function components corresponding to each application.
When the unified assembly framework is subjected to merging processing, a componentized framework application template consistent with the framework of the unified assembly framework is obtained, then the target assembly is guided into the componentized framework application template according to the framework structure of the unified assembly framework, so that the merging processing of the componentized framework can be efficiently completed according to requirements, and the componentized framework application is generated.
The target component may be a partial component in the componentization framework corresponding to all applications, and the partial component may include a common component (the common components corresponding to all applications are consistent, so that only the common component corresponding to any application needs to be acquired and merged), and a target functional component in the functional component corresponding to each application (i.e., a partial functional component is selected). The remaining functional components except the target functional component can be marked and merged into the componentized framework application at a later stage according to the requirements of a user.
In one embodiment, each component is a code repository of a separate distributed version control system; importing the target components in the componentization framework corresponding to all the applications into a componentization framework application template, wherein the method comprises the following steps:
importing a code warehouse corresponding to the common component into a componentized framework application template in a mode of importing sub-modules by a distributed version control system; and importing the code warehouse corresponding to the target function component into the componentized framework application template in a mode of importing the sub-modules by the distributed version control system.
The distributed version control system is a git, a code warehouse of the distributed version control system is a git code warehouse, and each component can be an independent git code warehouse obtained by splitting.
And leading the code warehouses corresponding to the common components and the target function components into the modular framework application template in a distributed version control system leading-in sub-module mode, namely in a git submodule mode. For example, a plurality of components (i.e. code warehouses) corresponding to the service application A are imported into an application framework to be imported corresponding to the service application A in a git submodule mode. In this way, only one set of codes can be maintained during merging processing, and the code maintenance cost is reduced.
In one embodiment, after the merging process is performed on the functional component and the common component based on the componentized framework, and a componentized framework application is generated to control the componentized framework application, the method further includes: determining installation paths of a plurality of applications from an operating system of the intelligent device; removing the plurality of applications from the operating system according to the installation paths of the plurality of applications.
After the componentized framework application is generated, the componentized framework application can be run on the intelligent device, installation paths of the multiple applications can be determined before the componentized framework application is run, the multiple applications are removed from the operating system according to the installation paths of the multiple applications, and system occupation is reduced.
Fig. 3 shows a flowchart of an application control method in a scenario according to an embodiment of the present application. Fig. 4 shows a flow chart of an application control method in a scenario according to the embodiment of fig. 3.
In one scenario of the embodiment of the present application, an intelligent device is taken as an example for explanation, and when controlling an application in an intelligent television, the method may include the following steps:
referring to fig. 3:
(1) a unified component framework corresponding to a plurality of applications in the smart television is obtained, specifically, the plurality of applications in the smart television are, for example, Service apps 1 to Service appns shown in fig. 3. The plurality of applications in the smart television can be a plurality of applications designated by a user or a plurality of applications classified according to application information of all applications in the smart device.
(2) And performing componentization and splitting on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components.
Such as common component comom component and functional component componet 1-1 shown in fig. 3.
(3) And leading a plurality of components corresponding to each application into a unified component framework to form a componentized framework corresponding to each application.
Importing a plurality of components corresponding to each application into a unified component framework to form a componentized framework corresponding to each application, comprising: importing a unified assembly frame and an application shell project into each application to obtain an application frame to be imported corresponding to each application; and respectively importing a plurality of components corresponding to each application into the application framework to be imported corresponding to each application to form a componentized framework corresponding to each application.
Each component is a code warehouse of an independent distributed version control system; the respectively importing a plurality of components corresponding to each application in an application framework to be imported corresponding to each application comprises: and respectively importing a plurality of code warehouses corresponding to each application into the application framework to be imported corresponding to each application in a mode of importing sub-modules by a distributed version control system.
The componentization framework is, for example, a Service App1 composed of components such as a component 1-1 on the right side of FIG. 3.
(4) And merging the functional components and the common components based on the componentized framework to generate a componentized framework application.
Referring to fig. 4:
merging the functional components and the common components based on the componentized framework to generate a componentized framework application, comprising:
obtaining a componentized framework application template (CFA) consistent with a framework of the unified component framework; and importing target components in the componentization framework corresponding to all the applications into a componentization framework application template to generate the componentization framework application, wherein the target components comprise common components and target function components in the function components corresponding to each application.
Each component is a code warehouse of an independent distributed version control system; importing the target components in the componentization framework corresponding to all the applications into a componentization framework application template, wherein the method comprises the following steps: importing a code warehouse corresponding to the common component into a componentized framework application template in a mode of importing sub-modules by a distributed version control system; and importing the code warehouse corresponding to the target function component into the componentized framework application template in a mode of importing the sub-modules by the distributed version control system.
The componentized Framework applies, for example, the Componnet Framework App shown in FIG. 4.
(5) Determining installation paths of a plurality of applications from an operating system of the intelligent device; and removing the plurality of applications from the operating system according to the installation paths of the plurality of applications. For example, multiple applications that have completed componentization merging may be removed in a new television system, and the componentized framework applications resulting from componentization reconstruction may be pushed in an old television system.
(6) And completing the componentization and combination of the plurality of applications to obtain a componentized framework application, wherein each component runs in the componentized framework application.
Compared with the mode of directly combining codes in a module mode adopted by the combination of multiple applications in the related technology, the combination is carried out in the angle sum of components; the application scenario of the existing application componentization technology is single-application multi-component, such as Taobao, Paobao and other componentization use scenarios, the application uses multi-application multi-component use scenarios, and combines multi-application multi-component into single-application componentization combination; the existing multi-application combination needs to maintain two sets of codes simultaneously, and the maintenance cost is reduced by half by only maintaining one set of codes through a git submodule warehouse.
In order to better implement the application control method provided in the embodiments of the present application, an application control device based on the application control method is also provided in the embodiments of the present application. The terms are the same as those in the application control method, and specific implementation details can be referred to the description in the method embodiment. Fig. 5 shows a block diagram of an application control device according to an embodiment of the present application.
As shown in fig. 5, the application control apparatus 300 may include an obtaining module 310, a splitting module 320, an importing module 330, and a merging module 340.
The obtaining module 310 may be configured to obtain a unified component framework corresponding to a plurality of applications in the smart device; the splitting module 320 may be configured to perform componentization splitting on each of the applications to obtain a plurality of components corresponding to each of the applications, where the components include a functional component and a common component; the importing module 330 may be configured to import a plurality of components corresponding to each of the applications into the unified component framework to form a componentized framework corresponding to each of the applications; the merging module 340 may be configured to merge the functional component and the common component based on the componentized framework to generate a componentized framework application, so as to control the componentized framework application.
In some embodiments of the present application, the splitting module 320 includes: a split information obtaining unit, configured to obtain component split information corresponding to each application; and the code splitting unit is used for functionally splitting the code of each application according to the component splitting information corresponding to each application to obtain a plurality of components corresponding to each application, and each component comprises a functional component and a public component.
In some embodiments of the present application, the importing module 330 includes: the first import unit is used for importing the unified component framework and the application shell project into each application to obtain an application framework to be imported corresponding to each application; the second importing unit is configured to import a plurality of components corresponding to each application in an application framework to be imported corresponding to each application, respectively, to form a componentized framework corresponding to each application.
In some embodiments of the present application, each of the components is a code repository of a separate distributed version control system; the second import unit is configured to: and respectively importing a plurality of code warehouses corresponding to each application into an application frame to be imported corresponding to each application in a manner of importing sub-modules by a distributed version control system.
In some embodiments of the present application, the merging module 340 includes: the template acquisition unit is used for acquiring a modular framework application template consistent with the framework of the unified component framework; and the application generating unit is used for importing target components in the componentization framework corresponding to all the applications into the componentization framework application template to generate the componentization framework application, wherein the target components comprise the common components and target function components in the function components corresponding to each application.
In some embodiments of the present application, each of the components is a code repository of an independent distributed version control system, and the application generation unit is configured to: importing the code warehouse corresponding to the public component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system; and importing the code warehouse corresponding to the target function component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system.
In some embodiments of the present application, the apparatus further comprises: a removal unit, configured to determine installation paths of the plurality of applications from an operating system of the smart device; removing the plurality of applications from the operating system according to installation paths of the plurality of applications.
In this way, based on the application control apparatus 300, by performing componentization splitting on a plurality of applications in the smart device, the application is divided into a plurality of components by taking the components as units and is led into a unified component framework, the plurality of applications are all converted into a componentized framework of the unified framework, the further components comprise functional components and common components, the functional components and the common components of each application are combined based on the componentized framework of the unified framework, a functionally reliable componentized framework application can be generated, through which control management is performed, the operation of the target component can be controlled according to the requirement in one general application, and the intelligent television only needs to control the componentized framework application as a whole, and then can realize on the intelligent device and merge the control a large amount of applications, effectively promote the controllability of using in the intelligent device, reduce the consumption of system resource. Meanwhile, compared with a mode of directly merging codes by taking a module as a unit in the related art, the reliability of application merging operation is effectively improved.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, as shown in fig. 6, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, and specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, for example, the processor 401 may execute the following steps:
acquiring a unified component framework corresponding to a plurality of applications in the intelligent equipment; performing componentization splitting on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components; importing a plurality of components corresponding to each application into the unified component framework to form a componentized framework corresponding to each application; and merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
In some embodiments of the present application, when the componentization splitting is performed on each application to obtain a plurality of components corresponding to each application, and the components include a functional component and a common component, the processor 401 may perform: acquiring component splitting information corresponding to each application; and according to the component splitting information corresponding to each application, functionally splitting the code of each application to obtain a plurality of corresponding components corresponding to each application, wherein the components comprise functional components and common components.
In some embodiments of the present application, when the multiple components corresponding to each of the applications are imported into the unified component framework to form a componentized framework corresponding to each of the applications, the processor 401 may perform: importing the unified component framework and the application shell project into each application to obtain an application framework to be imported corresponding to each application; and respectively importing a plurality of components corresponding to each application into the application frame to be imported corresponding to each application to form a componentized frame corresponding to each application.
In some embodiments of the present application, each of the components is a code repository of a separate distributed version control system; when the multiple components corresponding to each application are respectively imported into the application framework to be imported corresponding to each application, the processor 401 may perform: and respectively importing a plurality of code warehouses corresponding to each application into an application frame to be imported corresponding to each application in a manner of importing sub-modules by a distributed version control system.
In some embodiments of the present application, when the functional component and the common component are merged based on the componentized framework to generate a componentized framework application, the processor 401 may perform: acquiring a modular framework application template consistent with the framework of the unified component framework; and importing target components in the componentization framework corresponding to all the applications into the componentization framework application template to generate the componentization framework application, wherein the target components comprise the common components and target function components in the function components corresponding to each application.
In some embodiments of the present application, each of the components is a code repository of a separate distributed version control system; when the target components in the componentization framework corresponding to all the applications are imported into the componentization framework application template, the processor 401 may perform: importing the code warehouse corresponding to the public component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system; and importing the code warehouse corresponding to the target function component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system.
In some embodiments of the present application, after the merging the functional component and the common component based on the componentized framework to generate a componentized framework application to control the componentized framework application, the processor 401 may perform: determining installation paths of the plurality of applications from an operating system of the smart device; removing the plurality of applications from the operating system according to installation paths of the plurality of applications.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application further provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the methods provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. An application control method, comprising:
acquiring a unified component framework corresponding to a plurality of applications in the intelligent equipment;
performing componentization splitting on each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components;
importing a plurality of components corresponding to each application into the unified component framework to form a componentized framework corresponding to each application;
and merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
2. The method according to claim 1, wherein the performing componentization splitting on each application to obtain a plurality of components corresponding to each application, the components including functional components and common components, comprises:
acquiring component splitting information corresponding to each application;
and according to the component splitting information corresponding to each application, functionally splitting the code of each application to obtain a plurality of components corresponding to each application, wherein the components comprise functional components and common components.
3. The method of claim 1, wherein the importing the plurality of components corresponding to each of the applications into the unified component framework to form a componentized framework corresponding to each of the applications comprises:
importing the unified component framework and the application shell project into each application to obtain an application framework to be imported corresponding to each application;
and respectively importing a plurality of components corresponding to each application into the application frame to be imported corresponding to each application to form a componentized frame corresponding to each application.
4. The method of claim 3, wherein each of the components is a code repository of a separate distributed version control system;
the respectively importing a plurality of components corresponding to each application in an application framework to be imported corresponding to each application comprises:
and respectively importing a plurality of code warehouses corresponding to each application into an application frame to be imported corresponding to each application in a manner of importing sub-modules by a distributed version control system.
5. The method according to claim 1, wherein the merging the functional component and the common component based on the componentized framework to generate a componentized framework application comprises:
acquiring a modular framework application template consistent with the framework of the unified component framework;
and importing target components in the componentization framework corresponding to all the applications into the componentization framework application template to generate the componentization framework application, wherein the target components comprise the common components and target function components in the function components corresponding to each application.
6. The method of claim 5, wherein each of the components is a code repository of a separate distributed version control system;
the importing the target components in the componentization framework corresponding to all the applications into the componentization framework application template includes:
importing the code warehouse corresponding to the public component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system;
and importing the code warehouse corresponding to the target function component into the componentized framework application template in a mode of importing sub-modules by a distributed version control system.
7. The method of claim 1, wherein after the merging the functional component and the common component based on the componentized framework to generate a componentized framework application for controlling the componentized framework application, the method further comprises:
determining installation paths of the plurality of applications from an operating system of the smart device;
removing the plurality of applications from the operating system according to installation paths of the plurality of applications.
8. An application control apparatus, comprising:
the acquisition module is used for acquiring a unified component framework corresponding to a plurality of applications in the intelligent equipment;
the splitting module is used for performing componentization splitting on each application to obtain a plurality of components corresponding to each application, and each component comprises a functional component and a public component;
the import module is used for importing a plurality of components corresponding to each application into the unified component framework to form a componentized framework corresponding to each application;
and the merging module is used for merging the functional components and the common components based on the componentized framework to generate a componentized framework application so as to control the componentized framework application.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to carry out the method of any one of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in the memory to perform the method of any of claims 1 to 7.
CN202111129309.7A 2021-09-26 2021-09-26 Application control method and device, storage medium and electronic equipment Pending CN113849161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111129309.7A CN113849161A (en) 2021-09-26 2021-09-26 Application control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111129309.7A CN113849161A (en) 2021-09-26 2021-09-26 Application control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113849161A true CN113849161A (en) 2021-12-28

Family

ID=78979699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111129309.7A Pending CN113849161A (en) 2021-09-26 2021-09-26 Application control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113849161A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129300A (en) * 2022-08-30 2022-09-30 太平金融科技服务(上海)有限公司深圳分公司 Application development method, apparatus, device, medium, and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129300A (en) * 2022-08-30 2022-09-30 太平金融科技服务(上海)有限公司深圳分公司 Application development method, apparatus, device, medium, and program product

Similar Documents

Publication Publication Date Title
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN110442396B (en) Application program starting method and device, storage medium and electronic equipment
CN106775744B (en) Method and device for generating static library
US20150100961A1 (en) Operating Programs on a Computer Cluster
CN111625289B (en) Method and device for quickly starting application program and electronic equipment
CN110569250B (en) Management method and device for analysis library of Internet of things network element
CN111880853A (en) Starting method, system and related device of clustered service
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN111695827A (en) Business process management method and device, electronic equipment and storage medium
CN111988429A (en) Algorithm scheduling method and system
CN113849161A (en) Application control method and device, storage medium and electronic equipment
CN112835587B (en) Compiling integration method and device
CN112800091A (en) Flow-batch integrated calculation control system and method
CN116450309A (en) System service providing method and device, storage medium and electronic equipment
CN113590179B (en) Plug-in detection method and device, electronic equipment and storage medium
CN112099879B (en) Configuration information management method and device, computer equipment and storage medium
CN113867714A (en) Automatic code generation method adaptive to multiple languages
CN114090054A (en) Intelligent equipment upgrading method and device, storage medium and electronic equipment
CN113708971A (en) Openstack cloud platform deployment method and related device
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
CN112464596A (en) Regression testing method, system, equipment and readable storage medium
CN112752154A (en) Software upgrading method and device and smart television
CN114116627A (en) Multimedia resource scanning method and device, storage medium and electronic equipment
CN114185554A (en) Software product deployment method and device, readable medium and electronic equipment
CN117992064A (en) Application compiling method and device, storage medium and electronic equipment

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