-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add carplay and android auto support #255
feat: add carplay and android auto support #255
Conversation
Supports to show and control NavigationView on Android Auto and CarPlay
* feat: separate build target for carplay * chore: move iOS example files under SampleApp folder Co-authored-by: Ville Välimaa <[email protected]>
* feat: notify on auto screen availibility changes * refactor: remove unused line of code * refactor: rename onAutoScreen callback --------- Co-authored-by: Ville Välimaa <[email protected]>
37ba285
to
fc64ecd
Compare
fc64ecd
to
7270b10
Compare
ff64a73
to
7702c2f
Compare
Hi! Thanks a lot for working on this Ville/Joonas. Moving forward, is it possible to create unitary PRs to make reviewing easier? and would also be easier to debug/investigate any possible issues. Example: for this particular case, would it have been possible to split out Android Auto Vs CarPlay changes? we'd have different folks reviewing each platform, so that would also make it easier for them to track. To not delay the feature, please don't block on this comment. It's more feedback for future changes. |
Hi @ShirwaM! If you get some bandwidth, can you please take a look at the iOS portion of the PR? (And also if you have any feedback around Android Auto implementation that would be amazing). thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Sharing some initial comments, will take another pass today
android/src/main/java/com/google/android/react/navsdk/AndroidAutoBaseScreen.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/google/android/react/navsdk/AndroidAutoBaseScreen.java
Show resolved
Hide resolved
android/src/main/java/com/google/android/react/navsdk/AndroidAutoBaseScreen.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/google/android/react/navsdk/AndroidAutoBaseScreen.java
Outdated
Show resolved
Hide resolved
android/src/main/java/com/google/android/react/navsdk/NavAutoModule.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - to unblock the change. But please let's await for @ShirwaM to provide feedback before merging.
return eventEmitterRef.current; | ||
}, [dispatcher]); | ||
|
||
const updateListeners = useCallback(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some of these new files, let's please start building our unit test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending a few minor change requests. Thank you!
example/android/app/src/main/java/com/sampleapp/SampleAndroidAutoScreen.java
Outdated
Show resolved
Hide resolved
example/android/app/src/main/java/com/sampleapp/SampleAndroidAutoScreen.java
Outdated
Show resolved
Hide resolved
example/android/app/src/main/java/com/sampleapp/SampleAndroidAutoScreen.java
Outdated
Show resolved
Hide resolved
example/android/app/src/main/java/com/sampleapp/SampleAndroidAutoScreen.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for iOS specific changes
Adds support for Apple CarPlay and Android Auto.
SampleAppCarPlay
.NavAutoModule
to manage communication between RN code and the map instance.Resolves #177