Skip to content

Commit ed31ce0

Browse files
authored
feat: update navigation SDKs (#332)
* Updates Google Maps Navigation SDK for Android to 6.2.0 * Updates Google Maps Navigation SDK for iOS to 9.4.0 * Updates minimum Kotlin version to 2.1. * Updates Java compatibility version to 11
1 parent 9791879 commit ed31ce0

File tree

5 files changed

+15
-17
lines changed

5 files changed

+15
-17
lines changed

android/build.gradle

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ group 'com.google.maps.flutter.navigation'
1616
version '1.0-SNAPSHOT'
1717

1818
buildscript {
19-
ext.kotlin_version = '2.0.0'
19+
ext.kotlin_version = '2.1.0'
2020
repositories {
2121
google()
2222
mavenCentral()
@@ -51,19 +51,17 @@ ktfmt {
5151
}
5252

5353
android {
54-
if (project.android.hasProperty("namespace")) {
55-
namespace 'com.google.maps.flutter.navigation'
56-
}
57-
54+
namespace 'com.google.maps.flutter.navigation'
55+
5856
compileSdk 34
5957

6058
compileOptions {
61-
sourceCompatibility JavaVersion.VERSION_1_8
62-
targetCompatibility JavaVersion.VERSION_1_8
59+
sourceCompatibility JavaVersion.VERSION_11
60+
targetCompatibility JavaVersion.VERSION_11
6361
}
6462

6563
kotlinOptions {
66-
jvmTarget = '1.8'
64+
jvmTarget = '11'
6765
}
6866

6967
sourceSets {
@@ -79,7 +77,7 @@ android {
7977
dependencies {
8078
implementation "androidx.car.app:app:1.4.0"
8179
implementation "androidx.car.app:app-projected:1.4.0"
82-
implementation "com.google.android.libraries.navigation:navigation:6.1.0"
80+
implementation "com.google.android.libraries.navigation:navigation:6.2.0"
8381
testImplementation 'org.jetbrains.kotlin:kotlin-test'
8482
testImplementation 'io.mockk:mockk:1.13.8'
8583
testImplementation 'junit:junit:4.13.2'

example/android/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ android {
4646
// Flag to enable support for the new language APIs
4747
coreLibraryDesugaringEnabled true
4848
// Sets Java compatibility to Java 8
49-
sourceCompatibility JavaVersion.VERSION_1_8
50-
targetCompatibility JavaVersion.VERSION_1_8
49+
sourceCompatibility JavaVersion.VERSION_11
50+
targetCompatibility JavaVersion.VERSION_11
5151
}
5252

5353
kotlinOptions {
54-
jvmTarget = '1.8'
54+
jvmTarget = '11'
5555
}
5656

5757
sourceSets {
@@ -107,7 +107,7 @@ flutter {
107107
dependencies {
108108
implementation "androidx.car.app:app:1.4.0"
109109
implementation "androidx.car.app:app-projected:1.4.0"
110-
implementation "com.google.android.libraries.navigation:navigation:6.1.0"
110+
implementation "com.google.android.libraries.navigation:navigation:6.2.0"
111111
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
112112
androidTestUtil "androidx.test:orchestrator:1.4.2"
113113
}

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
buildscript {
16-
ext.kotlin_version = '2.0.0'
16+
ext.kotlin_version = '2.1.0'
1717
repositories {
1818
google()
1919
mavenCentral()

ios/google_navigation_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A Google Maps Navigation Flutter plugin.
1515
s.source = { :path => '.' }
1616
s.source_files = 'google_navigation_flutter/Sources/google_navigation_flutter/**/*.swift'
1717
s.dependency 'Flutter'
18-
s.dependency 'GoogleNavigation', '9.3.0'
18+
s.dependency 'GoogleNavigation', '9.4.0'
1919
s.platform = :ios, '15.0'
2020
s.static_framework = true
2121

ios/google_navigation_flutter/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ let package = Package(
2828
dependencies: [
2929
.package(
3030
url: "https://github.com/googlemaps/ios-navigation-sdk",
31-
exact: "9.3.0"
31+
exact: "9.4.0"
3232
),
3333
.package(
3434
url: "https://github.com/googlemaps/ios-maps-sdk",
35-
exact: "9.3.0"
35+
exact: "9.4.0"
3636
),
3737
],
3838
targets: [

0 commit comments

Comments
 (0)