CN109614081A - Browser implementation method, device and mobile terminal - Google Patents

Browser implementation method, device and mobile terminal Download PDF

Info

Publication number
CN109614081A
CN109614081A CN201811423717.1A CN201811423717A CN109614081A CN 109614081 A CN109614081 A CN 109614081A CN 201811423717 A CN201811423717 A CN 201811423717A CN 109614081 A CN109614081 A CN 109614081A
Authority
CN
China
Prior art keywords
service component
browser
component
file
operation layer
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.)
Granted
Application number
CN201811423717.1A
Other languages
Chinese (zh)
Other versions
CN109614081B (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

Classifications

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

Abstract

The embodiment of the present application provides a kind of browser implementation method, device and mobile terminal, the method comprise the steps that establishing multiple Service Component respectively, the Service Component includes the unique portion for realizing its business, it is mutually indepedent between multiple Service Component, mutually without dependence between multiple Service Component;Multiple dependent files are established respectively, and multiple dependent files are respectively corresponded with multiple Service Component, and the dependent file provides support for the corresponding Service Component operation;The Service Component and its dependent file are integrated with browser shell;The plurality of Service Component is integrated in operation layer, and multiple dependent files are integrated in bottom library;The browser shell, the operation layer and the bottom library are unidirectionally relied on by the sequence of the browser shell, the operation layer and the bottom library.The present processes improve compilation speed.

Description

Browser implementation method, device and mobile terminal
Technical field
This application involves field of computer technology, eventually in particular to a kind of browser implementation method, device and movement End.
Background technique
The application belongs to the relevant technologies relevant to the application for the description of background technique, be only used for explanation and just In the application content for understanding the application, it should not be construed as applicant and be specifically identified to or estimate applicant being considered the application for the first time The prior art for the applying date filed an application.
With browser business explosion, existing browser project framework, can not fine concurrent development, item code gets over Come bigger, compilation speed is slower and slower, and project cost increasing is familiar with by new person and Team Member, and project maintenance difficulty improves, and influences Development efficiency.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of browser implementation method, device and mobile terminal.
In a first aspect, this application provides a kind of browser implementation methods, which comprises
Multiple Service Component are established respectively, and the Service Component includes the unique portion for realizing its business, multiple industry It is engaged between component independently of each other, mutually without dependence between multiple Service Component;
Multiple dependent files are established respectively, and multiple dependent files are respectively corresponded with multiple Service Component, described Dependent file provides support for the corresponding Service Component operation;
The Service Component and its dependent file are integrated with browser shell;Wherein
Multiple Service Component are integrated in operation layer, and multiple dependent files are integrated in bottom library;
The browser shell, the operation layer and institute are pressed in the browser shell, the operation layer and the bottom library The sequence for stating bottom library unidirectionally relies on.
Second aspect, the embodiment of the present application provide a kind of browser realization device, comprising:
Business unit is used to construct operation layer, and the operation layer includes multiple Service Component, and the Service Component includes Realize the unique portion of its business, it is mutually indepedent between multiple Service Component, between multiple Service Component mutually without according to Rely;
Bottom floor units are used to construct bottom library, and the bottom library is used to provide support to the operation of the Service Component, The bottom library includes integrated multiple dependent files, and multiple dependent files are respectively corresponded with multiple Service Component, The dependent file provides support for the corresponding Service Component operation;
Outer cover unit, is used to construct browser shell, the browser shell for integrate the Service Component and its Dependent file;Wherein
The browser shell, the operation layer and institute are pressed in the browser shell, the operation layer and the bottom library The sequence for stating bottom library unidirectionally relies on.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence, when which is executed by processor the step of realization any of the above-described method.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, processor and are stored in storage On device and the computer program that can run on a processor, the processor realize any of the above-described method when executing described program The step of.
The embodiment of the present application has the following beneficial effects:
The browser implementation method of the embodiment of the present application establishes multiple Service Component and multiple dependent files, institute respectively Stating Service Component includes the unique portion for realizing its business, mutually indepedent, multiple business between multiple Service Component Mutually without dependence between component;The dependent file provides support for the corresponding Service Component operation;With browser shell collection At the Service Component and its dependent file at;The plurality of Service Component is integrated in operation layer, multiple dependence texts Part is integrated in bottom library;The browser shell, the business are pressed in the browser shell, the operation layer and the bottom library The sequence in layer and the bottom library unidirectionally relies on.It is parallel that developer may be implemented in the browser implementation method of the embodiment of the present application Exploitation improves project compilation speed, everyone need to only pay close attention to oneself responsible Service Component, and project cost is familiar in reduction, convenient for dimension Shield.
Detailed description of the invention
Fig. 1 shows the flow chart of the first embodiment of the browser implementation method of the application;
Fig. 2 shows the flow charts of the second embodiment of the browser implementation method of the application;
Fig. 3 shows the flow chart of the 3rd embodiment of the browser implementation method of the application;
Fig. 4 shows the structural schematic diagram of an embodiment of the browser implementation method of the application;
Fig. 5 shows the structural schematic diagram of an embodiment of the browser realization device of the application;
Fig. 6 shows the structural schematic diagram of an embodiment of the browser realization device of the application.
Specific embodiment
The application is described in further detail combined with specific embodiments below, but not as the restriction to the application.? In following the description, what different " embodiment " or " embodiment " referred to is not necessarily the same embodiment.In addition, one or more are implemented Special characteristic, structure or feature in example can be combined by any suitable form.
Mobile terminal involved in the embodiment of the present application includes but is not limited to mobile phone, tablet computer, laptop computer etc..
In a first aspect, the embodiment of the present application provides a kind of browser implementation method, Fig. 1 shows the browser of the application The flow chart of one embodiment of implementation method.Referring to Fig. 1, which includes:
Establish multiple Service Component respectively, Service Component includes the unique portion for realizing its business, multiple Service Component it Between it is mutually indepedent, mutually without dependence between multiple Service Component;
Multiple dependent files are established respectively, and multiple dependent files are respectively corresponded with multiple Service Component, and dependent file is pair The Service Component operation answered provides support;
With browser shell integrated service component and its dependent file;Wherein
Multiple Service Component are integrated in operation layer, and multiple dependent files are integrated in bottom library;
Browser shell, operation layer and bottom library are unidirectionally relied on by the sequence of browser shell, operation layer and bottom library.
The browser implementation method of the embodiment of the present application establishes multiple Service Component and multiple dependent files, service groups respectively Part includes the unique portion for realizing its business, mutually indepedent between multiple Service Component, mutually without dependence between multiple Service Component; Dependent file provides support for the operation of corresponding Service Component;With browser shell integrated service component and its dependent file;Its In multiple Service Component be integrated in operation layer, multiple dependent files are integrated in bottom library;Browser shell, operation layer and bottom library It is unidirectionally relied on by the sequence of browser shell, operation layer and bottom library.The browser implementation method of the embodiment of the present application can be real Existing developer's concurrent development, improves project compilation speed, everyone need to only pay close attention to oneself responsible Service Component, and item is familiar in reduction Mesh cost, it is convenient for safeguarding.The method of the embodiment of the present application improves development efficiency and iteration speed, implements paving for subsequent plug-in unitization Road.
In the embodiment of the present application, browser shell is not related to complicated business, and browser shell is for sending out integrated packing Cloth can be used for being packaged debugging.It is packaged to debug to can be for all Service Component to be combined and carries out packing debugging, it can also To be to be combined partial service component to carry out packing debugging.It, can will be complete for example, objective browser has 10 Service Component 10, portion Service Component, which is combined, carries out packing debugging, and can also be is only by a part (such as 10 Service Component therein In any two or more than two Service Component) Service Component is combined and carries out packing debugging.In the embodiment of the present application Browser shell for example can be App shell.
In the embodiment of the present application, operation layer includes multiple Service Component.Each Service Component include realize its business it is peculiar Part.Such as each Service Component includes its own specific display interface, correlation technique, code file of business etc..It is multiple It is mutually indepedent between Service Component, mutually without dependence between multiple Service Component.
In the embodiment of the present application, bottom library is used to provide related data, method, public display to the Service Component of operation layer Interface, belong to common resource etc..Such as include ui, tool-class, third party's class libraries etc..Pass through the Service Component in operation layer Project file under, add one configuration dependence.
In the embodiment of the present application, common portion is put into bottom library and is relied on for operation layer and browser shell, operation layer Each Service Component solely decouples, mutually without dependence between Service Component.It is parallel that developer may be implemented in the method for the embodiment of the present application Exploitation improves project compilation speed, everyone need to only pay close attention to oneself responsible Service Component, and project cost is familiar in reduction, convenient for dimension Shield improves development efficiency and iteration speed, paves the way for the implementation of subsequent plug-in unitization.
In the application alternative embodiment, bottom library further includes Integrated Development mode and component development paradigm switching switch.If Switch switching to Integrated Development mode, the Service Component of operation layer compilation run together;If switching switching to component Development mode, the independent compilation run of the Service Component of operation layer.
In the embodiment of the present application, by setting switching switch, not only can the independent compilation run debugging of each Service Component, but also Publication can be combined with multiple Service Component.A file is defined in entire browser projects specifically, can be, For configuring the switch (such as Integrated Development mode and component development paradigm switching switch) of an entirety, switching switch is realized It is the independent compilation run of each component, or all closes and further play compilation run.Each Service Component is gone according to this configuration Execute different operation and configuration.Such as customer center component, if it find that switching switch needs oneself individually to compile, just The code configuration oneself individually compiled can be executed, oneself will not be incorporated into and compile together.Browser shell also can be whole according to this The switchgear distribution of body is packaged for judging that the multiple Service Component of this are combined compiling, still allows each component each From isolated operation.
The specific setting of switching switch is exemplified below, such as in the gradle.properties of android engineering project Middle defconstant isModule=false, isModule are the switching switches of " Integrated Development mode " and " component development paradigm ". Concrete implementation code is exemplified below:
The method of the embodiment of the present application can be used for developing a completely new browser, can be used for existing browsing Device optimizes transformation.When the method for the embodiment of the present application is used to develop a completely new browser, according to objective browser Plan of operation, by the different Service Component of delineation of activities.The method of the embodiment of the present application is used to carry out existing browser excellent When changing transformation, plan of operation that can be existing and later according to browser, by the different Service Component of delineation of activities.Wherein basis The Service Component of the existing delineation of activities of browser, can split out different Service Component.
Fig. 2 shows the flow charts of the second embodiment of the browser implementation method of the application.Referring to fig. 2, the application can It selects in embodiment, establishing multiple Service Component includes: the business for analyzing existing browser, divides Service Component;According to division Service Component establishes component project engineering;The Service Component of division is stripped out from existing browser, by what is be stripped out Service Component is put into corresponding component project engineering.The application alternative embodiment is transformed for existing browser, according to browser The Service Component of existing delineation of activities splits out different Service Component.The present embodiment can be reduced to existing browser The workload of transformation.
In the application alternative embodiment, it includes: that basis is drawn that the Service Component of division is stripped out from existing browser File is cut out by the Service Component divided from existing browser;It will be cut out in the file come, what other Service Component relied on Remove part.When to the transformation of existing browser, since many common file couplings are serious before.The application alternative embodiment according to The Service Component of division by file from existing browser be cut out come after, remove other Service Component dependence part, avoid industry It is relied between business each Service Component of layer.It can be combined by multiplex roles, the mode inherited less removes common file, and it is inconvenient to solve In the fractionation of Service Component the problem of.
In the application alternative embodiment, the part that other Service Component removed rely on is put into bottom library.By what is removed The part that other Service Component rely on is put into bottom library, can rely on for other assemblies.
In the embodiment of the present application, when existing browser is transformed, browser existing business is analyzed, can first find later period change Dynamic few, relatively independent business module, such as the individual center of browser.By the way that service groups can be better achieved to difficulty by letter The fractionation of part.Service Component, which only retains, realizes its business unique portion, therefore from the file that existing browser is cut out, His business also has dependence, also want in use, first other business dependant parts are removed, the part removed then is put into bottom library Inside engineering, used as common part for operation layer.
In the embodiment of the present application, Service Component can be independent compilation run, is also possible to multiple Service Component and closes one Play compilation run.There are the possibility of conflict.Fig. 3 shows the process of the 3rd embodiment of the browser implementation method of the application Figure.Referring to Fig. 3, in the application alternative embodiment, multiple Service Component are established further include: establish in component project engineering independent Debugging file folder, independent debugging file press from both sides the class file individually debugged for placing Service Component.In the embodiment of the present application, every The component project engineering of a Service Component establishes independent debugging file folder, and the class file that Service Component is individually debugged is placed on the list In only debugging file folder.In the independent compilation run of Service Component, the Service Component in independent debugging file folder is called individually to adjust The class file of examination.When multiple Service Component are combined compilation run, the operating file of browser shell is called, will not be called The class file that Service Component in independent debugging file folder is individually debugged.Therefore it will not clash.For example, component is individually debugged An application is needed, can be conflicted with the application of App shell.It is new in component engineering using this alternative embodiment An independent debugging file folder (such as being named as debug) is built, the class file individually debugged for Service Component is placed on the inside. Multiple Service Component will not load the class file inside debug file when being combined compilation run.
In the application alternative embodiment, integrated service component and its dependent file include: the life for detecting Service Component resource Name;The name for the Service Component resource that will test is changed to the peculiar title of Service Component.In the embodiment of the present application, each business During component carries out stand-alone development, it is possible that a picture is named a, B by resource naming conflict, such as A Service Component One picture is also named a by Service Component.When A component and B component are combined integrated be packaged, due to that can not identify use Which picture a is compiled, and will be reported an error, and will lead to the integrated compiling of project only.In the application alternative embodiment, in integrated industry When business component and its dependent file, the name of Service Component resource is detected;The name for the Service Component resource that will test is changed For the peculiar title of Service Component.For example, before the name for the Service Component resource that will test plus the business component name Sew.Such as the picture a A Service Component, become Aa when integrated, by the picture a of B Service Component, in integrated compiling When, it will become Ba.The present embodiment can allow developer, name without manually going to each resource, automatic when integrated Resource name is changed, it is distinguished.
In the application alternative embodiment, integrated service component and its dependent file further include: detect the dependence text of each component Part rejects the abundant part of dependent file.Apply in embodiment, each Service Component carries out stand-alone development or Service Component split process In, it is possible that the packet that different business component relies on repeats.Such as the dependent file of A Service Component includes data a, data b With data c, the dependent file of B Service Component includes data c, data d and data e.When integrated, data c is repeated.The application can It selects in embodiment, detects the dependent file of each component, reject the abundant part of dependent file, solve the problems, such as repetition dependence.
Second aspect.The embodiment of the present application provides a kind of browser realization device.The device of the present embodiment may be implemented The method of above-described embodiment can be used for understanding above-described embodiment below in relation to the associated description of the embodiment of browser realization device Control method.Fig. 4 shows the structural schematic diagram of an embodiment of the browser realization device of the application.Referring to fig. 4, this Shen Please the browser realization device of embodiment include:
Business unit 10 is used to construct operation layer, and operation layer includes multiple Service Component, and Service Component includes realizing it The unique portion of business, it is mutually indepedent between multiple Service Component, mutually without dependence between multiple Service Component;
Bottom floor units 20, are used to construct bottom library, and bottom library is used to provide support, bottom library to the operation of Service Component Including integrated multiple dependent files, multiple dependent files are respectively corresponded with multiple Service Component, and dependent file is corresponding industry Business assembly operating provides support;
Outer cover unit 30 is used to construct browser shell, and browser shell is for integrated service component and its relies on text Part;Wherein
Browser shell, operation layer and bottom library are unidirectionally relied on by the sequence of browser shell, operation layer and bottom library.
The browser realization device of the embodiment of the present application is distinguished by business unit 10, bottom floor units 20 and outer cover unit 30 Component operation layer, bottom library and browser shell, operation layer include multiple Service Component, and Service Component includes realizing its business Unique portion, it is mutually indepedent between multiple Service Component, mutually without dependence between multiple Service Component;Bottom library is used for service groups The operation of part provides support, and bottom library includes integrated multiple dependent files, and multiple dependent files and multiple Service Component are distinguished Corresponding, dependent file provides support for the operation of corresponding Service Component.Browser shell is used for integrated service component and its dependence File;Browser shell, operation layer and bottom library are unidirectionally relied on by the sequence of browser shell, operation layer and bottom library.This Shen Please the browser realization device of embodiment may be implemented developer's concurrent development, improve project compilation speed, everyone only needs to close Oneself responsible Service Component is infused, project cost is familiar in reduction, convenient for safeguarding.The method of the embodiment of the present application improves exploitation effect Rate and iteration speed are paved the way for the implementation of subsequent plug-in unitization.
In the embodiment of the present application, the operation layer that business unit 10 constructs includes multiple Service Component.Each Service Component includes Realize the unique portion of its business.Such as each Service Component includes its own specific display interface, correlation technique, business Code file etc..It is mutually indepedent between multiple Service Component, mutually without dependence between multiple Service Component.
In the embodiment of the present application, the bottom library that bottom floor units 20 construct is used to provide dependency number to the Service Component of operation layer According to method, the interface of public display belongs to common resource etc..Such as include ui, tool-class, third party's class libraries etc..By Under the project file of the Service Component of operation layer, the dependence of a configuration is added.
In the embodiment of the present application, bottom floor units 20 by common portion be put into bottom library for operation layer and browser shell according to Rely, each Service Component of operation layer solely decouples, mutually without dependence between Service Component.The device of the embodiment of the present application may be implemented out Hair personnel's concurrent development improves project compilation speed, everyone need to only pay close attention to oneself responsible Service Component, reduction be familiar with project at This, it is convenient for safeguarding, development efficiency and iteration speed are improved, is paved the way for the implementation of subsequent plug-in unitization.
In the application alternative embodiment, the bottom library that bottom floor units 20 construct further includes Integrated Development mode and Components Development Mode selector switch.If switching switching to Integrated Development mode, the Service Component of operation layer compilation run together;If switching Switching is to component development paradigm, the independent compilation run of the Service Component of operation layer.
In the embodiment of the present application, by setting switching switch, not only can the independent compilation run debugging of each Service Component, but also Publication can be combined with multiple Service Component.A file is defined in entire browser projects specifically, can be, For configuring the switch (such as Integrated Development mode and component development paradigm switching switch) of an entirety, switching switch is realized It is the independent compilation run of each component, or all closes and further play compilation run.Each Service Component is gone according to this configuration Execute different operation and configuration.Such as customer center component, if it find that switching switch needs oneself individually to compile, just The code configuration oneself individually compiled can be executed, oneself will not be incorporated into and compile together.Browser shell also can be whole according to this The switchgear distribution of body is packaged for judging that the multiple Service Component of this are combined compiling, still allows each component each From isolated operation.
The device of the embodiment of the present application can be used for developing a completely new browser, can be used for existing browsing Device optimizes transformation.When the device of the embodiment of the present application is used to develop a completely new browser, according to objective browser Plan of operation, by the different Service Component of delineation of activities.The method of the embodiment of the present application is used to carry out existing browser excellent When changing transformation, plan of operation that can be existing and later according to browser, by the different Service Component of delineation of activities.Wherein basis The Service Component of the existing delineation of activities of browser, can split out different Service Component.
Fig. 5 shows the flow chart of the second embodiment of the browser realization device of the application.Referring to Fig. 5, the application can It selects in embodiment, business unit 10 includes: analysis module 11, is used to analyze the business of existing browser, divides Service Component; Engineering module 12 is used to establish component project engineering according to the Service Component of division;Strip module 13 is used to divide Service Component is stripped out from existing browser, and the Service Component being stripped out is put into corresponding component project engineering.This Apply for that alternative embodiment is transformed for existing browser, according to the Service Component of the existing delineation of activities of browser, splits out Different Service Component.The present embodiment can reduce the workload to the transformation of existing browser.
In the application alternative embodiment, strip module 13 includes: shear module, and being used for will according to the Service Component of division File is cut out to come from existing browser;Rely on strip module, be used to be cut out come file in, other Service Component according to Remove bad part.When to the transformation of existing browser, since many common file couplings are serious before.The application alternative embodiment File is cut out come after from existing browser according to the Service Component of division, removes the part of other Service Component dependence, keeps away Exempt to rely between each Service Component of operation layer.It can be combined by multiplex roles, the mode inherited less removes common file, solves The problem of being not easy to the fractionation of Service Component.
In the application alternative embodiment, the part that other Service Component removed rely on is put into bottom library.By what is removed The part that other Service Component rely on is put into bottom library, can rely on for other assemblies.
In the embodiment of the present application, Service Component can be independent compilation run, is also possible to multiple Service Component and closes one Play compilation run.There are the possibility of conflict.Fig. 6 shows the process of the 3rd embodiment of the browser realization device of the application Figure.Referring to Fig. 6, in the application alternative embodiment, business unit 10 further include: debugging module 14 is used in component project Engineering establishes independent debugging file folder, and independent debugging file presss from both sides the class file individually debugged for placing Service Component.The application In embodiment, independent debugging file folder is established in the component project engineering of each Service Component, Service Component is individually debugged Class file is placed in the independent debugging file folder.In the independent compilation run of Service Component, call in independent debugging file folder The class file that Service Component is individually debugged.When multiple Service Component are combined compilation run, the fortune of browser shell is called Style of writing part, the class file that the Service Component in independent debugging file folder will not be called individually to debug.Therefore it will not clash.Example Such as, component, which is individually debugged, needs an application, can conflict with the application of App shell.Using this optional implementation Example, in newly-built one independent debugging file folder (such as being named as debug) of component engineering, what is individually debugged for Service Component Class file is placed on the inside.Multiple Service Component will not load the class file inside debug file when being combined compilation run.
Those skilled in the art can be understood that " unit " or " module " in the embodiment of the present application can be Can complete independently or with other component cooperate complete specific function software and/or hardware, wherein hardware for example can be FPGA (Field-Programmable Gate Array, field programmable gate array), IC (Integrated Circuit, collection At circuit) etc., this is no longer going to repeat them.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey The step of sequence, which realizes aforementioned any embodiment method when being executed by processor.Wherein, computer readable storage medium can To include but is not limited to any kind of disk, including floppy disk, CD, DVD, CD-ROM, mini drive and magneto-optic disk, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory device, magnetic or optical card, nanosystems (including molecular memory IC), or it is suitable for any kind of medium or equipment of store instruction and/or data.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, processor and are stored in storage On device and the computer program that can run on a processor, processor realize the step of any of the above-described embodiment method when executing program Suddenly.In the embodiment of the present application, processor is the control centre of computer system, can be the processor of physical machine, can also be with It is the processor of virtual machine.
Mobile terminal in the embodiment of the present application includes but is not limited to mobile phone, tablet computer, laptop computer etc..
In this application, term " first ", " second " etc. are only used for the purpose of description, are not understood to indicate or imply Relative importance or sequence;Term " multiple " then refers to two or more, unless otherwise restricted clearly.Term " installation ", The terms such as " connected ", " connection ", " fixation " shall be understood in a broad sense, for example, " connection " may be a fixed connection, being also possible to can Dismantling connection, or be integrally connected;" connected " can be directly connected, can also be indirectly connected through an intermediary.For this For the those of ordinary skill in field, the concrete meaning of above-mentioned term in this application can be understood as the case may be.
In the description of the present application, it is to be understood that the orientation or positional relationship of the instructions such as term " on ", "lower" be based on Orientation or positional relationship shown in the drawings is merely for convenience of description the application and simplifies description, rather than indication or suggestion institute The device or unit of finger must have specific direction, be constructed and operated in a specific orientation, it is thus impossible to be interpreted as to this Shen Limitation please.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (10)

1. a kind of browser implementation method, which comprises
Multiple Service Component are established respectively, and the Service Component includes the unique portion for realizing its business, multiple service groups It is mutually indepedent between part, mutually without dependence between multiple Service Component;
Multiple dependent files are established respectively, and multiple dependent files are respectively corresponded with multiple Service Component, the dependence File provides support for the corresponding Service Component operation;
The Service Component and its dependent file are integrated with browser shell;Wherein
Multiple Service Component are integrated in operation layer, and multiple dependent files are integrated in bottom library;
The browser shell, the operation layer and the bottom are pressed in the browser shell, the operation layer and the bottom library The sequence in layer library unidirectionally relies on.
2. the method according to claim 1, wherein the bottom library further include:
Integrated Development mode and component development paradigm switching switch;
If the switching switching is to Integrated Development mode, the Service Component of operation layer compilation run together;
If the switching switching is to component development paradigm, the independent compilation run of the Service Component of the operation layer.
3. the method according to claim 1, wherein wherein, establishing multiple Service Component includes:
The business of existing browser is analyzed, Service Component is divided;
Component project engineering is established according to the Service Component of division;
The Service Component of division is stripped out from existing browser, the Service Component being stripped out is put into corresponding described Component project engineering.
4. according to the method described in claim 3, it is characterized in that, the Service Component by division is shelled from existing browser It separates out to include:
According to the Service Component of division by file from existing browser be cut out come;
It will be cut out in the file come, the part that other Service Component rely on is removed.
5. according to the method described in claim 4, it is characterized by further comprising:
The part that other Service Component removed rely on is put into the bottom library.
6. according to the method described in claim 3, it is characterized in that, described establish multiple Service Component further include:
Independent debugging file folder is established in the component project engineering, the independent debugging file folder is for placing Service Component list The class file solely debugged.
7. the method according to claim 1, wherein wherein, integrate the Service Component and its dependent file at Include:
Detect the name of Service Component resource;
The name for the Service Component resource that will test is changed to the peculiar title of the Service Component.
8. a kind of browser realization device, comprising:
Business unit is used to construct operation layer, and the operation layer includes multiple Service Component, and the Service Component includes realizing The unique portion of its business, it is mutually indepedent between multiple Service Component, mutually without dependence between multiple Service Component;
Bottom floor units are used to construct bottom library, and the bottom library is used to provide support to the operation of the Service Component, described Bottom library includes integrated multiple dependent files, and multiple dependent files are respectively corresponded with multiple Service Component, described Dependent file provides support for the corresponding Service Component operation;
Outer cover unit is used to construct browser shell, and the browser shell is for integrating the Service Component and its dependence File;Wherein
The browser shell, the operation layer and the bottom are pressed in the browser shell, the operation layer and the bottom library The sequence in layer library unidirectionally relies on.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-7 the method is realized when row.
10. a kind of mobile terminal including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes any one of the claim 1-7 the method when executing described program The step of.
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 true CN109614081A (en) 2019-04-12
CN109614081B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569063A (en) * 2019-08-30 2019-12-13 五八有限公司 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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569063A (en) * 2019-08-30 2019-12-13 五八有限公司 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

Also Published As

Publication number Publication date
CN109614081B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
Church et al. Understanding the challenges of mobile phone usage data
CN106371826B (en) The method and apparatus of application program cross-system operation
US9372779B2 (en) System, method, apparatus and computer program for automatic evaluation of user interfaces in software programs
CN101645037B (en) Integrated test coverage analysis method of foundational software platform application program interface
CN109542758B (en) Method and device for testing fault tolerance of application program and computer readable storage medium
KR101541970B1 (en) Test scenario generating device, allication testing system comprising the same, test scenario generating method, and recordable meduim thereof
CN109614081A (en) Browser implementation method, device and mobile terminal
CN110457211A (en) Script performance test methods, device and equipment and computer storage medium
CN106055479A (en) Android application software test method based on compulsory execution
Akour et al. Mobile software testing: Thoughts, strategies, challenges, and experimental study
CN107807883A (en) A kind of unit test method and device of User space NFS
Holl et al. Mobile application quality assurance
Lu et al. Preference-wise testing for Android applications
CN108874470A (en) A kind of information processing method and server, computer storage medium
CN107741907A (en) With reference to bottom instruction and the simulator detection method and device of system information
Asaithambi et al. Towards test case reuse: A study of redundancies in android platform test libraries
CN108628719B (en) Application data acquisition method, medium, device and computing equipment
US20190196947A1 (en) Application Analysis with Flexible Post-Processing
CN112463518A (en) Page full-life-cycle monitoring method, device, equipment and storage medium based on Flutter
US9195568B2 (en) Methods, circuits, apparatus, systems and associated software modules for evaluating code behavior
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN112882921B (en) Fault simulation method and device
Singh et al. Detecting intelligent malware on dynamic Android analysis environments
KR20130065837A (en) Apparatus and method of placing advertisement on service area of smartphone app
CN107766231A (en) A kind of automated testing method and device

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