2016-09-07 17:35:04 +00:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
2019-07-29 18:23:32 +00:00
|
|
|
def getStatusGoSHA1 = { ->
|
2019-11-13 13:12:02 +00:00
|
|
|
def statusgoOverridePath = System.getenv("STATUS_GO_SRC_OVERRIDE")
|
|
|
|
if (statusgoOverridePath != null) {
|
|
|
|
printf "build.gradle: Using local version of status-go from ${statusgoOverridePath}"
|
|
|
|
return "unknown" // This value is defined in https://github.com/status-im/status-react/blob/develop/nix/status-go/default.nix, in `srcData.shortRev`
|
|
|
|
}
|
|
|
|
|
2019-07-19 18:42:16 +00:00
|
|
|
def jsonSlurper = new groovy.json.JsonSlurper()
|
|
|
|
def content = new File('../status-go-version.json').text
|
|
|
|
def object = jsonSlurper.parseText(content)
|
|
|
|
|
|
|
|
assert object instanceof Map
|
|
|
|
|
2019-07-29 18:23:32 +00:00
|
|
|
return object.get('commit-sha1').substring(0, 7)
|
2018-09-18 12:22:30 +00:00
|
|
|
}
|
|
|
|
|
2016-09-07 17:35:04 +00:00
|
|
|
android {
|
2019-08-07 10:08:36 +00:00
|
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
2016-09-07 17:35:04 +00:00
|
|
|
|
|
|
|
defaultConfig {
|
2019-08-07 10:08:36 +00:00
|
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
2016-09-07 17:35:04 +00:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-01-24 13:18:34 +00:00
|
|
|
implementation 'com.facebook.react:react-native:+' // from node_modules
|
2018-10-09 09:53:49 +00:00
|
|
|
compile 'com.github.status-im:function:0.0.1'
|
2019-10-21 13:09:57 +00:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.0'
|
2019-07-29 18:23:32 +00:00
|
|
|
implementation(group: 'status-im', name: 'status-go', version: getStatusGoSHA1(), ext: 'aar')
|
2016-10-11 14:24:52 +00:00
|
|
|
}
|