From 65d8db42fe5c482a38e0c2e71043063d13bcc8ee Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Mon, 24 Jan 2022 14:08:56 -0600 Subject: [PATCH 1/3] it was solved. Expecting an argument locationparserutil.kt #300 and Callback* not triggered #301 --- .../rekab/app/background_locator/provider/LocationParserUtil.kt | 2 +- lib/location_dto.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt b/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt index bc132275..817c6218 100644 --- a/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt +++ b/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt @@ -28,7 +28,7 @@ class LocationParserUtil { Keys.ARG_SPEED_ACCURACY to speedAccuracy, Keys.ARG_HEADING to location.bearing, Keys.ARG_TIME to location.time.toDouble(), - Keys.ARG_PROVIDER to location.provider, + Keys.ARG_PROVIDER to location.provider ) } diff --git a/lib/location_dto.dart b/lib/location_dto.dart index c78022fe..de643c52 100644 --- a/lib/location_dto.dart +++ b/lib/location_dto.dart @@ -40,7 +40,7 @@ class LocationDto { json[Keys.ARG_HEADING], json[Keys.ARG_TIME], isLocationMocked, - json[Keys.ARG_PROVIDER], + json[Keys.ARG_PROVIDER] != null ? json[Keys.ARG_PROVIDER] : "", ); } From f1fb4141b4ab1965c896833f7363cf26f848525b Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Mon, 24 Jan 2022 16:47:22 -0600 Subject: [PATCH 2/3] It was solved. Expecting an argument locationparserutil.kt #300 and Callback* not triggered #301 --- lib/location_dto.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/location_dto.dart b/lib/location_dto.dart index de643c52..512919fd 100644 --- a/lib/location_dto.dart +++ b/lib/location_dto.dart @@ -40,7 +40,7 @@ class LocationDto { json[Keys.ARG_HEADING], json[Keys.ARG_TIME], isLocationMocked, - json[Keys.ARG_PROVIDER] != null ? json[Keys.ARG_PROVIDER] : "", + json[Keys.ARG_PROVIDER] ?? '', ); } From 113dec03eb98107128f3cbab10ba7111128a0cd8 Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Wed, 26 Jan 2022 00:12:45 -0600 Subject: [PATCH 3/3] It was solved. Expecting an argument locationparserutil.kt #300 and Callback* not triggered #301 --- lib/location_dto.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/location_dto.dart b/lib/location_dto.dart index 512919fd..c90a521c 100644 --- a/lib/location_dto.dart +++ b/lib/location_dto.dart @@ -12,7 +12,7 @@ class LocationDto { final double heading; final double time; final bool isMocked; - final String provider; + final String? provider; LocationDto._( this.latitude, @@ -40,7 +40,7 @@ class LocationDto { json[Keys.ARG_HEADING], json[Keys.ARG_TIME], isLocationMocked, - json[Keys.ARG_PROVIDER] ?? '', + json[Keys.ARG_PROVIDER], ); }