91 lines
3.2 KiB
Groovy
91 lines
3.2 KiB
Groovy
/*
|
|
* Garmin HUD Companion Application
|
|
* Copyright (C) 2022 Piotr Dec / ztsh.eu
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id "de.mannodermaus.android-junit5"
|
|
}
|
|
|
|
android {
|
|
namespace 'eu.ztsh.garmin'
|
|
compileSdk 35
|
|
ndkVersion "23.2.8568313"
|
|
|
|
defaultConfig {
|
|
applicationId "eu.ztsh.garmin"
|
|
minSdk 29
|
|
targetSdk 35
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
buildConfigField "String", "MAPBOX_DOWNLOADS_TOKEN", "\"$MAPBOX_DOWNLOADS_TOKEN\""
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
buildConfig = true
|
|
}
|
|
}
|
|
ext {
|
|
navigationApiVersion = '3.2.0'
|
|
searchApiVersion = '2.4.0'
|
|
searchNativeVersion = '2.3.0'
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'com.mapbox.maps:android:11.5.1'
|
|
|
|
implementation "com.mapbox.navigationcore:navigation:$navigationApiVersion"
|
|
implementation "com.mapbox.navigationcore:ui-maps:$navigationApiVersion"
|
|
implementation "com.mapbox.navigationcore:voice:$navigationApiVersion"
|
|
implementation "com.mapbox.navigationcore:tripdata:$navigationApiVersion"
|
|
implementation "com.mapbox.navigationcore:ui-components:$navigationApiVersion"
|
|
|
|
implementation "com.mapbox.search:base:$searchApiVersion"
|
|
implementation "com.mapbox.search:autofill:$searchApiVersion"
|
|
implementation "com.mapbox.search:place-autocomplete:$searchApiVersion"
|
|
implementation "com.mapbox.search:mapbox-search-android:$searchApiVersion"
|
|
implementation "com.mapbox.search:mapbox-search-android-ui:$searchApiVersion"
|
|
implementation "com.mapbox.search:mapbox-search-android-native:$searchNativeVersion"
|
|
|
|
implementation 'androidx.core:core-ktx:1.13.1'
|
|
implementation 'androidx.appcompat:appcompat:1.7.0'
|
|
implementation 'com.google.android.material:material:1.12.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
|
|
testImplementation 'org.assertj:assertj-core:3.24.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
|
|
|
|
}
|