2016-03-31 16:22:47 +08:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion "23.0.1"
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 23
|
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
2018-07-09 20:40:48 +08:00
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
// let gradle pack the shared library into apk
|
|
|
|
jniLibs.srcDirs = ['./lib']
|
2016-03-31 22:54:29 +08:00
|
|
|
}
|
2016-03-31 16:22:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-27 21:02:47 +08:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
2016-06-28 12:08:43 +08:00
|
|
|
url "$rootDir/../node_modules/react-native/android"
|
2016-06-27 21:02:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-31 16:22:47 +08:00
|
|
|
dependencies {
|
|
|
|
compile 'com.facebook.react:react-native:+'
|
|
|
|
}
|