status-react/modules/react-native-status/android/build.gradle

30 lines
812 B
Groovy

apply plugin: 'com.android.library'
def getStatusGoSHA1 = { ->
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)
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
}
dependencies {
implementation 'com.facebook.react:react-native:+' // from node_modules
compile 'com.github.status-im:function:0.0.1'
implementation(group: 'status-im', name: 'status-go', version: getStatusGoSHA1(), ext: 'aar')
}