| In recent years, with the giant technology companies investing heavily in wearables, smartwatches, as the representative of wearables, are landing consumer market at an alarming rate. Attracted by the considerable growth of wearables market, more and more developers and designers devote themselves to wearables ecosystem, developing applications for users.However, due to android.webkit API deprecated on Android Wear Platform, some web-based development frameworks cannot be applied to Android Wear Platform. In addition, wearables with limited size and lack of rich interactive ways result in the fact that most developers focus on integrating basic module functions such as sensors, GPS in Android Wear applications. Consequently, Android Wear applications appear to be the way that they mainly rely on Canvas or OpenGL-based vision and animation, supplemented by the integration of some functional modules,which leads to the main cost concentrated on developing UI and functional modules.This thesis focuses on the Android Wear ecological issues mentioned above, researching key technology of visual programming on Android Wear Platform and combining with data-transforming model, to develop the visual application engine that helps developers and designers with fast Android Wear application development on Web. The main achievements of this project include: Through Domain Driven Design concept and hierarchical conception, the overall architecture of app engine is fully studied and well designed. The architecture is divided into 3 parts: frontend interface, Android Wear application template and backend architecture.Frontend is based on finite-state machine principle, employing AngularJS to design and build visual interface that supports users in rich interactive development, and using Service Worker to implement Web offline-edit function. Android Wear template engine follows Domain Object specification , meanwhile integrated by Cocos2D game engine, to encapsulate independent modules with complete business logic such as image, text and functional service. For backend, by exploring the cloud server practice of Nginx+Node.js+Redis cluster deployment, the supportive backend architecture has been developed. At last, this system is deployed on cloud servers, and a list of web performance optimization measures are carried out.The innovation of this thesis is applying visual programming to Android Wear application development by combining the cross-platform advantage of Web with excellent vision and animation ability of game engine. What’s more, the introduction of Domain Driven Design makes the engine model has transferable feature. Besides, some in-depth research and practice on Web offline and system performance optimization are well performed, which proves the feasibility and stability of the engine in this project after a series of tests. It is of theoretical and practical significance to the visual programming research on Android Wear Platform in the future. |