mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 13:11:39 +08:00
Precompile ndk files.
This commit is contained in:
@@ -9,13 +9,12 @@ android {
|
|||||||
targetSdkVersion 23
|
targetSdkVersion 23
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
|
}
|
||||||
ndk {
|
sourceSets {
|
||||||
moduleName "rnupdate"
|
main {
|
||||||
ldLibs "log"
|
// let gradle pack the shared library into apk
|
||||||
abiFilters "armeabi-v7a", "x86"
|
jniLibs.srcDirs = ['./lib']
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BIN
android/lib/armeabi-v7a/librnupdate.so
Executable file
BIN
android/lib/armeabi-v7a/librnupdate.so
Executable file
Binary file not shown.
BIN
android/lib/x86/librnupdate.so
Executable file
BIN
android/lib/x86/librnupdate.so
Executable file
Binary file not shown.
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
所以我们也假设你已经拥有了开发React Native应用的一切环境,包括`Node.js`、`npm`、`XCode`、`Android SDK`等等。
|
所以我们也假设你已经拥有了开发React Native应用的一切环境,包括`Node.js`、`npm`、`XCode`、`Android SDK`等等。
|
||||||
|
|
||||||
如果你之前没安装过,你还必须安装[Android NDK](http://androiddevtools.cn),版本最好选用r10e,并设置环境变量`ANDROID_NDK_HOME`,指向你的NDK根目录(例如`/Users/tdzl2003/Downloads/android-ndk-r10e`)。
|
如果React Native的版本是0.45以下,并且你之前没安装过,你还必须安装[Android NDK](http://androiddevtools.cn),版本最好选用r10e,并设置环境变量`ANDROID_NDK_HOME`,指向你的NDK根目录(例如`/Users/tdzl2003/Downloads/android-ndk-r10e`)。0.46以上的React Native不需要这一步。
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user