status-react/modules/react-native-status/android/build.gradle

33 lines
1.1 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
android {
compileSdkVersion 24
buildToolsVersion "23.0.1"
defaultConfig {
minSdkVersion 18
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
}
dependencies {
compile 'com.facebook.react:react-native:+'
2017-05-22 08:43:13 +00:00
compile 'com.instabug.library:instabug:3+'
compile 'com.github.ericwlange:AndroidJSCore:3.0.1'
compile 'status-im:function:0.0.1'
String statusGoVersion = 'develop-gb7fb51d9'
final String statusGoGroup = 'status-im', statusGoName = 'status-go'
// Check if the local status-go jar exists, and compile against that if it does
final String localStatusLibOutputDir = "${rootDir}/../modules/react-native-status/android/libs", localVersion = 'local'
if ( new File("${localStatusLibOutputDir}/${statusGoGroup}/${statusGoName}/${localVersion}/${statusGoName}-${localVersion}.aar").exists() ) {
// Use the local version
statusGoVersion = localVersion
}
compile(group: statusGoGroup, name: statusGoName, version: statusGoVersion, ext: 'aar')
}