Commit 98fbd39
feat: navigation compose and delegation pattern (#670)
* experimenting with navcompose
* feature: creates a delegate that can wrap a MapView.
* feat(navigation-app): Add Navigation support to Maps Compose
Adds support for the Navigation SDK to Maps Compose. It just allows the user to replace a standard MapView with a NavigationView within a GoogleMap composable.
The following changes were made:
Added a new NavigationViewDelegate class to handle the integration between NavigationView and Maps Compose.
Added a new NavigationScreen composable function to display the navigation view.
Added a new MovableMarker composable function to display a draggable marker on the map.
Updated the GoogleMap composable function to support the use of NavigationView.
Added a new NavigationApplication class to initialize the Places SDK.
Added a new ApiKeyProvider class to provide API keys for the Maps and Places SDKs.
Added a new LocationProvider class to provide location data.
Added a new PermissionChecker class to check for location permissions.
Updated the build.gradle.kts files to include the necessary dependencies.
Updated the local.defaults.properties file to include the Places API key.
* feat: Add NavigationViewDelegate
Adds NavigationViewDelegate to support NavigationView in the navigation sample app.
This change allows the navigation sample app to use NavigationView, which provides turn-by-turn navigation functionality.
The NavigationViewDelegate handles the lifecycle and rendering of the NavigationView, ensuring that it is properly integrated into the Jetpack Compose UI.
Uses a MarkerComposable to demonstrate the map really is a composable
* experimenting with navcompose
* feature: creates a delegate that can wrap a MapView.
* feat(navigation-app): Add Navigation support to Maps Compose
Adds support for the Navigation SDK to Maps Compose. It just allows the user to replace a standard MapView with a NavigationView within a GoogleMap composable.
The following changes were made:
Added a new NavigationViewDelegate class to handle the integration between NavigationView and Maps Compose.
Added a new NavigationScreen composable function to display the navigation view.
Added a new MovableMarker composable function to display a draggable marker on the map.
Updated the GoogleMap composable function to support the use of NavigationView.
Added a new NavigationApplication class to initialize the Places SDK.
Added a new ApiKeyProvider class to provide API keys for the Maps and Places SDKs.
Added a new LocationProvider class to provide location data.
Added a new PermissionChecker class to check for location permissions.
Updated the build.gradle.kts files to include the necessary dependencies.
Updated the local.defaults.properties file to include the Places API key.
* feat: Add NavigationViewDelegate
Adds NavigationViewDelegate to support NavigationView in the navigation sample app.
This change allows the navigation sample app to use NavigationView, which provides turn-by-turn navigation functionality.
The NavigationViewDelegate handles the lifecycle and rendering of the NavigationView, ensuring that it is properly integrated into the Jetpack Compose UI.
Uses a MarkerComposable to demonstrate the map really is a composable
* chore: merge agpVersion with apg in the version catalog file
* feat: added LeakCanary, code clean
* feat: added some documentation
* build(deps): Upgrade navigation library to v6.1.0
Updates the navigation library dependency from v6.0.1 to v6.1.0.
This commit also the wording of the comment in `navigation-app/build.gradle.kts` to
clarify the reason for excluding `play-services-maps`.
* feat: renamed app module to maps-app
* feat: updated lint config
---------
Co-authored-by: Enrique López Mañas <[email protected]>1 parent 0ecc362 commit 98fbd39
File tree
95 files changed
+1360
-40
lines changed- .github/workflows
- gradle
- maps-app
- src
- androidTest/java/com/google/maps/android/compose
- debug/screenshotTest/reference/com/google/maps/android/compose/ScaleBarTest
- main
- java/com/google/maps/android/compose
- markerexamples
- draggablemarkerscollectionwithpolygon
- markerdragevents
- markerscollection
- syncingdraggablemarkerwithdatamodel
- updatingnodragmarkerwithdatamodel
- theme
- res
- drawable-v24
- drawable
- mipmap-anydpi-v26
- mipmap-hdpi
- mipmap-mdpi
- mipmap-xhdpi
- mipmap-xxhdpi
- mipmap-xxxhdpi
- values
- screenshotTest/java/com/google/maps/android/compose
- maps-compose/src/main/java/com/google/maps/android/compose
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+1360
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
| 31 | + | |
| 32 | + | |
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
| |||
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
30 | 47 | | |
31 | 48 | | |
32 | 49 | | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
| 53 | + | |
| 54 | + | |
36 | 55 | | |
37 | 56 | | |
38 | 57 | | |
39 | 58 | | |
40 | | - | |
41 | 59 | | |
| 60 | + | |
| 61 | + | |
42 | 62 | | |
43 | 63 | | |
44 | 64 | | |
| 65 | + | |
45 | 66 | | |
| 67 | + | |
| 68 | + | |
46 | 69 | | |
| 70 | + | |
47 | 71 | | |
48 | 72 | | |
49 | | - | |
| 73 | + | |
50 | 74 | | |
51 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
File renamed without changes.
0 commit comments