Skip to content

Commit

Permalink
Merge pull request #289 from heremaps/esd/41630
Browse files Browse the repository at this point in the history
Update example apps for release 4.16.3.0
  • Loading branch information
HERE-SDK-Support-Team authored Nov 14, 2023
2 parents e32c80e + f80196b commit 96bbdf0
Show file tree
Hide file tree
Showing 38 changed files with 618 additions and 142 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For an overview of the existing features, please check the _Developer Guide_ for

> 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.16.2.0)
## List of Available Example Apps (Version 4.16.3.0)

- **HelloMap**: Shows the classic 'Hello World'.
- **HelloMapKotlin**: Shows the classic 'Hello World' using Kotlin language (Android only).
Expand Down
2 changes: 1 addition & 1 deletion examples/latest/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This folder contains the HERE SDK examples apps for version: 4.16.2.0
This folder contains the HERE SDK examples apps for version: 4.16.3.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/))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CameraKeyframeTracksExample {
try {
mapCameraAnimation = MapCameraAnimationFactory.createAnimationFromKeyframeTracks(mapCameraKeyframeTracks!);
} on MapCameraKeyframeTrackInstantiationException catch (e) {
print(_tag + "Error occured: " + e.error.name);
print(_tag + "Error occurred: " + e.error.name);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,19 @@ class RouteCalculator {
GeoPolyline routeGeoPolyline = route.geometry;
double widthInPixels = 20.0;
Color polylineColor = const Color.fromARGB(160, 0, 144, 138);
MapPolyline routeMapPolyline = MapPolyline.withRepresentation(routeGeoPolyline, MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
polylineColor,
LineCap.round));
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
MapPolyline? routeMapPolyline;
try {
routeMapPolyline = MapPolyline.withRepresentation(routeGeoPolyline, MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
polylineColor,
LineCap.round));
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
} on MapPolylineRepresentationInstantiationException catch (e) {
print("MapPolylineRepresentation Exception:" + e.error.name);
return;
} on MapMeasureDependentRenderSizeInstantiationException catch (e) {
print("MapMeasureDependentRenderSize Exception:" + e.error.name);
return;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,23 @@ class EVRoutingExample {
GeoPolyline routeGeoPolyline = route.geometry;
double widthInPixels = 20;
Color polylineColor = const Color.fromARGB(160, 0, 144, 138);
MapPolyline routeMapPolyline = MapPolyline.withRepresentation(
routeGeoPolyline,
MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
polylineColor,
LineCap.round));
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
_mapPolylines.add(routeMapPolyline);
MapPolyline routeMapPolyline;
try {
routeMapPolyline = MapPolyline.withRepresentation(
routeGeoPolyline,
MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
polylineColor,
LineCap.round));
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
_mapPolylines.add(routeMapPolyline);
} on MapPolylineRepresentationInstantiationException catch (e) {
print("MapPolylineRepresentation Exception:" + e.error.name);
return;
} on MapMeasureDependentRenderSizeInstantiationException catch (e) {
print("MapMeasureDependentRenderSize Exception:" + e.error.name);
return;
}

if (_startGeoCoordinates == null || _destinationGeoCoordinates == null) {
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,19 @@ class MapObjectsExample {

double widthInPixels = 20;
Color lineColor = Color.fromARGB(160, 0, 144, 138);
MapPolyline mapPolyline = MapPolyline.withRepresentation(
geoPolyline,
MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
lineColor,
LineCap.round));
MapPolyline? mapPolyline;
try {
mapPolyline = MapPolyline.withRepresentation(
geoPolyline,
MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
lineColor,
LineCap.round));
} on MapPolylineRepresentationInstantiationException catch (e) {
print("MapPolylineRepresentation Exception:" + e.error.name);
} on MapMeasureDependentRenderSizeInstantiationException catch (e) {
print("MapMeasureDependentRenderSize Exception:" + e.error.name);
}

return mapPolyline;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,23 @@ class PublicTransportRoutingExample {
GeoPolyline routeGeoPolyline = route.geometry;
double widthInPixels = 20;
Color polylineColor = const Color.fromARGB(160, 0, 144, 138);
MapPolyline routeMapPolyline = MapPolyline.withRepresentation(
routeGeoPolyline,
MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
polylineColor,
LineCap.round));
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
_mapPolylines.add(routeMapPolyline);
MapPolyline routeMapPolyline;
try {
routeMapPolyline = MapPolyline.withRepresentation(
routeGeoPolyline,
MapPolylineSolidRepresentation(
MapMeasureDependentRenderSize.withSingleSize(RenderSizeUnit.pixels, widthInPixels),
polylineColor,
LineCap.round));
_hereMapController.mapScene.addMapPolyline(routeMapPolyline);
_mapPolylines.add(routeMapPolyline);
} on MapPolylineRepresentationInstantiationException catch (e) {
print("MapPolylineRepresentation Exception:" + e.error.name);
return;
} on MapMeasureDependentRenderSizeInstantiationException catch (e) {
print("MapMeasureDependentRenderSize Exception:" + e.error.name);
return;
}
}

GeoCoordinates _createRandomGeoCoordinatesInViewport() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.flutter.plugins;

import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;

import io.flutter.embedding.engine.FlutterEngine;

/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new com.here.here_sdk.HereSdkPlugin());
} catch(Exception e) {
Log.e(TAG, "Error registering plugin here_sdk, com.here.here_sdk.HereSdkPlugin", e);
}
}
}
Loading

0 comments on commit 96bbdf0

Please sign in to comment.