mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 18:46:19 +00:00
3e7c059b59
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
31 lines
1.0 KiB
Groovy
31 lines
1.0 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion 24
|
|
|
|
defaultConfig {
|
|
minSdkVersion 18
|
|
targetSdkVersion 23
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.facebook.react:react-native:+'
|
|
implementation 'com.instabug.library:instabug:3+'
|
|
implementation 'status-im:function:0.0.1'
|
|
|
|
String statusGoVersion = 'tags-v0.11.0^0-g4afd9e6c-302'
|
|
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
|
|
}
|
|
|
|
implementation(group: statusGoGroup, name: statusGoName, version: statusGoVersion, ext: 'aar')
|
|
}
|