2016-09-07 17:35:04 +00:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
|
|
|
android {
|
2017-08-07 12:21:07 +00:00
|
|
|
compileSdkVersion 24
|
2016-09-07 17:35:04 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2017-08-07 12:21:07 +00:00
|
|
|
minSdkVersion 18
|
|
|
|
targetSdkVersion 23
|
2016-09-07 17:35:04 +00:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-01-18 20:52:24 +00:00
|
|
|
implementation 'com.facebook.react:react-native:+'
|
|
|
|
implementation 'com.instabug.library:instabug:3+'
|
|
|
|
implementation 'status-im:function:0.0.1'
|
2017-12-26 09:56:15 +00:00
|
|
|
|
2018-08-14 17:06:41 +00:00
|
|
|
String statusGoVersion = 'develop-g19b53030'
|
2017-12-26 09:56:15 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2018-01-18 20:52:24 +00:00
|
|
|
implementation(group: statusGoGroup, name: statusGoName, version: statusGoVersion, ext: 'aar')
|
2016-10-11 14:24:52 +00:00
|
|
|
}
|