react-native-nitro-location-tracking 0.1.14 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -474,10 +474,10 @@ class NitroLocationTracking : HybridNitroLocationTrackingSpec() {
474
474
  // the dialog so we cannot miss the result.
475
475
  val listener = object : BaseActivityEventListener() {
476
476
  override fun onActivityResult(
477
- activity: Activity?,
478
- requestCode: Int,
479
- resultCode: Int,
480
- data: Intent?
477
+ activity: Activity,
478
+ requestCode: Int,
479
+ resultCode: Int,
480
+ data: Intent?
481
481
  ) {
482
482
  if (requestCode != GPS_RESOLUTION_REQUEST_CODE) return
483
483
  reactContext.removeActivityEventListener(this)
@@ -523,7 +523,7 @@ class NitroLocationTracking : HybridNitroLocationTrackingSpec() {
523
523
  }
524
524
 
525
525
  // === Device State Monitoring ===
526
-
526
+
527
527
  override fun isAirplaneModeEnabled(): Boolean {
528
528
  ensureInitialized()
529
529
  return airplaneModeMonitor?.isAirplaneModeEnabled() ?: false
@@ -18,7 +18,7 @@ namespace margelo::nitro::nitrolocationtracking {
18
18
  }
19
19
 
20
20
  TripMathStats HybridNitroLocationComplexLogicsCalculation::calculateTotalTripStats(const std::vector<LocationPoint>& points) {
21
- TripMathStats stats = {0.0, 0.0, 0.0, 0.0};
21
+ TripMathStats stats{0.0, 0.0, 0.0, 0.0};
22
22
 
23
23
  if (points.size() < 2) return stats;
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-location-tracking",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "A React Native Nitro module for location tracking",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",