Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
10 contributors

Users who have contributed to this file

@Guardiola31337 @cammace @danesfeder @RingerJK @olegzil @LukasPaczos @abhishek1508 @sarahlensing @Chaoba @harvsu
103 lines (87 sloc) 2.87 KB
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'com.jaredsburrows.license'
apply plugin: 'com.mapbox.android.sdk.versions'
apply from: "${rootDir}/gradle/ktlint.gradle"
android {
compileSdkVersion androidVersions.compileSdkVersion
buildToolsVersion androidVersions.buildToolsVersion
defaultConfig {
minSdkVersion androidVersions.minSdkVersion
targetSdkVersion androidVersions.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField('String',
"MAPBOX_NAVIGATION_SDK_IDENTIFIER", String.format("\"%s\"", "mapbox-navigation-android")
)
buildConfigField('String',
"MAPBOX_NAVIGATION_VERSION_NAME", String.format("\"%s\"", project.VERSION_NAME)
)
buildConfigField "String",
"MAPBOX_NAVIGATION_EVENTS_USER_AGENT", String.format("\"mapbox-navigation-android/%s\"",
project.VERSION_NAME
)
consumerProguardFiles 'proguard-consumer.pro'
}
configurations {
javadocDeps
}
buildTypes {
debug {
testCoverageEnabled = true
}
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.includeAndroidResources = true
unitTests.all {
maxHeapSize = "1024m"
jacoco {
includeNoLocationClasses = true
}
}
}
licenseReport {
generateHtmlReport = false
generateJsonReport = true
copyHtmlReportToAssets = false
copyJsonReportToAssets = false
}
}
dependencies {
api project(':libnavigation-base')
implementation project(':libnavigator')
implementation project(':libnavigation-util')
api dependenciesList.mapboxSdkServices
api dependenciesList.mapboxSdkTurf
api dependenciesList.mapboxCore
api (dependenciesList.mapboxEvents) {
exclude group: "com.mapbox.mapboxsdk", module: "mapbox-android-core"
}
//ktlint
ktlint dependenciesList.ktlint
// Navigator
implementation dependenciesList.mapboxNavigator
implementation dependenciesList.kotlinStdLib
// Support
implementation dependenciesList.supportAppcompatV7
// Logging
implementation dependenciesList.timber
// AutoValues
annotationProcessor dependenciesList.autoValue
compileOnly dependenciesList.autoValue
// Unit testing
testImplementation dependenciesList.junit
testImplementation dependenciesList.mockito
testImplementation dependenciesList.mockk
testImplementation dependenciesList.hamcrest
testImplementation dependenciesList.commonsIO
testImplementation dependenciesList.robolectric
}
apply from: 'javadoc.gradle'
apply from: "${rootDir}/gradle/mvn-push-android.gradle"
apply from: "${rootDir}/gradle/checkstyle.gradle"
apply from: "${rootDir}/gradle/nitpick.gradle"
apply from: "${rootDir}/gradle/jacoco.gradle"
apply from: "${rootDir}/gradle/dependencies-graph.gradle"
apply from: "${rootDir}/gradle/dependency-updates.gradle"
apply from: "${rootDir}/gradle/download-schema.gradle"
You can’t perform that action at this time.