Giter VIP home page Giter VIP logo

android-weex's Introduction

跨平台研发

本demo工程仅供参考

assets文件夹中会根据您在平台上选定的首页结构自动生成weex-container.json文件,例如:

{
  "TabSize": "5",
  "JsSource": [
    "http://page1.js",
    "http://page2.js",
    "http://page3.js",
    "http://page4.js",
    "http://page5.js"
  ]
}
  • TabSize = 0 将进入原生首页,启动Activity为WelcomeActivity.java,里面是一些诸如mtop、高可用等相关SDK的使用demo
  • TabSize > 1 将进入多tab的跨平台首页(weex),每个tab所渲染的是JsSource下面的具体的路径所示js bundle
  • TabSize > = 同上,将进入单页面跨平台首页

以上逻辑可参考SplashActivity.java

H5开发

SDK接入请参考 https://yuque.antfin-inc.com/sp3clu/ktt6f1/hpl7rg

apk 构建

具体参考 buildApk.sh

大致步骤如下:

  1. 先发布bundle version1 到仓库
  2. app 依赖 bundle versin1, 执行 ./gradlew assembleDebug
  3. 安装

android-weex's People

Contributors

ericshanda avatar

Stargazers

 avatar zhangyouquan avatar

Watchers

James Cloos avatar  avatar

Forkers

p79n6a

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.