Skip to content

Commit

Permalink
feat: update navigation sdk versions (iOS -> 9.1.2, Android -> 6.0.0)…
Browse files Browse the repository at this point in the history
… and min iOS version to 15 (#306)
  • Loading branch information
illuminati1911 authored Oct 24, 2024
1 parent 6674a4f commit cdd7b68
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CARPLAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This guide explains how to enable and integrate Apple CarPlay with the React Nat

## Requirements

- iOS device or iOS simulator (iOS 14.0+)
- iOS device or iOS simulator (iOS 15.0+)
- CarPlay Simulator
- CarPlay entitlement for your application (provided by Apple)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This repository contains a React Native plugin that provides a [Google Navigatio

| | Android | iOS |
| ------------------------------- | ------- | --------- |
| **Minimum mobile OS supported** | SDK 23+ | iOS 14.0+ |
| **Minimum mobile OS supported** | SDK 23+ | iOS 15.0+ |

* A React Native project
* A Google Cloud project
Expand Down
6 changes: 4 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
import groovy.json.JsonSlurper

buildscript {
ext.kotlin_version = '2.0.0'
repositories {
google()
mavenCentral()
}

dependencies {
classpath("com.android.tools.build:gradle:7.2.1")
classpath("com.android.tools.build:gradle:8.4.0")
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

Expand Down Expand Up @@ -76,6 +78,6 @@ dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'com.android.support:multidex:1.0.3'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "com.google.android.libraries.navigation:navigation:5.3.1"
implementation "com.google.android.libraries.navigation:navigation:6.0.0"
api 'com.google.guava:guava:31.0.1-android'
}
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ dependencies {
// For Android Auto Sample support
implementation "androidx.car.app:app:1.4.0"
implementation "androidx.car.app:app-projected:1.4.0"
implementation 'com.google.android.libraries.navigation:navigation:5.3.1'
implementation 'com.google.android.libraries.navigation:navigation:6.0.0'
}

secrets {
Expand Down
8 changes: 4 additions & 4 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright 2023 Google LLC
//
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//
// http://www.apache.org/licenses/LICENSE-2.0
//
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -25,7 +25,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.2.1")
classpath('com.android.tools.build:gradle:8.4.0')
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1")
}
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

platform :ios, "14.0"
platform :ios, "15.0"
prepare_react_native_project!

setup_permissions([
Expand Down Expand Up @@ -55,4 +55,4 @@ post_install do |installer|
config[:reactNativePath],
:mac_catalyst_enabled => false
)
end
end
6 changes: 3 additions & 3 deletions example/ios/SampleApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
29F89EA4FF546EABE968E1D2 /* libPods-SampleApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 354226CC8A58229ECC025410 /* libPods-SampleApp.a */; };
2A20E8122C8994DB00DB7ADA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2A20E8142C8994DB00DB7ADA /* BuildFile in Frameworks */ = {isa = PBXBuildFile; };
2A20E8142C8994DB00DB7ADA /* (null) in Frameworks */ = {isa = PBXBuildFile; };
2A20E8282C899A1400DB7ADA /* Info-CarPlay.plist in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB61A68108700A75B9A /* Info-CarPlay.plist */; };
2AB8C27A2C89A07000250560 /* Keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = 52D4271C2C81D3F300C7FB36 /* Keys.plist */; };
2AB8C27E2C89A0B400250560 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
Expand Down Expand Up @@ -96,7 +96,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2A20E8142C8994DB00DB7ADA /* BuildFile in Frameworks */,
2A20E8142C8994DB00DB7ADA /* (null) in Frameworks */,
29F89EA4FF546EABE968E1D2 /* libPods-SampleApp.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -946,7 +946,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD = "";
LDPLUSPLUS = "";
LD_RUNPATH_SEARCH_PATHS = (
Expand Down
1 change: 0 additions & 1 deletion example/ios/SampleApp/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ - (BOOL)application:(UIApplication *)application
NSString *api_key = [keysDictionary objectForKey:@"API_KEY"];

[GMSServices provideAPIKey:api_key];
[GMSServices setMetalRendererEnabled:YES];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

Expand Down
1 change: 0 additions & 1 deletion example/ios/SampleApp/AppDelegateCarPlay.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ - (BOOL)application:(UIApplication *)application
NSString *api_key = [keysDictionary objectForKey:@"API_KEY"];

[GMSServices provideAPIKey:api_key];
[GMSServices setMetalRendererEnabled:YES];
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
self.rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:self.moduleName
Expand Down
1 change: 1 addition & 0 deletions example/src/controls/mapsControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const MapsControls: React.FC<MapControlsProps> = ({ mapViewController }) => {
case 2:
return MapType.SATELLITE;
case 3:
/** MapType.TERRAIN does not work during navigation. */
return MapType.TERRAIN;
case 4:
return MapType.HYBRID;
Expand Down
4 changes: 2 additions & 2 deletions react-native-navigation-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Pod::Spec.new do |s|
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => "14.0" }
s.platforms = { :ios => "15.0" }
s.source = { :git => "https://github.com/googlemaps/react-native-navigation-sdk.git", :tag => "#{s.version}" }

s.source_files = "ios/react-native-navigation-sdk/*.{h,m,mm}"

s.dependency "React-Core"
s.dependency "GoogleNavigation", "5.4.0"
s.dependency "GoogleNavigation", "9.1.2"

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
Expand Down
2 changes: 1 addition & 1 deletion src/maps/mapView/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export enum MapType {
NORMAL,
/** Satellite maps with a transparent layer of major streets. */
SATELLITE,
/** Shows the terrain of the map only */
/** Shows the terrain of the map only. This map type does not work during navigation. */
TERRAIN,
/** Satellite maps with a transparent layer of major streets. */
HYBRID,
Expand Down

0 comments on commit cdd7b68

Please sign in to comment.