59 lines
1.5 KiB
Groovy
59 lines
1.5 KiB
Groovy
apply plugin: 'com.android.library'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
buildToolsVersion rootProject.ext.android.buildToolsVersion
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
versionCode Integer.valueOf(VERSION_CODE)
|
|
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles 'consumer-rules.pro'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
jniLibs.srcDirs = ['libs']
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
task copyLibs(type: Copy) {
|
|
from configurations.compile
|
|
into 'libs'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
|
|
implementation project(':foudations:mogo-utils')
|
|
implementation project(':libraries:mogo-map-api')
|
|
|
|
implementation(name: 'onsdk_all', ext: 'aar') {
|
|
transitive = true
|
|
}
|
|
implementation(name: 'NaviTts', ext: 'aar') {
|
|
transitive = true
|
|
}
|
|
}
|
|
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|