Develop packaging scripts for mobile development

Source: Internet
Author: User

Develop packaging scripts for mobile development
IdeployUsagePreBuild toolsidepoly. py

Used to replace some files and fields before build

Application scenarios
  • Multi-channel build
  • Different packages display different icons or splash
Configuration File ci. yml
Replace_from_pics: Set of file paths to be replaced replace_to_pics: Set of file paths to be replaced template_source_files: Set of file paths to be replaced. The content to be replaced is represented by {replace_content, for example, {id} template_target_files: the set of text file paths to be replaced defines a replace_content, such as replace_content: Hello Yaml
Run
Python idepoly. py (ci. yml is loaded by default) python idepoly. py xx. yml (custom yml, format reference ci. yml)
AfterBuild toolsfirupload. py

Used to upload the package to fir

Application scenarios
The packaged x. ipa or xx.apk needs to be tested by QA and can be distributed through fir.
Install
 sudo easy_install clint sudo easy_install requests sudo easy_install requests_toolbelt
Config. yml
Appid: Application id (android: applicationId, ios: bundleId) token: The Path type of tokenfilepath: xx. ipa/xx.apk provided by fir: ios/android
Run
python firupload.py

Blog: beiliubei

 

Githup: https://github.com/beiliubei/ideploy


How are various mobile development tools implemented?

As this demand grows, more and more developers are paying attention to the development of mobile development tools and libraries, and they are trying to help mobile developers overcome the obstacles to achieving their dreams.
Although the development of this tool is not yet mature, the emergence of HTML5 allows everyone to see the bright future of mobile Web development, it allows users to get rid of native software dependencies.
First, the web is completely open, and it is not subject to the Protocol restrictions of App Store.
Second, program developers can earn 100% of the revenue. Of course, this also means that you must find a new way to get the benefits, which is not simple. However, once a proper method is found, programmers no longer have to hand over 30% of their earnings to Apple.
Third, HTML5 becomes more and more powerful, and its functions become richer. The latest HTML5 version supports local data storage on the client. Currently, it can basically Replace the native app function. In other words, browsers have basically replaced native apps.
Fourth, HTML5 apps are not bound to a specific device. Although most of the promotion is centered around Apple's iPhone, HTML5 apps are easy to migrate to other platforms. Although the platform migration may not be completed simply by pressing the next button, it is much simpler than converting Objective C to Java.
Of course, HTML5 is not omnipotent. The biggest defect of Web apps is the dependency on network connections. It is indeed less responsive than native apps, while native app developers often discuss whether microsecond-level latency affects user experience. Game developers need to weigh each other before using JavaScript programming.
At present, the biggest limit may be the development of the tool itself. Apple's development tool can see the structure of native apps, but it is difficult for mobile browsers to have a deep understanding of the code structure of the application running above. Now there are some development tools and libraries to help programmers simplify the difficulty of web development. The following describes some well-known mobile web development projects.
Mobile web development tool: ChocolateChip-UI (download)
Because the screens on mobile devices are usually relatively small, it is particularly important to design an effective UI for mobile devices. Enter Robert Biggs is a Web programmer from Northern California who developed ChocolateChip-UI as an excellent example for developing mobile interfaces using HTML.
Web Application Markup Language (WAML) used in development is a HTML5-encapsulated programming Language. Using tags provided by WAML (such as <slider> or <stack>) can greatly simplify developers' work. WAML can be used in JavaScript and run on smart phones that support HTML5.
Programmers can combine HTML, CSS, JavaScript, and WAML by specifying the ChocolateChip-UI translation process.
Although this approach is not perfect, it is good enough. I have used other mobile development tools before and none of them can be well encapsulated in JavaScript.
ChocolateChip-UI has basically encapsulated all the components provided by WAML, and the effect is almost the same as that provided by the standard iPhone UI. It even includes an additional Delete list. You can click the mouse to delete the component from the UI.
Mobile Web development tool: Mobl (download)
JavaScript is not easy to use, and Mobl is used to simplify JavaScript development. Mobl is a framework specifically used for application development on Webkit browsers. Instead of using HTML, JavaScript, or CSS coding programs, it directly uses Mobl programming and converts it to HTML, JavaScript, and CSS languages suitable for running on mobile browsers through the Mobl compiler.
Mobl ...... remaining full text>

How can I package if I have finished writing a web project? Can I have an independent program entry on the Mobile End? What technology is used?

How to package depends on what kind of webserver environment is used, such as tomcat, which uses eclipse as the IED development tool. You can use the packaging tool in eclipse to create a war package, you can also compress the files under webroot into zip files, change the zip suffix to war, and then put them under tomcat's webapps. If you have an independent portal on the mobile end, you can use js technology or obtain the user-agent Information on the server to determine whether the mobile phone is used. If the mobile phone is used, direct the page to the Mobile Server. For details, refer to: Tianyi space developer community.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.