Skip to content

Commit f80196b

Browse files
committed
Update example apps for release 4.16.3.0
Signed-off-by: datasun <datasun@users.noreply.github.com>
1 parent e32c80e commit f80196b

File tree

38 files changed

+618
-142
lines changed

38 files changed

+618
-142
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For an overview of the existing features, please check the _Developer Guide_ for
2626

2727
> For now, the _Navigate Edition_ is only available upon request. Please contact your HERE representative to receive access including a set of evaluation credentials.
2828
29-
## List of Available Example Apps (Version 4.16.2.0)
29+
## List of Available Example Apps (Version 4.16.3.0)
3030

3131
- **HelloMap**: Shows the classic 'Hello World'.
3232
- **HelloMapKotlin**: Shows the classic 'Hello World' using Kotlin language (Android only).

examples/latest/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This folder contains the HERE SDK examples apps for version: 4.16.2.0
1+
This folder contains the HERE SDK examples apps for version: 4.16.3.0
22

33
- HERE SDK for Android ([Lite Edition](lite/android/), [Explore Edition](explore/android/), [Navigate Edition](navigate/android/))
44
- HERE SDK for iOS ([Lite Edition](lite/ios/), [Explore Edition](explore/ios/), [Navigate Edition](navigate/ios/))
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.flutter.plugins;
2+
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
8+
9+
/**
10+
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
13+
*/
14+
@Keep
15+
public final class GeneratedPluginRegistrant {
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
20+
} catch(Exception e) {
21+
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.flutter.plugins;
2+
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
8+
9+
/**
10+
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
13+
*/
14+
@Keep
15+
public final class GeneratedPluginRegistrant {
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
20+
} catch(Exception e) {
21+
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
22+
}
23+
}
24+
}

examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/CameraKeyframeTracksExample.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CameraKeyframeTracksExample {
4040
try {
4141
mapCameraAnimation = MapCameraAnimationFactory.createAnimationFromKeyframeTracks(mapCameraKeyframeTracks!);
4242
} on MapCameraKeyframeTrackInstantiationException catch (e) {
43-
print(_tag + "Error occured: " + e.error.name);
43+
print(_tag + "Error occurred: " + e.error.name);
4444
return;
4545
}
4646

examples/latest/explore/flutter/camera_keyframe_tracks_app/lib/helper/RouteCalculator.dart

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,19 @@ class RouteCalculator {
5858
GeoPolyline routeGeoPolyline = route.geometry;
5959
double widthInPixels = 20.0;
6060
Color polylineColor = const Color.fromARGB(160, 0, 144, 138);
61-
MapPolyline routeMapPolyline = MapPolyline.withRepresentation(routeGeoPolyline, MapPolylineSolidRepresentation(
62-
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
63-
polylineColor,
64-
LineCap.round));
65-
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
61+
MapPolyline? routeMapPolyline;
62+
try {
63+
routeMapPolyline = MapPolyline.withRepresentation(routeGeoPolyline, MapPolylineSolidRepresentation(
64+
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
65+
polylineColor,
66+
LineCap.round));
67+
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
68+
} on MapPolylineRepresentationInstantiationException catch (e) {
69+
print("MapPolylineRepresentation Exception:" + e.error.name);
70+
return;
71+
} on MapMeasureDependentRenderSizeInstantiationException catch (e) {
72+
print("MapMeasureDependentRenderSize Exception:" + e.error.name);
73+
return;
74+
}
6675
}
6776
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.flutter.plugins;
2+
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
8+
9+
/**
10+
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
13+
*/
14+
@Keep
15+
public final class GeneratedPluginRegistrant {
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
20+
} catch(Exception e) {
21+
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.flutter.plugins;
2+
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
8+
9+
/**
10+
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
13+
*/
14+
@Keep
15+
public final class GeneratedPluginRegistrant {
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
20+
} catch(Exception e) {
21+
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.flutter.plugins;
2+
3+
import androidx.annotation.Keep;
4+
import androidx.annotation.NonNull;
5+
import io.flutter.Log;
6+
7+
import io.flutter.embedding.engine.FlutterEngine;
8+
9+
/**
10+
* Generated file. Do not edit.
11+
* This file is generated by the Flutter tool based on the
12+
* plugins that support the Android platform.
13+
*/
14+
@Keep
15+
public final class GeneratedPluginRegistrant {
16+
private static final String TAG = "GeneratedPluginRegistrant";
17+
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
18+
try {
19+
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
20+
} catch(Exception e) {
21+
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
22+
}
23+
}
24+
}

examples/latest/explore/flutter/ev_routing_app/lib/EVRoutingExample.dart

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,23 @@ class EVRoutingExample {
340340
GeoPolyline routeGeoPolyline = route.geometry;
341341
double widthInPixels = 20;
342342
Color polylineColor = const Color.fromARGB(160, 0, 144, 138);
343-
MapPolyline routeMapPolyline = MapPolyline.withRepresentation(
344-
routeGeoPolyline,
345-
MapPolylineSolidRepresentation(
346-
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
347-
polylineColor,
348-
LineCap.round));
349-
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
350-
_mapPolylines.add(routeMapPolyline);
343+
MapPolyline routeMapPolyline;
344+
try {
345+
routeMapPolyline = MapPolyline.withRepresentation(
346+
routeGeoPolyline,
347+
MapPolylineSolidRepresentation(
348+
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
349+
polylineColor,
350+
LineCap.round));
351+
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
352+
_mapPolylines.add(routeMapPolyline);
353+
} on MapPolylineRepresentationInstantiationException catch (e) {
354+
print("MapPolylineRepresentation Exception:" + e.error.name);
355+
return;
356+
} on MapMeasureDependentRenderSizeInstantiationException catch (e) {
357+
print("MapMeasureDependentRenderSize Exception:" + e.error.name);
358+
return;
359+
}
351360

352361
if (_startGeoCoordinates == null || _destinationGeoCoordinates == null) {
353362
return;

0 commit comments

Comments
 (0)