HOW-TO-BUILD.md
NOTICE: This document is outdated and will be rewritten. (WIP)
The environment required to build weex is categorized by platforms.
1.8+ANDROID_HOME must be configured by using export ANDROID_HOME=/path_to_sdkr18
ANDROID_NDK_HOME must be configured by using export ANDROID_NDK_HOME=/path_to_ndkr18 isn't not tested yet.This article was tested in MacOSX system.
// TODO: update this document
You can build all SDKs with one script as described above, or just build for a single platform step by step.
Install npm dependencies (Please install Node.js v8.0.0+ at first):
npm install
Build bundled js framework (include both vue and rax):
npm run build:jsfm
Build specific js framework:
npm run build:vue
npm run build:rax
cd android
./gradlew :weex_sdk:clean :weex_sdk:assembleRelease
android/sdk/build/outputs/aarExecute command below to compile iOS SDK:
$ xcodebuild -project ios/sdk/WeexSDK.xcodeproj -target WeexSDK_MTL
Then you'll find the iOS library(Framework file) under ios_sdk/Products.