CN109614081B - Browser implementation method and device and mobile terminal - Google Patents

Browser implementation method and device and mobile terminal Download PDF

Info

Publication number
CN109614081B
CN109614081B CN201811423717.1A CN201811423717A CN109614081B CN 109614081 B CN109614081 B CN 109614081B CN 201811423717 A CN201811423717 A CN 201811423717A CN 109614081 B CN109614081 B CN 109614081B
Authority
CN
China
Prior art keywords
service
components
browser
business
service components
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.)
Active
Application number
CN201811423717.1A
Other languages
Chinese (zh)
Other versions
CN109614081A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811423717.1A priority Critical patent/CN109614081B/en
Publication of CN109614081A publication Critical patent/CN109614081A/en
Application granted granted Critical
Publication of CN109614081B publication Critical patent/CN109614081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Abstract

The embodiment of the application provides a browser implementation method, a browser implementation device and a mobile terminal, wherein the method comprises the following steps: respectively establishing a plurality of service components, wherein each service component comprises a special part for realizing the service thereof, the service components are mutually independent, and the service components are mutually independent; respectively establishing a plurality of dependency files, wherein the plurality of dependency files respectively correspond to the plurality of service components, and the dependency files provide support for the operation of the corresponding service components; integrating the business components and their dependent files with a browser shell; wherein a plurality of the business components are integrated in a business layer, and a plurality of the dependent files are integrated in an underlying library; the browser shell, the service layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the service layer and the bottom library. The method of the application improves the compiling speed.

Description

Browser implementation method and device and mobile terminal
Technical Field
The application relates to the technical field of computers, in particular to a browser implementation method, a browser implementation device and a mobile terminal.
Background
The statements in this application as background to the related art related to this application are merely provided to illustrate and facilitate an understanding of the contents of the present application and are not to be construed as an admission that the applicant expressly or putatively admitted the prior art of the filing date of the present application at the first filing date.
With the rapid expansion of browser services, the existing browser project architecture cannot be developed well in parallel, project codes are larger and larger, the compiling speed is slower and slower, the cost of the new people and team members familiar with the projects is increased, the project maintenance difficulty is improved, and the development efficiency is influenced.
Disclosure of Invention
In view of this, the embodiment of the present application provides a browser implementation method, a browser implementation device and a mobile terminal.
In a first aspect, the present application provides a browser implementation method, where the method includes:
respectively establishing a plurality of service components, wherein each service component comprises a special part for realizing the service thereof, the service components are mutually independent, and the service components are mutually independent;
respectively establishing a plurality of dependency files, wherein the plurality of dependency files respectively correspond to the plurality of service components, and the dependency files provide support for the operation of the corresponding service components;
integrating the business components and their dependent files with a browser shell; wherein
A plurality of the business components are integrated in a business layer, and a plurality of the dependent files are integrated in a bottom library;
the browser shell, the service layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the service layer and the bottom library.
In a second aspect, an embodiment of the present application provides a browser implementation apparatus, including:
the service unit is used for constructing a service layer, the service layer comprises a plurality of service components, the service components comprise specific parts for realizing the services of the service components, the plurality of service components are independent from each other, and the plurality of service components are independent from each other;
the bottom layer unit is used for constructing a bottom layer library, the bottom layer library is used for providing support for the operation of the business components, the bottom layer library comprises a plurality of integrated dependent files, the plurality of dependent files correspond to the plurality of business components respectively, and the dependent files provide support for the operation of the corresponding business components;
a shell unit for constructing a browser shell for integrating the business components and their dependent files; wherein
The browser shell, the service layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the service layer and the bottom library.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of any one of the above methods.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of any one of the above methods when executing the program.
The embodiment of the application has the following beneficial effects:
the browser implementation method of the embodiment of the application establishes a plurality of service components and a plurality of dependency files respectively, wherein the service components comprise specific parts for implementing the services, the service components are independent from one another, and the service components are independent from one another; the dependent file provides support for the operation of the corresponding business component; integrating the service components and the dependent files thereof by using a browser shell; wherein a plurality of the business components are integrated in a business layer, and a plurality of the dependent files are integrated in an underlying library; the browser shell, the service layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the service layer and the bottom library. The browser implementation method can realize parallel development of developers, improves project compiling speed, reduces familiar project cost and is convenient to maintain, and each user only needs to pay attention to the service components in charge.
Drawings
FIG. 1 shows a flow chart of a first embodiment of a browser implementation method of the present application;
FIG. 2 shows a flow diagram of a second embodiment of a browser-implemented method of the present application;
FIG. 3 shows a flow chart of a third embodiment of a browser implementation method of the present application;
FIG. 4 is a schematic diagram illustrating an embodiment of a browser implementation method of the present application;
FIG. 5 illustrates a schematic structural diagram of an embodiment of a browser implementation apparatus of the present application;
fig. 6 is a schematic structural diagram illustrating an embodiment of a browser implementation apparatus according to the present application.
Detailed Description
The present application is described in further detail below with reference to specific examples, but the present application is not limited thereto. In the following description, different "one embodiment" or "an embodiment" refers to not necessarily the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The mobile terminal related to the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a laptop computer, and the like.
In a first aspect, an embodiment of the present application provides a browser implementation method, and fig. 1 shows a flowchart of an embodiment of the browser implementation method of the present application. Referring to fig. 1, the browser implementation method includes:
respectively establishing a plurality of service components, wherein each service component comprises a special part for realizing the service, the service components are mutually independent, and the service components are mutually independent;
respectively establishing a plurality of dependency files, wherein the plurality of dependency files respectively correspond to the plurality of service components, and the dependency files provide support for the operation of the corresponding service components;
integrating the service components and the dependent files thereof by using a browser shell; wherein
A plurality of business components are integrated in a business layer, and a plurality of dependent files are integrated in a bottom library;
the browser shell, the business layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the business layer and the bottom library.
The browser implementation method of the embodiment of the application establishes a plurality of service components and a plurality of dependency files respectively, wherein the service components comprise specific parts for implementing the services, the service components are independent from one another, and the service components are independent from one another; the dependent file provides support for the operation of the corresponding service component; integrating the service components and the dependent files thereof by using a browser shell; wherein a plurality of business components are integrated in a business layer, and a plurality of dependent files are integrated in a bottom library; the browser shell, the business layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the business layer and the bottom library. The browser implementation method can realize parallel development of developers, improves project compiling speed, reduces familiar project cost and is convenient to maintain, and each user only needs to pay attention to the service components in charge. The method of the embodiment of the application improves development efficiency and iteration speed, and paves roads for subsequent plug-in implementation.
In the embodiment of the application, the browser shell does not relate to complex services, and the browser shell is used for packaging and issuing the integration and can also be used for packaging and debugging. The package debugging can be realized by combining all the service components together and performing the package debugging, or by combining part of the service components together and performing the package debugging. For example, the target browser has 10 service components, and may package and debug all 10 service components together, or may package and debug only a part of the service components (for example, any two or more service components among the 10 service components) together. The browser shell in the embodiment of the present application may be an App shell, for example.
In the embodiment of the application, the service layer comprises a plurality of service components. Each service component includes a unique portion that implements its service. For example, each service component includes its own unique display interface, associated methods, code files for the service, and the like. The plurality of business components are independent from each other, and the plurality of business components are independent from each other.
In the embodiment of the application, the bottom library is used for providing relevant data, methods and interfaces for public display for the service components of the service layer, and belongs to public resources. For example, a library containing ui, tool classes, third party classes, etc. By adding a configured dependency under the engineering file of the business component of the business layer.
In the embodiment of the application, the public part is placed in the bottom library to be depended on by the service layer and the browser shell, all service components of the service layer are independently decoupled, and the service components are independent of each other. The method provided by the embodiment of the application can realize parallel development of developers, improves the project compiling speed, reduces the cost of familiar projects by only paying attention to the service components responsible by each person, is convenient to maintain, improves the development efficiency and the iteration speed, and paves roads for subsequent plug-in implementation.
In an alternative embodiment of the present application, the underlying library further includes an integrated development mode and a component development mode switch. If the selector switch is switched to the integrated development mode, compiling and running the service components of the service layer together; and if the selector switch is switched to the component development mode, independently compiling and running the service components of the service layer.
In the embodiment of the application, by setting the change-over switch, each service component can be independently compiled, run and debugged, and a plurality of service components can be combined and released. Specifically, a file may be defined in the whole browser project, and is used to configure an overall switch (for example, an integrated development mode and component development mode switch), and the switch realizes that each component is compiled and run separately or is compiled and run together when all components are combined. Each business component performs different operations and configurations according to the configuration. For example, if the user center component finds that the switch needs to be independently compiled, the code configuration independently compiled by the user center component is executed, and the user center component does not need to be combined and compiled. The browser shell will also determine whether to compile and package multiple business components together or to allow each component to run individually based on the overall switch configuration.
Specific settings of the switch are, for example, a constant isModule ═ false defined in gradle. Specific implementation codes are exemplified as follows:
Figure GDA0003418536240000051
Figure GDA0003418536240000061
the method of the embodiment of the application can be used for developing a brand-new browser and can also be used for optimizing and reconstructing the existing browser. The method provided by the embodiment of the application is used for dividing different service components according to services according to the service planning of the target browser when a brand-new browser is developed. When the method is used for optimizing and reconstructing the existing browser, different service components can be divided according to services according to the existing service planning and the future service planning of the browser. Different service components can be split according to the service components of the existing service division of the browser.
FIG. 2 shows a flow chart of a second embodiment of a browser implementation method of the present application. Referring to fig. 2, in an alternative embodiment of the present application, establishing a plurality of service components includes: analyzing the service of the existing browser and dividing service components; establishing a component project according to the divided service components; and stripping the divided service components from the existing browser, and putting the stripped service components into corresponding component project projects. According to the optional embodiment of the application, aiming at the improvement of the existing browser, different business components are split according to the business components divided by the existing business of the browser. The embodiment can reduce the workload of modifying the existing browser.
In an optional embodiment of the present application, the step of stripping the divided service components from the existing browser includes: cutting the file from the existing browser according to the divided service components; and removing the parts of the cut files, which depend on other business components. When the existing browser is modified, the coupling of a plurality of previous public files is serious. According to the optional embodiment of the application, after the file is cut from the existing browser according to the divided service components, the parts depending on other service components are removed, and the dependence among the service components of the service layer is avoided. The common file can be stripped in a multi-interface, combination and less inheritance mode, and the problem that the service component is inconvenient to split is solved.
In the alternative embodiment of the application, the removed parts depending on other business components are put into the bottom library. And putting the removed parts depending on other business components into the underlying library to be depended on by other components.
In the embodiment of the application, when the existing browser is modified, the existing business of the browser is analyzed, and a business module which is relatively independent and has less later-stage change, such as a personal center of the browser, can be found out firstly. The splitting of the service components can be better realized by the simple and difficult way. The service component only keeps the specific part for realizing the service, so when the other services are also dependent and used in the file cut from the existing browser, the dependent part of the other services is removed first, and then the removed part is put into the bottom library engineering to be used as a public part for the service layer.
In the embodiment of the application, the service component may be compiled and run independently, or a plurality of service components may be compiled and run together. There is a possibility of collision. FIG. 3 shows a flowchart of a third embodiment of a browser implementation method of the present application. Referring to fig. 3, in an alternative embodiment of the present application, establishing a plurality of service components further includes: and establishing an independent debugging folder in the component project, wherein the independent debugging folder is used for placing class files for independently debugging the service components. In the embodiment of the application, an independent debugging folder is established in the component project engineering of each business component, and the class file of the business component for independent debugging is placed in the independent debugging folder. And when the service component is independently compiled and run, calling the class file independently debugged by the service component in the independent debugging folder. When a plurality of service components are compiled and run together, the running file of the browser shell is called, and the class file for independently debugging the service components in the independent debugging folder cannot be called. And thus no collision occurs. For example, a component requires an application for individual debugging, which can conflict with the application of the App shell. By adopting the optional embodiment, an individual debugging folder (named debug for example) is newly built in the component project, and the class file for the individual debugging of the service component is placed in the folder. When the service components are compiled together and run, the class files in the debug folder cannot be loaded.
In an alternative embodiment of the present application, the integrated service component and its dependent file include: detecting the naming of the service component resource; the detected naming of the business component resource is changed to the unique name of the business component. In the embodiment of the application, resource naming conflicts may occur in the process of independent development of each service component, for example, a service component a names a picture, and a service component B names a picture. When the A component and the B component are integrated and packaged together, since the picture a cannot be identified for compiling, an error is reported, and the project integration is not compiled. In the optional embodiment of the application, the naming of the service component resource is detected when the service component and the dependent file thereof are integrated; the detected naming of the business component resource is changed to the unique name of the business component. For example, the name of the detected business component resource is prefixed by the name of the business component. For example, the picture a of the a service component is changed into Aa during integration, and the picture a of the B service component is changed into Ba during integration and compilation. The embodiment can lead the developer to name each resource without manual operation, and automatically change the resource name during integration so as to distinguish the resources.
In an optional embodiment of the present application, the integrated service component and its dependent file further include: and detecting the dependent files of the components, and removing the repeated parts of the dependent files. In the application embodiment, in the process of independent development or service component splitting of each service component, packet repetition that different service components depend on may occur. For example, the dependency file of the A business component comprises data a, data B and data c, and the dependency file of the B business component comprises data c, data d and data e. Data c repeats upon integration. In the optional embodiment of the application, the dependent files of the components are detected, repeated parts of the dependent files are removed, and the problem of repeated dependence is solved.
A second aspect. The embodiment of the application provides a browser implementation device. The apparatus of the present embodiment may implement the method of the above-described embodiment, and the following description related to the embodiment of the browser implementation apparatus may be used to understand the control method of the above-described embodiment. Fig. 4 is a schematic structural diagram illustrating an embodiment of a browser implementation apparatus according to the present application. Referring to fig. 4, a browser implementation apparatus according to an embodiment of the present application includes:
the service unit 10 is used for constructing a service layer, the service layer comprises a plurality of service components, the service components comprise specific parts for realizing services of the service components, the plurality of service components are independent from each other, and the plurality of service components are independent from each other;
the bottom layer unit 20 is used for constructing a bottom layer library, the bottom layer library is used for providing support for the operation of the business components, the bottom layer library comprises a plurality of integrated dependent files, the plurality of dependent files correspond to the plurality of business components respectively, and the dependent files provide support for the operation of the corresponding business components;
a shell unit 30 for constructing a browser shell for integrating business components and their dependent files; wherein
The browser shell, the business layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the business layer and the bottom library.
The browser implementation device in the embodiment of the application respectively constructs a service layer, a bottom library and a browser shell through a service unit 10, a bottom unit 20 and a shell unit 30, wherein the service layer comprises a plurality of service components, the service components comprise specific parts for implementing services of the service components, the service components are mutually independent, and the service components are mutually independent; the bottom library is used for providing support for operation of the business components, the bottom library comprises a plurality of integrated dependent files, the dependent files correspond to the business components respectively, and the dependent files provide support for operation of the corresponding business components. The browser shell is used for integrating the service components and the dependent files thereof; the browser shell, the business layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the business layer and the bottom library. The browser implementation device can realize parallel development of developers, improves project compiling speed, reduces familiar project cost and is convenient to maintain, and each user only needs to pay attention to the service components in charge. The method of the embodiment of the application improves development efficiency and iteration speed, and paves roads for subsequent plug-in implementation.
In the embodiment of the present application, the service layer constructed by the service unit 10 includes a plurality of service components. Each service component includes a unique portion that implements its service. For example, each service component includes its own unique display interface, associated methods, code files for the service, and the like. The plurality of business components are independent from each other, and the plurality of business components are independent from each other.
In the embodiment of the present application, the underlying library constructed by the underlying unit 20 is used to provide relevant data, methods, and interfaces for public display to the service components of the service layer, and belongs to public resources. For example, a library containing ui, tool classes, third party classes, etc. By adding a configured dependency under the engineering file of the business component of the business layer.
In the embodiment of the application, the bottom unit 20 puts the public part into the bottom library for the business layer and the browser shell to depend on, and each business component of the business layer is decoupled independently, and the business components do not depend on each other. The device of the embodiment of the application can realize parallel development of developers, improves project compiling speed, reduces familiar project cost by only paying attention to the service components responsible by each person, is convenient to maintain, improves development efficiency and iteration speed, and paves roads for subsequent plug-in implementation.
In an alternative embodiment of the present application, the underlying library constructed by the underlying unit 20 further includes an integrated development mode and a component development mode switch. If the selector switch is switched to the integrated development mode, compiling and running the service components of the service layer together; and if the selector switch is switched to the component development mode, independently compiling and running the service components of the service layer.
In the embodiment of the application, by setting the change-over switch, each service component can be independently compiled, run and debugged, and a plurality of service components can be combined and released. Specifically, a file may be defined in the whole browser project, and is used to configure an overall switch (for example, an integrated development mode and component development mode switch), and the switch realizes that each component is compiled and run separately or is compiled and run together when all components are combined. Each business component performs different operations and configurations according to the configuration. For example, if the user center component finds that the switch needs to be independently compiled, the code configuration independently compiled by the user center component is executed, and the user center component does not need to be combined and compiled. The browser shell will also determine whether to compile and package multiple business components together or to allow each component to run individually based on the overall switch configuration.
The device of the embodiment of the application can be used for developing a brand-new browser and can also be used for optimizing and reconstructing the existing browser. The device provided by the embodiment of the application is used for dividing different service components according to services according to the service planning of a target browser when a brand-new browser is developed. When the method is used for optimizing and reconstructing the existing browser, different service components can be divided according to services according to the existing service planning and the future service planning of the browser. Different service components can be split according to the service components of the existing service division of the browser.
Fig. 5 shows a flowchart of a second embodiment of the browser implementation apparatus of the present application. Referring to fig. 5, in an alternative embodiment of the present application, a service unit 10 includes: an analysis module 11, configured to analyze a service of an existing browser and divide service components; an engineering module 12 for building component project engineering from the divided business components; and the stripping module 13 is used for stripping the divided service components from the existing browser and placing the stripped service components into corresponding component project projects. According to the optional embodiment of the application, aiming at the improvement of the existing browser, different business components are split according to the business components divided by the existing business of the browser. The embodiment can reduce the workload of modifying the existing browser.
In an alternative embodiment of the present application, the stripping module 13 includes: the cutting module is used for cutting the file from the existing browser according to the divided service components; and the dependency stripping module is used for removing the parts of the cut files, which depend on other business components. When the existing browser is modified, the coupling of a plurality of previous public files is serious. According to the optional embodiment of the application, after the file is cut from the existing browser according to the divided service components, the parts depending on other service components are removed, and the dependence among the service components of the service layer is avoided. The common file can be stripped in a multi-interface, combination and less inheritance mode, and the problem that the service component is inconvenient to split is solved.
In the alternative embodiment of the application, the removed parts depending on other business components are put into the bottom library. And putting the removed parts depending on other business components into the underlying library to be depended on by other components.
In the embodiment of the application, the service component may be compiled and run independently, or a plurality of service components may be compiled and run together. There is a possibility of collision. Fig. 6 shows a flowchart of a third embodiment of the browser implementation apparatus of the present application. Referring to fig. 6, in an alternative embodiment of the present application, the service unit 10 further includes: and the debugging module 14 is used for establishing an individual debugging folder in the component project, and the individual debugging folder is used for placing the class file for the individual debugging of the business component. In the embodiment of the application, an independent debugging folder is established in the component project engineering of each business component, and the class file of the business component for independent debugging is placed in the independent debugging folder. And when the service component is independently compiled and run, calling the class file independently debugged by the service component in the independent debugging folder. When a plurality of service components are compiled and run together, the running file of the browser shell is called, and the class file for independently debugging the service components in the independent debugging folder cannot be called. And thus no collision occurs. For example, a component requires an application for individual debugging, which can conflict with the application of the App shell. By adopting the optional embodiment, an individual debugging folder (named debug for example) is newly built in the component project, and the class file for the individual debugging of the service component is placed in the folder. When the service components are compiled together and run, the class files in the debug folder cannot be loaded.
It is obvious to those skilled in the art that the "unit" or "module" in the embodiments of the present application may be software and/or hardware capable of performing a specific function independently or in cooperation with other components, where the hardware may be, for example, an FPGA (Field-Programmable Gate Array), an IC (Integrated Circuit), and the like, and thus, a detailed description thereof is omitted here.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of any one of the foregoing embodiments of the method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of any of the above-mentioned embodiments of methods. In the embodiment of the present application, the processor is a control center of a computer system, and may be a processor of a physical machine or a processor of a virtual machine.
The mobile terminal in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a laptop computer, and the like.
In this application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or order; the term "plurality" means two or more unless expressly limited otherwise. The terms "mounted," "connected," "fixed," and the like are to be construed broadly, and for example, "connected" may be a fixed connection, a removable connection, or an integral connection; "coupled" may be direct or indirect through an intermediary. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate.
In the description of the present application, it is to be understood that the terms "upper", "lower", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or unit must have a specific direction, be configured and operated in a specific orientation, and thus, should not be construed as limiting the present application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A browser-implemented method, the method comprising:
respectively establishing a plurality of service components, wherein each service component comprises a special part for realizing the service thereof, the service components are mutually independent, and the service components are mutually independent;
respectively establishing a plurality of dependency files, wherein the plurality of dependency files respectively correspond to the plurality of service components, and the dependency files provide support for the operation of the corresponding service components;
integrating the business components and their dependent files with a browser shell; wherein
A plurality of the business components are integrated in a business layer, and a plurality of the dependent files are integrated in a bottom library;
the browser shell, the service layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the service layer and the bottom library;
wherein establishing a plurality of service components comprises:
analyzing the service of the existing browser and dividing service components;
establishing a component project according to the divided service components;
establishing an independent debugging folder in the component project, wherein the independent debugging folder is used for placing class files for independently debugging the service components;
and stripping the divided service components from the existing browser, and placing the stripped service components into the corresponding component project engineering.
2. The method of claim 1, wherein the underlying library further comprises:
an integrated development mode and component development mode selector switch;
if the change-over switch is switched to an integrated development mode, the service components of the service layer are compiled together for operation;
and if the change-over switch is switched to a component development mode, the service components of the service layer are independently compiled and run.
3. The method of claim 1, wherein the stripping the partitioned business components from the existing browser comprises:
cutting the file from the existing browser according to the divided service components;
and removing the parts of the cut files, which depend on other business components.
4. The method of claim 3, further comprising:
and putting the removed parts which are depended by other business components into the underlying library.
5. The method of claim 1, wherein integrating the business components and their dependent files comprises:
detecting the naming of the service component resource;
and changing the detected naming of the business component resource into the unique name of the business component.
6. A browser-implemented apparatus, comprising:
the service unit is used for constructing a service layer, the service layer comprises a plurality of service components, the service components comprise specific parts for realizing the services of the service components, the plurality of service components are independent from each other, and the plurality of service components are independent from each other;
the bottom layer unit is used for constructing a bottom layer library, the bottom layer library is used for providing support for the operation of the business components, the bottom layer library comprises a plurality of integrated dependent files, the plurality of dependent files correspond to the plurality of business components respectively, and the dependent files provide support for the operation of the corresponding business components;
a shell unit for constructing a browser shell for integrating the business components and their dependent files; wherein
The browser shell, the service layer and the bottom library are in one-way dependence according to the sequence of the browser shell, the service layer and the bottom library;
the service unit, further configured to: analyzing the service of the existing browser and dividing service components; establishing a component project according to the divided service components; establishing an independent debugging folder in the component project, wherein the independent debugging folder is used for placing class files for independently debugging the service components; and stripping the divided service components from the existing browser, and placing the stripped service components into the corresponding component project engineering.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
8. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-5 are implemented when the program is executed by the processor.
CN201811423717.1A 2018-11-26 2018-11-26 Browser implementation method and device and mobile terminal Active CN109614081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811423717.1A CN109614081B (en) 2018-11-26 2018-11-26 Browser implementation method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811423717.1A CN109614081B (en) 2018-11-26 2018-11-26 Browser implementation method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN109614081A CN109614081A (en) 2019-04-12
CN109614081B true CN109614081B (en) 2022-03-29

Family

ID=66004753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811423717.1A Active CN109614081B (en) 2018-11-26 2018-11-26 Browser implementation method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN109614081B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569063B (en) * 2019-08-30 2023-05-02 五八有限公司 Sub-application APP generation method and generation device
CN112416357A (en) * 2020-11-17 2021-02-26 杭州米络星科技(集团)有限公司 Communication method and device based on business module and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807193A (en) * 2009-12-31 2010-08-18 优视科技有限公司 Browsing method used for mobile communication equipment terminal
WO2012071653A1 (en) * 2010-11-30 2012-06-07 Fabric Engine Inc. Method and system for executing a browser application
CN105760166A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 Source code automatic construction achieving method based on layering
CN107908403A (en) * 2017-11-10 2018-04-13 北京搜狐新动力信息技术有限公司 A kind of collocation method and system of the modularization of mobile terminal business module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807193A (en) * 2009-12-31 2010-08-18 优视科技有限公司 Browsing method used for mobile communication equipment terminal
WO2012071653A1 (en) * 2010-11-30 2012-06-07 Fabric Engine Inc. Method and system for executing a browser application
CN105760166A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 Source code automatic construction achieving method based on layering
CN107908403A (en) * 2017-11-10 2018-04-13 北京搜狐新动力信息技术有限公司 A kind of collocation method and system of the modularization of mobile terminal business module

Also Published As

Publication number Publication date
CN109614081A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
US10664388B2 (en) Continuous integration testing for network-based applications
CN106649084B (en) The acquisition methods and device of function call information, test equipment
US7337436B2 (en) System and method for cross platform and configuration build system
CN109918055B (en) Application program generation method and device
CN112416318B (en) Micro-service development method and device, storage medium and electronic equipment
CN109614081B (en) Browser implementation method and device and mobile terminal
CN110673887B (en) Application program starting method and device, terminal equipment and readable storage medium
CN110300082A (en) A kind of interface creation method, device and storage medium
CN113672342A (en) Embedded virtualization system, construction method, test method, terminal and medium
US20130254832A1 (en) Security Protection Domain-Based Testing Framework
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
US20190394087A1 (en) Automatic configuration of virtual network functions
CN106802790B (en) Method, equipment and system for managing application user use information based on cloud platform
EP4036716A1 (en) Method and device for acquiring mirror image file
CN113296742A (en) APP data processing method and device and mobile terminal
CN110659189B (en) Application program generation method and device, cloud server and readable storage medium
CN112685040A (en) Method, device, equipment and storage medium for generating interface file in android system
US9135027B1 (en) Code generation and execution for dynamic programming languages
KR20130020135A (en) System and method of providing the developer list of developing code simultaneously in an integrated development environment
WO2017128589A1 (en) Method of generating executable file and art virtual machine execution method and device
CN115291933A (en) Method, device and equipment for constructing small program data packet and storage medium
CN114637514A (en) SDK compiling method, device, terminal and storage medium
WO2023038715A1 (en) Hot reloading a running application with an unsaved source code change
CN111158684B (en) System creation method, device, electronic equipment and readable storage medium
US10768911B2 (en) Managing software components for software application development

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
GR01 Patent grant
GR01 Patent grant