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 }