Files

45 lines
1.5 KiB
Groovy
Raw Permalink Normal View History

2016-09-07 20:35:04 +03:00
apply plugin: 'com.android.library'
apply plugin: "org.jetbrains.kotlin.android"
2016-09-07 20:35:04 +03:00
def getStatusGoSHA1 = { ->
def statusgoOverridePath = System.getenv("STATUS_GO_SRC_OVERRIDE")
2019-11-20 13:42:41 +01:00
if (statusgoOverridePath != null && statusgoOverridePath != "") {
logger.info("build.gradle: Using local version of status-go from ${statusgoOverridePath}")
2022-07-17 14:37:46 +02:00
return "unknown" // This value is defined in https://github.com/status-im/status-mobile/blob/develop/nix/status-go/default.nix, in `srcData.shortRev`
}
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.get('commit-sha1').substring(0, 7)
2018-09-18 08:22:30 -04:00
}
2016-09-07 20:35:04 +03:00
android {
compileSdkVersion rootProject.ext.compileSdkVersion
2016-09-07 20:35:04 +03:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
2016-09-07 20:35:04 +03:00
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
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
2020-05-03 12:46:53 +02:00
implementation 'com.github.status-im:function:0.0.1'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation(group: 'status-im', name: 'status-go', version: getStatusGoSHA1(), ext: 'aar')
2023-09-04 10:41:26 +01:00
testImplementation 'junit:junit:4.13.2'
testImplementation "org.mockito:mockito-core:3.+"
2016-10-11 17:24:52 +03:00
}