blob: c31f28b1e1f81c7ffd87295cfeab9801924b52df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
apply plugin: 'com.android.library'
android {
compileSdkVersion androidVersions.compileSdkVersion
defaultConfig {
minSdkVersion androidVersions.minSdkVersion
targetSdkVersion androidVersions.targetSdkVersion
versionCode 1
versionName "1.0"
buildConfigField "String", "GIT_REVISION_SHORT", String.format("\"%s\"", getGitRevision())
buildConfigField "String", "MAPBOX_VERSION_STRING", String.format("\"Mapbox/%s\"", project.VERSION_NAME)
}
}
dependencies {
api(project(':MapboxGLAndroidModuleBase'))
implementation dependenciesList.okhttp3
implementation dependenciesList.supportAnnotations
implementation dependenciesList.timber
}
def static getGitRevision() {
def cmd = "git rev-parse --short HEAD"
def proc = cmd.execute()
def ref = proc.text.trim()
return ref
}
|