Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions DemoApps/SearchWithMaps/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ if (mapboxApiToken == null) {

android {
namespace 'com.mapbox.demo.searchwithmaps'
compileSdk 33
compileSdk 36

defaultConfig {
resValue "string", "mapbox_access_token", mapboxApiToken

applicationId "com.mapbox.demo.searchwithmaps"
minSdk 21
targetSdk 33
targetSdk 36
versionCode 1
versionName "1.0"

Expand All @@ -39,9 +39,16 @@ android {
}
}

def ndkVersionSuffix = ""
if (project.hasProperty("ndkMajor")) {
ndkVersionSuffix = "-ndk${project.property("ndkMajor")}"
println("Building with NDK version suffix: " + ndkVersionSuffix)
}

dependencies {
implementation "com.mapbox.search:mapbox-search-android-ui:2.15.0-rc.1"
implementation "com.mapbox.maps:android:11.15.0-rc.1"
implementation "com.mapbox.search:mapbox-search-android-ui$ndkVersionSuffix:2.15.0"
implementation "com.mapbox.maps:android$ndkVersionSuffix:11.15.0"
implementation "com.mapbox.navigationcore:android$ndkVersionSuffix:3.12.0"

implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
Expand All @@ -52,3 +59,14 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

android.applicationVariants.all { variant ->
variant.outputs.all { output ->
def baseName = outputFileName.replace(".apk", "")
outputFileName = "$baseName${ndkVersionSuffix}.apk"
}
}

configurations.all {
exclude group: "com.google.errorprone", module: "error_prone_annotations"
}
4 changes: 2 additions & 2 deletions DemoApps/SearchWithMaps/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
id 'com.android.application' version '8.11.0' apply false
id 'com.android.library' version '8.11.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
}
2 changes: 2 additions & 0 deletions DemoApps/SearchWithMaps/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Nov 21 22:52:55 CET 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME