Skip to content

Commit 412eb19

Browse files
NDK 27 support for the Search SDK v1 (#358)
* Support NDK 27 * Update demo app
1 parent 7936340 commit 412eb19

30 files changed

+99
-46
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ commands:
158158
command: |
159159
gcloud firebase test android run \
160160
--type robo --app MapboxSearch/sample/build/outputs/apk/release/sample-release.apk \
161-
--device model=Pixel2,version=30,locale=en,orientation=portrait \
162-
--device model=Nexus6,version=24,locale=en,orientation=portrait \
161+
--device model=panther,version=33,locale=en,orientation=portrait \
162+
--device model=MediumPhone.arm,version=26,locale=en,orientation=portrait \
163163
--timeout 900s \
164164
--project mapbox-search-android
165165
@@ -171,8 +171,8 @@ commands:
171171
command: |
172172
gcloud firebase test android run \
173173
--type instrumentation --app MapboxSearch/sample/build/outputs/apk/debug/sample-debug.apk --test MapboxSearch/sample/build/outputs/apk/androidTest/debug/sample-debug-androidTest.apk \
174-
--device model=Pixel2,version=30,locale=en,orientation=portrait \
175-
--device model=Nexus6,version=24,locale=en,orientation=portrait \
174+
--device model=panther,version=33,locale=en,orientation=portrait \
175+
--device model=MediumPhone.arm,version=26,locale=en,orientation=portrait \
176176
--timeout 900s \
177177
--project mapbox-search-android
178178
@@ -193,8 +193,8 @@ commands:
193193
./gradlew :<< parameters.module_name >>:assembleDebugAndroidTest -Pcoverage
194194
gcloud firebase test android run \
195195
--type instrumentation --app sample/build/outputs/apk/debug/sample-debug.apk --test << parameters.module_name >>/build/outputs/apk/androidTest/debug/<< parameters.archives_base_name >>-debug-androidTest.apk --environment-variables coverage=true,coverageFile=/sdcard/coverage.ec --directories-to-pull /sdcard --results-dir=$CIRCLE_BUILD_NUM \
196-
--device model=Pixel2,version=30,locale=en,orientation=portrait \
197-
--device model=Nexus6,version=24,locale=en,orientation=portrait \
196+
--device model=panther,version=33,locale=en,orientation=portrait \
197+
--device model=MediumPhone.arm,version=26,locale=en,orientation=portrait \
198198
--timeout 900s \
199199
--project mapbox-search-android
200200

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog for the Mapbox Search SDK for Android
22

3+
## 1.5.0
4+
5+
### New features
6+
- Added support for Android 16 KB page-size devices. To consume SDK compatible with NDK 27 you need to add `-ndk27` suffix to the artifact name, for example, `com.mapbox.search:mapbox-search-android` -> `com.mapbox.search:mapbox-search-android-ndk27`.
7+
8+
### Mapbox dependencies
9+
- Search Native SDK `1.5.1`
10+
- Common SDK `23.11.4`
11+
- Maps SDK `10.19.0`
12+
13+
14+
315
## 1.4.0
416

517
### Bug fixes

DemoApps/SearchWithMaps/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ android {
4040
}
4141

4242
dependencies {
43-
implementation "com.mapbox.search:mapbox-search-android-ui:1.0.0-rc.5"
44-
implementation "com.mapbox.maps:android:10.14.0-beta.1"
43+
implementation "com.mapbox.search:mapbox-search-android-ui-ndk27:1.5.0-SNAPSHOT"
44+
implementation "com.mapbox.maps:android-ndk27:10.19.0"
4545

4646
implementation 'androidx.core:core-ktx:1.10.1'
4747
implementation 'androidx.appcompat:appcompat:1.6.1'

DemoApps/SearchWithMaps/settings.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ dependencyResolutionManagement {
2626
password = sdkRegistryToken
2727
}
2828
}
29+
30+
maven {
31+
url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
32+
authentication {
33+
basic(BasicAuthentication)
34+
}
35+
credentials {
36+
username = "mapbox"
37+
password = sdkRegistryToken
38+
}
39+
}
2940
}
3041
}
3142
rootProject.name = "SearchWithMaps"

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Mapbox Search SDK for Android version 1.0
44

55
Mapbox Search Android SDK
66

7-
Copyright &copy; 2021 - 2024 Mapbox, Inc. All rights reserved.
7+
Copyright &copy; 2021 - 2025 Mapbox, Inc. All rights reserved.
88

99
The software and files in this repository (collectively, "Software") are licensed under the Mapbox TOS for use only with the relevant Mapbox product(s) listed at www.mapbox.com/pricing. This license allows developers with a current active Mapbox account to use and modify the authorized portions of the Software as needed for use only with the relevant Mapbox product(s) through their Mapbox account in accordance with the Mapbox TOS. This license terminates automatically if a developer no longer has a Mapbox account in good standing or breaches the Mapbox TOS. For the license terms, please see the Mapbox TOS at https://www.mapbox.com/legal/tos/ which incorporates the Mapbox Product Terms at www.mapbox.com/legal/service-terms. If this Software is a SDK, modifications that change or interfere with marked portions of the code related to billing, accounting, or data collection are not authorized and the SDK sends limited de-identified location and usage data which is used in accordance with the Mapbox TOS. [Updated 2023-03]
1010
---------------------------------------

MapboxSearch/autofill/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ dependencies {
8484
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junit_5_version"
8585
testImplementation project(":common-tests")
8686

87-
androidTestImplementation "com.mapbox.common:okhttp:$common_sdk_version"
87+
androidTestImplementation dependenciesList.mapboxCommonOkHttp
8888
androidTestImplementation "androidx.test:runner:$androidx_test_runner_version"
8989
androidTestImplementation "androidx.test.ext:junit:$androidx_junit_version"
9090
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core_version"

MapboxSearch/base/build.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ android {
6161

6262
dependencies {
6363
api project(path: ':sdk-common')
64-
api "com.mapbox.search:mapbox-search-android-native:$search_native_version"
65-
66-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
67-
68-
implementation "com.mapbox.common:common:$common_sdk_version"
64+
api dependenciesList.mapboxSearchNative
65+
implementation dependenciesList.mapboxCommon
6966

7067
// Explicit dependency for http service implementation, should be declared on the Common SDK side
71-
implementation "com.mapbox.common:okhttp:$common_sdk_version"
68+
implementation dependenciesList.mapboxCommonOkHttp
7269

70+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
71+
7372
implementation "com.mapbox.base:annotations:$mapbox_base_version"
7473

7574
implementation "androidx.core:core-ktx:$androidx_core_version"
@@ -88,7 +87,7 @@ dependencies {
8887
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junit_5_version"
8988
testImplementation project(":common-tests")
9089

91-
androidTestImplementation "com.mapbox.common:okhttp:$common_sdk_version"
90+
androidTestImplementation dependenciesList.mapboxCommonOkHttp
9291
androidTestImplementation "androidx.test:runner:$androidx_test_runner_version"
9392
androidTestImplementation "androidx.test.ext:junit:$androidx_junit_version"
9493
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core_version"

MapboxSearch/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ buildscript {
3232
pitest "org.pitest:pitest-junit5-plugin:0.15"
3333
classpath "pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.8"
3434
classpath "com.jaredsburrows:gradle-license-plugin:0.8.90"
35-
classpath 'com.mapbox.gradle.plugins:sdk-registry:0.7.0'
35+
classpath 'com.mapbox.gradle.plugins:sdk-registry:1.4.1'
3636
classpath 'me.champeau.gradle:japicmp-gradle-plugin:0.3.0'
3737
}
3838
}

MapboxSearch/common-tests/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ android {
3636
dependencies {
3737
api "nl.jqno.equalsverifier:equalsverifier:$equals_verifier_version"
3838

39-
api "com.mapbox.search:mapbox-search-android-native:$search_native_version"
39+
api dependenciesList.mapboxSearchNative
4040

41-
implementation "com.mapbox.common:common:$common_sdk_version"
41+
implementation dependenciesList.mapboxCommon
4242
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
4343
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
4444
implementation "junit:junit:$junit_version"

MapboxSearch/discover/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ dependencies {
8787

8888
testImplementation project(":common-tests")
8989

90-
androidTestImplementation "com.mapbox.common:okhttp:$common_sdk_version"
90+
androidTestImplementation dependenciesList.mapboxCommonOkHttp
9191
androidTestImplementation "androidx.test:runner:$androidx_test_runner_version"
9292
androidTestImplementation "androidx.test.ext:junit:$androidx_junit_version"
9393
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core_version"

0 commit comments

Comments
 (0)