Skip to content

Commit 3ca4a7b

Browse files
authored
Merge pull request #210 from heremaps/esd/41300
Update example apps for release 4.13.0.0
2 parents 0e6a089 + 00d8fbd commit 3ca4a7b

File tree

55 files changed

+550
-625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+550
-625
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's Guide_ f
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.12.11.0)
29+
## List of Available Example Apps (Version 4.13.0.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.12.11.0
1+
This folder contains the HERE SDK examples apps for version: 4.13.0.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/))

examples/latest/explore/android/Camera/app/src/main/java/com/here/sdk/camera/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void onLoadScene(@Nullable MapError mapError) {
9797
cameraExample = new CameraExample();
9898
cameraExample.onMapSceneLoaded(MainActivity.this, mapView);
9999
} else {
100-
Log.d(TAG, "onLoadScene failed: " + mapError.toString());
100+
Log.d(TAG, "onLoadScene failed: " + mapError);
101101
}
102102
}
103103
});

examples/latest/explore/android/CameraKeyframeTracks/app/src/main/java/com/here/camerakeyframetracks/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public void onLoadScene(@Nullable MapError mapError) {
112112
cameraKeyframeTracksExample = new CameraKeyframeTracksExample(mapView);
113113
routeAnimationExample = new RouteAnimationExample(mapView);
114114
} else {
115-
Log.d(TAG, "onLoadScene failed: " + mapError.toString());
115+
Log.d(TAG, "onLoadScene failed: " + mapError);
116116
}
117117
}
118118
});

examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/CustomMapStylesExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void onLoadScene(@Nullable MapError mapError) {
7373
if (mapError == null) {
7474
// Scene loaded.
7575
} else {
76-
Log.d("CustomMapStylesExample", "onLoadScene failed: " + mapError.toString());
76+
Log.d("CustomMapStylesExample", "onLoadScene failed: " + mapError);
7777
}
7878
}
7979
});
@@ -86,7 +86,7 @@ public void onLoadScene(@Nullable MapError mapError) {
8686
if (mapError == null) {
8787
// Scene loaded.
8888
} else {
89-
Log.d("CustomMapStylesExample", "onLoadScene failed: " + mapError.toString());
89+
Log.d("CustomMapStylesExample", "onLoadScene failed: " + mapError);
9090
}
9191
}
9292
});

examples/latest/explore/android/CustomMapStyles/app/src/main/java/com/here/sdk/custommapstyles/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void onLoadScene(@Nullable MapError mapError) {
9898
customMapStylesExample = new CustomMapStylesExample();
9999
customMapStylesExample.onMapSceneLoaded(MainActivity.this, mapView);
100100
} else {
101-
Log.d(TAG, "onLoadScene failed: " + mapError.toString());
101+
Log.d(TAG, "onLoadScene failed: " + mapError);
102102
}
103103
}
104104
});

examples/latest/explore/android/Gestures/app/src/main/java/com/here/gestures/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void onLoadScene(@Nullable MapError mapError) {
9999
if (mapError == null) {
100100
new GesturesExample(MainActivity.this, mapView);
101101
} else {
102-
Log.d(TAG, "onLoadScene failed: " + mapError.toString());
102+
Log.d(TAG, "onLoadScene failed: " + mapError);
103103
}
104104
}
105105
});
@@ -129,7 +129,7 @@ protected void onSaveInstanceState(@NonNull Bundle outState) {
129129
mapView.onSaveInstanceState(outState);
130130
super.onSaveInstanceState(outState);
131131
}
132-
132+
133133
private void disposeHERESDK() {
134134
// Free HERE SDK resources before the application shuts down.
135135
// Usually, this should be called only on application termination.

examples/latest/explore/android/Search/app/src/main/java/com/here/search/MainActivity.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public void permissionsDenied() {
9494
@Override
9595
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
9696
permissionsRequestor.onRequestPermissionsResult(requestCode, grantResults);
97+
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
9798
}
9899

99100
private void loadMapScene() {
@@ -104,7 +105,7 @@ public void onLoadScene(@Nullable MapError mapError) {
104105
if (mapError == null) {
105106
searchExample = new SearchExample(MainActivity.this, mapView);
106107
} else {
107-
Log.d(TAG, "onLoadScene failed: " + mapError.toString());
108+
Log.d(TAG, "onLoadScene failed: " + mapError);
108109
}
109110
}
110111
});
@@ -142,7 +143,7 @@ protected void onSaveInstanceState(@NonNull Bundle outState) {
142143
mapView.onSaveInstanceState(outState);
143144
super.onSaveInstanceState(outState);
144145
}
145-
146+
146147
private void disposeHERESDK() {
147148
// Free HERE SDK resources before the application shuts down.
148149
// Usually, this should be called only on application termination.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class RouteCalculator {
4343
routes.Waypoint destinationWaypoint = routes.Waypoint(GeoCoordinates(40.7203, -74.3122));
4444
List<routes.Waypoint> waypoints = [startWaypoint, destinationWaypoint];
4545

46-
_routingEngine.calculateCarRoute(waypoints, routes.CarOptions.withDefaults(), (_routingError, _routes) {
46+
_routingEngine.calculateCarRoute(waypoints, routes.CarOptions(), (_routingError, _routes) {
4747
if (_routingError == null) {
4848
testRoute = _routes?.elementAt(0);
4949
_showRouteOnMap(testRoute!);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class EVRoutingExample {
9595
}
9696

9797
EVCarOptions _getEVCarOptions() {
98-
EVCarOptions evCarOptions = EVCarOptions.withDefaults();
98+
EVCarOptions evCarOptions = EVCarOptions();
9999

100100
// The below three options are the minimum you must specify or routing will result in an error.
101101
evCarOptions.consumptionModel.ascentConsumptionInWattHoursPerMeter = 9;
@@ -111,7 +111,7 @@ class EVRoutingExample {
111111

112112
// The below options are required when setting the ensureReachability option to true
113113
// (AvoidanceOptions need to be empty).
114-
evCarOptions.avoidanceOptions = AvoidanceOptions.withDefaults();
114+
evCarOptions.avoidanceOptions = AvoidanceOptions();
115115
evCarOptions.routeOptions.speedCapInMetersPerSecond = null;
116116
evCarOptions.routeOptions.optimizationMode = OptimizationMode.fastest;
117117
evCarOptions.batterySpecifications.connectorTypes = [
@@ -227,7 +227,7 @@ class EVRoutingExample {
227227
TextQueryArea.withCorridor(routeCorridor, _hereMapController.camera.state.targetCoordinates);
228228
TextQuery textQuery = TextQuery.withArea("charging station", queryArea);
229229

230-
SearchOptions searchOptions = SearchOptions.withDefaults();
230+
SearchOptions searchOptions = SearchOptions();
231231
searchOptions.languageCode = LanguageCode.enUs;
232232
searchOptions.maxItems = 30;
233233

0 commit comments

Comments
 (0)