2016-09-07 20:35:04 +03:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
|
2018-09-18 08:22:30 -04:00
|
|
|
def getStatusGoVersion = { ->
|
2019-07-19 20:42:16 +02: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
|
|
|
|
|
|
|
|
return object.version
|
2018-09-18 08:22:30 -04:00
|
|
|
}
|
|
|
|
|
2016-09-07 20:35:04 +03:00
|
|
|
android {
|
2019-01-24 14:18:34 +01:00
|
|
|
compileSdkVersion 28
|
2016-09-07 20:35:04 +03:00
|
|
|
|
|
|
|
defaultConfig {
|
2019-01-24 14:18:34 +01:00
|
|
|
minSdkVersion 23
|
|
|
|
targetSdkVersion 28
|
2016-09-07 20:35:04 +03:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-01-24 14:18:34 +01:00
|
|
|
implementation 'com.facebook.react:react-native:+' // from node_modules
|
2018-10-09 12:53:49 +03:00
|
|
|
compile 'com.github.status-im:function:0.0.1'
|
2017-12-26 10:56:15 +01:00
|
|
|
|
2019-03-25 17:35:01 +01:00
|
|
|
implementation(group: 'status-im', name: 'status-go', version: getStatusGoVersion(), ext: 'aar')
|
2016-10-11 17:24:52 +03:00
|
|
|
}
|