Font Size: a A A

Research And Implementation Of Mobile Internet Middleware System Based On Lua

Posted on:2018-07-28Degree:MasterType:Thesis
Country:ChinaCandidate:J ChengFull Text:PDF
GTID:2428330545461200Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the development and popularization of intelligent mobile devices,people's demand for mobile applications is growing.In order to cover all the platforms,enterprises need to develop various versions for different mobile phone operating systems.Thus,mobile development is facing two problems:on the one hand,the differences of mobile terminal platform cause high development costs,on the other hand,high demand for mobile applications exist in the application market,but developers lack mature and efficient cross-platform mobile application development system.In order to solve above problems,a middleware system is proposed and implemented in this thesis for building cross-platform applications through scripting language Lua.There are differences between the application interfaces provided by iOS and Android system in the progress of implying same or similar functions on the two systems,in order to achieve the goal of building cross-platform mobile application,the first step is to construct the interfaces of different platforms.Through the ion and encapsulation of the same or similar functions under different platforms,a unified cross-platform interface is constructed.Second,the problem of cross platform programming is solved.According to grammatical rules and characteristics of Lua,develop the rules for the use of encapsulated cross-platform interfaces,and provided to the developer in the form of a Lua interface.Developers only need to construct a Lua code according to interface standard.Finally,the problem of parsing Lua scripts is solved.The Lua language itself does not have the ability to build mobile applications,and the implementation of application functionality ultimately relies on the native framework under different platforms.Through the second development of the Lua virtual machine,the middleware engine is construct,the parsing of the Lua script is realized,then developers can call the corresponding function in the cross-platform interface to successfully achieve the application function.Finally,the middleware system is tested and compared with the current mainstream middleware React Native,which shows that the performance has been significantly improved.At present,the middleware system has passed the acceptance of the project team and entered the deployment stage.
Keywords/Search Tags:mobile development, middleware, Lua, reflex mechanism
PDF Full Text Request
Related items