CN104714830B - The system and method for cross-platform exploitation is realized based on primary development language - Google Patents
The system and method for cross-platform exploitation is realized based on primary development language Download PDFInfo
- Publication number
- CN104714830B CN104714830B CN201510158035.2A CN201510158035A CN104714830B CN 104714830 B CN104714830 B CN 104714830B CN 201510158035 A CN201510158035 A CN 201510158035A CN 104714830 B CN104714830 B CN 104714830B
- Authority
- CN
- China
- Prior art keywords
- mobile solution
- mobile
- file
- primary
- client
- 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
Links
Abstract
The present invention relates to a kind of system and method that cross-platform exploitation is realized based on primary development language, including graphical Mobile solution developing instrument, to move the compiling of the exploitation of application and Mobile solution export;Mobile solution distribution platform, Mobile solution outwards to be issued;Mobile client, to run Mobile solution.Using the system and method that cross-platform exploitation is realized based on primary development language of this kind of structure, not only reduce the complexity of Mobile solution exploitation, make Mobile solution exploitation simple efficient, a set of code only need to be developed, can operates in a variety of mobile platforms, greatly improve the development efficiency of Mobile solution, reduce the cost of code maintenance, optimal Consumer's Experience is brought for user, in addition, the present invention makes to also use increment updating technology, make Mobile solution renewal more convenient, save the network traffics that renewal needs, with wider application.
Description
Technical field
The present invention relates to computer software technical field, more particularly to enterprise mobile application technical field, in particular to one
Kind realizes the system and method for cross-platform exploitation based on primary development language.
Background technology
With Intelligent mobile equipment high speed development and popularization, the continuous breakthrough of mobile network's technology, mobile Internet is
The life style of people is had a deep effect on, mobile applications have gradually substituted the program of some computers, or even have part
Personage has completely disengaged desktop computer, and intelligent movable equipment has surmounted traditional PC, turns into most important network access.
Now, hundreds of Mobile solution is run on every mobile device, make friends, entertain, doing shopping, working etc.
The types of applications that many simple life-form structures can be gradually passed through on mobile device is met.Download and pacify from Mobile Market
Fill various Mobile solutions and reached several hundred million for the download and installation of the Mobile solutions such as a kind of custom, wechat, microblogging
Scale.
Statistics shows, in application market, there is ten hundreds of new opplication restockings daily, Mobile solution also becomes interconnection
Net epoch next big focus.
At present, Mobile solution exploitation mainly has two ways:The first is to use primary technological development.Second is to use
Web technology is developed.
Referred to using primary technological development, the development language and technology provided for Mobile operating system using it is moved
Dynamic application and development.At present, Apple IOS and Google Android operation system account for Mobile operating system 95%
The market share above.The developing instrument Xcode that primary movement needs to use IOS to provide is developed on IOS Mobile operating systems
With development language Object-c.Native applications exploitation is carried out on Android Mobile operating systems needs to use eclipse to develop
Instrument and Android development languages.The respective Mobile solution strapping tool that IOS and Android is provided, application and development are completed
Afterwards, it is necessary to be packed using respective strapping tool, application market is then published to.It can be obtained most preferably using primary exploitation
Performance and Consumer's Experience, be preferably bonded operating system, most sufficiently use the ability of operating system.
Refer to move application and development using Html, Javscript, CSS language using web technology exploitation.Web is developed
For technical sophistication degree than relatively low, study and use are relatively simple.It can be deployed in using the Mobile solution of Web technological development
On Web server, conducted interviews by the browser on mobile device or by using components such as WebView.
Mainly it is disadvantageous in that using primary technological development Mobile solution:First, technical sophistication degree is high, for different
Mobile operating system needs to use different developing instrument and development language, and the occupation mode of developing instrument and the technology of language are thin
The characteristic of section and operating system is all different, for example Object-c is the language for belonging to c series, and Anroid is to belong to java
The development language of system, this significantly increases the learning cost of developer.Second, exploitation maintenance workload is big, a shifting
Dynamic application needs to develop and test for different operating system, and exploitation and the workload safeguarded are multiplied.
Mainly it is disadvantageous in that using Web technological development Mobile solution:First, the Mobile solution performance and use of exploitation
Problem be present in family experience.Second, it is impossible to the ability provided using mobile device, such as camera, positioning etc..
The content of the invention
The purpose of the present invention is to overcome native applications development technique complexity height, exploitation and the maintenance of above-mentioned prior art
The shortcomings that workload is big, there is provided one kind can be implemented in that Mobile operating system, primary development language are unrelated, exploitation is simple, effect
Rate is high, system architecture is simple, reliable and stable, working service is convenient and swift, it is real based on primary development language to have wide range of applications
The system and method for existing cross-platform exploitation.
To achieve these goals, system and the side of the invention that cross-platform exploitation is realized based on primary development language
Method has following form:
This realizes the system of cross-platform exploitation based on primary development language, and it is mainly characterized by, described system bag
Include:
Graphical Mobile solution developing instrument, to move the compiling of the exploitation of application and Mobile solution export;
Mobile solution distribution platform, Mobile solution outwards to be issued;
Mobile client, to run Mobile solution.
It is preferred that described graphical Mobile solution developing instrument includes:
Mobile solution project management module, to move the establishment of application, modification and deletion;
Html file management module, to carry out the establishment of html format file, modification and deletion;
Javascript document management modules, to carry out the establishment of Javascript formatted files, modification and deletion;
CSS document management modules, to carry out the typing of CSS codes, modification and preservation;
Mobile solution compiler engine module, to be compiled when Mobile solution exports to Mobile solution project;
Mobile solution export module, Mobile solution is exported into Mobile solution deployment bag.
It is preferred that described Mobile solution distribution platform includes:
Mobile solution uploading module, to be uploaded Mobile solution based on Web;
Mobile solution management module, to be managed to the Mobile solution of upload;
Mobile solution release module, externally to provide the download channel of Mobile solution.
It is preferred that described mobile client includes:
Engine modules are updated, to download Mobile solution to client from described Mobile solution distribution platform;
Javscript engine modules, to parse, load and run Javascript codes;
CSS engine modules, to parse, load CSS codes;
Bridge modules, to carry out the communication between Javascript codes and primary code;
Widget managers, to load and manage Widget;
UI model modules, the interface of Mobile solution to be described;
UI rendering engine modules, according to UI models, primary UI controls, to render primary UI interfaces.
The invention further relates to a kind of side for realizing cross-platform exploitation based on primary development language by described system
Method, it is characterised in that described method comprises the following steps:
(1) the graphical Mobile solution developing instrument described in moves the exploitation of application;
(2) the graphical Mobile solution developing instrument described in moves the compiling export of application;
(3) the Mobile solution distribution platform described in outwards issues Mobile solution;
(4) mobile client described in is downloaded from described Mobile solution distribution platform and runs Mobile solution.
It is preferred that described graphical Mobile solution developing instrument moves the exploitation of application, comprise the following steps:
Xml format parsers pair are used after (1-1) graphical Mobile solution developing instrument read control prompting configuration file
Described prompting configuration file is parsed and control tip attribute and interface hints model is created in internal memory;
Xml format parsers pair are used after (1-2) graphical Mobile solution developing instrument read control compiling configuration file
Described compiling configuration file carries out parsing generation control compilation model;
(1-3) developer moves application and development;
(1-4) graphical Mobile solution developing instrument creates project operation according to user and mobile item catalogue is created on disk
Structure;
(1-5) graphical Mobile solution developing instrument is created according to user's establishment file to be created accordingly in mobile item catalogue
File.
It is preferred that described graphical Mobile solution developing instrument moves the compiling export of application, including following step
Suddenly:
(2-1) graphical Mobile solution developing instrument exports operation requests according to user and obtains Mobile solution project to be compiled
Storing directory;
(2-2) graphical Mobile solution developing instrument creates temp directory to deposit the intermediate product of compiling;
(2-3) graphical Mobile solution developing instrument traversal project directory, creates identical catalogue knot in temp directory
Structure, and the remaining paper in mobile project in addition to html file and Css files is copied in corresponding temp directory;
(2-4) graphical Mobile solution developing instrument is compiled operation to html file and CSS files;
(2-5) graphical Mobile solution developing instrument is compressed movement of the generation available for issue to compiling temp directory
Using file publishing.
It is preferred that described Mobile solution distribution platform outwards issues Mobile solution, comprise the following steps:
(3-1) user accesses the Mobile solution upload interface of described Mobile solution distribution platform;
(3-2) Mobile solution distribution platform receives upper transmitting file and transmitting file is preserved on disk;
(3-3) Mobile solution distribution platform records the information of issue Mobile solution in database table.
It is preferred that described mobile client is downloaded and runs Mobile solution, comprise the following steps:
(4-1) mobile client downloads Mobile solution file from described Mobile solution distribution platform;
(4-2) mobile client carries out solution to the Mobile solution file of download and is depressed into Mobile solution end applying catalogue;
(4-3) mobile client parses CSS compiling files and CSS models is formed in internal memory;
(4-4) mobile client reads Mobile solution configuration file, and the homepage of Mobile solution is obtained from configuration file
URL;
(4-5) mobile client is changed to homepage URL, is converted into the local file path of mobile client;
(4-6) mobile client reads the code in mobile client file according to homepage file path;
Code in the file that the operation of (4-7) mobile client is read, interface is formed in Javascript engine modules
Control model tree;
(4-8) mobile client is melted into interface control model tree by JSON sequences in Javascript engine modules
Character string simultaneously calls bridge passages, and the character string of serializing is passed to primary rendering engine;
(4-9) mobile client accords with unserializing to json word strings, and interface control model tree is formed at primary end;
(4-10) mobile client uses primary rendering engine module walks control model tree, creates primary control successively;
(4-11) mobile client calls FTP client FTP interface using primary rendering engine module, rendering the whole of completion
Individual primary control instance interface is added on system interface;
(4-12) mobile client shows Mobile solution interface.
The system and method that cross-platform exploitation is realized based on primary development language in the invention is employed, due to carrying
The Mobile solution developing instrument based on HTML, Javascript, CSS has been supplied, by the too development Mobile solution, has been led in application
HTML, Javscript, CSS file are compiled when going out;Then downloaded and run by mobile client.Mobile client is transported
Javascript codes are first loaded and run during row by Javascript engines, form interface description model;Rendered again by primary
Engine creates the interface being made up of primary control.This method not only reduces the complexity of Mobile solution exploitation, makes Mobile solution
Exploitation is simple efficient, only need to develop a set of code, it is possible to operate in a variety of mobile platforms, greatly improve Mobile solution
Development efficiency, the cost for reducing code maintenance.Moreover, Mobile solution operationally generates primary UI controls completely, it is mobile to answer
The function pages being made up of primary control operated with user, so as to bring optimal Consumer's Experience for user.In addition,
The present invention makes to also use increment updating technology, allows Mobile solution to update network flow that is more convenient, saving renewal needs
Amount, has wider application.
Brief description of the drawings
Fig. 1 is the structural representation of the system that cross-platform exploitation is realized based on primary development language of the present invention.
Fig. 2 is the project directory structure schematic diagram of the mobile project of the present invention.
Fig. 3 is flow chart derived from the compiling of the Mobile solution of the present invention.
Fig. 4 is the flow chart that the Mobile solution of the present invention is run in client.
Embodiment
In order to more clearly describe the technology contents of the present invention, carried out with reference to specific embodiment further
Description.
The system that cross-platform exploitation is realized using the primary development language of Mobile solution is realized, including it is graphical mobile
Application development tool, Mobile solution distribution platform, and mobile client.(Fig. 1)
Patterned Mobile solution developing instrument provides the exploitation of Mobile solution and the compiling export ability of Mobile solution, main
To be answered including Mobile solution project management module, html file management, Javascript file managements, CSS file managements, movement
With compiler engine, Mobile solution export module.
The Mobile solution management module provides the establishment, modification and deletion function of Mobile solution.Pass through Mobile solution item
Mesh, which creates function, can create Mobile solution project directory structure.(Fig. 2)
The html file management provides html format document creation, modification, the function of deleting, and provides HTML and edit
Device carries out typing, modification and preservation to html file.
The Javascript file managements provide the function that Javascript formatted files are created, change, deleted, and
Javascript editing machines are provided typing, modification and preservation are carried out to Javascript files.
The CSS file editors provide the typing, modification and preservation function of CSS codes.
The Mobile solution compiler engine is compiled, in project when Mobile solution exports to Mobile solution project
Html file and css files be compiled into intermediate code.
The Mobile solution export module provides Mobile solution export function, and mobile project is exported to can be with Mobile solution
Deployment package.
Mobile solution distribution platform mainly provides Mobile solution issuing function, the shifting developed in Mobile solution development platform
Dynamic application is outwards issued by Mobile solution distribution platform, including Mobile solution uploading module, Mobile solution management module, movement
Using release module.
The Mobile solution uploading module provides the mobile upload ability based on Web.
The Mobile solution management module provides the Mobile solution managerial ability to upload, including application version management, more
New management, release management.
The Mobile solution release module externally provides the download capabilities of Mobile solution.
Mobile client is the operation container of Mobile solution, and mobile client is two versions of IOS and Android, two
Version has identical function and module, is separately operable in IOS and Android operation system.Mobile client
It is responsible for downloading, parses, loads, operation Mobile solution.Mobile client include Mobile solution renewal engine, Javscript engines,
CSS engines, Bridge modules, Widget managers, UI models, UI rendering engines.
The renewal engine is responsible for downloading Mobile solution to client from distribution platform.
The Javscript engines are responsible for parsing, load and running Javascript codes.
The CSS engines are responsible for parsing, load CSS codes.
The Bridge modules are responsible for the communication between Javascript and primary code.Provide Javascript calling
Primary code and primary code call the passage of Javascript codes.
The Widget managers are responsible for loading and manage Widget models.
The UI models are responsible for that the interface of Mobile solution is described.
The UI rendering engines are responsible for, according to UI models, primary UI controls, rendering primary UI interfaces.
Realize that the method that cross-platform exploitation is realized using the primary development language of Mobile solution, including Mobile solution are opened
Hair, Mobile solution export, Mobile solution issue and Mobile solution run four operating procedures.
Described Mobile solution exploitation operation includes following processing step:
(1) user starts developing instrument.
(2) developing instrument carries out system initialization operation.
(3) system read control prompting configuration file, file is parsed using xml format parsers, then including
Deposit middle establishment control tip attribute and interface hints model.Control property and interface hints model are used to compile using html file
When translating device and being developed, the attribute and interface of label and javscript objects to input are prompted, and improve code typing
Efficiency and speed.Attribute cue model includes bookmark name, attribute, attribute default value.Interface hints model includes object type,
Interface name, parameter name.
(4) system read control compiling configuration file, is parsed using xml format parsers to file, raw after parsing
Control compilation model.Control compilation model includes control type, control title, control compiling template file.Control compiles template
File refers to compile the velecity compiling templates required for control.Velocity is a template engine based on java
(template engine).It allows anyone that simple template instruction (template language) is only used only to quote
By the object of java code definitions.
(5) developer moves application and development, and its main flow is to create mobile project, creates and editor HMTL is literary
Part, javascript files and CSS files, import other resources such as picture.
(6) system creates project operation according to user, and mobile item bibliographic structure is created on disk.
(7) system creates HTMl operations according to user, and html file is created in mobile item catalogue.
(8) system creates CSS file operations according to user, and CSS files are created in mobile item catalogue.
(9) system creates Javascript operations according to user, and Javascript files are created in mobile item catalogue.
The Mobile solution export operation includes following processing step:
(1) user completes the exploitation of Mobile solution using Mobile solution development platform, and application export is submitted to development platform
Operation;
(2) system receives user and exports operation requests, obtains the storing directory of Mobile solution project to be compiled.
(3) system creation compiling temp directory, for depositing the intermediate product of compiling.
(4) system traversal project directory, identical bibliographic structure is created in temp directory, and is removed in a mobile project
Remaining paper outside html file and CSS files is copied in corresponding temp directory.
(5) system is compiled operation to html file.
(a) system traversal project reads a html file.
(b) system uses HTML syntax resolver, carries out HTML syntax parsing to html file, forms INTERFACE MODEL tree.
(c) system travels through to INTERFACE MODEL tree, control is compiled into successively corresponding object code, detailed process
It is as follows:
(i) system obtains a control model from INTERFACE MODEL tree, and control type is obtained from control model.
(ii) system calls compiling manager interface, obtains compiling template file of the control model to application according to type
Path.
(iii) system read control compiling template file, the Compile interface of Velecity compiler engines is called, control mould
Type obtains the object code of compiling as input parameter.
(iv) repeat step i, complete model tree is compiled, obtains HMTL files and completely compile object code.
(d) system preserves object code into file, copies in temp directory.
(e) repeat step a, until the html file in a project is completed in compiling.
(6) system is compiled operation to CSS files.
(a) system traversal project reads CSS files.
(b) system uses CSS resolvers, carries out CSS syntax parsings to CSS files, forms CSS models.
(c) system carries out JSON serializings to CSS models, forms JSON character strings.
(d) system preserves JSON character strings into file.
(e) repeat step a, until all CSS files are completed in compiling
(7) system is compressed to compiling temp directory, Mobile solution file publishing of the generation available for issue.
The Mobile solution issue operation includes following processing step:
(a) user uploads the page by the Mobile solution on browser access distribution platform, selects the movement to be uploaded should
With file publishing, upload button is clicked on.
(b) distribution platform receives upper transmitting file, and transmitting file is preserved on disk.
(c) distribution platform records the information of issue application in database table, including:Apply Names, application size, application
Version.
(d) distribution platform waits client downloads Mobile solution.
The Mobile solution operation operation includes following processing step:
(1) mobile client downloads Mobile solution file from publisher server.
(2) mobile client decompresses to the Mobile solution file of download, unzips to client application catalogue.
(3) mobile client initialization CSS engines.
(a) the CSS compiling files in catalogue are applied in the loading of mobile client traversal.
(b) mobile client JSON resolvers, are parsed to CSS compiling files, and CSS models are formed in internal memory,
CSS models include CSS class names, CSS attributes.
(4) mobile client reads Mobile solution configuration file, and the homepage URL of Mobile solution is obtained from configuration file.
(5) mobile client is changed to homepage URL, is converted into the local file path of client.
(6) code of the mobile client in homepage file path reading client file.
(7) mobile client calls the engine-operated interfaces of Javascript, runs the code in the file of reading,
Interface control model tree is formed in Javascript engines.
(8) interface control model tree is melted into character string by Javascript engines by JSON sequences.
(9) Javascript engine callings bridge passages, the character string of serializing is passed to primary rendering engine.
(10) mobile client calls primary rendering engine interface to accord with unserializing to json word strings, and boundary is formed at primary end
Face control model tree.
(11) primary rendering engine traversal control model tree, creates primary control successively.
(a) primary rendering engine obtains a control model object from control tree.
(b) interface of primary rendering engine calling model object, obtains control type from model.
(c) primary rendering engine calls widget manager interfaces, it is real to create a primary control according to control type
Example.
(d) primary rendering engine calls control model object interface, obtains all properties configuration on model
(e) primary rendering engine is called primary control instance object interface that attribute is set and arrived successively according to Property Name
On primary control instance object.
(f) CSS class name of the primary rendering engine in control model, CSS is called to connect engine interface, from CSS engines
Obtain CSS attribute configurations.
(g) primary rendering engine calls primary control instance interface that CSS attributes are set successively according to CSS Property Names
Onto primary control instance object.
(h) repetitive process a, until the control model on whole tree all renders completion
(12) primary rendering engine calls FTP client FTP interface, and the whole primary control instance interface for rendering completion is added
It is added on system interface.
(13) mobile client display interface.
In practice, implementation process of the present invention is as follows:
1) developing instrument initializes, and operating system calls Shell.Start () interface.
2) developing instrument loading control tip model.Hints model manager interface is as follows:
System calls PromptManager load interfaces to load all control tip configurations, calls parseFile interfaces
Prompting configuration file is parsed, ultimately forms a Map structure, control type name is referred to as the key in Map, right in map
The value values answered are Prompt objects.
Control tip model file form is as follows:
3) developing instrument loading control compilation model.Hints model manager interface is as follows:
System calls PromptManager load interfaces to load all control tip configurations, calls parseFile interfaces
Prompting compiling file is parsed, ultimately forms a Map structure, control type name is referred to as the key in Map, right in map
The value values answered are the compiling template files of control.Control compiling template file is the file based on VeleCity syntax formats,
With<div>Exemplified by control, its compiling template file content is:
4) developer is in application development process, creates project, creates HTML, Css, Javascript file operations,
All by calling resource manager interface to complete, resource manager interface is realized as follows:
When developer creates Mobile solution, system calls ResourceManager.createProject to create one
Using when developer creates html file, system calls ResouceManager.createHtmlFile establishment files.
5) export is compiled after the completion of mobile project development, export manager interface is realized as follows:
Developer performs export operation, and system calls ExportManager export interfaces, starts to export.Call
CreateTmpDir interfaces create temp directory, recall copyResource interfaces, project resource copy to temp directory,
CompileHtml and compleCss interfaces are called to be compiled html file and CSS files.Finally, zipFile is called to connect
Mouth is compressed packing to catalogue when zero.
6) html file compilation process is as follows, calls HtmlAnalyzer doanalyz interfaces to be analyzed first, shape
Into Control Tree, then ControlTree is traveled through, obtains each cortal calling
HtmlCompileManager complie interfaces are compiled.
Inputting HTMl file contents is:
<html>
<body>
<The width=" 200 " of div height=" 200 "></div>
</body>
</html>
Result is after compiling:
New Emp.Panel({height:200,width:200});
7) CSS files compilation process is as follows, calls CSSAnalyzer doanalyz interfaces to be analyzed first, is formed
CSSModel, Json serializings then are carried out to CSSModel.
Inputting CSS file contents is:
.MyDivCss
{color:blue;
background:red}
Result is after compiling:
{MyDivCss:{color:blue,background:red}}
8) after client operation, downloading process is as follows:Client call download manager DownloadManager's
Download interfaces, Mobile solution is downloaded from mobile distribution platform.The Deploy interfaces deployment for recalling DeployManager moves
Dynamic application.
9) client call ConfigManager getEntryUrl interfaces obtain mobile portal page from configuration file
The address in face, the convertUrl interface conversions for recalling ConverManage are client local address.
10) client reads entry file code, then calls JavascriptEngine Eval interfaces to perform,
After JavascriptEngine is performed, shape javascript objects, then JavascriptEngine is called to call javasript
The toJson interfaces of object, javascript object sequences are melted into json character strings.
11) JavascriptEngine calls Briger toNative interfaces, and json character strings are passed to primary wash with watercolours
Contaminate engine.
12) primary rendering engine interface is defined as follows:
Client device RdnerEnginer pasre interfaces, unserializing of being ploughed to json characters, are formed at primary end
Json models, render interfaces are then called, primary render is carried out to json models.
With the javascript codes of input:
New Panel({width:200,height:300})
The primary code of actual motion is:
LinerLayout l=New LinerLayout ();
l.setLayoutParams(new LinerLayout.LayoutParams(200,300));
13) client call setContent interfaces, the interface rendered, client is shown again.
The system and method that cross-platform exploitation is realized based on primary development language in the invention is employed, due to carrying
The Mobile solution developing instrument based on HTML, Javascript, Css has been supplied, by the too development Mobile solution, has been led in application
HTML, Javscript, Css file are compiled when going out;Then downloaded and run by mobile client.Mobile client is transported
Javascript codes are first loaded and run during row by Javascript engines, form interface description model;Rendered again by primary
Engine creates the interface being made up of primary control.This method not only reduces the complexity of Mobile solution exploitation, makes Mobile solution
Exploitation is simple efficient, only need to develop a set of code, it is possible to operate in a variety of mobile platforms, greatly improve Mobile solution
Development efficiency, the cost for reducing code maintenance.Moreover, Mobile solution operationally generates primary UI controls completely, it is mobile to answer
The function pages being made up of primary control operated with user, so as to bring optimal Consumer's Experience for user.In addition,
The present invention makes to also use increment updating technology, allows Mobile solution to update network flow that is more convenient, saving renewal needs
Amount, has wider application.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that it can still make
Various modifications and alterations are without departing from the spirit and scope of the present invention.Therefore, specification and drawings are considered as illustrative
It is and nonrestrictive.
Claims (8)
1. a kind of system that cross-platform exploitation is realized based on primary development language, it is characterised in that described system includes:
Graphical Mobile solution developing instrument, it is described to move the compiling of the exploitation of application and Mobile solution export
The exploitation of Mobile solution comprises the following steps:
Using xml format parsers to described after (1-1) graphical Mobile solution developing instrument read control prompting configuration file
Prompting configuration file parsed and control tip attribute and interface hints model created in internal memory;
Using xml format parsers to described after (1-2) graphical Mobile solution developing instrument read control compiling configuration file
Compiling configuration file carry out parsing generation control compilation model;
(1-3) developer moves application and development;
(1-4) graphical Mobile solution developing instrument creates project operation according to user and mobile item catalogue knot is created on disk
Structure;
(1-5) graphical Mobile solution developing instrument is created according to user's establishment file creates corresponding text in mobile item catalogue
Part;
Mobile solution distribution platform, Mobile solution outwards to be issued;
Mobile client, to run Mobile solution.
2. the system according to claim 1 that cross-platform exploitation is realized based on primary development language, it is characterised in that
Described graphical Mobile solution developing instrument includes:
Mobile solution project management module, to move the establishment of application, modification and deletion;
Html file management module, to carry out the establishment of html format file, modification and deletion;
Javascript document management modules, to carry out the establishment of Javascript formatted files, modification and deletion;
CSS document management modules, to carry out the typing of CSS codes, modification and preservation;
Mobile solution compiler engine module, to be compiled when Mobile solution exports to Mobile solution project;
Mobile solution export module, Mobile solution is exported into Mobile solution deployment bag.
3. the system according to claim 1 that cross-platform exploitation is realized based on primary development language, it is characterised in that
Described Mobile solution distribution platform includes:
Mobile solution uploading module, to be uploaded Mobile solution based on Web;
Mobile solution management module, to be managed to the Mobile solution of upload;
Mobile solution release module, externally to provide the download channel of Mobile solution.
4. the system according to claim 1 that cross-platform exploitation is realized based on primary development language, it is characterised in that
Described mobile client includes:
Engine modules are updated, to download Mobile solution to client from described Mobile solution distribution platform;
Java script engine modules, to parse, load and run Javascript codes;
CSS engine modules, to parse, load CSS codes;
Bridge modules, to carry out the communication between Javascript codes and primary code;
Widget managers, to load and manage Widget;
UI model modules, the interface of Mobile solution to be described;
UI rendering engine modules, according to UI models, primary UI controls, to render primary UI interfaces.
5. a kind of system by any one of Claims 1-4 realizes that cross-platform is opened based on primary development language
The method of hair, it is characterised in that described method comprises the following steps:
(1) the graphical Mobile solution developing instrument described in moves the exploitation of application, comprises the following steps:
Using xml format parsers to described after (1-1) graphical Mobile solution developing instrument read control prompting configuration file
Prompting configuration file parsed and control tip attribute and interface hints model created in internal memory;
Using xml format parsers to described after (1-2) graphical Mobile solution developing instrument read control compiling configuration file
Compiling configuration file carry out parsing generation control compilation model;
(1-3) developer moves application and development;
(1-4) graphical Mobile solution developing instrument creates project operation according to user and mobile item catalogue knot is created on disk
Structure;
(1-5) graphical Mobile solution developing instrument is created according to user's establishment file creates corresponding text in mobile item catalogue
Part;
(2) the graphical Mobile solution developing instrument described in moves the compiling export of application;
(3) the Mobile solution distribution platform described in outwards issues Mobile solution;
(4) mobile client described in is downloaded from described Mobile solution distribution platform and runs Mobile solution.
6. the method according to claim 5 that cross-platform exploitation is realized based on primary development language, it is characterised in that
Described graphical Mobile solution developing instrument moves the compiling export of application, comprises the following steps:
(2-1) graphical Mobile solution developing instrument exports operation requests according to user and obtains depositing for Mobile solution project to be compiled
Put catalogue;
(2-2) graphical Mobile solution developing instrument creates temp directory to deposit the intermediate product of compiling;
(2-3) graphical Mobile solution developing instrument traversal project directory, creates identical bibliographic structure in temp directory, and
And the remaining paper in mobile project in addition to html file and Css files is copied in corresponding temp directory;
(2-4) graphical Mobile solution developing instrument is compiled operation to html file and CSS files;
(2-5) graphical Mobile solution developing instrument is compressed Mobile solution of the generation available for issue to compiling temp directory
File publishing.
7. the method according to claim 5 that cross-platform exploitation is realized based on primary development language, it is characterised in that
Described Mobile solution distribution platform outwards issues Mobile solution, comprises the following steps:
(3-1) user accesses the Mobile solution upload interface of described Mobile solution distribution platform;
(3-2) Mobile solution distribution platform receives upper transmitting file and transmitting file is preserved on disk;
(3-3) Mobile solution distribution platform records the information of issue Mobile solution in database table.
8. the method according to claim 5 that cross-platform exploitation is realized based on primary development language, it is characterised in that
Described mobile client is downloaded and runs Mobile solution, comprises the following steps:
(4-1) mobile client downloads Mobile solution file from described Mobile solution distribution platform;
(4-2) mobile client carries out solution to the Mobile solution file of download and is depressed into Mobile solution end applying catalogue;
(4-3) mobile client parses CSS compiling files and CSS models is formed in internal memory;
(4-4) mobile client reads Mobile solution configuration file, and the homepage URL of Mobile solution is obtained from configuration file;
(4-5) mobile client is changed to homepage URL, is converted into the local file path of mobile client;
(4-6) mobile client reads the code in mobile client file according to homepage file path;
Code in the file that the operation of (4-7) mobile client is read, interface control is formed in Javascript engine modules
Model tree;
Interface control model tree is melted into character by (4-8) mobile client in Javascript engine modules by JSON sequences
Go here and there and call bridge passages, the character string of serializing is passed to primary rendering engine;
(4-9) mobile client forms interface control model tree to json character string unserializings at primary end;
(4-10) mobile client uses primary rendering engine module walks control model tree, creates primary control successively;
(4-11) mobile client calls FTP client FTP interface using primary rendering engine module, the whole original for rendering completion
Raw control instance interface is added on system interface;
(4-12) mobile client shows Mobile solution interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510158035.2A CN104714830B (en) | 2015-04-03 | 2015-04-03 | The system and method for cross-platform exploitation is realized based on primary development language |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510158035.2A CN104714830B (en) | 2015-04-03 | 2015-04-03 | The system and method for cross-platform exploitation is realized based on primary development language |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104714830A CN104714830A (en) | 2015-06-17 |
CN104714830B true CN104714830B (en) | 2018-03-30 |
Family
ID=53414200
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510158035.2A Active CN104714830B (en) | 2015-04-03 | 2015-04-03 | The system and method for cross-platform exploitation is realized based on primary development language |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714830B (en) |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105786513A (en) * | 2016-02-29 | 2016-07-20 | 四川长虹电器股份有限公司 | Mixed mobile application development method based on Html5 |
CN107451162B (en) * | 2016-06-01 | 2020-12-18 | 阿里巴巴(中国)有限公司 | Network resource access device, hybrid device and method |
CN107526579A (en) * | 2016-06-22 | 2017-12-29 | 中兴通讯股份有限公司 | A kind of application program page development management method and device |
CN106227517B (en) * | 2016-07-13 | 2019-09-06 | 北京智网易联科技有限公司 | Primary mobile APP software auto generating method and equipment |
CN106407679B (en) * | 2016-09-13 | 2019-03-26 | 上海市徐汇区中心医院 | Mobile interchange cross-platform cross equipment remote diagnosis system |
CN106383723B (en) * | 2016-10-21 | 2019-12-31 | 浪潮通用软件有限公司 | Method for dynamically modifying mobile App program installed by user |
CN106599216A (en) * | 2016-11-30 | 2017-04-26 | 中国航空工业集团公司沈阳飞机设计研究所 | Computer based training courseware publishing system |
CN108614443B (en) * | 2016-12-12 | 2020-09-22 | 中国航空工业集团公司西安航空计算技术研究所 | PHM system model development and verification platform design method |
CN106445564B (en) * | 2016-12-23 | 2019-08-20 | 携程旅游网络技术(上海)有限公司 | There is the mixing quoting method and system of different programming language projects for same platform |
TWI694377B (en) * | 2017-03-17 | 2020-05-21 | 葉振忠 | Development platform of mobile native applications |
CN106980504B (en) | 2017-03-28 | 2022-07-01 | 腾讯科技(深圳)有限公司 | Application program development method and tool and equipment thereof |
CN106990966A (en) * | 2017-03-31 | 2017-07-28 | 中国科学技术大学苏州研究院 | Mobile terminal cross-platform Development Framework and development approach based on front end frame |
CN107193565B (en) * | 2017-05-22 | 2021-02-26 | 北京思序软件有限公司 | Method for developing native APP (application) across mobile terminals |
CN107423823B (en) * | 2017-08-11 | 2020-11-10 | 成都优易数据有限公司 | R language-based machine learning modeling platform architecture design method |
CN107749894A (en) * | 2017-11-09 | 2018-03-02 | 吴章义 | A kind of safety, simple, intelligence Internet of things system |
CN108647028B (en) * | 2018-05-09 | 2024-02-09 | 广州腾讯科技有限公司 | Application information processing method and device |
CN110580146B (en) * | 2018-06-07 | 2023-05-23 | 北京怡合春天科技有限公司 | Mixed application solving system based on eros |
CN110580147B (en) * | 2018-06-07 | 2022-07-05 | 阿里巴巴集团控股有限公司 | Application program development method and device |
CN109117174B (en) * | 2018-07-04 | 2022-03-29 | 北京德惠众合信息技术有限公司 | System and method compatible with front-end pages of different engines |
CN109271148B (en) * | 2018-09-29 | 2022-03-01 | 中国建设银行股份有限公司 | Mobile application generation method and device |
CN109814865B (en) * | 2019-01-18 | 2022-06-03 | 四川长虹电器股份有限公司 | Mobile application page generation method based on json data format |
CN111740948B (en) * | 2020-05-12 | 2023-04-07 | 北京沃东天骏信息技术有限公司 | Data packet issuing method, dynamic updating method, device, equipment and medium |
CN112364269B (en) * | 2020-11-24 | 2023-08-22 | 中国电子科技集团公司第十五研究所 | Method for creating WebApp graphic application based on URL |
CN112799665B (en) * | 2021-01-27 | 2022-12-13 | 视若飞信息科技(上海)有限公司 | Method for constructing App functional interface in WebUI mode |
CN115129325B (en) * | 2022-06-29 | 2023-05-23 | 北京五八信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019538A (en) * | 2012-11-19 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for implementing application interface in terminal |
CN103942225A (en) * | 2013-01-23 | 2014-07-23 | 阿里巴巴集团控股有限公司 | Method and system for invoking resources of Hybrid App client and client |
CN104267957A (en) * | 2014-09-29 | 2015-01-07 | 浪潮通信信息系统有限公司 | Mobile application unified service framework system |
CN104407863A (en) * | 2014-11-21 | 2015-03-11 | 用友软件股份有限公司 | Abstract control model programming device and method |
-
2015
- 2015-04-03 CN CN201510158035.2A patent/CN104714830B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019538A (en) * | 2012-11-19 | 2013-04-03 | 北京奇虎科技有限公司 | Method and system for implementing application interface in terminal |
CN103942225A (en) * | 2013-01-23 | 2014-07-23 | 阿里巴巴集团控股有限公司 | Method and system for invoking resources of Hybrid App client and client |
CN104267957A (en) * | 2014-09-29 | 2015-01-07 | 浪潮通信信息系统有限公司 | Mobile application unified service framework system |
CN104407863A (en) * | 2014-11-21 | 2015-03-11 | 用友软件股份有限公司 | Abstract control model programming device and method |
Also Published As
Publication number | Publication date |
---|---|
CN104714830A (en) | 2015-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104714830B (en) | The system and method for cross-platform exploitation is realized based on primary development language | |
Holdener | Ajax: the definitive guide | |
US8850416B1 (en) | System and method for creating target byte code | |
US7707547B2 (en) | System and method for creating target byte code | |
US9646103B2 (en) | Client-side template engine and method for constructing a nested DOM module for a website | |
CN113031932B (en) | Project development method, apparatus, electronic device and storage medium | |
WO2016005885A2 (en) | Asynchronous initialization of document object model (dom) modules | |
Saternos | Client-server web apps with JavaScript and Java: rich, scalable, and RESTful | |
CN103176778A (en) | Method and device for webpage development | |
CN113553035A (en) | Design and construction method of universal front-end UI component library | |
Kazoun et al. | Programming Flex 2: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex | |
Moiseev et al. | Angular Development with TypeScript | |
US20160012023A1 (en) | Self-Referencing of Running Script Elements in Asynchronously Loaded DOM Modules | |
Shute | Advanced JavaScript: Speed up web development with the powerful features and benefits of JavaScript | |
CN101303663A (en) | Simulation test method for digital set-top box software development | |
Frisbie | Angular 2 Cookbook | |
Benson | Mockup driven web development | |
Hassan et al. | A lightweight approach for migrating Web frameworks | |
Frasincar | Hypermedia presentation generation for semantic web information systems | |
Karlík | Blogging platform utilizing Kentico Cloud and Jekyll static site generator | |
Musto et al. | Transforming object-oriented model to a web interface using XSLT | |
Romão | Migration from Legacy to Reactive Applications in OutSystems | |
Kaufman et al. | Angular 2 Components | |
Baumgartner | Front-End Tooling with Gulp, Bower, and Yeoman | |
Ohri | TypeScript 2. x By Example: Build engaging applications with TypeScript, Angular, and NativeScript on the Azure platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |