diff --git a/README.md b/README.md index 433a1f7f..0f5e9aa1 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ For an overview of the existing features, please check the _Developer's Guide_ f > For now, the _Navigate Edition_ is only available upon request. Please contact your HERE representative to receive access including a set of evaluation credentials. -## List of Available Example Apps (Version 4.13.0.0) +## List of Available Example Apps (Version 4.13.1.0) - **HelloMap**: Shows the classic 'Hello World'. - **HelloMapKotlin**: Shows the classic 'Hello World' using Kotlin language (Android only). diff --git a/examples/latest/README.md b/examples/latest/README.md index fdd36712..5dcd3d2a 100644 --- a/examples/latest/README.md +++ b/examples/latest/README.md @@ -1,4 +1,4 @@ -This folder contains the HERE SDK examples apps for version: 4.13.0.0 +This folder contains the HERE SDK examples apps for version: 4.13.1.0 - HERE SDK for Android ([Lite Edition](lite/android/), [Explore Edition](explore/android/), [Navigate Edition](navigate/android/)) - HERE SDK for iOS ([Lite Edition](lite/ios/), [Explore Edition](explore/ios/), [Navigate Edition](navigate/ios/)) diff --git a/examples/latest/explore/android/Camera/app/build.gradle b/examples/latest/explore/android/Camera/app/build.gradle index 66e601a6..72e68d27 100644 --- a/examples/latest/explore/android/Camera/app/build.gradle +++ b/examples/latest/explore/android/Camera/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.camera' } dependencies { diff --git a/examples/latest/explore/android/Camera/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/Camera/app/src/main/AndroidManifest.xml index 2029eeba..aa8e1d8d 100644 --- a/examples/latest/explore/android/Camera/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/Camera/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java b/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java index 768638b3..5cdfe683 100644 --- a/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java +++ b/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java b/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java index 4dc19d36..4acbe077 100644 --- a/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java +++ b/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java b/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java index f19ea9e0..22e8b286 100644 --- a/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java +++ b/examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Camera/build.gradle b/examples/latest/explore/android/Camera/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/explore/android/Camera/build.gradle +++ b/examples/latest/explore/android/Camera/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/build.gradle b/examples/latest/explore/android/CameraKeyframeTracks/app/build.gradle index e1c890d3..8a0a111c 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/build.gradle +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/build.gradle @@ -25,6 +25,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.camerakeyframetracks' } dependencies { diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml index 15186f1c..f9f1dba3 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + xmlns:tools="http://schemas.android.com/tools"> + diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java index 6eff2b61..d6cbe79c 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java index 8f9a383a..33597e1e 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java index c04cc000..387dfc51 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java index a200f110..a8ca8a99 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java index 5b01d70b..3ce15a5c 100644 --- a/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java +++ b/examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomMapStyles/app/build.gradle b/examples/latest/explore/android/CustomMapStyles/app/build.gradle index fc18112f..7659d1fc 100644 --- a/examples/latest/explore/android/CustomMapStyles/app/build.gradle +++ b/examples/latest/explore/android/CustomMapStyles/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.custommapstyles' } dependencies { diff --git a/examples/latest/explore/android/CustomMapStyles/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/CustomMapStyles/app/src/main/AndroidManifest.xml index 0bea881c..aa8e1d8d 100644 --- a/examples/latest/explore/android/CustomMapStyles/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/CustomMapStyles/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java b/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java index 38134242..5e288d44 100644 --- a/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java +++ b/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java b/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java index 1aaaa53f..fec6c2c3 100644 --- a/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java +++ b/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java b/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java index 6aec49c8..f48d6554 100644 --- a/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java +++ b/examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomMapStyles/build.gradle b/examples/latest/explore/android/CustomMapStyles/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/explore/android/CustomMapStyles/build.gradle +++ b/examples/latest/explore/android/CustomMapStyles/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/CustomRasterLayers/app/build.gradle b/examples/latest/explore/android/CustomRasterLayers/app/build.gradle index 663906c7..c95cdfc6 100644 --- a/examples/latest/explore/android/CustomRasterLayers/app/build.gradle +++ b/examples/latest/explore/android/CustomRasterLayers/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.customrasterlayers' } dependencies { diff --git a/examples/latest/explore/android/CustomRasterLayers/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/CustomRasterLayers/app/src/main/AndroidManifest.xml index 769e093e..aa8e1d8d 100644 --- a/examples/latest/explore/android/CustomRasterLayers/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/CustomRasterLayers/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java b/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java index 89032bba..c3929ccf 100644 --- a/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java +++ b/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java b/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java index bec75314..e66994a3 100644 --- a/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java +++ b/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java b/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java index f258b7d5..67eff84c 100644 --- a/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java +++ b/examples/latest/explore/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/CustomRasterLayers/build.gradle b/examples/latest/explore/android/CustomRasterLayers/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/explore/android/CustomRasterLayers/build.gradle +++ b/examples/latest/explore/android/CustomRasterLayers/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/EVRouting/app/build.gradle b/examples/latest/explore/android/EVRouting/app/build.gradle index ea4a1d5f..59f8fcdb 100644 --- a/examples/latest/explore/android/EVRouting/app/build.gradle +++ b/examples/latest/explore/android/EVRouting/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.evrouting' } dependencies { diff --git a/examples/latest/explore/android/EVRouting/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/EVRouting/app/src/main/AndroidManifest.xml index 6595441a..aa8e1d8d 100644 --- a/examples/latest/explore/android/EVRouting/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/EVRouting/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java b/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java index 838c7bf9..4cd8e9d3 100644 --- a/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java +++ b/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java b/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java index 9c678ae5..703384da 100644 --- a/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java +++ b/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java b/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java index 30512dc7..815b759e 100644 --- a/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java +++ b/examples/latest/explore/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/EVRouting/build.gradle b/examples/latest/explore/android/EVRouting/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/explore/android/EVRouting/build.gradle +++ b/examples/latest/explore/android/EVRouting/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/Gestures/app/build.gradle b/examples/latest/explore/android/Gestures/app/build.gradle index ef12049a..a4285672 100644 --- a/examples/latest/explore/android/Gestures/app/build.gradle +++ b/examples/latest/explore/android/Gestures/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.gestures' } dependencies { diff --git a/examples/latest/explore/android/Gestures/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/Gestures/app/src/main/AndroidManifest.xml index 9a6ab14c..aa8e1d8d 100644 --- a/examples/latest/explore/android/Gestures/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/Gestures/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java index d7edbe3f..a86818b2 100644 --- a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java +++ b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java index c1ca9598..d1d3c5f1 100644 --- a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java +++ b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java index b16dbf82..bb0bfff1 100644 --- a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java +++ b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java index e5227ff5..d3339c48 100644 --- a/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java +++ b/examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Gestures/build.gradle b/examples/latest/explore/android/Gestures/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/explore/android/Gestures/build.gradle +++ b/examples/latest/explore/android/Gestures/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/HelloMap/app/build.gradle b/examples/latest/explore/android/HelloMap/app/build.gradle index 555b8f90..8875e461 100644 --- a/examples/latest/explore/android/HelloMap/app/build.gradle +++ b/examples/latest/explore/android/HelloMap/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } dependencies { diff --git a/examples/latest/explore/android/HelloMap/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/HelloMap/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/explore/android/HelloMap/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/HelloMap/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java b/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java index bf192020..445c015a 100644 --- a/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java +++ b/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java b/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java index 004b83a3..b5dfc5dd 100644 --- a/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java +++ b/examples/latest/explore/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMap/build.gradle b/examples/latest/explore/android/HelloMap/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/explore/android/HelloMap/build.gradle +++ b/examples/latest/explore/android/HelloMap/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/app/build.gradle b/examples/latest/explore/android/HelloMapAndroidAuto/app/build.gradle index e95eaa68..ddd3ba30 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/app/build.gradle +++ b/examples/latest/explore/android/HelloMapAndroidAuto/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomapandroidauto' } dependencies { diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml index 88621342..f3435692 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ - + diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java index 84a5f28b..2fae2079 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java +++ b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java index d222d369..e87bd85e 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java +++ b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java index 2aaf7877..6d6d5e5a 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java +++ b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java index 2b18dc3d..1727ea8b 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java +++ b/examples/latest/explore/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMapAndroidAuto/build.gradle b/examples/latest/explore/android/HelloMapAndroidAuto/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/explore/android/HelloMapAndroidAuto/build.gradle +++ b/examples/latest/explore/android/HelloMapAndroidAuto/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/HelloMapKotlin/app/build.gradle b/examples/latest/explore/android/HelloMapKotlin/app/build.gradle index 613dec72..88f32f40 100644 --- a/examples/latest/explore/android/HelloMapKotlin/app/build.gradle +++ b/examples/latest/explore/android/HelloMapKotlin/app/build.gradle @@ -21,6 +21,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } dependencies { diff --git a/examples/latest/explore/android/HelloMapKotlin/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/HelloMapKotlin/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/explore/android/HelloMapKotlin/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/HelloMapKotlin/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt b/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt index b526f645..8b6ca4e2 100644 --- a/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt +++ b/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2021 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt b/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt index 566b952c..ba1cbd22 100644 --- a/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt +++ b/examples/latest/explore/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2021 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/HelloMapKotlin/build.gradle b/examples/latest/explore/android/HelloMapKotlin/build.gradle index 8d827735..268067e4 100644 --- a/examples/latest/explore/android/HelloMapKotlin/build.gradle +++ b/examples/latest/explore/android/HelloMapKotlin/build.gradle @@ -1,12 +1,12 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.5.20-M1' + ext.kotlin_version = '1.5.20' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/MapItems/app/build.gradle b/examples/latest/explore/android/MapItems/app/build.gradle index c1d81639..58ad9a99 100644 --- a/examples/latest/explore/android/MapItems/app/build.gradle +++ b/examples/latest/explore/android/MapItems/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.mapitems' } dependencies { diff --git a/examples/latest/explore/android/MapItems/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/MapItems/app/src/main/AndroidManifest.xml index 144b074f..aa8e1d8d 100644 --- a/examples/latest/explore/android/MapItems/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/MapItems/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java index e721a0f6..0b3d11e8 100644 --- a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java +++ b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java index d75e7b5c..d329a346 100644 --- a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java +++ b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java index 16bf9d98..068d2921 100644 --- a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java +++ b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java index 5a1e2a8c..ba6525fa 100644 --- a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java +++ b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java index f72d8ae8..d12355f7 100644 --- a/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java +++ b/examples/latest/explore/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MapItems/build.gradle b/examples/latest/explore/android/MapItems/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/explore/android/MapItems/build.gradle +++ b/examples/latest/explore/android/MapItems/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/MultiDisplays/app/build.gradle b/examples/latest/explore/android/MultiDisplays/app/build.gradle index 0cd41173..152e105e 100644 --- a/examples/latest/explore/android/MultiDisplays/app/build.gradle +++ b/examples/latest/explore/android/MultiDisplays/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.multidisplays' } dependencies { diff --git a/examples/latest/explore/android/MultiDisplays/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/MultiDisplays/app/src/main/AndroidManifest.xml index 93f3de00..066f4463 100644 --- a/examples/latest/explore/android/MultiDisplays/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/MultiDisplays/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java b/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java index 369cfc3e..99031ceb 100644 --- a/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java +++ b/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java b/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java index 757e4e5c..e14c7933 100644 --- a/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java +++ b/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java b/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java index 17c3d237..7ec4cdb5 100644 --- a/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java +++ b/examples/latest/explore/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/MultiDisplays/build.gradle b/examples/latest/explore/android/MultiDisplays/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/explore/android/MultiDisplays/build.gradle +++ b/examples/latest/explore/android/MultiDisplays/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/PublicTransit/app/build.gradle b/examples/latest/explore/android/PublicTransit/app/build.gradle index 655d9951..db108892 100644 --- a/examples/latest/explore/android/PublicTransit/app/build.gradle +++ b/examples/latest/explore/android/PublicTransit/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.routing' } dependencies { diff --git a/examples/latest/explore/android/PublicTransit/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/PublicTransit/app/src/main/AndroidManifest.xml index 65193393..aa8e1d8d 100644 --- a/examples/latest/explore/android/PublicTransit/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/PublicTransit/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java b/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java index dcef518a..60f009bc 100644 --- a/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java +++ b/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java b/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java index fc3ab8d2..1c24a446 100644 --- a/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java +++ b/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java b/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java index 43a2d9b7..3668339c 100644 --- a/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java +++ b/examples/latest/explore/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/PublicTransit/build.gradle b/examples/latest/explore/android/PublicTransit/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/explore/android/PublicTransit/build.gradle +++ b/examples/latest/explore/android/PublicTransit/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/Routing/app/build.gradle b/examples/latest/explore/android/Routing/app/build.gradle index 655d9951..db108892 100644 --- a/examples/latest/explore/android/Routing/app/build.gradle +++ b/examples/latest/explore/android/Routing/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.routing' } dependencies { diff --git a/examples/latest/explore/android/Routing/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/Routing/app/src/main/AndroidManifest.xml index 65193393..aa8e1d8d 100644 --- a/examples/latest/explore/android/Routing/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/Routing/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/MainActivity.java b/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/MainActivity.java index 59d889a7..645bf27e 100644 --- a/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/MainActivity.java +++ b/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java b/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java index fc3ab8d2..1c24a446 100644 --- a/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java +++ b/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java b/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java index 71cd462c..5e939812 100644 --- a/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java +++ b/examples/latest/explore/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,9 +138,11 @@ private void logRouteSectionDetails(Route route) { private void showRouteDetails(Route route) { long estimatedTravelTimeInSeconds = route.getDuration().getSeconds(); + long estimatedTrafficDelayInSeconds = route.getTrafficDelay().getSeconds(); int lengthInMeters = route.getLengthInMeters(); String routeDetails = "Travel Time: " + formatTime(estimatedTravelTimeInSeconds) + + ", traffic delay: " + formatTime(estimatedTrafficDelayInSeconds) + ", Length: " + formatLength(lengthInMeters); showDialog("Route Details", routeDetails); diff --git a/examples/latest/explore/android/Routing/build.gradle b/examples/latest/explore/android/Routing/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/explore/android/Routing/build.gradle +++ b/examples/latest/explore/android/Routing/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/Search/app/build.gradle b/examples/latest/explore/android/Search/app/build.gradle index 3dcb155d..4dc12fd6 100644 --- a/examples/latest/explore/android/Search/app/build.gradle +++ b/examples/latest/explore/android/Search/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.search' } dependencies { diff --git a/examples/latest/explore/android/Search/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/Search/app/src/main/AndroidManifest.xml index b3e36a82..aa8e1d8d 100644 --- a/examples/latest/explore/android/Search/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/Search/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/Search/app/src/main/java/com/here/search/MainActivity.java b/examples/latest/explore/android/Search/app/src/main/java/com/here/search/MainActivity.java index bc546b70..da93d90a 100644 --- a/examples/latest/explore/android/Search/app/src/main/java/com/here/search/MainActivity.java +++ b/examples/latest/explore/android/Search/app/src/main/java/com/here/search/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java b/examples/latest/explore/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java index ca1c573f..218cf694 100644 --- a/examples/latest/explore/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java +++ b/examples/latest/explore/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Search/app/src/main/java/com/here/search/SearchExample.java b/examples/latest/explore/android/Search/app/src/main/java/com/here/search/SearchExample.java index 9bfe879d..58b15453 100644 --- a/examples/latest/explore/android/Search/app/src/main/java/com/here/search/SearchExample.java +++ b/examples/latest/explore/android/Search/app/src/main/java/com/here/search/SearchExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Search/build.gradle b/examples/latest/explore/android/Search/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/explore/android/Search/build.gradle +++ b/examples/latest/explore/android/Search/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/StandAloneEngine/app/build.gradle b/examples/latest/explore/android/StandAloneEngine/app/build.gradle index 481ad3c6..a4d09bbf 100644 --- a/examples/latest/explore/android/StandAloneEngine/app/build.gradle +++ b/examples/latest/explore/android/StandAloneEngine/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.sdk.standaloneengine' } dependencies { diff --git a/examples/latest/explore/android/StandAloneEngine/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/StandAloneEngine/app/src/main/AndroidManifest.xml index 9866c4ef..c3eb09dd 100644 --- a/examples/latest/explore/android/StandAloneEngine/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/StandAloneEngine/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java b/examples/latest/explore/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java index 0a06835d..198b33cd 100644 --- a/examples/latest/explore/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java +++ b/examples/latest/explore/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/StandAloneEngine/build.gradle b/examples/latest/explore/android/StandAloneEngine/build.gradle index 0a258353..b5093106 100644 --- a/examples/latest/explore/android/StandAloneEngine/build.gradle +++ b/examples/latest/explore/android/StandAloneEngine/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/android/Traffic/app/build.gradle b/examples/latest/explore/android/Traffic/app/build.gradle index 1109cee2..696888fa 100644 --- a/examples/latest/explore/android/Traffic/app/build.gradle +++ b/examples/latest/explore/android/Traffic/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.traffic' } dependencies { diff --git a/examples/latest/explore/android/Traffic/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/Traffic/app/src/main/AndroidManifest.xml index 89f54ba7..c3eb09dd 100644 --- a/examples/latest/explore/android/Traffic/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/Traffic/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java b/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java index 677dc762..0b7104ee 100644 --- a/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java +++ b/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java b/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java index 23dcc4d8..d3ac2de8 100644 --- a/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java +++ b/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java b/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java index 5096d448..e53ca302 100644 --- a/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java +++ b/examples/latest/explore/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/Traffic/build.gradle b/examples/latest/explore/android/Traffic/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/explore/android/Traffic/build.gradle +++ b/examples/latest/explore/android/Traffic/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/explore/android/UnitTesting/app/build.gradle b/examples/latest/explore/android/UnitTesting/app/build.gradle index f7d29632..c5ec2eb3 100644 --- a/examples/latest/explore/android/UnitTesting/app/build.gradle +++ b/examples/latest/explore/android/UnitTesting/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } def getHereSdkArtefactName() { diff --git a/examples/latest/explore/android/UnitTesting/app/src/main/AndroidManifest.xml b/examples/latest/explore/android/UnitTesting/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/explore/android/UnitTesting/app/src/main/AndroidManifest.xml +++ b/examples/latest/explore/android/UnitTesting/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java b/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java index 5da388be..74c90a4f 100644 --- a/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java +++ b/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java b/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java index 004b83a3..b5dfc5dd 100644 --- a/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java +++ b/examples/latest/explore/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java b/examples/latest/explore/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java index 68cee080..97826cb1 100644 --- a/examples/latest/explore/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java +++ b/examples/latest/explore/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/android/UnitTesting/build.gradle b/examples/latest/explore/android/UnitTesting/build.gradle index d2e96556..4afd1a40 100644 --- a/examples/latest/explore/android/UnitTesting/build.gradle +++ b/examples/latest/explore/android/UnitTesting/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/explore/flutter/camera_app/lib/CameraExample.dart b/examples/latest/explore/flutter/camera_app/lib/CameraExample.dart index 3cffac0f..c8ba8118 100644 --- a/examples/latest/explore/flutter/camera_app/lib/CameraExample.dart +++ b/examples/latest/explore/flutter/camera_app/lib/CameraExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/camera_app/lib/main.dart b/examples/latest/explore/flutter/camera_app/lib/main.dart index c821fec7..0bc62675 100644 --- a/examples/latest/explore/flutter/camera_app/lib/main.dart +++ b/examples/latest/explore/flutter/camera_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart index 781c9f7d..0c374958 100644 --- a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart +++ b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart index 652e407b..51c14ca0 100644 --- a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart +++ b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart index da031532..07f3623f 100644 --- a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart +++ b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart index 262c419a..0b041afc 100644 --- a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart +++ b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/main.dart b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/main.dart index e685e848..11b18241 100644 --- a/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/main.dart +++ b/examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart b/examples/latest/explore/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart index c1b6f743..6f1cf942 100644 --- a/examples/latest/explore/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart +++ b/examples/latest/explore/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/custom_map_styles_app/lib/main.dart b/examples/latest/explore/flutter/custom_map_styles_app/lib/main.dart index cb1efbb7..96d8247d 100644 --- a/examples/latest/explore/flutter/custom_map_styles_app/lib/main.dart +++ b/examples/latest/explore/flutter/custom_map_styles_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart b/examples/latest/explore/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart index e1b8beaf..24aabb6d 100644 --- a/examples/latest/explore/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart +++ b/examples/latest/explore/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/custom_raster_layers_app/lib/main.dart b/examples/latest/explore/flutter/custom_raster_layers_app/lib/main.dart index 3f16f420..2173b7bf 100644 --- a/examples/latest/explore/flutter/custom_raster_layers_app/lib/main.dart +++ b/examples/latest/explore/flutter/custom_raster_layers_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/ev_routing_app/lib/EVRoutingExample.dart b/examples/latest/explore/flutter/ev_routing_app/lib/EVRoutingExample.dart index e0767aec..3326291b 100644 --- a/examples/latest/explore/flutter/ev_routing_app/lib/EVRoutingExample.dart +++ b/examples/latest/explore/flutter/ev_routing_app/lib/EVRoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/ev_routing_app/lib/main.dart b/examples/latest/explore/flutter/ev_routing_app/lib/main.dart index 35f08f58..d09f2082 100644 --- a/examples/latest/explore/flutter/ev_routing_app/lib/main.dart +++ b/examples/latest/explore/flutter/ev_routing_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/gestures_app/lib/GesturesExample.dart b/examples/latest/explore/flutter/gestures_app/lib/GesturesExample.dart index bf9a090e..c6b78aa5 100644 --- a/examples/latest/explore/flutter/gestures_app/lib/GesturesExample.dart +++ b/examples/latest/explore/flutter/gestures_app/lib/GesturesExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/gestures_app/lib/main.dart b/examples/latest/explore/flutter/gestures_app/lib/main.dart index d1a4f881..4f205a13 100644 --- a/examples/latest/explore/flutter/gestures_app/lib/main.dart +++ b/examples/latest/explore/flutter/gestures_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/hello_map_app/lib/main.dart b/examples/latest/explore/flutter/hello_map_app/lib/main.dart index 3cbe20fc..10476106 100644 --- a/examples/latest/explore/flutter/hello_map_app/lib/main.dart +++ b/examples/latest/explore/flutter/hello_map_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/map_items_app/lib/MapItemsExample.dart b/examples/latest/explore/flutter/map_items_app/lib/MapItemsExample.dart index 992e2b20..7d8c0996 100644 --- a/examples/latest/explore/flutter/map_items_app/lib/MapItemsExample.dart +++ b/examples/latest/explore/flutter/map_items_app/lib/MapItemsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/map_items_app/lib/MapObjectsExample.dart b/examples/latest/explore/flutter/map_items_app/lib/MapObjectsExample.dart index fc1dab53..bf40fb6b 100644 --- a/examples/latest/explore/flutter/map_items_app/lib/MapObjectsExample.dart +++ b/examples/latest/explore/flutter/map_items_app/lib/MapObjectsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/map_items_app/lib/MapViewPinsExample.dart b/examples/latest/explore/flutter/map_items_app/lib/MapViewPinsExample.dart index 58dee86e..308cbb61 100644 --- a/examples/latest/explore/flutter/map_items_app/lib/MapViewPinsExample.dart +++ b/examples/latest/explore/flutter/map_items_app/lib/MapViewPinsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/map_items_app/lib/MenuSectionExpansionTile.dart b/examples/latest/explore/flutter/map_items_app/lib/MenuSectionExpansionTile.dart index da031532..07f3623f 100644 --- a/examples/latest/explore/flutter/map_items_app/lib/MenuSectionExpansionTile.dart +++ b/examples/latest/explore/flutter/map_items_app/lib/MenuSectionExpansionTile.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/map_items_app/lib/main.dart b/examples/latest/explore/flutter/map_items_app/lib/main.dart index e99417bb..9bb00c57 100644 --- a/examples/latest/explore/flutter/map_items_app/lib/main.dart +++ b/examples/latest/explore/flutter/map_items_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart b/examples/latest/explore/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart index 0b61a53b..3e62e9df 100644 --- a/examples/latest/explore/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart +++ b/examples/latest/explore/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 HERE Europe B.V. + * Copyright (C) 2021-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:here_sdk/core.dart'; import 'package:here_sdk/mapview.dart'; +import 'package:here_sdk/animation.dart'; import 'package:here_sdk/routing.dart'; import 'package:here_sdk/routing.dart' as here; @@ -60,6 +61,7 @@ class PublicTransportRoutingExample { _showRouteDetails(route); _showRouteOnMap(route); _logRouteViolations(route); + _animateToRoute(route); // Log maneuver instructions per route section. List
sections = route.sections; @@ -143,7 +145,7 @@ class PublicTransportRoutingExample { if (geoBox == null) { // Happens only when map is not fully covering the viewport as the map is tilted. print("The map view is tilted, falling back to fixed destination coordinate."); - return GeoCoordinates(52.530932, 13.384915); + return GeoCoordinates(52.520798, 13.409408); } GeoCoordinates northEast = geoBox.northEastCorner; @@ -163,4 +165,22 @@ class PublicTransportRoutingExample { double _getRandom(double min, double max) { return min + Random().nextDouble() * (max - min); } + + void _animateToRoute(here.Route route) { + // The animation results in an untilted and unrotated map. + double bearing = 0; + double tilt = 0; + // We want to show the route fitting in the map view with an additional padding of 50 pixels. + Point2D origin = Point2D(50, 50); + Size2D sizeInPixels = Size2D(_hereMapController.viewportSize.width - 100, _hereMapController.viewportSize.height - 100); + Rectangle2D mapViewport = Rectangle2D(origin, sizeInPixels); + + // Animate to the route within a duration of 3 seconds. + MapCameraUpdate update = MapCameraUpdateFactory.lookAtAreaWithGeoOrientationAndViewRectangle(route!.boundingBox, + GeoOrientationUpdate(bearing, tilt), + mapViewport); + MapCameraAnimation animation = MapCameraAnimationFactory.createAnimationFromUpdate( + update, const Duration(milliseconds: 3000), EasingFunction.inCubic); + _hereMapController.camera.startAnimation(animation); + } } diff --git a/examples/latest/explore/flutter/public_transit_app/lib/main.dart b/examples/latest/explore/flutter/public_transit_app/lib/main.dart index 087b8b73..057713d8 100644 --- a/examples/latest/explore/flutter/public_transit_app/lib/main.dart +++ b/examples/latest/explore/flutter/public_transit_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/routing_app/lib/RoutingExample.dart b/examples/latest/explore/flutter/routing_app/lib/RoutingExample.dart index e79f8bff..a0513416 100644 --- a/examples/latest/explore/flutter/routing_app/lib/RoutingExample.dart +++ b/examples/latest/explore/flutter/routing_app/lib/RoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import 'package:flutter/material.dart'; import 'package:here_sdk/core.dart'; import 'package:here_sdk/core.errors.dart'; import 'package:here_sdk/mapview.dart'; +import 'package:here_sdk/animation.dart'; import 'package:here_sdk/routing.dart'; import 'package:here_sdk/routing.dart' as here; @@ -67,6 +68,7 @@ class RoutingExample { _showRouteOnMap(route); _logRouteSectionDetails(route); _logRouteViolations(route); + _animateToRoute(route); } else { var error = routingError.toString(); _showDialog('Error', 'Error while calculating a route: $error'); @@ -107,9 +109,11 @@ class RoutingExample { void _showRouteDetails(here.Route route) { int estimatedTravelTimeInSeconds = route.duration.inSeconds; + int estimatedTrafficDelayInSeconds = route.trafficDelay.inSeconds; int lengthInMeters = route.lengthInMeters; String routeDetails = 'Travel Time: ' + _formatTime(estimatedTravelTimeInSeconds) + + ', Traffic Delay: ' + _formatTime(estimatedTrafficDelayInSeconds) + ', Length: ' + _formatLength(lengthInMeters); _showDialog('Route Details', '$routeDetails'); @@ -143,7 +147,7 @@ class RoutingExample { if (geoBox == null) { // Happens only when map is not fully covering the viewport as the map is tilted. print("The map view is tilted, falling back to fixed destination coordinate."); - return GeoCoordinates(52.530932, 13.384915); + return GeoCoordinates(52.520798, 13.409408); } GeoCoordinates northEast = geoBox.northEastCorner; @@ -163,4 +167,22 @@ class RoutingExample { double _getRandom(double min, double max) { return min + Random().nextDouble() * (max - min); } + + void _animateToRoute(here.Route route) { + // The animation results in an untilted and unrotated map. + double bearing = 0; + double tilt = 0; + // We want to show the route fitting in the map view with an additional padding of 50 pixels. + Point2D origin = Point2D(50, 50); + Size2D sizeInPixels = Size2D(_hereMapController.viewportSize.width - 100, _hereMapController.viewportSize.height - 100); + Rectangle2D mapViewport = Rectangle2D(origin, sizeInPixels); + + // Animate to the route within a duration of 3 seconds. + MapCameraUpdate update = MapCameraUpdateFactory.lookAtAreaWithGeoOrientationAndViewRectangle(route!.boundingBox, + GeoOrientationUpdate(bearing, tilt), + mapViewport); + MapCameraAnimation animation = MapCameraAnimationFactory.createAnimationFromUpdate( + update, const Duration(milliseconds: 3000), EasingFunction.inCubic); + _hereMapController.camera.startAnimation(animation); + } } diff --git a/examples/latest/explore/flutter/routing_app/lib/main.dart b/examples/latest/explore/flutter/routing_app/lib/main.dart index 47a24381..fa593fb7 100644 --- a/examples/latest/explore/flutter/routing_app/lib/main.dart +++ b/examples/latest/explore/flutter/routing_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/search_app/lib/SearchExample.dart b/examples/latest/explore/flutter/search_app/lib/SearchExample.dart index 10b1d23b..8b8ad768 100644 --- a/examples/latest/explore/flutter/search_app/lib/SearchExample.dart +++ b/examples/latest/explore/flutter/search_app/lib/SearchExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/search_app/lib/SearchResultMetadata.dart b/examples/latest/explore/flutter/search_app/lib/SearchResultMetadata.dart index 3aae2327..9f809e66 100644 --- a/examples/latest/explore/flutter/search_app/lib/SearchResultMetadata.dart +++ b/examples/latest/explore/flutter/search_app/lib/SearchResultMetadata.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/search_app/lib/main.dart b/examples/latest/explore/flutter/search_app/lib/main.dart index 695c0aca..3ebf03ba 100644 --- a/examples/latest/explore/flutter/search_app/lib/main.dart +++ b/examples/latest/explore/flutter/search_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/traffic_app/lib/TrafficExample.dart b/examples/latest/explore/flutter/traffic_app/lib/TrafficExample.dart index bd9dd3a3..fdd2b9e1 100644 --- a/examples/latest/explore/flutter/traffic_app/lib/TrafficExample.dart +++ b/examples/latest/explore/flutter/traffic_app/lib/TrafficExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/traffic_app/lib/main.dart b/examples/latest/explore/flutter/traffic_app/lib/main.dart index a9b9a875..da858253 100644 --- a/examples/latest/explore/flutter/traffic_app/lib/main.dart +++ b/examples/latest/explore/flutter/traffic_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/flutter/unit_testing_app/lib/main.dart b/examples/latest/explore/flutter/unit_testing_app/lib/main.dart index 3164f8ca..9766e956 100644 --- a/examples/latest/explore/flutter/unit_testing_app/lib/main.dart +++ b/examples/latest/explore/flutter/unit_testing_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Camera/Camera/AppDelegate.swift b/examples/latest/explore/ios/Camera/Camera/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/Camera/Camera/AppDelegate.swift +++ b/examples/latest/explore/ios/Camera/Camera/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Camera/Camera/CameraExample.swift b/examples/latest/explore/ios/Camera/Camera/CameraExample.swift index dbe0bee2..00174ac6 100644 --- a/examples/latest/explore/ios/Camera/Camera/CameraExample.swift +++ b/examples/latest/explore/ios/Camera/Camera/CameraExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Camera/Camera/ViewController.swift b/examples/latest/explore/ios/Camera/Camera/ViewController.swift index e483b394..3aad54b8 100644 --- a/examples/latest/explore/ios/Camera/Camera/ViewController.swift +++ b/examples/latest/explore/ios/Camera/Camera/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift +++ b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift index 733254c5..4ec4574f 100644 --- a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift +++ b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift index 2a4f1112..61add111 100644 --- a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift +++ b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift index 7d124dbb..ac179654 100644 --- a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift +++ b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift index 1eca8e10..1e4d121d 100644 --- a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift +++ b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift index bb8b78c2..617dc833 100644 --- a/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift +++ b/examples/latest/explore/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift b/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift +++ b/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift b/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift index a614a44c..4b06bd5d 100644 --- a/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift +++ b/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/ViewController.swift b/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/ViewController.swift index fa03482b..462ca70b 100644 --- a/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/ViewController.swift +++ b/examples/latest/explore/ios/CustomMapStyles/CustomMapStyles/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift b/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift +++ b/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift b/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift index fc4a6fd3..83f6d4bf 100644 --- a/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift +++ b/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,13 +22,11 @@ import UIKit class CustomRasterLayersExample { - private let viewController: UIViewController private let mapView: MapView private var rasterMapLayerTonerStyle: MapLayer! private var rasterDataSourceTonerStyle: RasterDataSource! - init(viewController: UIViewController, mapView: MapView) { - self.viewController = viewController + init(mapView: MapView) { self.mapView = mapView let camera = mapView.camera diff --git a/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift b/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift index 8591b81a..234e512f 100644 --- a/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift +++ b/examples/latest/explore/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ final class ViewController: UIViewController { } // Start the example. - customRasterLayersExample = CustomRasterLayersExample(viewController: self, mapView: mapView) + customRasterLayersExample = CustomRasterLayersExample(mapView: mapView) isMapSceneLoaded = true } diff --git a/examples/latest/explore/ios/EVRouting/EVRouting/AppDelegate.swift b/examples/latest/explore/ios/EVRouting/EVRouting/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/EVRouting/EVRouting/AppDelegate.swift +++ b/examples/latest/explore/ios/EVRouting/EVRouting/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/EVRouting/EVRouting/RoutingExample.swift b/examples/latest/explore/ios/EVRouting/EVRouting/RoutingExample.swift index 15f48875..ac694527 100644 --- a/examples/latest/explore/ios/EVRouting/EVRouting/RoutingExample.swift +++ b/examples/latest/explore/ios/EVRouting/EVRouting/RoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/EVRouting/EVRouting/ViewController.swift b/examples/latest/explore/ios/EVRouting/EVRouting/ViewController.swift index 9908629d..3e0957e8 100644 --- a/examples/latest/explore/ios/EVRouting/EVRouting/ViewController.swift +++ b/examples/latest/explore/ios/EVRouting/EVRouting/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Gestures/Gestures/AppDelegate.swift b/examples/latest/explore/ios/Gestures/Gestures/AppDelegate.swift index 68fc5874..ccc3d69c 100644 --- a/examples/latest/explore/ios/Gestures/Gestures/AppDelegate.swift +++ b/examples/latest/explore/ios/Gestures/Gestures/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Gestures/Gestures/GestureMapAnimator.swift b/examples/latest/explore/ios/Gestures/Gestures/GestureMapAnimator.swift index e74e6136..d374bc01 100644 --- a/examples/latest/explore/ios/Gestures/Gestures/GestureMapAnimator.swift +++ b/examples/latest/explore/ios/Gestures/Gestures/GestureMapAnimator.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Gestures/Gestures/GesturesExample.swift b/examples/latest/explore/ios/Gestures/Gestures/GesturesExample.swift index 18200b9b..84fc98fc 100644 --- a/examples/latest/explore/ios/Gestures/Gestures/GesturesExample.swift +++ b/examples/latest/explore/ios/Gestures/Gestures/GesturesExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Gestures/Gestures/ViewController.swift b/examples/latest/explore/ios/Gestures/Gestures/ViewController.swift index 6f6f1899..20e58f1f 100644 --- a/examples/latest/explore/ios/Gestures/Gestures/ViewController.swift +++ b/examples/latest/explore/ios/Gestures/Gestures/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMap/HelloMap/AppDelegate.swift b/examples/latest/explore/ios/HelloMap/HelloMap/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/HelloMap/HelloMap/AppDelegate.swift +++ b/examples/latest/explore/ios/HelloMap/HelloMap/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMap/HelloMap/ViewController.swift b/examples/latest/explore/ios/HelloMap/HelloMap/ViewController.swift index 6c89ab19..7057935e 100644 --- a/examples/latest/explore/ios/HelloMap/HelloMap/ViewController.swift +++ b/examples/latest/explore/ios/HelloMap/HelloMap/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift b/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift index a6fc5d07..1b661bbf 100644 --- a/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift +++ b/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift b/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift index 256595cc..afeda92e 100644 --- a/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift +++ b/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift b/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift index 98c2c907..bf59061e 100644 --- a/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift +++ b/examples/latest/explore/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift b/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift +++ b/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift b/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift index 1ce67971..74002223 100644 --- a/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift +++ b/examples/latest/explore/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/MapItems/MapItems/AppDelegate.swift b/examples/latest/explore/ios/MapItems/MapItems/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/MapItems/MapItems/AppDelegate.swift +++ b/examples/latest/explore/ios/MapItems/MapItems/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/MapItems/MapItems/MapItemsExample.swift b/examples/latest/explore/ios/MapItems/MapItems/MapItemsExample.swift index 17bf0a87..c019f6ad 100644 --- a/examples/latest/explore/ios/MapItems/MapItems/MapItemsExample.swift +++ b/examples/latest/explore/ios/MapItems/MapItems/MapItemsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/MapItems/MapItems/MapObjectsExample.swift b/examples/latest/explore/ios/MapItems/MapItems/MapObjectsExample.swift index fe74f319..9557b9cb 100644 --- a/examples/latest/explore/ios/MapItems/MapItems/MapObjectsExample.swift +++ b/examples/latest/explore/ios/MapItems/MapItems/MapObjectsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/MapItems/MapItems/MapViewPinsExample.swift b/examples/latest/explore/ios/MapItems/MapItems/MapViewPinsExample.swift index 4a9c469b..1f46aa26 100644 --- a/examples/latest/explore/ios/MapItems/MapItems/MapViewPinsExample.swift +++ b/examples/latest/explore/ios/MapItems/MapItems/MapViewPinsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/MapItems/MapItems/MenuViewController.swift b/examples/latest/explore/ios/MapItems/MapItems/MenuViewController.swift index 329e43bc..301e2fd2 100644 --- a/examples/latest/explore/ios/MapItems/MapItems/MenuViewController.swift +++ b/examples/latest/explore/ios/MapItems/MapItems/MenuViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/MapItems/MapItems/ViewController.swift b/examples/latest/explore/ios/MapItems/MapItems/ViewController.swift index ac2986d0..07c113f6 100644 --- a/examples/latest/explore/ios/MapItems/MapItems/ViewController.swift +++ b/examples/latest/explore/ios/MapItems/MapItems/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/PublicTransit/PublicTransit/AppDelegate.swift b/examples/latest/explore/ios/PublicTransit/PublicTransit/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/PublicTransit/PublicTransit/AppDelegate.swift +++ b/examples/latest/explore/ios/PublicTransit/PublicTransit/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift b/examples/latest/explore/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift index eeaa7899..e10d67e5 100644 --- a/examples/latest/explore/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift +++ b/examples/latest/explore/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/PublicTransit/PublicTransit/ViewController.swift b/examples/latest/explore/ios/PublicTransit/PublicTransit/ViewController.swift index 2f0ac28e..e520487c 100644 --- a/examples/latest/explore/ios/PublicTransit/PublicTransit/ViewController.swift +++ b/examples/latest/explore/ios/PublicTransit/PublicTransit/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Routing/Routing/AppDelegate.swift b/examples/latest/explore/ios/Routing/Routing/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/Routing/Routing/AppDelegate.swift +++ b/examples/latest/explore/ios/Routing/Routing/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Routing/Routing/RoutingExample.swift b/examples/latest/explore/ios/Routing/Routing/RoutingExample.swift index 2afdfd82..cbe5cdaa 100644 --- a/examples/latest/explore/ios/Routing/Routing/RoutingExample.swift +++ b/examples/latest/explore/ios/Routing/Routing/RoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,9 +94,11 @@ class RoutingExample { private func showRouteDetails(route: Route) { let estimatedTravelTimeInSeconds = route.duration + let estimatedTrafficDelayInSeconds = route.trafficDelay let lengthInMeters = route.lengthInMeters - let routeDetails = "Travel Time: " + formatTime(sec: estimatedTravelTimeInSeconds) + let routeDetails = "Travel Time (h:m): " + formatTime(sec: estimatedTravelTimeInSeconds) + + ", Traffic Delay (h:m): " + formatTime(sec: estimatedTrafficDelayInSeconds) + ", Length: " + formatLength(meters: lengthInMeters) showDialog(title: "Route Details", message: routeDetails) diff --git a/examples/latest/explore/ios/Routing/Routing/ViewController.swift b/examples/latest/explore/ios/Routing/Routing/ViewController.swift index 7ac37b39..3720c3b4 100644 --- a/examples/latest/explore/ios/Routing/Routing/ViewController.swift +++ b/examples/latest/explore/ios/Routing/Routing/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Search/Search/AppDelegate.swift b/examples/latest/explore/ios/Search/Search/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/Search/Search/AppDelegate.swift +++ b/examples/latest/explore/ios/Search/Search/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Search/Search/SearchExample.swift b/examples/latest/explore/ios/Search/Search/SearchExample.swift index 60b2565b..acfe4f89 100644 --- a/examples/latest/explore/ios/Search/Search/SearchExample.swift +++ b/examples/latest/explore/ios/Search/Search/SearchExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Search/Search/ViewController.swift b/examples/latest/explore/ios/Search/Search/ViewController.swift index 060dc089..a17df8e6 100644 --- a/examples/latest/explore/ios/Search/Search/ViewController.swift +++ b/examples/latest/explore/ios/Search/Search/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift b/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift index 015e5ff2..90971d41 100644 --- a/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift +++ b/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/ViewController.swift b/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/ViewController.swift index e4318309..0eb8f15c 100644 --- a/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/ViewController.swift +++ b/examples/latest/explore/ios/StandAloneEngine/StandAloneEngine/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Traffic/Traffic/AppDelegate.swift b/examples/latest/explore/ios/Traffic/Traffic/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/Traffic/Traffic/AppDelegate.swift +++ b/examples/latest/explore/ios/Traffic/Traffic/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Traffic/Traffic/TrafficExample.swift b/examples/latest/explore/ios/Traffic/Traffic/TrafficExample.swift index 77727440..e663ab7b 100644 --- a/examples/latest/explore/ios/Traffic/Traffic/TrafficExample.swift +++ b/examples/latest/explore/ios/Traffic/Traffic/TrafficExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/Traffic/Traffic/ViewController.swift b/examples/latest/explore/ios/Traffic/Traffic/ViewController.swift index 5c531446..aa586bf5 100644 --- a/examples/latest/explore/ios/Traffic/Traffic/ViewController.swift +++ b/examples/latest/explore/ios/Traffic/Traffic/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/UnitTesting/UnitTesting/AppDelegate.swift b/examples/latest/explore/ios/UnitTesting/UnitTesting/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/explore/ios/UnitTesting/UnitTesting/AppDelegate.swift +++ b/examples/latest/explore/ios/UnitTesting/UnitTesting/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/UnitTesting/UnitTesting/ViewController.swift b/examples/latest/explore/ios/UnitTesting/UnitTesting/ViewController.swift index fa6b25ca..b1334ea1 100644 --- a/examples/latest/explore/ios/UnitTesting/UnitTesting/ViewController.swift +++ b/examples/latest/explore/ios/UnitTesting/UnitTesting/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/explore/ios/UnitTesting/UnitTests/UnitTests.swift b/examples/latest/explore/ios/UnitTesting/UnitTests/UnitTests.swift index 2c5f4608..9153e98a 100644 --- a/examples/latest/explore/ios/UnitTesting/UnitTests/UnitTests.swift +++ b/examples/latest/explore/ios/UnitTesting/UnitTests/UnitTests.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/CameraLite/app/build.gradle b/examples/latest/lite/android/CameraLite/app/build.gradle index 66e601a6..72e68d27 100644 --- a/examples/latest/lite/android/CameraLite/app/build.gradle +++ b/examples/latest/lite/android/CameraLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.camera' } dependencies { diff --git a/examples/latest/lite/android/CameraLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/CameraLite/app/src/main/AndroidManifest.xml index 2029eeba..aa8e1d8d 100644 --- a/examples/latest/lite/android/CameraLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/CameraLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraAnimator.java b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraAnimator.java index 7a3ad77d..3cf814b5 100644 --- a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraAnimator.java +++ b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraAnimator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraExample.java b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraExample.java index 6add483d..992c6231 100644 --- a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraExample.java +++ b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/CameraExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/MainActivity.java b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/MainActivity.java index 197448c8..ae66a611 100644 --- a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/MainActivity.java +++ b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java index f19ea9e0..22e8b286 100644 --- a/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java +++ b/examples/latest/lite/android/CameraLite/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/CameraLite/build.gradle b/examples/latest/lite/android/CameraLite/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/lite/android/CameraLite/build.gradle +++ b/examples/latest/lite/android/CameraLite/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/lite/android/GesturesLite/app/build.gradle b/examples/latest/lite/android/GesturesLite/app/build.gradle index ef12049a..a4285672 100644 --- a/examples/latest/lite/android/GesturesLite/app/build.gradle +++ b/examples/latest/lite/android/GesturesLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.gestures' } dependencies { diff --git a/examples/latest/lite/android/GesturesLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/GesturesLite/app/src/main/AndroidManifest.xml index 9a6ab14c..aa8e1d8d 100644 --- a/examples/latest/lite/android/GesturesLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/GesturesLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GestureMapAnimator.java b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GestureMapAnimator.java index 89fd8d4c..58fb9ba3 100644 --- a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GestureMapAnimator.java +++ b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GestureMapAnimator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GesturesExample.java b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GesturesExample.java index 2a5c2700..e74a9be7 100644 --- a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GesturesExample.java +++ b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/GesturesExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/MainActivity.java b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/MainActivity.java index c2ac22bd..ec60f6bd 100644 --- a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/MainActivity.java +++ b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/PermissionsRequestor.java b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/PermissionsRequestor.java index e5227ff5..d3339c48 100644 --- a/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/PermissionsRequestor.java +++ b/examples/latest/lite/android/GesturesLite/app/src/main/java/com/here/gestures/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/GesturesLite/build.gradle b/examples/latest/lite/android/GesturesLite/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/lite/android/GesturesLite/build.gradle +++ b/examples/latest/lite/android/GesturesLite/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/lite/android/HelloMapLite/app/build.gradle b/examples/latest/lite/android/HelloMapLite/app/build.gradle index 555b8f90..8875e461 100644 --- a/examples/latest/lite/android/HelloMapLite/app/build.gradle +++ b/examples/latest/lite/android/HelloMapLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } dependencies { diff --git a/examples/latest/lite/android/HelloMapLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/HelloMapLite/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/lite/android/HelloMapLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/HelloMapLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/MainActivity.java b/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/MainActivity.java index 876f77c7..0422db07 100644 --- a/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/MainActivity.java +++ b/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/PermissionsRequestor.java b/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/PermissionsRequestor.java index 004b83a3..b5dfc5dd 100644 --- a/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/PermissionsRequestor.java +++ b/examples/latest/lite/android/HelloMapLite/app/src/main/java/com/here/hellomap/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/HelloMapLite/build.gradle b/examples/latest/lite/android/HelloMapLite/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/lite/android/HelloMapLite/build.gradle +++ b/examples/latest/lite/android/HelloMapLite/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/lite/android/MapItemsLite/app/build.gradle b/examples/latest/lite/android/MapItemsLite/app/build.gradle index 500f48d6..e1234cd3 100644 --- a/examples/latest/lite/android/MapItemsLite/app/build.gradle +++ b/examples/latest/lite/android/MapItemsLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.mapitems' } dependencies { diff --git a/examples/latest/lite/android/MapItemsLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/MapItemsLite/app/src/main/AndroidManifest.xml index 144b074f..aa8e1d8d 100644 --- a/examples/latest/lite/android/MapItemsLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/MapItemsLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MainActivity.java b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MainActivity.java index 349eaba0..b938a9fc 100644 --- a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MainActivity.java +++ b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapItemsExample.java b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapItemsExample.java index 68412f58..670c4331 100644 --- a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapItemsExample.java +++ b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapItemsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapObjectsExample.java b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapObjectsExample.java index 539e6269..f9e7441c 100644 --- a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapObjectsExample.java +++ b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapObjectsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapOverlayExample.java b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapOverlayExample.java index f671a525..030fddb3 100644 --- a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapOverlayExample.java +++ b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/MapOverlayExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/PermissionsRequestor.java b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/PermissionsRequestor.java index 1d7233fb..4e9ab4a5 100644 --- a/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/PermissionsRequestor.java +++ b/examples/latest/lite/android/MapItemsLite/app/src/main/java/com/here/mapitems/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/MapItemsLite/build.gradle b/examples/latest/lite/android/MapItemsLite/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/lite/android/MapItemsLite/build.gradle +++ b/examples/latest/lite/android/MapItemsLite/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/lite/android/RoutingLite/app/build.gradle b/examples/latest/lite/android/RoutingLite/app/build.gradle index 6b8b4f65..7d3750c1 100644 --- a/examples/latest/lite/android/RoutingLite/app/build.gradle +++ b/examples/latest/lite/android/RoutingLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.routing' } dependencies { diff --git a/examples/latest/lite/android/RoutingLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/RoutingLite/app/src/main/AndroidManifest.xml index 65193393..aa8e1d8d 100644 --- a/examples/latest/lite/android/RoutingLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/RoutingLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/MainActivity.java b/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/MainActivity.java index 17dd7469..bb12c530 100644 --- a/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/MainActivity.java +++ b/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/PermissionsRequestor.java b/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/PermissionsRequestor.java index 1de9fba5..43a1fd7c 100644 --- a/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/PermissionsRequestor.java +++ b/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/RoutingExample.java b/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/RoutingExample.java index ec612454..02f01e49 100644 --- a/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/RoutingExample.java +++ b/examples/latest/lite/android/RoutingLite/app/src/main/java/com/here/routing/RoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/RoutingLite/build.gradle b/examples/latest/lite/android/RoutingLite/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/lite/android/RoutingLite/build.gradle +++ b/examples/latest/lite/android/RoutingLite/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/lite/android/SearchLite/app/build.gradle b/examples/latest/lite/android/SearchLite/app/build.gradle index 3dcb155d..4dc12fd6 100644 --- a/examples/latest/lite/android/SearchLite/app/build.gradle +++ b/examples/latest/lite/android/SearchLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.search' } dependencies { diff --git a/examples/latest/lite/android/SearchLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/SearchLite/app/src/main/AndroidManifest.xml index b3e36a82..aa8e1d8d 100644 --- a/examples/latest/lite/android/SearchLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/SearchLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/MainActivity.java b/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/MainActivity.java index 26b16a7d..0d29119c 100644 --- a/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/MainActivity.java +++ b/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/PermissionsRequestor.java b/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/PermissionsRequestor.java index ca1c573f..218cf694 100644 --- a/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/PermissionsRequestor.java +++ b/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/SearchExample.java b/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/SearchExample.java index 3e4152c5..950754c5 100644 --- a/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/SearchExample.java +++ b/examples/latest/lite/android/SearchLite/app/src/main/java/com/here/search/SearchExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/SearchLite/build.gradle b/examples/latest/lite/android/SearchLite/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/lite/android/SearchLite/build.gradle +++ b/examples/latest/lite/android/SearchLite/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/lite/android/StandAloneEngineLite/app/build.gradle b/examples/latest/lite/android/StandAloneEngineLite/app/build.gradle index 481ad3c6..a4d09bbf 100644 --- a/examples/latest/lite/android/StandAloneEngineLite/app/build.gradle +++ b/examples/latest/lite/android/StandAloneEngineLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.sdk.standaloneengine' } dependencies { diff --git a/examples/latest/lite/android/StandAloneEngineLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/StandAloneEngineLite/app/src/main/AndroidManifest.xml index 9866c4ef..c3eb09dd 100644 --- a/examples/latest/lite/android/StandAloneEngineLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/StandAloneEngineLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/StandAloneEngineLite/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java b/examples/latest/lite/android/StandAloneEngineLite/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java index 5b3c95b3..a0e582e3 100644 --- a/examples/latest/lite/android/StandAloneEngineLite/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java +++ b/examples/latest/lite/android/StandAloneEngineLite/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/StandAloneEngineLite/build.gradle b/examples/latest/lite/android/StandAloneEngineLite/build.gradle index 0a258353..b5093106 100644 --- a/examples/latest/lite/android/StandAloneEngineLite/build.gradle +++ b/examples/latest/lite/android/StandAloneEngineLite/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/lite/android/TrafficLite/app/build.gradle b/examples/latest/lite/android/TrafficLite/app/build.gradle index 1109cee2..696888fa 100644 --- a/examples/latest/lite/android/TrafficLite/app/build.gradle +++ b/examples/latest/lite/android/TrafficLite/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.traffic' } dependencies { diff --git a/examples/latest/lite/android/TrafficLite/app/src/main/AndroidManifest.xml b/examples/latest/lite/android/TrafficLite/app/src/main/AndroidManifest.xml index 49025c01..aa8e1d8d 100644 --- a/examples/latest/lite/android/TrafficLite/app/src/main/AndroidManifest.xml +++ b/examples/latest/lite/android/TrafficLite/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/MainActivity.java b/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/MainActivity.java index 288da592..efb27206 100644 --- a/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/MainActivity.java +++ b/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/PermissionsRequestor.java b/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/PermissionsRequestor.java index 23dcc4d8..d3ac2de8 100644 --- a/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/PermissionsRequestor.java +++ b/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/TrafficExample.java b/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/TrafficExample.java index 5a1375e8..eb9446b9 100644 --- a/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/TrafficExample.java +++ b/examples/latest/lite/android/TrafficLite/app/src/main/java/com/here/traffic/TrafficExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/lite/android/TrafficLite/build.gradle b/examples/latest/lite/android/TrafficLite/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/lite/android/TrafficLite/build.gradle +++ b/examples/latest/lite/android/TrafficLite/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/Camera/app/build.gradle b/examples/latest/navigate/android/Camera/app/build.gradle index 66e601a6..72e68d27 100644 --- a/examples/latest/navigate/android/Camera/app/build.gradle +++ b/examples/latest/navigate/android/Camera/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.camera' } dependencies { diff --git a/examples/latest/navigate/android/Camera/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Camera/app/src/main/AndroidManifest.xml index 2029eeba..aa8e1d8d 100644 --- a/examples/latest/navigate/android/Camera/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Camera/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java b/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java index 768638b3..5cdfe683 100644 --- a/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java +++ b/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/CameraExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java b/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java index 4dc19d36..4acbe077 100644 --- a/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java +++ b/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java b/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java index f19ea9e0..22e8b286 100644 --- a/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Camera/app/src/main/java/com/here/sdk/camera/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Camera/build.gradle b/examples/latest/navigate/android/Camera/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/navigate/android/Camera/build.gradle +++ b/examples/latest/navigate/android/Camera/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/build.gradle b/examples/latest/navigate/android/CameraKeyframeTracks/app/build.gradle index e1c890d3..8a0a111c 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/build.gradle +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/build.gradle @@ -25,6 +25,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.camerakeyframetracks' } dependencies { diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml index 15186f1c..f9f1dba3 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + xmlns:tools="http://schemas.android.com/tools"> + diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java index 6eff2b61..d6cbe79c 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/CameraKeyframeTracksExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java index 8f9a383a..33597e1e 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java index c04cc000..387dfc51 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java index a200f110..a8ca8a99 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteAnimationExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java index 5b01d70b..3ce15a5c 100644 --- a/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java +++ b/examples/latest/navigate/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/RouteCalculator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CartoPOIPicking/app/build.gradle b/examples/latest/navigate/android/CartoPOIPicking/app/build.gradle index f05e4051..217fdd9b 100644 --- a/examples/latest/navigate/android/CartoPOIPicking/app/build.gradle +++ b/examples/latest/navigate/android/CartoPOIPicking/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.cartopoipicking' } dependencies { diff --git a/examples/latest/navigate/android/CartoPOIPicking/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/CartoPOIPicking/app/src/main/AndroidManifest.xml index eea37ef6..aa8e1d8d 100644 --- a/examples/latest/navigate/android/CartoPOIPicking/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/CartoPOIPicking/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/MainActivity.java b/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/MainActivity.java index e53bc6f7..41e978c5 100644 --- a/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/MainActivity.java +++ b/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/PermissionsRequestor.java b/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/PermissionsRequestor.java index ad1a6172..0158415b 100644 --- a/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/PermissionsRequestor.java +++ b/examples/latest/navigate/android/CartoPOIPicking/app/src/main/java/com/here/cartopoipicking/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CartoPOIPicking/build.gradle b/examples/latest/navigate/android/CartoPOIPicking/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/CartoPOIPicking/build.gradle +++ b/examples/latest/navigate/android/CartoPOIPicking/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/CustomMapStyles/app/build.gradle b/examples/latest/navigate/android/CustomMapStyles/app/build.gradle index fc18112f..7659d1fc 100644 --- a/examples/latest/navigate/android/CustomMapStyles/app/build.gradle +++ b/examples/latest/navigate/android/CustomMapStyles/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.custommapstyles' } dependencies { diff --git a/examples/latest/navigate/android/CustomMapStyles/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/CustomMapStyles/app/src/main/AndroidManifest.xml index 0bea881c..aa8e1d8d 100644 --- a/examples/latest/navigate/android/CustomMapStyles/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/CustomMapStyles/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java b/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java index 38134242..5e288d44 100644 --- a/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java +++ b/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java b/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java index 1aaaa53f..fec6c2c3 100644 --- a/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java +++ b/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java b/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java index 6aec49c8..f48d6554 100644 --- a/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java +++ b/examples/latest/navigate/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CustomMapStyles/build.gradle b/examples/latest/navigate/android/CustomMapStyles/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/navigate/android/CustomMapStyles/build.gradle +++ b/examples/latest/navigate/android/CustomMapStyles/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/CustomRasterLayers/app/build.gradle b/examples/latest/navigate/android/CustomRasterLayers/app/build.gradle index 663906c7..c95cdfc6 100644 --- a/examples/latest/navigate/android/CustomRasterLayers/app/build.gradle +++ b/examples/latest/navigate/android/CustomRasterLayers/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + namespace 'com.here.sdk.customrasterlayers' } dependencies { diff --git a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/AndroidManifest.xml index 769e093e..aa8e1d8d 100644 --- a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java index 89032bba..c3929ccf 100644 --- a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java +++ b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/CustomRasterLayersExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java index bec75314..e66994a3 100644 --- a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java +++ b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java index f258b7d5..67eff84c 100644 --- a/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java +++ b/examples/latest/navigate/android/CustomRasterLayers/app/src/main/java/com/here/sdk/customrasterlayers/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/CustomRasterLayers/build.gradle b/examples/latest/navigate/android/CustomRasterLayers/build.gradle index ca445ea7..d38df51c 100644 --- a/examples/latest/navigate/android/CustomRasterLayers/build.gradle +++ b/examples/latest/navigate/android/CustomRasterLayers/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/EVRouting/app/build.gradle b/examples/latest/navigate/android/EVRouting/app/build.gradle index ea4a1d5f..59f8fcdb 100644 --- a/examples/latest/navigate/android/EVRouting/app/build.gradle +++ b/examples/latest/navigate/android/EVRouting/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.evrouting' } dependencies { diff --git a/examples/latest/navigate/android/EVRouting/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/EVRouting/app/src/main/AndroidManifest.xml index 6595441a..aa8e1d8d 100644 --- a/examples/latest/navigate/android/EVRouting/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/EVRouting/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java b/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java index 838c7bf9..4cd8e9d3 100644 --- a/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java +++ b/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/EVRoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java b/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java index 9c678ae5..703384da 100644 --- a/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java +++ b/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java b/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java index 30512dc7..815b759e 100644 --- a/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java +++ b/examples/latest/navigate/android/EVRouting/app/src/main/java/com/here/evrouting/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/EVRouting/build.gradle b/examples/latest/navigate/android/EVRouting/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/EVRouting/build.gradle +++ b/examples/latest/navigate/android/EVRouting/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/Gestures/app/build.gradle b/examples/latest/navigate/android/Gestures/app/build.gradle index ef12049a..a4285672 100644 --- a/examples/latest/navigate/android/Gestures/app/build.gradle +++ b/examples/latest/navigate/android/Gestures/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.gestures' } dependencies { diff --git a/examples/latest/navigate/android/Gestures/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Gestures/app/src/main/AndroidManifest.xml index 9a6ab14c..aa8e1d8d 100644 --- a/examples/latest/navigate/android/Gestures/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Gestures/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java index d7edbe3f..a86818b2 100644 --- a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java +++ b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GestureMapAnimator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java index c1ca9598..d1d3c5f1 100644 --- a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java +++ b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/GesturesExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java index b16dbf82..bb0bfff1 100644 --- a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java +++ b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java index e5227ff5..d3339c48 100644 --- a/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Gestures/app/src/main/java/com/here/gestures/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Gestures/build.gradle b/examples/latest/navigate/android/Gestures/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/Gestures/build.gradle +++ b/examples/latest/navigate/android/Gestures/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/HelloMap/app/build.gradle b/examples/latest/navigate/android/HelloMap/app/build.gradle index 555b8f90..8875e461 100644 --- a/examples/latest/navigate/android/HelloMap/app/build.gradle +++ b/examples/latest/navigate/android/HelloMap/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } dependencies { diff --git a/examples/latest/navigate/android/HelloMap/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/HelloMap/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/navigate/android/HelloMap/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/HelloMap/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java b/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java index bf192020..445c015a 100644 --- a/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java +++ b/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java b/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java index 004b83a3..b5dfc5dd 100644 --- a/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java +++ b/examples/latest/navigate/android/HelloMap/app/src/main/java/com/here/hellomap/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMap/build.gradle b/examples/latest/navigate/android/HelloMap/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/HelloMap/build.gradle +++ b/examples/latest/navigate/android/HelloMap/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/app/build.gradle b/examples/latest/navigate/android/HelloMapAndroidAuto/app/build.gradle index e95eaa68..ddd3ba30 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/app/build.gradle +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomapandroidauto' } dependencies { diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml index 88621342..f3435692 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ - + diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java index 84a5f28b..2fae2079 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapCarAppService.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java index d222d369..e87bd85e 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/HelloMapScreen.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java index 2aaf7877..6d6d5e5a 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java index 2b18dc3d..1727ea8b 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/app/src/main/java/com/here/hellomapandroidauto/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMapAndroidAuto/build.gradle b/examples/latest/navigate/android/HelloMapAndroidAuto/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/HelloMapAndroidAuto/build.gradle +++ b/examples/latest/navigate/android/HelloMapAndroidAuto/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/HelloMapKotlin/app/build.gradle b/examples/latest/navigate/android/HelloMapKotlin/app/build.gradle index 613dec72..88f32f40 100644 --- a/examples/latest/navigate/android/HelloMapKotlin/app/build.gradle +++ b/examples/latest/navigate/android/HelloMapKotlin/app/build.gradle @@ -21,6 +21,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } dependencies { diff --git a/examples/latest/navigate/android/HelloMapKotlin/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/HelloMapKotlin/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/navigate/android/HelloMapKotlin/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/HelloMapKotlin/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt b/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt index b526f645..8b6ca4e2 100644 --- a/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt +++ b/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/MainActivity.kt @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2021 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt b/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt index 566b952c..ba1cbd22 100644 --- a/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt +++ b/examples/latest/navigate/android/HelloMapKotlin/app/src/main/java/com/here/hellomap/PermissionsRequestor.kt @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2021 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/HelloMapKotlin/build.gradle b/examples/latest/navigate/android/HelloMapKotlin/build.gradle index 8d827735..268067e4 100644 --- a/examples/latest/navigate/android/HelloMapKotlin/build.gradle +++ b/examples/latest/navigate/android/HelloMapKotlin/build.gradle @@ -1,12 +1,12 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.5.20-M1' + ext.kotlin_version = '1.5.20' repositories { google() mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/IndoorMap/app/build.gradle b/examples/latest/navigate/android/IndoorMap/app/build.gradle index 4a0117db..26f50929 100644 --- a/examples/latest/navigate/android/IndoorMap/app/build.gradle +++ b/examples/latest/navigate/android/IndoorMap/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.sdk.examples.venues' } dependencies { diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/IndoorMap/app/src/main/AndroidManifest.xml index d78bbbe9..aa8e1d8d 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/DrawingSwitcher.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/DrawingSwitcher.java index 6636f1b8..af42255c 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/DrawingSwitcher.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/DrawingSwitcher.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelAdapter.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelAdapter.java index d054d9b1..e94c121e 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelAdapter.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelItemView.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelItemView.java index 694c5bff..58d94975 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelItemView.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelItemView.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelSwitcher.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelSwitcher.java index 8a1cd569..d56f18de 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelSwitcher.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/LevelSwitcher.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/MainActivity.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/MainActivity.java index 25f197d5..eb21c08e 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/MainActivity.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -214,7 +214,7 @@ private void onVenueEngineInitCompleted() { } }); - if(HRN != "") { + if ((HRN != "") && (HRN != "YOUR_CATALOG_HRN")) { // Set platform catalog HRN service.setHrn(HRN); } diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/PermissionsRequestor.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/PermissionsRequestor.java index d7cec5ff..8c3b1be4 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/PermissionsRequestor.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/StringArrayAdapter.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/StringArrayAdapter.java index f3587ae4..fd5f8747 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/StringArrayAdapter.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/StringArrayAdapter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueSearchController.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueSearchController.java index 99eccbaa..6975b9ae 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueSearchController.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueSearchController.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueTapController.java b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueTapController.java index d90df85e..62fe8e4f 100644 --- a/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueTapController.java +++ b/examples/latest/navigate/android/IndoorMap/app/src/main/java/com/here/sdk/examples/venues/VenueTapController.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/IndoorMap/build.gradle b/examples/latest/navigate/android/IndoorMap/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/IndoorMap/build.gradle +++ b/examples/latest/navigate/android/IndoorMap/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/MapItems/app/build.gradle b/examples/latest/navigate/android/MapItems/app/build.gradle index c1d81639..58ad9a99 100644 --- a/examples/latest/navigate/android/MapItems/app/build.gradle +++ b/examples/latest/navigate/android/MapItems/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.mapitems' } dependencies { diff --git a/examples/latest/navigate/android/MapItems/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/MapItems/app/src/main/AndroidManifest.xml index 144b074f..aa8e1d8d 100644 --- a/examples/latest/navigate/android/MapItems/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/MapItems/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java index e721a0f6..0b3d11e8 100644 --- a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java +++ b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java index d75e7b5c..d329a346 100644 --- a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java +++ b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapItemsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java index 16bf9d98..068d2921 100644 --- a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java +++ b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapObjectsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java index 5a1e2a8c..ba6525fa 100644 --- a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java +++ b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/MapViewPinExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java index f72d8ae8..d12355f7 100644 --- a/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java +++ b/examples/latest/navigate/android/MapItems/app/src/main/java/com/here/mapitems/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MapItems/build.gradle b/examples/latest/navigate/android/MapItems/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/MapItems/build.gradle +++ b/examples/latest/navigate/android/MapItems/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/MultiDisplays/app/build.gradle b/examples/latest/navigate/android/MultiDisplays/app/build.gradle index 0cd41173..152e105e 100644 --- a/examples/latest/navigate/android/MultiDisplays/app/build.gradle +++ b/examples/latest/navigate/android/MultiDisplays/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.multidisplays' } dependencies { diff --git a/examples/latest/navigate/android/MultiDisplays/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/MultiDisplays/app/src/main/AndroidManifest.xml index 93f3de00..066f4463 100644 --- a/examples/latest/navigate/android/MultiDisplays/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/MultiDisplays/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java b/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java index 369cfc3e..99031ceb 100644 --- a/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java +++ b/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/DataBroadcast.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java b/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java index 757e4e5c..e14c7933 100644 --- a/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java +++ b/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java b/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java index 17c3d237..7ec4cdb5 100644 --- a/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java +++ b/examples/latest/navigate/android/MultiDisplays/app/src/main/java/com/here/multidisplays/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/MultiDisplays/build.gradle b/examples/latest/navigate/android/MultiDisplays/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/MultiDisplays/build.gradle +++ b/examples/latest/navigate/android/MultiDisplays/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/Navigation/app/build.gradle b/examples/latest/navigate/android/Navigation/app/build.gradle index 8b9c4798..ad0e1561 100644 --- a/examples/latest/navigate/android/Navigation/app/build.gradle +++ b/examples/latest/navigate/android/Navigation/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.navigation' } dependencies { diff --git a/examples/latest/navigate/android/Navigation/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Navigation/app/src/main/AndroidManifest.xml index 126433f1..5da4a21d 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Navigation/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/App.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/App.java index e6c84bba..36d4fb5d 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/App.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/App.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/ConsentStateActivity.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/ConsentStateActivity.java index 3f627cef..88483eac 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/ConsentStateActivity.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/ConsentStateActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningProvider.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningProvider.java index c058e670..28d031f2 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningProvider.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningProvider.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningSimulator.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningSimulator.java index 20827b1b..92e79c15 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningSimulator.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/HEREPositioningSimulator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/LanguageCodeConverter.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/LanguageCodeConverter.java index 7d46aade..b9a9579a 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/LanguageCodeConverter.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/LanguageCodeConverter.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/MainActivity.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/MainActivity.java index ad2a7d71..403b4b7c 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/MainActivity.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/NavigationExample.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/NavigationExample.java index e9b6d57d..b701233f 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/NavigationExample.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/NavigationExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,6 +33,7 @@ import com.here.sdk.core.LanguageCode; import com.here.sdk.core.Location; import com.here.sdk.core.UnitSystem; +import com.here.sdk.core.engine.SDKNativeEngine; import com.here.sdk.core.errors.InstantiationErrorException; import com.here.sdk.location.LocationAccuracy; import com.here.sdk.mapview.MapView; @@ -85,6 +86,7 @@ import com.here.sdk.navigation.TruckRestrictionsWarningListener; import com.here.sdk.navigation.VisualNavigator; import com.here.sdk.navigation.WeightRestrictionType; +import com.here.sdk.prefetcher.RoutePrefetcher; import com.here.sdk.routing.Maneuver; import com.here.sdk.routing.ManeuverAction; import com.here.sdk.routing.RoadTexts; @@ -116,6 +118,7 @@ public class NavigationExample { private final VoiceAssistant voiceAssistant; private int previousManeuverIndex = -1; private MapMatchedLocation lastMapMatchedLocation; + private RoutePrefetcher routePrefetcher; private final TextView messageView; @@ -127,6 +130,9 @@ public NavigationExample(Context context, MapView mapView, TextView messageView) herePositioningProvider = new HEREPositioningProvider(); // A class to receive simulated location events. herePositioningSimulator = new HEREPositioningSimulator(); + // The RoutePrefetcher downloads map data in advance into the map cache. + // This is not mandatory, but can help to improve the guidance experience. + routePrefetcher = new RoutePrefetcher(SDKNativeEngine.getSharedInstance()); try { // Without a route set, this starts tracking mode. @@ -157,6 +163,16 @@ public void startLocationProvider() { herePositioningProvider.startLocating(visualNavigator, LocationAccuracy.NAVIGATION); } + private void prefetchMapData(GeoCoordinates currentGeoCoordinates) { + // Prefetches map data around the provided location with a radius of 2 km into the map cache. + // For the best experience, prefetchAroundLocation() should be called as early as possible. + routePrefetcher.prefetchAroundLocation(currentGeoCoordinates); + // Prefetches map data within a corridor along the route that is currently set to the provided Navigator instance. + // This happens continuously in discrete intervals. + // If no route is set, no data will be prefetched. + routePrefetcher.prefetchAroundRouteOnIntervals(visualNavigator); + } + private void createDynamicRoutingEngine() { DynamicRoutingEngineOptions dynamicRoutingOptions = new DynamicRoutingEngineOptions(); // We want an update for each poll iteration, so we specify 0 difference. @@ -166,7 +182,7 @@ private void createDynamicRoutingEngine() { try { // With the dynamic routing engine you can poll the HERE backend services to search for routes with less traffic. - // THis can happen during guidance - or you can periodically update a route that is shown in a route planner. + // This can happen during guidance - or you can periodically update a route that is shown in a route planner. dynamicRoutingEngine = new DynamicRoutingEngine(dynamicRoutingOptions); } catch (InstantiationErrorException e) { throw new RuntimeException("Initialization of DynamicRoutingEngine failed: " + e.error.name()); @@ -662,6 +678,9 @@ private Double getCurrentSpeedLimit(SpeedLimit speedLimit) { } public void startNavigation(Route route, boolean isSimulated) { + GeoCoordinates startGeoCoordinates = route.getGeometry().vertices.get(0); + prefetchMapData(startGeoCoordinates); + setupSpeedWarnings(); setupVoiceGuidance(); @@ -716,6 +735,7 @@ public void stopNavigation() { messageView.setText("Tracking device's location."); dynamicRoutingEngine.stop(); + routePrefetcher.stopPrefetchAroundRoute(); } // Provides simulated location updates based on the given route. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/PermissionsRequestor.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/PermissionsRequestor.java index 62fafd03..2b800cd4 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/RouteCalculator.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/RouteCalculator.java index 9678fb77..564179bb 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/RouteCalculator.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/RouteCalculator.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/VoiceAssistant.java b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/VoiceAssistant.java index 09053357..978a7a58 100644 --- a/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/VoiceAssistant.java +++ b/examples/latest/navigate/android/Navigation/app/src/main/java/com/here/navigation/VoiceAssistant.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Navigation/build.gradle b/examples/latest/navigate/android/Navigation/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/Navigation/build.gradle +++ b/examples/latest/navigate/android/Navigation/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/NavigationCustom/app/build.gradle b/examples/latest/navigate/android/NavigationCustom/app/build.gradle index 429e793c..13567b4b 100644 --- a/examples/latest/navigate/android/NavigationCustom/app/build.gradle +++ b/examples/latest/navigate/android/NavigationCustom/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.navigationcustom' } dependencies { diff --git a/examples/latest/navigate/android/NavigationCustom/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/NavigationCustom/app/src/main/AndroidManifest.xml index 3f84d3ac..aa8e1d8d 100644 --- a/examples/latest/navigate/android/NavigationCustom/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/NavigationCustom/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/MainActivity.java b/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/MainActivity.java index dd2af513..c753e566 100644 --- a/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/MainActivity.java +++ b/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/PermissionsRequestor.java b/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/PermissionsRequestor.java index 7f7c32f7..39be84ab 100644 --- a/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/PermissionsRequestor.java +++ b/examples/latest/navigate/android/NavigationCustom/app/src/main/java/com/here/navigationcustom/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/NavigationCustom/build.gradle b/examples/latest/navigate/android/NavigationCustom/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/NavigationCustom/build.gradle +++ b/examples/latest/navigate/android/NavigationCustom/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/NavigationQuickStart/README.md b/examples/latest/navigate/android/NavigationQuickStart/README.md index 3709af67..a25b6117 100644 --- a/examples/latest/navigate/android/NavigationQuickStart/README.md +++ b/examples/latest/navigate/android/NavigationQuickStart/README.md @@ -1,4 +1,4 @@ -The Navigation Quick Start example app shows how the HERE SDK can be set up to navigate to a location in the most simplest way. +The Navigation Quick Start example app shows how the HERE SDK can be set up to navigate to a location in the most simplest way. It also shows how to properly handle screen orienation changes. Build instructions: ------------------- diff --git a/examples/latest/navigate/android/NavigationQuickStart/app/build.gradle b/examples/latest/navigate/android/NavigationQuickStart/app/build.gradle index 555944e2..fc94291b 100644 --- a/examples/latest/navigate/android/NavigationQuickStart/app/build.gradle +++ b/examples/latest/navigate/android/NavigationQuickStart/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.navigationquickstart' } dependencies { diff --git a/examples/latest/navigate/android/NavigationQuickStart/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/NavigationQuickStart/app/src/main/AndroidManifest.xml index d05a7b51..ffa02b00 100644 --- a/examples/latest/navigate/android/NavigationQuickStart/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/NavigationQuickStart/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> @@ -24,8 +23,7 @@ tools:node="remove" /> + android:exported="true"> diff --git a/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/MainActivity.java b/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/MainActivity.java index 2abd9657..4753f852 100644 --- a/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/MainActivity.java +++ b/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,15 +64,24 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Usually, you need to initialize the HERE SDK only once during the lifetime of an application. - initializeHERESDK(); + if (SDKNativeEngine.getSharedInstance() == null) { + initializeHERESDK(); + // We are starting from scratch without a bundled state. + setupMapView(null); + handleAndroidPermissions(); + } else { + // The Activity is recreated, for example, due to an orientation change: + // We can reuse the bundled state and keep the existing HERE SDK instance. + setupMapView(savedInstanceState); + } + } + private void setupMapView(Bundle savedInstanceState) { setContentView(R.layout.activity_main); - - // Get a MapView instance from the layout. + // Get MapView instance from layout. mapView = findViewById(R.id.map_view); + // If the Activity is recreated, we can start with the last bundled state of the map view. mapView.onCreate(savedInstanceState); - - handleAndroidPermissions(); } private void initializeHERESDK() { @@ -106,6 +115,7 @@ public void permissionsDenied() { @Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { + super.onRequestPermissionsResult(requestCode, permissions, grantResults); permissionsRequestor.onRequestPermissionsResult(requestCode, grantResults); } @@ -210,8 +220,10 @@ protected void onResume() { @Override protected void onDestroy() { mapView.onDestroy(); - disposeHERESDK(); super.onDestroy(); + if (isFinishing()) { + disposeHERESDK(); + } } @Override diff --git a/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/PermissionsRequestor.java b/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/PermissionsRequestor.java index 28dc85f5..8e1ecee0 100644 --- a/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/PermissionsRequestor.java +++ b/examples/latest/navigate/android/NavigationQuickStart/app/src/main/java/com/here/navigationquickstart/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/NavigationQuickStart/build.gradle b/examples/latest/navigate/android/NavigationQuickStart/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/NavigationQuickStart/build.gradle +++ b/examples/latest/navigate/android/NavigationQuickStart/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/OfflineMaps/app/build.gradle b/examples/latest/navigate/android/OfflineMaps/app/build.gradle index 3235fb86..e05383f5 100644 --- a/examples/latest/navigate/android/OfflineMaps/app/build.gradle +++ b/examples/latest/navigate/android/OfflineMaps/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.offlinemaps' } dependencies { diff --git a/examples/latest/navigate/android/OfflineMaps/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/OfflineMaps/app/src/main/AndroidManifest.xml index bb04069e..aa8e1d8d 100644 --- a/examples/latest/navigate/android/OfflineMaps/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/OfflineMaps/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/MainActivity.java b/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/MainActivity.java index fb73090c..9c7b20e6 100644 --- a/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/MainActivity.java +++ b/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/OfflineMapsExample.java b/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/OfflineMapsExample.java index 1b062c92..4d5bdf05 100644 --- a/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/OfflineMapsExample.java +++ b/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/OfflineMapsExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/PermissionsRequestor.java b/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/PermissionsRequestor.java index dcfa6386..80471472 100644 --- a/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/PermissionsRequestor.java +++ b/examples/latest/navigate/android/OfflineMaps/app/src/main/java/com/here/offlinemaps/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/OfflineMaps/build.gradle b/examples/latest/navigate/android/OfflineMaps/build.gradle index 51e19282..437b3f3f 100644 --- a/examples/latest/navigate/android/OfflineMaps/build.gradle +++ b/examples/latest/navigate/android/OfflineMaps/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/Positioning/app/build.gradle b/examples/latest/navigate/android/Positioning/app/build.gradle index 409e4b7c..279c82ec 100644 --- a/examples/latest/navigate/android/Positioning/app/build.gradle +++ b/examples/latest/navigate/android/Positioning/app/build.gradle @@ -23,6 +23,8 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + + namespace 'com.here.examples.positioning' } dependencies { diff --git a/examples/latest/navigate/android/Positioning/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Positioning/app/src/main/AndroidManifest.xml index df99895a..ab7e5748 100644 --- a/examples/latest/navigate/android/Positioning/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Positioning/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/ConsentStateActivity.java b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/ConsentStateActivity.java index bf24eb54..f10b13f7 100644 --- a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/ConsentStateActivity.java +++ b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/ConsentStateActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/MainActivity.java b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/MainActivity.java index f83835eb..21b1c4a5 100644 --- a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/MainActivity.java +++ b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PermissionsRequestor.java b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PermissionsRequestor.java index a02b1cb5..3d9f3339 100644 --- a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PositioningExample.java b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PositioningExample.java index 4c906f48..60034fa7 100644 --- a/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PositioningExample.java +++ b/examples/latest/navigate/android/Positioning/app/src/main/java/com/here/examples/positioning/PositioningExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Positioning/build.gradle b/examples/latest/navigate/android/Positioning/build.gradle index 3de4f497..028359be 100644 --- a/examples/latest/navigate/android/Positioning/build.gradle +++ b/examples/latest/navigate/android/Positioning/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath "com.android.tools.build:gradle:7.1.2" + classpath "com.android.tools.build:gradle:7.3.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/build.gradle b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/build.gradle index 834170cd..089a6d39 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/build.gradle +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/build.gradle @@ -23,6 +23,8 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } + + namespace 'com.here.examples.positioningwithbackgroundupdates' } dependencies { diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/AndroidManifest.xml index a4ca0cf2..f4ac2389 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/BackgroundPositioningExample.java b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/BackgroundPositioningExample.java index a1a9cad1..5603f5e2 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/BackgroundPositioningExample.java +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/BackgroundPositioningExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 HERE Europe B.V. + * Copyright (C) 2022-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/ConsentStateActivity.java b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/ConsentStateActivity.java index 8848d107..2cc16463 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/ConsentStateActivity.java +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/ConsentStateActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 HERE Europe B.V. + * Copyright (C) 2022-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/HEREBackgroundPositioningService.java b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/HEREBackgroundPositioningService.java index a42ee1d0..b4c63f57 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/HEREBackgroundPositioningService.java +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/HEREBackgroundPositioningService.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 HERE Europe B.V. + * Copyright (C) 2022-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/MainActivity.java b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/MainActivity.java index 42c68764..d2c27fa1 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/MainActivity.java +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 HERE Europe B.V. + * Copyright (C) 2022-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/NotificationUtils.java b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/NotificationUtils.java index 3fa4e60d..a322efad 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/NotificationUtils.java +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/NotificationUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 HERE Europe B.V. + * Copyright (C) 2022-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/PermissionsRequestor.java b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/PermissionsRequestor.java index 9b1ddb02..04ae2d97 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/PermissionsRequestor.java +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/app/src/main/java/com/here/examples/positioningwithbackgroundupdates/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 HERE Europe B.V. + * Copyright (C) 2022-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/build.gradle b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/build.gradle index 0e0bd2e6..028359be 100644 --- a/examples/latest/navigate/android/PositioningWithBackgroundUpdates/build.gradle +++ b/examples/latest/navigate/android/PositioningWithBackgroundUpdates/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath "com.android.tools.build:gradle:4.1.2" + classpath "com.android.tools.build:gradle:7.3.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/PublicTransit/app/build.gradle b/examples/latest/navigate/android/PublicTransit/app/build.gradle index 655d9951..db108892 100644 --- a/examples/latest/navigate/android/PublicTransit/app/build.gradle +++ b/examples/latest/navigate/android/PublicTransit/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.routing' } dependencies { diff --git a/examples/latest/navigate/android/PublicTransit/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/PublicTransit/app/src/main/AndroidManifest.xml index 65193393..aa8e1d8d 100644 --- a/examples/latest/navigate/android/PublicTransit/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/PublicTransit/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java b/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java index dcef518a..60f009bc 100644 --- a/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java +++ b/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java b/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java index fc3ab8d2..1c24a446 100644 --- a/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java +++ b/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java b/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java index 43a2d9b7..3668339c 100644 --- a/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java +++ b/examples/latest/navigate/android/PublicTransit/app/src/main/java/com/here/routing/PublicTransportRoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/PublicTransit/build.gradle b/examples/latest/navigate/android/PublicTransit/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/PublicTransit/build.gradle +++ b/examples/latest/navigate/android/PublicTransit/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/Routing/app/build.gradle b/examples/latest/navigate/android/Routing/app/build.gradle index 655d9951..db108892 100644 --- a/examples/latest/navigate/android/Routing/app/build.gradle +++ b/examples/latest/navigate/android/Routing/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.routing' } dependencies { diff --git a/examples/latest/navigate/android/Routing/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Routing/app/src/main/AndroidManifest.xml index 65193393..aa8e1d8d 100644 --- a/examples/latest/navigate/android/Routing/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Routing/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/MainActivity.java b/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/MainActivity.java index 59d889a7..645bf27e 100644 --- a/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/MainActivity.java +++ b/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java b/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java index fc3ab8d2..1c24a446 100644 --- a/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java b/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java index 71cd462c..5e939812 100644 --- a/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java +++ b/examples/latest/navigate/android/Routing/app/src/main/java/com/here/routing/RoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,9 +138,11 @@ private void logRouteSectionDetails(Route route) { private void showRouteDetails(Route route) { long estimatedTravelTimeInSeconds = route.getDuration().getSeconds(); + long estimatedTrafficDelayInSeconds = route.getTrafficDelay().getSeconds(); int lengthInMeters = route.getLengthInMeters(); String routeDetails = "Travel Time: " + formatTime(estimatedTravelTimeInSeconds) + + ", traffic delay: " + formatTime(estimatedTrafficDelayInSeconds) + ", Length: " + formatLength(lengthInMeters); showDialog("Route Details", routeDetails); diff --git a/examples/latest/navigate/android/Routing/build.gradle b/examples/latest/navigate/android/Routing/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/Routing/build.gradle +++ b/examples/latest/navigate/android/Routing/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/RoutingHybrid/app/build.gradle b/examples/latest/navigate/android/RoutingHybrid/app/build.gradle index acaf7101..9a137502 100644 --- a/examples/latest/navigate/android/RoutingHybrid/app/build.gradle +++ b/examples/latest/navigate/android/RoutingHybrid/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.routinghybrid' } dependencies { diff --git a/examples/latest/navigate/android/RoutingHybrid/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/RoutingHybrid/app/src/main/AndroidManifest.xml index 74fb34ff..aa8e1d8d 100644 --- a/examples/latest/navigate/android/RoutingHybrid/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/RoutingHybrid/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/MainActivity.java b/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/MainActivity.java index 4cbe101b..b2cb2c55 100644 --- a/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/MainActivity.java +++ b/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/PermissionsRequestor.java b/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/PermissionsRequestor.java index cc599e21..86e2d40a 100644 --- a/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/PermissionsRequestor.java +++ b/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/RoutingExample.java b/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/RoutingExample.java index ec34587c..208b690a 100644 --- a/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/RoutingExample.java +++ b/examples/latest/navigate/android/RoutingHybrid/app/src/main/java/com/here/routinghybrid/RoutingExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/RoutingHybrid/build.gradle b/examples/latest/navigate/android/RoutingHybrid/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/RoutingHybrid/build.gradle +++ b/examples/latest/navigate/android/RoutingHybrid/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/Search/app/build.gradle b/examples/latest/navigate/android/Search/app/build.gradle index 3dcb155d..4dc12fd6 100644 --- a/examples/latest/navigate/android/Search/app/build.gradle +++ b/examples/latest/navigate/android/Search/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.search' } dependencies { diff --git a/examples/latest/navigate/android/Search/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Search/app/src/main/AndroidManifest.xml index b3e36a82..aa8e1d8d 100644 --- a/examples/latest/navigate/android/Search/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Search/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/MainActivity.java b/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/MainActivity.java index bc546b70..da93d90a 100644 --- a/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/MainActivity.java +++ b/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java b/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java index ca1c573f..218cf694 100644 --- a/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/SearchExample.java b/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/SearchExample.java index 9bfe879d..58b15453 100644 --- a/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/SearchExample.java +++ b/examples/latest/navigate/android/Search/app/src/main/java/com/here/search/SearchExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Search/build.gradle b/examples/latest/navigate/android/Search/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/Search/build.gradle +++ b/examples/latest/navigate/android/Search/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/SearchHybrid/app/build.gradle b/examples/latest/navigate/android/SearchHybrid/app/build.gradle index 3dcb155d..4dc12fd6 100644 --- a/examples/latest/navigate/android/SearchHybrid/app/build.gradle +++ b/examples/latest/navigate/android/SearchHybrid/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.search' } dependencies { diff --git a/examples/latest/navigate/android/SearchHybrid/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/SearchHybrid/app/src/main/AndroidManifest.xml index b3e36a82..aa8e1d8d 100644 --- a/examples/latest/navigate/android/SearchHybrid/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/SearchHybrid/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/MainActivity.java b/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/MainActivity.java index 645a7fea..7258802f 100644 --- a/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/MainActivity.java +++ b/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/PermissionsRequestor.java b/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/PermissionsRequestor.java index ca1c573f..218cf694 100644 --- a/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/PermissionsRequestor.java +++ b/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/SearchExample.java b/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/SearchExample.java index c3c77941..dd7171a5 100644 --- a/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/SearchExample.java +++ b/examples/latest/navigate/android/SearchHybrid/app/src/main/java/com/here/search/SearchExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/SearchHybrid/build.gradle b/examples/latest/navigate/android/SearchHybrid/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/SearchHybrid/build.gradle +++ b/examples/latest/navigate/android/SearchHybrid/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/StandAloneEngine/app/build.gradle b/examples/latest/navigate/android/StandAloneEngine/app/build.gradle index 481ad3c6..a4d09bbf 100644 --- a/examples/latest/navigate/android/StandAloneEngine/app/build.gradle +++ b/examples/latest/navigate/android/StandAloneEngine/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.sdk.standaloneengine' } dependencies { diff --git a/examples/latest/navigate/android/StandAloneEngine/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/StandAloneEngine/app/src/main/AndroidManifest.xml index 9866c4ef..c3eb09dd 100644 --- a/examples/latest/navigate/android/StandAloneEngine/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/StandAloneEngine/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java b/examples/latest/navigate/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java index 0a06835d..198b33cd 100644 --- a/examples/latest/navigate/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java +++ b/examples/latest/navigate/android/StandAloneEngine/app/src/main/java/com/here/sdk/standaloneengine/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/StandAloneEngine/build.gradle b/examples/latest/navigate/android/StandAloneEngine/build.gradle index 0a258353..b5093106 100644 --- a/examples/latest/navigate/android/StandAloneEngine/build.gradle +++ b/examples/latest/navigate/android/StandAloneEngine/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/android/Traffic/app/build.gradle b/examples/latest/navigate/android/Traffic/app/build.gradle index 1109cee2..696888fa 100644 --- a/examples/latest/navigate/android/Traffic/app/build.gradle +++ b/examples/latest/navigate/android/Traffic/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.traffic' } dependencies { diff --git a/examples/latest/navigate/android/Traffic/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/Traffic/app/src/main/AndroidManifest.xml index 89f54ba7..c3eb09dd 100644 --- a/examples/latest/navigate/android/Traffic/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/Traffic/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java b/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java index 677dc762..0b7104ee 100644 --- a/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java +++ b/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java b/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java index 23dcc4d8..d3ac2de8 100644 --- a/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java +++ b/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java b/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java index 5096d448..e53ca302 100644 --- a/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java +++ b/examples/latest/navigate/android/Traffic/app/src/main/java/com/here/traffic/TrafficExample.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/Traffic/build.gradle b/examples/latest/navigate/android/Traffic/build.gradle index 63fe231f..8f4b3306 100644 --- a/examples/latest/navigate/android/Traffic/build.gradle +++ b/examples/latest/navigate/android/Traffic/build.gradle @@ -7,7 +7,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong diff --git a/examples/latest/navigate/android/UnitTesting/app/build.gradle b/examples/latest/navigate/android/UnitTesting/app/build.gradle index f7d29632..c5ec2eb3 100644 --- a/examples/latest/navigate/android/UnitTesting/app/build.gradle +++ b/examples/latest/navigate/android/UnitTesting/app/build.gradle @@ -20,6 +20,7 @@ android { sourceCompatibility 1.8 targetCompatibility 1.8 } + namespace 'com.here.hellomap' } def getHereSdkArtefactName() { diff --git a/examples/latest/navigate/android/UnitTesting/app/src/main/AndroidManifest.xml b/examples/latest/navigate/android/UnitTesting/app/src/main/AndroidManifest.xml index dc865b6a..aa8e1d8d 100644 --- a/examples/latest/navigate/android/UnitTesting/app/src/main/AndroidManifest.xml +++ b/examples/latest/navigate/android/UnitTesting/app/src/main/AndroidManifest.xml @@ -1,8 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java b/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java index 5da388be..74c90a4f 100644 --- a/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java +++ b/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/MainActivity.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java b/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java index 004b83a3..b5dfc5dd 100644 --- a/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java +++ b/examples/latest/navigate/android/UnitTesting/app/src/main/java/com/here/hellomap/PermissionsRequestor.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java b/examples/latest/navigate/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java index 68cee080..97826cb1 100644 --- a/examples/latest/navigate/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java +++ b/examples/latest/navigate/android/UnitTesting/app/src/test/java/com/here/TestBasicTypes.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/android/UnitTesting/build.gradle b/examples/latest/navigate/android/UnitTesting/build.gradle index d2e96556..4afd1a40 100644 --- a/examples/latest/navigate/android/UnitTesting/build.gradle +++ b/examples/latest/navigate/android/UnitTesting/build.gradle @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:7.1.2' + classpath 'com.android.tools.build:gradle:7.3.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/examples/latest/navigate/flutter/camera_app/lib/CameraExample.dart b/examples/latest/navigate/flutter/camera_app/lib/CameraExample.dart index 3cffac0f..c8ba8118 100644 --- a/examples/latest/navigate/flutter/camera_app/lib/CameraExample.dart +++ b/examples/latest/navigate/flutter/camera_app/lib/CameraExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/camera_app/lib/main.dart b/examples/latest/navigate/flutter/camera_app/lib/main.dart index c821fec7..0bc62675 100644 --- a/examples/latest/navigate/flutter/camera_app/lib/main.dart +++ b/examples/latest/navigate/flutter/camera_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart index 781c9f7d..0c374958 100644 --- a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart +++ b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart index 652e407b..51c14ca0 100644 --- a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart +++ b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/RouteAnimationExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart index da031532..07f3623f 100644 --- a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart +++ b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/MenuSectionExpansionTile.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart index 262c419a..0b041afc 100644 --- a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart +++ b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/main.dart b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/main.dart index e685e848..11b18241 100644 --- a/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/main.dart +++ b/examples/latest/navigate/flutter/camera_keyframe_tracks_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/carto_poi_picking_app/lib/main.dart b/examples/latest/navigate/flutter/carto_poi_picking_app/lib/main.dart index a0e6b75e..c160c014 100644 --- a/examples/latest/navigate/flutter/carto_poi_picking_app/lib/main.dart +++ b/examples/latest/navigate/flutter/carto_poi_picking_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart b/examples/latest/navigate/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart index c1b6f743..6f1cf942 100644 --- a/examples/latest/navigate/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart +++ b/examples/latest/navigate/flutter/custom_map_styles_app/lib/CustomMapStyleExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/custom_map_styles_app/lib/main.dart b/examples/latest/navigate/flutter/custom_map_styles_app/lib/main.dart index cb1efbb7..96d8247d 100644 --- a/examples/latest/navigate/flutter/custom_map_styles_app/lib/main.dart +++ b/examples/latest/navigate/flutter/custom_map_styles_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart b/examples/latest/navigate/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart index e1b8beaf..24aabb6d 100644 --- a/examples/latest/navigate/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart +++ b/examples/latest/navigate/flutter/custom_raster_layers_app/lib/CustomRasterLayersExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/custom_raster_layers_app/lib/main.dart b/examples/latest/navigate/flutter/custom_raster_layers_app/lib/main.dart index 3f16f420..2173b7bf 100644 --- a/examples/latest/navigate/flutter/custom_raster_layers_app/lib/main.dart +++ b/examples/latest/navigate/flutter/custom_raster_layers_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/ev_routing_app/lib/EVRoutingExample.dart b/examples/latest/navigate/flutter/ev_routing_app/lib/EVRoutingExample.dart index e0767aec..3326291b 100644 --- a/examples/latest/navigate/flutter/ev_routing_app/lib/EVRoutingExample.dart +++ b/examples/latest/navigate/flutter/ev_routing_app/lib/EVRoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/ev_routing_app/lib/main.dart b/examples/latest/navigate/flutter/ev_routing_app/lib/main.dart index 35f08f58..d09f2082 100644 --- a/examples/latest/navigate/flutter/ev_routing_app/lib/main.dart +++ b/examples/latest/navigate/flutter/ev_routing_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/gestures_app/lib/GesturesExample.dart b/examples/latest/navigate/flutter/gestures_app/lib/GesturesExample.dart index bf9a090e..c6b78aa5 100644 --- a/examples/latest/navigate/flutter/gestures_app/lib/GesturesExample.dart +++ b/examples/latest/navigate/flutter/gestures_app/lib/GesturesExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/gestures_app/lib/main.dart b/examples/latest/navigate/flutter/gestures_app/lib/main.dart index d1a4f881..4f205a13 100644 --- a/examples/latest/navigate/flutter/gestures_app/lib/main.dart +++ b/examples/latest/navigate/flutter/gestures_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/hello_map_app/lib/main.dart b/examples/latest/navigate/flutter/hello_map_app/lib/main.dart index 3cbe20fc..10476106 100644 --- a/examples/latest/navigate/flutter/hello_map_app/lib/main.dart +++ b/examples/latest/navigate/flutter/hello_map_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/indoor_map_app/lib/image_helper.dart b/examples/latest/navigate/flutter/indoor_map_app/lib/image_helper.dart index b1e65ace..69729766 100644 --- a/examples/latest/navigate/flutter/indoor_map_app/lib/image_helper.dart +++ b/examples/latest/navigate/flutter/indoor_map_app/lib/image_helper.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 HERE Europe B.V. + * Copyright (C) 2021-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/indoor_map_app/lib/main.dart b/examples/latest/navigate/flutter/indoor_map_app/lib/main.dart index 3255a8a3..905455cc 100644 --- a/examples/latest/navigate/flutter/indoor_map_app/lib/main.dart +++ b/examples/latest/navigate/flutter/indoor_map_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/indoor_map_app/lib/venue_engine_widget.dart b/examples/latest/navigate/flutter/indoor_map_app/lib/venue_engine_widget.dart index e92a7bdd..e4afb7bf 100644 --- a/examples/latest/navigate/flutter/indoor_map_app/lib/venue_engine_widget.dart +++ b/examples/latest/navigate/flutter/indoor_map_app/lib/venue_engine_widget.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -191,7 +191,7 @@ class VenueEngineState extends State { // VenueServiceListener.onInitializationCompleted method will be called. venueEngine!.start(_onAuthCallback); - if (HRN != "") { + if ((HRN != "") && (HRN != "YOUR_CATALOG_HRN")) { // Set platform catalog HRN venueEngine!.venueService.setHrn(HRN); } diff --git a/examples/latest/navigate/flutter/indoor_map_app/lib/venue_tap_controller.dart b/examples/latest/navigate/flutter/indoor_map_app/lib/venue_tap_controller.dart index ee14ea6b..7d0a5469 100644 --- a/examples/latest/navigate/flutter/indoor_map_app/lib/venue_tap_controller.dart +++ b/examples/latest/navigate/flutter/indoor_map_app/lib/venue_tap_controller.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/map_items_app/lib/MapItemsExample.dart b/examples/latest/navigate/flutter/map_items_app/lib/MapItemsExample.dart index 992e2b20..7d8c0996 100644 --- a/examples/latest/navigate/flutter/map_items_app/lib/MapItemsExample.dart +++ b/examples/latest/navigate/flutter/map_items_app/lib/MapItemsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/map_items_app/lib/MapObjectsExample.dart b/examples/latest/navigate/flutter/map_items_app/lib/MapObjectsExample.dart index fc1dab53..bf40fb6b 100644 --- a/examples/latest/navigate/flutter/map_items_app/lib/MapObjectsExample.dart +++ b/examples/latest/navigate/flutter/map_items_app/lib/MapObjectsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/map_items_app/lib/MapViewPinsExample.dart b/examples/latest/navigate/flutter/map_items_app/lib/MapViewPinsExample.dart index 58dee86e..308cbb61 100644 --- a/examples/latest/navigate/flutter/map_items_app/lib/MapViewPinsExample.dart +++ b/examples/latest/navigate/flutter/map_items_app/lib/MapViewPinsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/map_items_app/lib/MenuSectionExpansionTile.dart b/examples/latest/navigate/flutter/map_items_app/lib/MenuSectionExpansionTile.dart index da031532..07f3623f 100644 --- a/examples/latest/navigate/flutter/map_items_app/lib/MenuSectionExpansionTile.dart +++ b/examples/latest/navigate/flutter/map_items_app/lib/MenuSectionExpansionTile.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/map_items_app/lib/main.dart b/examples/latest/navigate/flutter/map_items_app/lib/main.dart index e99417bb..9bb00c57 100644 --- a/examples/latest/navigate/flutter/map_items_app/lib/main.dart +++ b/examples/latest/navigate/flutter/map_items_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_app/lib/AppLogic.dart b/examples/latest/navigate/flutter/navigation_app/lib/AppLogic.dart index 9de3a074..5c766d5a 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/AppLogic.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/AppLogic.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningProvider.dart b/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningProvider.dart index 85932d3b..1b201728 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningProvider.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningProvider.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningSimulator.dart b/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningSimulator.dart index eb1eee46..c20a566d 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningSimulator.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/HEREPositioningSimulator.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_app/lib/LanguageCodeConverter.dart b/examples/latest/navigate/flutter/navigation_app/lib/LanguageCodeConverter.dart index ed5ecf2d..c05c8675 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/LanguageCodeConverter.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/LanguageCodeConverter.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_app/lib/NavigationExample.dart b/examples/latest/navigate/flutter/navigation_app/lib/NavigationExample.dart index 93e9418e..bd260681 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/NavigationExample.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/NavigationExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,10 +22,12 @@ import 'dart:ui'; import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; import 'package:here_sdk/core.dart'; +import 'package:here_sdk/core.engine.dart'; import 'package:here_sdk/core.errors.dart'; import 'package:here_sdk/location.dart'; import 'package:here_sdk/mapview.dart'; import 'package:here_sdk/navigation.dart'; +import 'package:here_sdk/prefetcher.dart'; import 'package:here_sdk/routing.dart' as HERE; import 'package:here_sdk/routing.dart'; import 'package:here_sdk/trafficawarenavigation.dart'; @@ -38,16 +40,26 @@ import 'LanguageCodeConverter.dart'; class NavigationExample { final HereMapController _hereMapController; late VisualNavigator _visualNavigator; - late HEREPositioningSimulator _locationSimulationProvider; - late HEREPositioningProvider _herePositioningProvider; + HEREPositioningSimulator _locationSimulationProvider; + HEREPositioningProvider _herePositioningProvider; late DynamicRoutingEngine _dynamicRoutingEngine; MapMatchedLocation? _lastMapMatchedLocation; int _previousManeuverIndex = -1; final ValueChanged _updateMessageState; + RoutePrefetcher _routePrefetcher; NavigationExample(HereMapController hereMapController, ValueChanged updateMessageState) : _hereMapController = hereMapController, - _updateMessageState = updateMessageState { + _updateMessageState = updateMessageState, + // For easy testing, this location provider simulates location events along a route. + // You can use HERE positioning to feed real locations, see the "Positioning"-section in + // our Developer's Guide for an example + _locationSimulationProvider = HEREPositioningSimulator(), + // Access the device's GPS sensor and other data. + _herePositioningProvider = HEREPositioningProvider(), + // The RoutePrefetcher downloads map data in advance into the map cache. + // This is not mandatory, but can help to improve the guidance experience. + _routePrefetcher = RoutePrefetcher(SDKNativeEngine.sharedInstance!) { try { _visualNavigator = VisualNavigator(); } on InstantiationException { @@ -60,13 +72,6 @@ class NavigationExample { // This enables a navigation view including a rendered navigation arrow. _visualNavigator.startRendering(_hereMapController); - // For easy testing, this location provider simulates location events along a route. - // You can use HERE positioning to feed real locations, see the "Positioning"-section in - // our Developer's Guide for an example. - _locationSimulationProvider = HEREPositioningSimulator(); - - // Access the device's GPS sensor and other data. - _herePositioningProvider = HEREPositioningProvider(); _herePositioningProvider.startLocating(_visualNavigator, LocationAccuracy.navigation); _createDynamicRoutingEngine(); @@ -74,6 +79,16 @@ class NavigationExample { setupListeners(); } + void prefetchMapData(GeoCoordinates currentGeoCoordinates) { + // Prefetches map data around the provided location with a radius of 2 km into the map cache. + // For the best experience, prefetchAroundLocation() should be called as early as possible. + _routePrefetcher.prefetchAroundLocation(currentGeoCoordinates); + // Prefetches map data within a corridor along the route that is currently set to the provided Navigator instance. + // This happens continuously in discrete intervals. + // If no route is set, no data will be prefetched. + _routePrefetcher.prefetchAroundRouteOnIntervals(_visualNavigator); + } + void _createDynamicRoutingEngine() { var dynamicRoutingOptions = DynamicRoutingEngineOptions(); // We want an update for each poll iteration, so we specify 0 difference. @@ -83,7 +98,7 @@ class NavigationExample { try { // With the dynamic routing engine you can poll the HERE backend services to search for routes with less traffic. - // THis can happen during guidance - or you can periodically update a route that is shown in a route planner. + // This can happen during guidance - or you can periodically update a route that is shown in a route planner. _dynamicRoutingEngine = DynamicRoutingEngine(dynamicRoutingOptions); } on InstantiationException { throw Exception("Initialization of DynamicRoutingEngine failed."); @@ -108,6 +123,9 @@ class NavigationExample { } void startNavigation(HERE.Route route) { + GeoCoordinates startGeoCoordinates = route.geometry.vertices[0]; + prefetchMapData(startGeoCoordinates); + _prepareNavigation(route); // Stop in case it was started before. @@ -161,6 +179,7 @@ class NavigationExample { // Stop in case it was started before. _locationSimulationProvider.stop(); _dynamicRoutingEngine.stop(); + _routePrefetcher.stopPrefetchAroundRoute(); startTracking(); _updateMessageState("Tracking device's location."); } @@ -546,7 +565,7 @@ class NavigationExample { // Note that DistanceType.reached is not used for Signposts. if (distanceType == DistanceType.ahead) { - print("A Signpost ahead in: "+ distance.toString() + " meters."); + print("A Signpost ahead in: " + distance.toString() + " meters."); } else if (distanceType == DistanceType.passed) { print("A Signpost just passed."); } @@ -570,13 +589,14 @@ class NavigationExample { // Note that the SVG data for junction view is composed out of several 3D elements such as trees, a horizon and the actual junction // geometry. Approx. size per image is 15 MB. In the future, we we reduce the level of realism to reduce the size of the assets. // Optionally, you can use a feature-configuration to preload the assets as part of a Region. - _visualNavigator.junctionViewWarningListener = JunctionViewWarningListener((JunctionViewWarning junctionViewWarning) { + _visualNavigator.junctionViewWarningListener = + JunctionViewWarningListener((JunctionViewWarning junctionViewWarning) { double distance = junctionViewWarning.distanceToJunctionViewInMeters; DistanceType distanceType = junctionViewWarning.distanceType; // Note that DistanceType.reached is not used for junction views. if (distanceType == DistanceType.ahead) { - print("A JunctionView ahead in: "+ distance.toString() + " meters."); + print("A JunctionView ahead in: " + distance.toString() + " meters."); } else if (distanceType == DistanceType.passed) { print("A JunctionView just passed."); } diff --git a/examples/latest/navigate/flutter/navigation_app/lib/RouteCalculator.dart b/examples/latest/navigate/flutter/navigation_app/lib/RouteCalculator.dart index eb177d6f..b7d2dbaf 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/RouteCalculator.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/RouteCalculator.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_app/lib/main.dart b/examples/latest/navigate/flutter/navigation_app/lib/main.dart index fb60e3b9..5f4ea377 100644 --- a/examples/latest/navigate/flutter/navigation_app/lib/main.dart +++ b/examples/latest/navigate/flutter/navigation_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_custom/lib/main.dart b/examples/latest/navigate/flutter/navigation_custom/lib/main.dart index 3f297be2..2adcb395 100644 --- a/examples/latest/navigate/flutter/navigation_custom/lib/main.dart +++ b/examples/latest/navigate/flutter/navigation_custom/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/navigation_quick_start_app/lib/main.dart b/examples/latest/navigate/flutter/navigation_quick_start_app/lib/main.dart index fe01a9c6..7323d84a 100644 --- a/examples/latest/navigate/flutter/navigation_quick_start_app/lib/main.dart +++ b/examples/latest/navigate/flutter/navigation_quick_start_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/offline_maps_app/lib/OfflineMapsExample.dart b/examples/latest/navigate/flutter/offline_maps_app/lib/OfflineMapsExample.dart index 85841df8..66c5c45c 100644 --- a/examples/latest/navigate/flutter/offline_maps_app/lib/OfflineMapsExample.dart +++ b/examples/latest/navigate/flutter/offline_maps_app/lib/OfflineMapsExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/offline_maps_app/lib/main.dart b/examples/latest/navigate/flutter/offline_maps_app/lib/main.dart index 274aefca..54a6e8a0 100644 --- a/examples/latest/navigate/flutter/offline_maps_app/lib/main.dart +++ b/examples/latest/navigate/flutter/offline_maps_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/positioning_app/lib/PositioningExample.dart b/examples/latest/navigate/flutter/positioning_app/lib/PositioningExample.dart index 2ea05ef0..ea0e0ad5 100644 --- a/examples/latest/navigate/flutter/positioning_app/lib/PositioningExample.dart +++ b/examples/latest/navigate/flutter/positioning_app/lib/PositioningExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/positioning_app/lib/main.dart b/examples/latest/navigate/flutter/positioning_app/lib/main.dart index 0d9c3119..7d5e0390 100644 --- a/examples/latest/navigate/flutter/positioning_app/lib/main.dart +++ b/examples/latest/navigate/flutter/positioning_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2022 HERE Europe B.V. + * Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart b/examples/latest/navigate/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart index 0b61a53b..3e62e9df 100644 --- a/examples/latest/navigate/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart +++ b/examples/latest/navigate/flutter/public_transit_app/lib/PublicTransportRoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2021-2022 HERE Europe B.V. + * Copyright (C) 2021-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; import 'package:here_sdk/core.dart'; import 'package:here_sdk/mapview.dart'; +import 'package:here_sdk/animation.dart'; import 'package:here_sdk/routing.dart'; import 'package:here_sdk/routing.dart' as here; @@ -60,6 +61,7 @@ class PublicTransportRoutingExample { _showRouteDetails(route); _showRouteOnMap(route); _logRouteViolations(route); + _animateToRoute(route); // Log maneuver instructions per route section. List
sections = route.sections; @@ -143,7 +145,7 @@ class PublicTransportRoutingExample { if (geoBox == null) { // Happens only when map is not fully covering the viewport as the map is tilted. print("The map view is tilted, falling back to fixed destination coordinate."); - return GeoCoordinates(52.530932, 13.384915); + return GeoCoordinates(52.520798, 13.409408); } GeoCoordinates northEast = geoBox.northEastCorner; @@ -163,4 +165,22 @@ class PublicTransportRoutingExample { double _getRandom(double min, double max) { return min + Random().nextDouble() * (max - min); } + + void _animateToRoute(here.Route route) { + // The animation results in an untilted and unrotated map. + double bearing = 0; + double tilt = 0; + // We want to show the route fitting in the map view with an additional padding of 50 pixels. + Point2D origin = Point2D(50, 50); + Size2D sizeInPixels = Size2D(_hereMapController.viewportSize.width - 100, _hereMapController.viewportSize.height - 100); + Rectangle2D mapViewport = Rectangle2D(origin, sizeInPixels); + + // Animate to the route within a duration of 3 seconds. + MapCameraUpdate update = MapCameraUpdateFactory.lookAtAreaWithGeoOrientationAndViewRectangle(route!.boundingBox, + GeoOrientationUpdate(bearing, tilt), + mapViewport); + MapCameraAnimation animation = MapCameraAnimationFactory.createAnimationFromUpdate( + update, const Duration(milliseconds: 3000), EasingFunction.inCubic); + _hereMapController.camera.startAnimation(animation); + } } diff --git a/examples/latest/navigate/flutter/public_transit_app/lib/main.dart b/examples/latest/navigate/flutter/public_transit_app/lib/main.dart index 087b8b73..057713d8 100644 --- a/examples/latest/navigate/flutter/public_transit_app/lib/main.dart +++ b/examples/latest/navigate/flutter/public_transit_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/routing_app/lib/RoutingExample.dart b/examples/latest/navigate/flutter/routing_app/lib/RoutingExample.dart index e79f8bff..a0513416 100644 --- a/examples/latest/navigate/flutter/routing_app/lib/RoutingExample.dart +++ b/examples/latest/navigate/flutter/routing_app/lib/RoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import 'package:flutter/material.dart'; import 'package:here_sdk/core.dart'; import 'package:here_sdk/core.errors.dart'; import 'package:here_sdk/mapview.dart'; +import 'package:here_sdk/animation.dart'; import 'package:here_sdk/routing.dart'; import 'package:here_sdk/routing.dart' as here; @@ -67,6 +68,7 @@ class RoutingExample { _showRouteOnMap(route); _logRouteSectionDetails(route); _logRouteViolations(route); + _animateToRoute(route); } else { var error = routingError.toString(); _showDialog('Error', 'Error while calculating a route: $error'); @@ -107,9 +109,11 @@ class RoutingExample { void _showRouteDetails(here.Route route) { int estimatedTravelTimeInSeconds = route.duration.inSeconds; + int estimatedTrafficDelayInSeconds = route.trafficDelay.inSeconds; int lengthInMeters = route.lengthInMeters; String routeDetails = 'Travel Time: ' + _formatTime(estimatedTravelTimeInSeconds) + + ', Traffic Delay: ' + _formatTime(estimatedTrafficDelayInSeconds) + ', Length: ' + _formatLength(lengthInMeters); _showDialog('Route Details', '$routeDetails'); @@ -143,7 +147,7 @@ class RoutingExample { if (geoBox == null) { // Happens only when map is not fully covering the viewport as the map is tilted. print("The map view is tilted, falling back to fixed destination coordinate."); - return GeoCoordinates(52.530932, 13.384915); + return GeoCoordinates(52.520798, 13.409408); } GeoCoordinates northEast = geoBox.northEastCorner; @@ -163,4 +167,22 @@ class RoutingExample { double _getRandom(double min, double max) { return min + Random().nextDouble() * (max - min); } + + void _animateToRoute(here.Route route) { + // The animation results in an untilted and unrotated map. + double bearing = 0; + double tilt = 0; + // We want to show the route fitting in the map view with an additional padding of 50 pixels. + Point2D origin = Point2D(50, 50); + Size2D sizeInPixels = Size2D(_hereMapController.viewportSize.width - 100, _hereMapController.viewportSize.height - 100); + Rectangle2D mapViewport = Rectangle2D(origin, sizeInPixels); + + // Animate to the route within a duration of 3 seconds. + MapCameraUpdate update = MapCameraUpdateFactory.lookAtAreaWithGeoOrientationAndViewRectangle(route!.boundingBox, + GeoOrientationUpdate(bearing, tilt), + mapViewport); + MapCameraAnimation animation = MapCameraAnimationFactory.createAnimationFromUpdate( + update, const Duration(milliseconds: 3000), EasingFunction.inCubic); + _hereMapController.camera.startAnimation(animation); + } } diff --git a/examples/latest/navigate/flutter/routing_app/lib/main.dart b/examples/latest/navigate/flutter/routing_app/lib/main.dart index 47a24381..fa593fb7 100644 --- a/examples/latest/navigate/flutter/routing_app/lib/main.dart +++ b/examples/latest/navigate/flutter/routing_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/routing_hybrid_app/lib/RoutingExample.dart b/examples/latest/navigate/flutter/routing_hybrid_app/lib/RoutingExample.dart index 01bb72ca..3ed10025 100644 --- a/examples/latest/navigate/flutter/routing_hybrid_app/lib/RoutingExample.dart +++ b/examples/latest/navigate/flutter/routing_hybrid_app/lib/RoutingExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import 'dart:math'; import 'package:flutter/material.dart'; +import 'package:here_sdk/animation.dart'; import 'package:here_sdk/core.dart'; import 'package:here_sdk/core.errors.dart'; import 'package:here_sdk/mapview.dart'; @@ -122,6 +123,7 @@ class RoutingExample { _showRouteDetails(route); _showRouteOnMap(route); _logRouteViolations(route); + _animateToRoute(route); // Draw a circle to indicate the location of the waypoints. _addCircleMapMarker(waypoint1.coordinates, "assets/red_dot.png"); @@ -253,7 +255,7 @@ class RoutingExample { if (geoBox == null) { // Happens only when map is not fully covering the viewport as the map is tilted. print("The map view is tilted, falling back to fixed destination coordinate."); - return GeoCoordinates(52.530932, 13.384915); + return GeoCoordinates(52.520798, 13.409408); } GeoCoordinates northEast = geoBox.northEastCorner; @@ -273,4 +275,22 @@ class RoutingExample { double _getRandom(double min, double max) { return min + Random().nextDouble() * (max - min); } + + void _animateToRoute(here.Route route) { + // The animation results in an untilted and unrotated map. + double bearing = 0; + double tilt = 0; + // We want to show the route fitting in the map view with an additional padding of 50 pixels. + Point2D origin = Point2D(50, 50); + Size2D sizeInPixels = Size2D(_hereMapController.viewportSize.width - 100, _hereMapController.viewportSize.height - 100); + Rectangle2D mapViewport = Rectangle2D(origin, sizeInPixels); + + // Animate to the route within a duration of 3 seconds. + MapCameraUpdate update = MapCameraUpdateFactory.lookAtAreaWithGeoOrientationAndViewRectangle(route!.boundingBox, + GeoOrientationUpdate(bearing, tilt), + mapViewport); + MapCameraAnimation animation = MapCameraAnimationFactory.createAnimationFromUpdate( + update, const Duration(milliseconds: 3000), EasingFunction.inCubic); + _hereMapController.camera.startAnimation(animation); + } } diff --git a/examples/latest/navigate/flutter/routing_hybrid_app/lib/main.dart b/examples/latest/navigate/flutter/routing_hybrid_app/lib/main.dart index c859c587..7fbad3ea 100644 --- a/examples/latest/navigate/flutter/routing_hybrid_app/lib/main.dart +++ b/examples/latest/navigate/flutter/routing_hybrid_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/search_app/lib/SearchExample.dart b/examples/latest/navigate/flutter/search_app/lib/SearchExample.dart index 10b1d23b..8b8ad768 100644 --- a/examples/latest/navigate/flutter/search_app/lib/SearchExample.dart +++ b/examples/latest/navigate/flutter/search_app/lib/SearchExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/search_app/lib/SearchResultMetadata.dart b/examples/latest/navigate/flutter/search_app/lib/SearchResultMetadata.dart index 3aae2327..9f809e66 100644 --- a/examples/latest/navigate/flutter/search_app/lib/SearchResultMetadata.dart +++ b/examples/latest/navigate/flutter/search_app/lib/SearchResultMetadata.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/search_app/lib/main.dart b/examples/latest/navigate/flutter/search_app/lib/main.dart index 695c0aca..3ebf03ba 100644 --- a/examples/latest/navigate/flutter/search_app/lib/main.dart +++ b/examples/latest/navigate/flutter/search_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchExample.dart b/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchExample.dart index 922b4f56..f47447fc 100644 --- a/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchExample.dart +++ b/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchResultMetadata.dart b/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchResultMetadata.dart index 3aae2327..9f809e66 100644 --- a/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchResultMetadata.dart +++ b/examples/latest/navigate/flutter/search_hybrid_app/lib/SearchResultMetadata.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/search_hybrid_app/lib/main.dart b/examples/latest/navigate/flutter/search_hybrid_app/lib/main.dart index 3e5dad46..f67f82f4 100644 --- a/examples/latest/navigate/flutter/search_hybrid_app/lib/main.dart +++ b/examples/latest/navigate/flutter/search_hybrid_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/traffic_app/lib/TrafficExample.dart b/examples/latest/navigate/flutter/traffic_app/lib/TrafficExample.dart index bd9dd3a3..fdd2b9e1 100644 --- a/examples/latest/navigate/flutter/traffic_app/lib/TrafficExample.dart +++ b/examples/latest/navigate/flutter/traffic_app/lib/TrafficExample.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/traffic_app/lib/main.dart b/examples/latest/navigate/flutter/traffic_app/lib/main.dart index a9b9a875..da858253 100644 --- a/examples/latest/navigate/flutter/traffic_app/lib/main.dart +++ b/examples/latest/navigate/flutter/traffic_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/flutter/unit_testing_app/lib/main.dart b/examples/latest/navigate/flutter/unit_testing_app/lib/main.dart index 3164f8ca..9766e956 100644 --- a/examples/latest/navigate/flutter/unit_testing_app/lib/main.dart +++ b/examples/latest/navigate/flutter/unit_testing_app/lib/main.dart @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Camera/Camera/AppDelegate.swift b/examples/latest/navigate/ios/Camera/Camera/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/Camera/Camera/AppDelegate.swift +++ b/examples/latest/navigate/ios/Camera/Camera/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Camera/Camera/CameraExample.swift b/examples/latest/navigate/ios/Camera/Camera/CameraExample.swift index dbe0bee2..00174ac6 100644 --- a/examples/latest/navigate/ios/Camera/Camera/CameraExample.swift +++ b/examples/latest/navigate/ios/Camera/Camera/CameraExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Camera/Camera/ViewController.swift b/examples/latest/navigate/ios/Camera/Camera/ViewController.swift index e483b394..3aad54b8 100644 --- a/examples/latest/navigate/ios/Camera/Camera/ViewController.swift +++ b/examples/latest/navigate/ios/Camera/Camera/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift +++ b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift index 733254c5..4ec4574f 100644 --- a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift +++ b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/CameraKeyframeTracksExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift index 2a4f1112..61add111 100644 --- a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift +++ b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/MenuViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift index 7d124dbb..ac179654 100644 --- a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift +++ b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteAnimationExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift index 1eca8e10..1e4d121d 100644 --- a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift +++ b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/RouteCalculator.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift index bb8b78c2..617dc833 100644 --- a/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift +++ b/examples/latest/navigate/ios/CameraKeyframeTracks/CameraKeyframeTracks/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/AppDelegate.swift b/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/AppDelegate.swift +++ b/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/ViewController.swift b/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/ViewController.swift index db690e41..3342e575 100644 --- a/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/ViewController.swift +++ b/examples/latest/navigate/ios/CartoPOIPicking/CartoPOIPicking/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift b/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift +++ b/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift b/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift index a614a44c..4b06bd5d 100644 --- a/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift +++ b/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/CustomMapStylesExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/ViewController.swift b/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/ViewController.swift index fa03482b..462ca70b 100644 --- a/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/ViewController.swift +++ b/examples/latest/navigate/ios/CustomMapStyles/CustomMapStyles/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift b/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift +++ b/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift b/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift index fc4a6fd3..83f6d4bf 100644 --- a/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift +++ b/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/CustomRasterLayersExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. @@ -22,13 +22,11 @@ import UIKit class CustomRasterLayersExample { - private let viewController: UIViewController private let mapView: MapView private var rasterMapLayerTonerStyle: MapLayer! private var rasterDataSourceTonerStyle: RasterDataSource! - init(viewController: UIViewController, mapView: MapView) { - self.viewController = viewController + init(mapView: MapView) { self.mapView = mapView let camera = mapView.camera diff --git a/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift b/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift index 8591b81a..234e512f 100644 --- a/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift +++ b/examples/latest/navigate/ios/CustomRasterLayers/CustomRasterLayers/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ final class ViewController: UIViewController { } // Start the example. - customRasterLayersExample = CustomRasterLayersExample(viewController: self, mapView: mapView) + customRasterLayersExample = CustomRasterLayersExample(mapView: mapView) isMapSceneLoaded = true } diff --git a/examples/latest/navigate/ios/EVRouting/EVRouting/AppDelegate.swift b/examples/latest/navigate/ios/EVRouting/EVRouting/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/EVRouting/EVRouting/AppDelegate.swift +++ b/examples/latest/navigate/ios/EVRouting/EVRouting/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/EVRouting/EVRouting/RoutingExample.swift b/examples/latest/navigate/ios/EVRouting/EVRouting/RoutingExample.swift index 15f48875..ac694527 100644 --- a/examples/latest/navigate/ios/EVRouting/EVRouting/RoutingExample.swift +++ b/examples/latest/navigate/ios/EVRouting/EVRouting/RoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/EVRouting/EVRouting/ViewController.swift b/examples/latest/navigate/ios/EVRouting/EVRouting/ViewController.swift index 9908629d..3e0957e8 100644 --- a/examples/latest/navigate/ios/EVRouting/EVRouting/ViewController.swift +++ b/examples/latest/navigate/ios/EVRouting/EVRouting/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Gestures/Gestures/AppDelegate.swift b/examples/latest/navigate/ios/Gestures/Gestures/AppDelegate.swift index 68fc5874..ccc3d69c 100644 --- a/examples/latest/navigate/ios/Gestures/Gestures/AppDelegate.swift +++ b/examples/latest/navigate/ios/Gestures/Gestures/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Gestures/Gestures/GestureMapAnimator.swift b/examples/latest/navigate/ios/Gestures/Gestures/GestureMapAnimator.swift index e74e6136..d374bc01 100644 --- a/examples/latest/navigate/ios/Gestures/Gestures/GestureMapAnimator.swift +++ b/examples/latest/navigate/ios/Gestures/Gestures/GestureMapAnimator.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Gestures/Gestures/GesturesExample.swift b/examples/latest/navigate/ios/Gestures/Gestures/GesturesExample.swift index 18200b9b..84fc98fc 100644 --- a/examples/latest/navigate/ios/Gestures/Gestures/GesturesExample.swift +++ b/examples/latest/navigate/ios/Gestures/Gestures/GesturesExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Gestures/Gestures/ViewController.swift b/examples/latest/navigate/ios/Gestures/Gestures/ViewController.swift index 6f6f1899..20e58f1f 100644 --- a/examples/latest/navigate/ios/Gestures/Gestures/ViewController.swift +++ b/examples/latest/navigate/ios/Gestures/Gestures/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMap/HelloMap/AppDelegate.swift b/examples/latest/navigate/ios/HelloMap/HelloMap/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/HelloMap/HelloMap/AppDelegate.swift +++ b/examples/latest/navigate/ios/HelloMap/HelloMap/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMap/HelloMap/ViewController.swift b/examples/latest/navigate/ios/HelloMap/HelloMap/ViewController.swift index 6c89ab19..7057935e 100644 --- a/examples/latest/navigate/ios/HelloMap/HelloMap/ViewController.swift +++ b/examples/latest/navigate/ios/HelloMap/HelloMap/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift b/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift index a6fc5d07..1b661bbf 100644 --- a/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift +++ b/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift b/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift index 256595cc..afeda92e 100644 --- a/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift +++ b/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/CarPlayViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift b/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift index 98c2c907..bf59061e 100644 --- a/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift +++ b/examples/latest/navigate/ios/HelloMapCarPlay/HelloMapCarPlay/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift b/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift +++ b/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift b/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift index 1ce67971..74002223 100644 --- a/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift +++ b/examples/latest/navigate/ios/HelloMapWithStoryboard/HelloMapWithStoryboard/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/IndoorMap/IndoorMap/VenueTapHandler.swift b/examples/latest/navigate/ios/IndoorMap/IndoorMap/VenueTapHandler.swift index a8efdf38..6d2929f6 100644 --- a/examples/latest/navigate/ios/IndoorMap/IndoorMap/VenueTapHandler.swift +++ b/examples/latest/navigate/ios/IndoorMap/IndoorMap/VenueTapHandler.swift @@ -1,5 +1,5 @@ /* -* Copyright (C) 2020-2022 HERE Europe B.V. +* Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/IndoorMap/IndoorMap/ViewController.swift b/examples/latest/navigate/ios/IndoorMap/IndoorMap/ViewController.swift index 7b3ef3a7..5ac96375 100644 --- a/examples/latest/navigate/ios/IndoorMap/IndoorMap/ViewController.swift +++ b/examples/latest/navigate/ios/IndoorMap/IndoorMap/ViewController.swift @@ -1,5 +1,5 @@ /* -* Copyright (C) 2020-2022 HERE Europe B.V. +* Copyright (C) 2020-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -144,7 +144,7 @@ class ViewController: UIViewController { print("Failed to authenticate, reason: " + error.localizedDescription) } }) - if(hrn != "") + if ((hrn != "") && (hrn != "YOUR_CATALOG_HRN")) { // Set platform catalog HRN venueService.setHrn(hrn: hrn) diff --git a/examples/latest/navigate/ios/MapItems/MapItems/AppDelegate.swift b/examples/latest/navigate/ios/MapItems/MapItems/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/MapItems/MapItems/AppDelegate.swift +++ b/examples/latest/navigate/ios/MapItems/MapItems/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/MapItems/MapItems/MapItemsExample.swift b/examples/latest/navigate/ios/MapItems/MapItems/MapItemsExample.swift index 17bf0a87..c019f6ad 100644 --- a/examples/latest/navigate/ios/MapItems/MapItems/MapItemsExample.swift +++ b/examples/latest/navigate/ios/MapItems/MapItems/MapItemsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/MapItems/MapItems/MapObjectsExample.swift b/examples/latest/navigate/ios/MapItems/MapItems/MapObjectsExample.swift index fe74f319..9557b9cb 100644 --- a/examples/latest/navigate/ios/MapItems/MapItems/MapObjectsExample.swift +++ b/examples/latest/navigate/ios/MapItems/MapItems/MapObjectsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/MapItems/MapItems/MapViewPinsExample.swift b/examples/latest/navigate/ios/MapItems/MapItems/MapViewPinsExample.swift index 4a9c469b..1f46aa26 100644 --- a/examples/latest/navigate/ios/MapItems/MapItems/MapViewPinsExample.swift +++ b/examples/latest/navigate/ios/MapItems/MapItems/MapViewPinsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/MapItems/MapItems/MenuViewController.swift b/examples/latest/navigate/ios/MapItems/MapItems/MenuViewController.swift index 329e43bc..301e2fd2 100644 --- a/examples/latest/navigate/ios/MapItems/MapItems/MenuViewController.swift +++ b/examples/latest/navigate/ios/MapItems/MapItems/MenuViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/MapItems/MapItems/ViewController.swift b/examples/latest/navigate/ios/MapItems/MapItems/ViewController.swift index ac2986d0..07c113f6 100644 --- a/examples/latest/navigate/ios/MapItems/MapItems/ViewController.swift +++ b/examples/latest/navigate/ios/MapItems/MapItems/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/App.swift b/examples/latest/navigate/ios/Navigation/Navigation/App.swift index fb9f9589..c1a435a3 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/App.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/App.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/AppDelegate.swift b/examples/latest/navigate/ios/Navigation/Navigation/AppDelegate.swift index e2b7157c..2238042b 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/AppDelegate.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningProvider.swift b/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningProvider.swift index 6a300f69..2bbff77c 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningProvider.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningProvider.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,9 +31,11 @@ class HEREPositioningProvider : NSObject, // We need to check if the device is authorized to use location capabilities like GPS sensors. // Results are handled in the CLLocationManagerDelegate below. private let locationManager = CLLocationManager() - private var locationEngine: LocationEngine + private let locationEngine: LocationEngine private var locationUpdateDelegate: LocationDelegate? - + private var accuracy = LocationAccuracy.bestAvailable + private var isLocating = false + override init() { do { try locationEngine = LocationEngine() @@ -48,7 +50,7 @@ class HEREPositioningProvider : NSObject, func getLastKnownLocation() -> Location? { return locationEngine.lastKnownLocation } - + private func authorizeNativeLocationServices() { locationManager.delegate = self locationManager.requestAlwaysAuthorization() @@ -63,6 +65,9 @@ class HEREPositioningProvider : NSObject, print("Native location services denied or disabled by user in device settings.") break case .authorizedWhenInUse, .authorizedAlways: + if let locationUpdateDelegate = locationUpdateDelegate, isLocating { + startLocating(locationDelegate: locationUpdateDelegate, accuracy: accuracy) + } print("Native location services authorized by user.") break default: @@ -76,13 +81,18 @@ class HEREPositioningProvider : NSObject, return } + isLocating = true locationUpdateDelegate = locationDelegate + self.accuracy = accuracy // Set delegates to get location updates. locationEngine.addLocationDelegate(locationDelegate: locationUpdateDelegate!) locationEngine.addLocationStatusDelegate(locationStatusDelegate: self) - - _ = locationEngine.start(locationAccuracy: accuracy) + + // Without native permissins granted by user, the LocationEngine cannot be started. + if locationEngine.start(locationAccuracy: .bestAvailable) == .missingPermissions { + authorizeNativeLocationServices() + } } // Does nothing when engine is already stopped. @@ -95,8 +105,9 @@ class HEREPositioningProvider : NSObject, locationEngine.removeLocationDelegate(locationDelegate: locationUpdateDelegate!) locationEngine.removeLocationStatusDelegate(locationStatusDelegate: self) locationEngine.stop() + isLocating = false } - + // Conforms to the LocationStatusDelegate protocol. func onStatusChanged(locationEngineStatus: LocationEngineStatus) { print("Location engine status changed: \(locationEngineStatus)") diff --git a/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningSimulator.swift b/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningSimulator.swift index be773cbc..f993d427 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningSimulator.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/HEREPositioningSimulator.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/LanguageCodeConverter.swift b/examples/latest/navigate/ios/Navigation/Navigation/LanguageCodeConverter.swift index 53ec5b34..4a0d1c07 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/LanguageCodeConverter.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/LanguageCodeConverter.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/NavigationExample.swift b/examples/latest/navigate/ios/Navigation/Navigation/NavigationExample.swift index 59750430..141d1337 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/NavigationExample.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/NavigationExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -53,6 +53,7 @@ class NavigationExample : NavigableLocationDelegate, private var lastMapMatchedLocation: MapMatchedLocation? private var previousManeuverIndex: Int32 = -1 private var messageTextView: UITextView + private let routePrefetcher: RoutePrefetcher init(viewController: UIViewController, mapView: MapView, messageTextView: UITextView) { self.viewController = viewController @@ -68,13 +69,16 @@ class NavigationExample : NavigableLocationDelegate, // By default, enable auto-zoom during guidance. visualNavigator.cameraBehavior = DynamicCameraBehavior() - + visualNavigator.startRendering(mapView: mapView) // A class to receive real location events. herePositioningProvider = HEREPositioningProvider() // A class to receive simulated location events. herePositioningSimulator = HEREPositioningSimulator() + // The RoutePrefetcher downloads map data in advance into the map cache. + // This is not mandatory, but can help to improve the guidance experience. + routePrefetcher = RoutePrefetcher(SDKNativeEngine.sharedInstance!) // A helper class for TTS. voiceAssistant = VoiceAssistant() @@ -106,6 +110,16 @@ class NavigationExample : NavigableLocationDelegate, accuracy: .navigation) } + func prefetchMapData(currentGeoCoordinates: GeoCoordinates) { + // Prefetches map data around the provided location with a radius of 2 km into the map cache. + // For the best experience, prefetchAroundLocation() should be called as early as possible. + routePrefetcher.prefetchAroundLocation(currentLocation: currentGeoCoordinates) + // Prefetches map data within a corridor along the route that is currently set to the provided Navigator instance. + // This happens continuously in discrete intervals. + // If no route is set, no data will be prefetched. + routePrefetcher.prefetchAroundRouteOnIntervals(navigator: visualNavigator) + } + func createDynamicRoutingEngine() -> DynamicRoutingEngine { // We want an update for each poll iteration, so we specify 0 difference. let minTimeDifferencePercentage = 0.0 @@ -119,7 +133,7 @@ class NavigationExample : NavigableLocationDelegate, do { // With the dynamic routing engine you can poll the HERE backend services to search for routes with less traffic. - // THis can happen during guidance - or you can periodically update a route that is shown in a route planner. + // This can happen during guidance - or you can periodically update a route that is shown in a route planner. let dynamicRoutingEngine = try DynamicRoutingEngine(options: dynamicRoutingOptions) return dynamicRoutingEngine } catch let engineInstantiationError { @@ -503,7 +517,7 @@ class NavigationExample : NavigableLocationDelegate, // If not preceded by a "reached"-notification, this restriction was valid only for the passed location. print("A restriction was just passed.") } - + // One of the following restrictions applies, if more restrictions apply at the same time, // they are part of another TruckRestrictionWarning element contained in the list. if truckRestrictionWarning.weightRestriction != nil { @@ -529,14 +543,14 @@ class NavigationExample : NavigableLocationDelegate, func onSignpostWarningUpdated(_ signpostWarning: SignpostWarning) { let distance = signpostWarning.distanceToSignpostsInMeters let distanceType: DistanceType = signpostWarning.distanceType - + // Note that DistanceType.reached is not used for Signposts. if distanceType == DistanceType.ahead { print("A Signpost ahead in: " + String(distance) + " meters.") } else if distanceType == DistanceType.passed { print("A Signpost just passed.") } - + // Multiple signs can appear at the same location. for signpost in signpostWarning.signposts { let svgImageContent = signpost.svgImageContent @@ -545,7 +559,7 @@ class NavigationExample : NavigableLocationDelegate, // Use a SVG library of your choice for this. } } - + // Notifies on complex junction views for which a 3D visualization is available as a static image to help orientate the driver. // The event matches the notification for complex junctions, see JunctionViewLaneAssistance. // Note that the SVG data for junction view is composed out of several 3D elements such as trees, a horizon and the actual junction @@ -554,20 +568,20 @@ class NavigationExample : NavigableLocationDelegate, func onJunctionViewWarningUpdated(_ junctionViewWarning: JunctionViewWarning) { let distance = junctionViewWarning.distanceToJunctionViewInMeters let distanceType: DistanceType = junctionViewWarning.distanceType - + // Note that DistanceType.reached is not used for junction views. if distanceType == DistanceType.ahead { print("A JunctionView ahead in: " + String(distance) + " meters.") } else if distanceType == DistanceType.passed { print("A JunctionView just passed.") } - + let svgImageContent = junctionViewWarning.junctionView.svgImageContent print("JunctionView SVG data: " + String(svgImageContent)) // The resolution-independent SVG data can now be used in an application to visualize the image. // Use a SVG library of your choice for this. } - + // Conform to RoadTextsDelegate // Notifies whenever any textual attribute of the current road changes, i.e., the current road texts differ // from the previous one. This can be useful during tracking mode, when no maneuver information is provided. @@ -577,6 +591,9 @@ class NavigationExample : NavigableLocationDelegate, func startNavigation(route: Route, isSimulated: Bool) { + let startGeoCoordinates = route.geometry.vertices[0] + prefetchMapData(currentGeoCoordinates: startGeoCoordinates) + setupSpeedWarnings() setupRoadSignWarnings() setupVoiceGuidance() @@ -610,6 +627,7 @@ class NavigationExample : NavigableLocationDelegate, // Without a route the navigator will only notify on the current map-matched location // including info such as speed and current street name. dynamicRoutingEngine!.stop() + routePrefetcher.stopPrefetchAroundRoute() visualNavigator.route = nil enableDevicePositioning() showMessage("Tracking device's location.") @@ -653,17 +671,17 @@ class NavigationExample : NavigableLocationDelegate, roadSignWarningOptions.vehicleTypesFilter = [RoadSignVehicleType.trucks, RoadSignVehicleType.heavyTrucks] visualNavigator.roadSignWarningOptions = roadSignWarningOptions } - + private func setupSignpostWarnings() { let signpostWarningOptions = SignpostWarningOptions(aspectRatio: AspectRatio.aspectRatio3X4, darkTheme: false) visualNavigator.signpostWarningOptions = signpostWarningOptions } - + private func setupJunctionViewWarnings() { let junctionViewWarningOptions = JunctionViewWarningOptions(aspectRatio: AspectRatio.aspectRatio3X4, darkTheme: false) visualNavigator.junctionViewWarningOptions = junctionViewWarningOptions } - + private func setupVoiceGuidance() { let ttsLanguageCode = getLanguageCodeForDevice(supportedVoiceSkins: VisualNavigator.availableLanguagesForManeuverNotifications()) visualNavigator.maneuverNotificationOptions = ManeuverNotificationOptions(language: ttsLanguageCode, diff --git a/examples/latest/navigate/ios/Navigation/Navigation/RouteCalculator.swift b/examples/latest/navigate/ios/Navigation/Navigation/RouteCalculator.swift index 555a7cb3..821d6de7 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/RouteCalculator.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/RouteCalculator.swift @@ -1,5 +1,5 @@ /* -* Copyright (C) 2019-2022 HERE Europe B.V. +* Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/ViewController.swift b/examples/latest/navigate/ios/Navigation/Navigation/ViewController.swift index 6818f7d9..2f46898a 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/ViewController.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Navigation/Navigation/VoiceAssistant.swift b/examples/latest/navigate/ios/Navigation/Navigation/VoiceAssistant.swift index 1b041fa3..c8ec0a5b 100644 --- a/examples/latest/navigate/ios/Navigation/Navigation/VoiceAssistant.swift +++ b/examples/latest/navigate/ios/Navigation/Navigation/VoiceAssistant.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/AppDelegate.swift b/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/AppDelegate.swift +++ b/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/ViewController.swift b/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/ViewController.swift index b06822f6..296a47b2 100644 --- a/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/ViewController.swift +++ b/examples/latest/navigate/ios/NavigationCustom/NavigationCustom/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/AppDelegate.swift b/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/AppDelegate.swift +++ b/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/ViewController.swift b/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/ViewController.swift index b34a9d01..e9d6c194 100644 --- a/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/ViewController.swift +++ b/examples/latest/navigate/ios/NavigationQuickStart/NavigationQuickStart/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/AppDelegate.swift b/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/AppDelegate.swift +++ b/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/OfflineMapsExample.swift b/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/OfflineMapsExample.swift index 4d2828ba..6632a678 100644 --- a/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/OfflineMapsExample.swift +++ b/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/OfflineMapsExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/ViewController.swift b/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/ViewController.swift index 21038bdf..6e478046 100644 --- a/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/ViewController.swift +++ b/examples/latest/navigate/ios/OfflineMaps/OfflineMaps/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Positioning/Positioning/AppDelegate.swift b/examples/latest/navigate/ios/Positioning/Positioning/AppDelegate.swift index edbb3857..1b579253 100644 --- a/examples/latest/navigate/ios/Positioning/Positioning/AppDelegate.swift +++ b/examples/latest/navigate/ios/Positioning/Positioning/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,10 +26,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Usually, you need to initialize the HERE SDK only once during the lifetime of an application. initializeHERESDK() - return true } diff --git a/examples/latest/navigate/ios/Positioning/Positioning/Info.plist b/examples/latest/navigate/ios/Positioning/Positioning/Info.plist index 666022c6..aa5c33af 100644 --- a/examples/latest/navigate/ios/Positioning/Positioning/Info.plist +++ b/examples/latest/navigate/ios/Positioning/Positioning/Info.plist @@ -31,9 +31,9 @@ location processing - BGTaskSchedulerPermittedIdentifiers + BGTaskSchedulerPermittedIdentifiers - $(PRODUCT_BUNDLE_IDENTIFIER) + $(PRODUCT_BUNDLE_IDENTIFIER) UILaunchStoryboardName LaunchScreen diff --git a/examples/latest/navigate/ios/Positioning/Positioning/PositioningExample.swift b/examples/latest/navigate/ios/Positioning/Positioning/PositioningExample.swift index c53154ed..026e36c9 100644 --- a/examples/latest/navigate/ios/Positioning/Positioning/PositioningExample.swift +++ b/examples/latest/navigate/ios/Positioning/Positioning/PositioningExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,7 @@ import heresdk import UIKit -class PositioningExample: LocationDelegate, LocationStatusDelegate, LocationAuthorizationChangeDelegate { +class PositioningExample: LocationDelegate, LocationStatusDelegate { private static let defaultGeoCoordinates = GeoCoordinates(latitude: 52.520798, longitude: 13.409408) private static let defaultCameraDistance = 1000.0 @@ -51,7 +51,6 @@ class PositioningExample: LocationDelegate, LocationStatusDelegate, LocationAuth defaultLocation.time = Date() addMyLocationToMap(myLocation: defaultLocation) } - locationAuthorization.authorizationChangeDelegate = self startLocating() } @@ -59,10 +58,8 @@ class PositioningExample: LocationDelegate, LocationStatusDelegate, LocationAuth stopLocating() } - func locationAuthorizatioChanged(granted: Bool) { - if granted { - startLocating() - } + func locationAuthorizatioChanged() { + startLocating() } private func startLocating() { diff --git a/examples/latest/navigate/ios/Positioning/Positioning/ViewController.swift b/examples/latest/navigate/ios/Positioning/Positioning/ViewController.swift index 52943ba0..b052af8f 100644 --- a/examples/latest/navigate/ios/Positioning/Positioning/ViewController.swift +++ b/examples/latest/navigate/ios/Positioning/Positioning/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,19 +21,12 @@ import CoreLocation import heresdk import UIKit -// Location authorization changes are reported using this protocol. -public protocol LocationAuthorizationChangeDelegate { - func locationAuthorizatioChanged(granted: Bool) -} - // Location authorization delegate for requesting location authorization. public protocol LocationAuthorizationDelegate { - var authorizationChangeDelegate: LocationAuthorizationChangeDelegate? { get set } func requestLocationAuthorization() } class ViewController: UIViewController, LocationAuthorizationDelegate, CLLocationManagerDelegate { - // Core location instance is needed for requesting location authorization. private let locationManager = CLLocationManager() @@ -43,9 +36,6 @@ class ViewController: UIViewController, LocationAuthorizationDelegate, CLLocatio // Map view instance. private var mapView: MapView! - // Location authorization change delegate reference. - var authorizationChangeDelegate: LocationAuthorizationChangeDelegate? - override func viewDidLoad() { super.viewDidLoad() @@ -58,9 +48,6 @@ class ViewController: UIViewController, LocationAuthorizationDelegate, CLLocatio // Finally add map view as sub view. view.addSubview(mapView) - // Listen for location authorization status changes - locationManager.delegate = self - // Create positioning example. positioningExample = PositioningExample(locationAuthorization: self) } @@ -78,48 +65,17 @@ class ViewController: UIViewController, LocationAuthorizationDelegate, CLLocatio } } - func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) { - if let delegate = authorizationChangeDelegate { - let allowed = [ - CLAuthorizationStatus.authorizedAlways, - CLAuthorizationStatus.authorizedWhenInUse - ].contains(CLLocationManager.authorizationStatus()) - delegate.locationAuthorizatioChanged(granted: allowed) - } - } - public func requestLocationAuthorization() { - // Get current location authorization status. - let locationAuthorizationStatus = CLLocationManager.authorizationStatus() - - // Check authorization. - switch locationAuthorizationStatus { - case .restricted: - // Access to location services restricted in the system settings. - let alert = UIAlertController(title: "Location Services are restricted", message: "Please remove Location Services restriction in your device Settings", preferredStyle: .alert) - let okAction = UIAlertAction(title: "OK", style: .default, handler: nil) - alert.addAction(okAction) - present(alert, animated: true, completion: nil) - return - - case .denied: - // Location access denied for the application. - let alert = UIAlertController(title: "Location access is denied", message: "Please allow location access for the application in your device Settings", preferredStyle: .alert) - let okAction = UIAlertAction(title: "OK", style: .default, handler: nil) - alert.addAction(okAction) - present(alert, animated: true, completion: nil) - return - - case .authorizedWhenInUse, .authorizedAlways: - // Authorization ok. - break - - case .notDetermined: - locationManager.requestWhenInUseAuthorization() - break + locationManager.delegate = self + let alert = UIAlertController(title: "Location access required", message: "This example requires location access to function correctly, please accept location access in following dialog.", preferredStyle: .alert) + let okAction = UIAlertAction(title: "OK", style: .default, handler: { action in + self.locationManager.requestWhenInUseAuthorization() + }) + alert.addAction(okAction) + present(alert, animated: true, completion: nil) + } - default: - break - } + func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) { + positioningExample.locationAuthorizatioChanged() } } diff --git a/examples/latest/navigate/ios/PublicTransit/PublicTransit/AppDelegate.swift b/examples/latest/navigate/ios/PublicTransit/PublicTransit/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/PublicTransit/PublicTransit/AppDelegate.swift +++ b/examples/latest/navigate/ios/PublicTransit/PublicTransit/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift b/examples/latest/navigate/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift index eeaa7899..e10d67e5 100644 --- a/examples/latest/navigate/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift +++ b/examples/latest/navigate/ios/PublicTransit/PublicTransit/PublicTransportRoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/PublicTransit/PublicTransit/ViewController.swift b/examples/latest/navigate/ios/PublicTransit/PublicTransit/ViewController.swift index 2f0ac28e..e520487c 100644 --- a/examples/latest/navigate/ios/PublicTransit/PublicTransit/ViewController.swift +++ b/examples/latest/navigate/ios/PublicTransit/PublicTransit/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Routing/Routing/AppDelegate.swift b/examples/latest/navigate/ios/Routing/Routing/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/Routing/Routing/AppDelegate.swift +++ b/examples/latest/navigate/ios/Routing/Routing/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Routing/Routing/RoutingExample.swift b/examples/latest/navigate/ios/Routing/Routing/RoutingExample.swift index 2afdfd82..cbe5cdaa 100644 --- a/examples/latest/navigate/ios/Routing/Routing/RoutingExample.swift +++ b/examples/latest/navigate/ios/Routing/Routing/RoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -94,9 +94,11 @@ class RoutingExample { private func showRouteDetails(route: Route) { let estimatedTravelTimeInSeconds = route.duration + let estimatedTrafficDelayInSeconds = route.trafficDelay let lengthInMeters = route.lengthInMeters - let routeDetails = "Travel Time: " + formatTime(sec: estimatedTravelTimeInSeconds) + let routeDetails = "Travel Time (h:m): " + formatTime(sec: estimatedTravelTimeInSeconds) + + ", Traffic Delay (h:m): " + formatTime(sec: estimatedTrafficDelayInSeconds) + ", Length: " + formatLength(meters: lengthInMeters) showDialog(title: "Route Details", message: routeDetails) diff --git a/examples/latest/navigate/ios/Routing/Routing/ViewController.swift b/examples/latest/navigate/ios/Routing/Routing/ViewController.swift index 7ac37b39..3720c3b4 100644 --- a/examples/latest/navigate/ios/Routing/Routing/ViewController.swift +++ b/examples/latest/navigate/ios/Routing/Routing/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/AppDelegate.swift b/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/AppDelegate.swift +++ b/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/RoutingExample.swift b/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/RoutingExample.swift index fbb31993..23d3bd05 100644 --- a/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/RoutingExample.swift +++ b/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/RoutingExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/ViewController.swift b/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/ViewController.swift index 53677479..c26d5ff4 100644 --- a/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/ViewController.swift +++ b/examples/latest/navigate/ios/RoutingHybrid/RoutingHybrid/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Search/Search/AppDelegate.swift b/examples/latest/navigate/ios/Search/Search/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/Search/Search/AppDelegate.swift +++ b/examples/latest/navigate/ios/Search/Search/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Search/Search/SearchExample.swift b/examples/latest/navigate/ios/Search/Search/SearchExample.swift index 60b2565b..acfe4f89 100644 --- a/examples/latest/navigate/ios/Search/Search/SearchExample.swift +++ b/examples/latest/navigate/ios/Search/Search/SearchExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Search/Search/ViewController.swift b/examples/latest/navigate/ios/Search/Search/ViewController.swift index 060dc089..a17df8e6 100644 --- a/examples/latest/navigate/ios/Search/Search/ViewController.swift +++ b/examples/latest/navigate/ios/Search/Search/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/AppDelegate.swift b/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/AppDelegate.swift +++ b/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/SearchExample.swift b/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/SearchExample.swift index 81cd3965..3b47989d 100644 --- a/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/SearchExample.swift +++ b/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/SearchExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/ViewController.swift b/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/ViewController.swift index cf9fe18e..5faad102 100644 --- a/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/ViewController.swift +++ b/examples/latest/navigate/ios/SearchHybrid/SearchHybrid/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift b/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift index 015e5ff2..90971d41 100644 --- a/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift +++ b/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/ViewController.swift b/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/ViewController.swift index e4318309..0eb8f15c 100644 --- a/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/ViewController.swift +++ b/examples/latest/navigate/ios/StandAloneEngine/StandAloneEngine/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Traffic/Traffic/AppDelegate.swift b/examples/latest/navigate/ios/Traffic/Traffic/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/Traffic/Traffic/AppDelegate.swift +++ b/examples/latest/navigate/ios/Traffic/Traffic/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Traffic/Traffic/TrafficExample.swift b/examples/latest/navigate/ios/Traffic/Traffic/TrafficExample.swift index 77727440..e663ab7b 100644 --- a/examples/latest/navigate/ios/Traffic/Traffic/TrafficExample.swift +++ b/examples/latest/navigate/ios/Traffic/Traffic/TrafficExample.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/Traffic/Traffic/ViewController.swift b/examples/latest/navigate/ios/Traffic/Traffic/ViewController.swift index 5c531446..aa586bf5 100644 --- a/examples/latest/navigate/ios/Traffic/Traffic/ViewController.swift +++ b/examples/latest/navigate/ios/Traffic/Traffic/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/UnitTesting/UnitTesting/AppDelegate.swift b/examples/latest/navigate/ios/UnitTesting/UnitTesting/AppDelegate.swift index dee6424b..9935a540 100644 --- a/examples/latest/navigate/ios/UnitTesting/UnitTesting/AppDelegate.swift +++ b/examples/latest/navigate/ios/UnitTesting/UnitTesting/AppDelegate.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/UnitTesting/UnitTesting/ViewController.swift b/examples/latest/navigate/ios/UnitTesting/UnitTesting/ViewController.swift index fa6b25ca..b1334ea1 100644 --- a/examples/latest/navigate/ios/UnitTesting/UnitTesting/ViewController.swift +++ b/examples/latest/navigate/ios/UnitTesting/UnitTesting/ViewController.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/examples/latest/navigate/ios/UnitTesting/UnitTests/UnitTests.swift b/examples/latest/navigate/ios/UnitTesting/UnitTests/UnitTests.swift index 2c5f4608..9153e98a 100644 --- a/examples/latest/navigate/ios/UnitTesting/UnitTests/UnitTests.swift +++ b/examples/latest/navigate/ios/UnitTesting/UnitTests/UnitTests.swift @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019-2022 HERE Europe B.V. + * Copyright (C) 2019-2023 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.