Skip to content
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

Add screen rotation support #105

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tomtom-navigation-core-examples/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
androidx_compat = "1.6.1"
androidx_constraintlayout = "2.1.4"
tomtom_sdk = "1.21.0"
lifecycle_version = "2.8.7"

[libraries]
locationProvider = { module = "com.tomtom.sdk.location:provider-default", version.ref = "tomtom_sdk" }
Expand All @@ -14,9 +15,12 @@ routePlannerOnline = { module = "com.tomtom.sdk.routing:route-planner-online", v
routeReplannerOnline = { module = "com.tomtom.sdk.navigation:route-replanner-online", version.ref = "tomtom_sdk" }
androidXCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx_compat" }
androidXConstraintLayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx_constraintlayout" }
androidXLifecycleViewmodelKtx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "lifecycle_version" }
androidXLifecycleLivedataKtx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "lifecycle_version" }
androidXFragmentKtx = { module = "androidx.fragment:fragment-ktx", version = "1.8.5" }

[bundles]
androidCommon = ["androidXCompat", "androidXConstraintLayout"]
androidCommon = ["androidXCompat", "androidXConstraintLayout", "androidXLifecycleViewmodelKtx", "androidXLifecycleLivedataKtx", "androidXFragmentKtx"]

[plugins]
androidApplication = { id = "com.android.application", version = "8.7.2" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
android:label="Navigation App"
tools:targetApi="33"
android:theme="@style/Theme.App">
<!-- Lock the screen orientation to portrait until the configuration changes are not supported -->
<activity
android:name=".MainActivity"
android:exported="true"
android:screenOrientation="portrait">
android:exported="true">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Loading