react-native-nitro-geolocation 1.0.0 → 1.1.0

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.
Files changed (101) hide show
  1. package/android/src/main/cpp/cpp-adapter.cpp +4 -1
  2. package/nitrogen/generated/android/c++/JAuthorizationLevel.hpp +1 -1
  3. package/nitrogen/generated/android/c++/JAuthorizationLevelInternal.hpp +1 -1
  4. package/nitrogen/generated/android/c++/JFunc_void.hpp +1 -1
  5. package/nitrogen/generated/android/c++/JFunc_void_GeolocationError.hpp +1 -1
  6. package/nitrogen/generated/android/c++/JFunc_void_GeolocationResponse.hpp +1 -1
  7. package/nitrogen/generated/android/c++/JFunc_void_LocationError.hpp +1 -1
  8. package/nitrogen/generated/android/c++/JGeolocationCoordinates.hpp +1 -1
  9. package/nitrogen/generated/android/c++/JGeolocationError.hpp +1 -1
  10. package/nitrogen/generated/android/c++/JGeolocationOptions.hpp +1 -1
  11. package/nitrogen/generated/android/c++/JGeolocationResponse.hpp +1 -1
  12. package/nitrogen/generated/android/c++/JHybridNitroGeolocationCompatSpec.cpp +26 -25
  13. package/nitrogen/generated/android/c++/JHybridNitroGeolocationCompatSpec.hpp +20 -22
  14. package/nitrogen/generated/android/c++/JHybridNitroGeolocationSpec.cpp +27 -26
  15. package/nitrogen/generated/android/c++/JHybridNitroGeolocationSpec.hpp +20 -22
  16. package/nitrogen/generated/android/c++/JLocationError.hpp +1 -1
  17. package/nitrogen/generated/android/c++/JLocationProvider.hpp +1 -1
  18. package/nitrogen/generated/android/c++/JLocationProviderInternal.hpp +1 -1
  19. package/nitrogen/generated/android/c++/JLocationRequestOptions.hpp +1 -1
  20. package/nitrogen/generated/android/c++/JModernGeolocationConfiguration.hpp +1 -1
  21. package/nitrogen/generated/android/c++/JNullableDouble.cpp +1 -1
  22. package/nitrogen/generated/android/c++/JNullableDouble.hpp +1 -1
  23. package/nitrogen/generated/android/c++/JPermissionStatus.hpp +1 -1
  24. package/nitrogen/generated/android/c++/JRNConfigurationInternal.hpp +1 -1
  25. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/AuthorizationLevel.kt +1 -1
  26. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/AuthorizationLevelInternal.kt +1 -1
  27. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Func_void.kt +1 -1
  28. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Func_void_GeolocationError.kt +1 -1
  29. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Func_void_GeolocationResponse.kt +1 -1
  30. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/Func_void_LocationError.kt +1 -1
  31. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeolocationCoordinates.kt +1 -1
  32. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeolocationError.kt +1 -1
  33. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeolocationOptions.kt +1 -1
  34. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/GeolocationResponse.kt +1 -1
  35. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/HybridNitroGeolocationCompatSpec.kt +16 -19
  36. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/HybridNitroGeolocationSpec.kt +16 -19
  37. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/LocationError.kt +1 -1
  38. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/LocationProvider.kt +1 -1
  39. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/LocationProviderInternal.kt +1 -1
  40. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/LocationRequestOptions.kt +1 -1
  41. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/ModernGeolocationConfiguration.kt +1 -1
  42. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/NullableDouble.kt +1 -7
  43. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/PermissionStatus.kt +1 -1
  44. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/RNConfigurationInternal.kt +1 -1
  45. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitrogeolocation/nitrogeolocationOnLoad.kt +1 -1
  46. package/nitrogen/generated/android/nitrogeolocation+autolinking.cmake +1 -1
  47. package/nitrogen/generated/android/nitrogeolocation+autolinking.gradle +1 -1
  48. package/nitrogen/generated/android/nitrogeolocationOnLoad.cpp +46 -30
  49. package/nitrogen/generated/android/nitrogeolocationOnLoad.hpp +14 -5
  50. package/nitrogen/generated/ios/NitroGeolocation+autolinking.rb +1 -1
  51. package/nitrogen/generated/ios/NitroGeolocation-Swift-Cxx-Bridge.cpp +1 -1
  52. package/nitrogen/generated/ios/NitroGeolocation-Swift-Cxx-Bridge.hpp +13 -13
  53. package/nitrogen/generated/ios/NitroGeolocation-Swift-Cxx-Umbrella.hpp +1 -1
  54. package/nitrogen/generated/ios/NitroGeolocationAutolinking.mm +1 -1
  55. package/nitrogen/generated/ios/NitroGeolocationAutolinking.swift +13 -15
  56. package/nitrogen/generated/ios/c++/HybridNitroGeolocationCompatSpecSwift.cpp +1 -1
  57. package/nitrogen/generated/ios/c++/HybridNitroGeolocationCompatSpecSwift.hpp +7 -1
  58. package/nitrogen/generated/ios/c++/HybridNitroGeolocationSpecSwift.cpp +1 -1
  59. package/nitrogen/generated/ios/c++/HybridNitroGeolocationSpecSwift.hpp +7 -1
  60. package/nitrogen/generated/ios/swift/AuthorizationLevel.swift +1 -1
  61. package/nitrogen/generated/ios/swift/AuthorizationLevelInternal.swift +1 -1
  62. package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
  63. package/nitrogen/generated/ios/swift/Func_void_GeolocationError.swift +1 -2
  64. package/nitrogen/generated/ios/swift/Func_void_GeolocationResponse.swift +1 -2
  65. package/nitrogen/generated/ios/swift/Func_void_LocationError.swift +1 -2
  66. package/nitrogen/generated/ios/swift/Func_void_PermissionStatus.swift +1 -2
  67. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
  68. package/nitrogen/generated/ios/swift/GeolocationCoordinates.swift +1 -2
  69. package/nitrogen/generated/ios/swift/GeolocationError.swift +1 -2
  70. package/nitrogen/generated/ios/swift/GeolocationOptions.swift +41 -7
  71. package/nitrogen/generated/ios/swift/GeolocationResponse.swift +1 -2
  72. package/nitrogen/generated/ios/swift/HybridNitroGeolocationCompatSpec.swift +3 -4
  73. package/nitrogen/generated/ios/swift/HybridNitroGeolocationCompatSpec_cxx.swift +9 -2
  74. package/nitrogen/generated/ios/swift/HybridNitroGeolocationSpec.swift +3 -4
  75. package/nitrogen/generated/ios/swift/HybridNitroGeolocationSpec_cxx.swift +9 -2
  76. package/nitrogen/generated/ios/swift/LocationError.swift +1 -2
  77. package/nitrogen/generated/ios/swift/LocationProvider.swift +1 -1
  78. package/nitrogen/generated/ios/swift/LocationProviderInternal.swift +1 -1
  79. package/nitrogen/generated/ios/swift/LocationRequestOptions.swift +41 -7
  80. package/nitrogen/generated/ios/swift/ModernGeolocationConfiguration.swift +1 -2
  81. package/nitrogen/generated/ios/swift/NullableDouble.swift +1 -1
  82. package/nitrogen/generated/ios/swift/PermissionStatus.swift +1 -1
  83. package/nitrogen/generated/ios/swift/RNConfigurationInternal.swift +1 -2
  84. package/nitrogen/generated/shared/c++/AuthorizationLevel.hpp +1 -1
  85. package/nitrogen/generated/shared/c++/AuthorizationLevelInternal.hpp +1 -1
  86. package/nitrogen/generated/shared/c++/GeolocationCoordinates.hpp +1 -1
  87. package/nitrogen/generated/shared/c++/GeolocationError.hpp +1 -1
  88. package/nitrogen/generated/shared/c++/GeolocationOptions.hpp +1 -1
  89. package/nitrogen/generated/shared/c++/GeolocationResponse.hpp +1 -1
  90. package/nitrogen/generated/shared/c++/HybridNitroGeolocationCompatSpec.cpp +1 -1
  91. package/nitrogen/generated/shared/c++/HybridNitroGeolocationCompatSpec.hpp +1 -1
  92. package/nitrogen/generated/shared/c++/HybridNitroGeolocationSpec.cpp +1 -1
  93. package/nitrogen/generated/shared/c++/HybridNitroGeolocationSpec.hpp +1 -1
  94. package/nitrogen/generated/shared/c++/LocationError.hpp +1 -1
  95. package/nitrogen/generated/shared/c++/LocationProvider.hpp +1 -1
  96. package/nitrogen/generated/shared/c++/LocationProviderInternal.hpp +1 -1
  97. package/nitrogen/generated/shared/c++/LocationRequestOptions.hpp +1 -1
  98. package/nitrogen/generated/shared/c++/ModernGeolocationConfiguration.hpp +1 -1
  99. package/nitrogen/generated/shared/c++/PermissionStatus.hpp +1 -1
  100. package/nitrogen/generated/shared/c++/RNConfigurationInternal.hpp +1 -1
  101. package/package.json +7 -4
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroGeolocationSpecSwift.cpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #include "HybridNitroGeolocationSpecSwift.hpp"
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroGeolocationSpecSwift.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -75,6 +75,12 @@ namespace margelo::nitro::nitrogeolocation {
75
75
  inline size_t getExternalMemorySize() noexcept override {
76
76
  return _swiftPart.getMemorySize();
77
77
  }
78
+ bool equals(const std::shared_ptr<HybridObject>& other) override {
79
+ if (auto otherCast = std::dynamic_pointer_cast<HybridNitroGeolocationSpecSwift>(other)) {
80
+ return _swiftPart.equals(otherCast->_swiftPart);
81
+ }
82
+ return false;
83
+ }
78
84
  void dispose() noexcept override {
79
85
  _swiftPart.dispose();
80
86
  }
@@ -2,7 +2,7 @@
2
2
  /// AuthorizationLevel.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  /**
@@ -2,7 +2,7 @@
2
2
  /// AuthorizationLevelInternal.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  /**
@@ -2,10 +2,9 @@
2
2
  /// Func_void.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// Func_void_GeolocationError.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// Func_void_GeolocationResponse.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// Func_void_LocationError.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// Func_void_PermissionStatus.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// Func_void_std__exception_ptr.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// GeolocationCoordinates.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// GeolocationError.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// GeolocationOptions.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -67,12 +66,26 @@ public extension GeolocationOptions {
67
66
 
68
67
  @inline(__always)
69
68
  var timeout: Double? {
70
- return self.__timeout.value
69
+ return { () -> Double? in
70
+ if bridge.has_value_std__optional_double_(self.__timeout) {
71
+ let __unwrapped = bridge.get_std__optional_double_(self.__timeout)
72
+ return __unwrapped
73
+ } else {
74
+ return nil
75
+ }
76
+ }()
71
77
  }
72
78
 
73
79
  @inline(__always)
74
80
  var maximumAge: Double? {
75
- return self.__maximumAge.value
81
+ return { () -> Double? in
82
+ if bridge.has_value_std__optional_double_(self.__maximumAge) {
83
+ let __unwrapped = bridge.get_std__optional_double_(self.__maximumAge)
84
+ return __unwrapped
85
+ } else {
86
+ return nil
87
+ }
88
+ }()
76
89
  }
77
90
 
78
91
  @inline(__always)
@@ -89,17 +102,38 @@ public extension GeolocationOptions {
89
102
 
90
103
  @inline(__always)
91
104
  var interval: Double? {
92
- return self.__interval.value
105
+ return { () -> Double? in
106
+ if bridge.has_value_std__optional_double_(self.__interval) {
107
+ let __unwrapped = bridge.get_std__optional_double_(self.__interval)
108
+ return __unwrapped
109
+ } else {
110
+ return nil
111
+ }
112
+ }()
93
113
  }
94
114
 
95
115
  @inline(__always)
96
116
  var fastestInterval: Double? {
97
- return self.__fastestInterval.value
117
+ return { () -> Double? in
118
+ if bridge.has_value_std__optional_double_(self.__fastestInterval) {
119
+ let __unwrapped = bridge.get_std__optional_double_(self.__fastestInterval)
120
+ return __unwrapped
121
+ } else {
122
+ return nil
123
+ }
124
+ }()
98
125
  }
99
126
 
100
127
  @inline(__always)
101
128
  var distanceFilter: Double? {
102
- return self.__distanceFilter.value
129
+ return { () -> Double? in
130
+ if bridge.has_value_std__optional_double_(self.__distanceFilter) {
131
+ let __unwrapped = bridge.get_std__optional_double_(self.__distanceFilter)
132
+ return __unwrapped
133
+ } else {
134
+ return nil
135
+ }
136
+ }()
103
137
  }
104
138
 
105
139
  @inline(__always)
@@ -2,10 +2,9 @@
2
2
  /// GeolocationResponse.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,10 +2,9 @@
2
2
  /// HybridNitroGeolocationCompatSpec.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /// See ``HybridNitroGeolocationCompatSpec``
@@ -35,14 +34,14 @@ open class HybridNitroGeolocationCompatSpec_base {
35
34
  public init() { }
36
35
  public func getCxxWrapper() -> HybridNitroGeolocationCompatSpec_cxx {
37
36
  #if DEBUG
38
- guard self is HybridNitroGeolocationCompatSpec else {
37
+ guard self is any HybridNitroGeolocationCompatSpec else {
39
38
  fatalError("`self` is not a `HybridNitroGeolocationCompatSpec`! Did you accidentally inherit from `HybridNitroGeolocationCompatSpec_base` instead of `HybridNitroGeolocationCompatSpec`?")
40
39
  }
41
40
  #endif
42
41
  if let cxxWrapper = self.cxxWrapper {
43
42
  return cxxWrapper
44
43
  } else {
45
- let cxxWrapper = HybridNitroGeolocationCompatSpec_cxx(self as! HybridNitroGeolocationCompatSpec)
44
+ let cxxWrapper = HybridNitroGeolocationCompatSpec_cxx(self as! any HybridNitroGeolocationCompatSpec)
46
45
  self.cxxWrapper = cxxWrapper
47
46
  return cxxWrapper
48
47
  }
@@ -2,10 +2,9 @@
2
2
  /// HybridNitroGeolocationCompatSpec_cxx.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -96,6 +95,14 @@ open class HybridNitroGeolocationCompatSpec_cxx {
96
95
  return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
97
96
  }
98
97
 
98
+ /**
99
+ * Compares this object with the given [other] object for reference equality.
100
+ */
101
+ @inline(__always)
102
+ public func equals(other: HybridNitroGeolocationCompatSpec_cxx) -> Bool {
103
+ return self.__implementation === other.__implementation
104
+ }
105
+
99
106
  /**
100
107
  * Call dispose() on the Swift class.
101
108
  * This _may_ be called manually from JS.
@@ -2,10 +2,9 @@
2
2
  /// HybridNitroGeolocationSpec.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /// See ``HybridNitroGeolocationSpec``
@@ -36,14 +35,14 @@ open class HybridNitroGeolocationSpec_base {
36
35
  public init() { }
37
36
  public func getCxxWrapper() -> HybridNitroGeolocationSpec_cxx {
38
37
  #if DEBUG
39
- guard self is HybridNitroGeolocationSpec else {
38
+ guard self is any HybridNitroGeolocationSpec else {
40
39
  fatalError("`self` is not a `HybridNitroGeolocationSpec`! Did you accidentally inherit from `HybridNitroGeolocationSpec_base` instead of `HybridNitroGeolocationSpec`?")
41
40
  }
42
41
  #endif
43
42
  if let cxxWrapper = self.cxxWrapper {
44
43
  return cxxWrapper
45
44
  } else {
46
- let cxxWrapper = HybridNitroGeolocationSpec_cxx(self as! HybridNitroGeolocationSpec)
45
+ let cxxWrapper = HybridNitroGeolocationSpec_cxx(self as! any HybridNitroGeolocationSpec)
47
46
  self.cxxWrapper = cxxWrapper
48
47
  return cxxWrapper
49
48
  }
@@ -2,10 +2,9 @@
2
2
  /// HybridNitroGeolocationSpec_cxx.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -96,6 +95,14 @@ open class HybridNitroGeolocationSpec_cxx {
96
95
  return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
97
96
  }
98
97
 
98
+ /**
99
+ * Compares this object with the given [other] object for reference equality.
100
+ */
101
+ @inline(__always)
102
+ public func equals(other: HybridNitroGeolocationSpec_cxx) -> Bool {
103
+ return self.__implementation === other.__implementation
104
+ }
105
+
99
106
  /**
100
107
  * Call dispose() on the Swift class.
101
108
  * This _may_ be called manually from JS.
@@ -2,10 +2,9 @@
2
2
  /// LocationError.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,7 +2,7 @@
2
2
  /// LocationProvider.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  /**
@@ -2,7 +2,7 @@
2
2
  /// LocationProviderInternal.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  /**
@@ -2,10 +2,9 @@
2
2
  /// LocationRequestOptions.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -67,12 +66,26 @@ public extension LocationRequestOptions {
67
66
 
68
67
  @inline(__always)
69
68
  var timeout: Double? {
70
- return self.__timeout.value
69
+ return { () -> Double? in
70
+ if bridge.has_value_std__optional_double_(self.__timeout) {
71
+ let __unwrapped = bridge.get_std__optional_double_(self.__timeout)
72
+ return __unwrapped
73
+ } else {
74
+ return nil
75
+ }
76
+ }()
71
77
  }
72
78
 
73
79
  @inline(__always)
74
80
  var maximumAge: Double? {
75
- return self.__maximumAge.value
81
+ return { () -> Double? in
82
+ if bridge.has_value_std__optional_double_(self.__maximumAge) {
83
+ let __unwrapped = bridge.get_std__optional_double_(self.__maximumAge)
84
+ return __unwrapped
85
+ } else {
86
+ return nil
87
+ }
88
+ }()
76
89
  }
77
90
 
78
91
  @inline(__always)
@@ -89,17 +102,38 @@ public extension LocationRequestOptions {
89
102
 
90
103
  @inline(__always)
91
104
  var interval: Double? {
92
- return self.__interval.value
105
+ return { () -> Double? in
106
+ if bridge.has_value_std__optional_double_(self.__interval) {
107
+ let __unwrapped = bridge.get_std__optional_double_(self.__interval)
108
+ return __unwrapped
109
+ } else {
110
+ return nil
111
+ }
112
+ }()
93
113
  }
94
114
 
95
115
  @inline(__always)
96
116
  var fastestInterval: Double? {
97
- return self.__fastestInterval.value
117
+ return { () -> Double? in
118
+ if bridge.has_value_std__optional_double_(self.__fastestInterval) {
119
+ let __unwrapped = bridge.get_std__optional_double_(self.__fastestInterval)
120
+ return __unwrapped
121
+ } else {
122
+ return nil
123
+ }
124
+ }()
98
125
  }
99
126
 
100
127
  @inline(__always)
101
128
  var distanceFilter: Double? {
102
- return self.__distanceFilter.value
129
+ return { () -> Double? in
130
+ if bridge.has_value_std__optional_double_(self.__distanceFilter) {
131
+ let __unwrapped = bridge.get_std__optional_double_(self.__distanceFilter)
132
+ return __unwrapped
133
+ } else {
134
+ return nil
135
+ }
136
+ }()
103
137
  }
104
138
 
105
139
  @inline(__always)
@@ -2,10 +2,9 @@
2
2
  /// ModernGeolocationConfiguration.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,7 +2,7 @@
2
2
  /// NullableDouble.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  import NitroModules
@@ -2,7 +2,7 @@
2
2
  /// PermissionStatus.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  /**
@@ -2,10 +2,9 @@
2
2
  /// RNConfigurationInternal.swift
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
- import Foundation
9
8
  import NitroModules
10
9
 
11
10
  /**
@@ -2,7 +2,7 @@
2
2
  /// AuthorizationLevel.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// AuthorizationLevelInternal.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// GeolocationCoordinates.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// GeolocationError.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// GeolocationOptions.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// GeolocationResponse.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroGeolocationCompatSpec.cpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #include "HybridNitroGeolocationCompatSpec.hpp"
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroGeolocationCompatSpec.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroGeolocationSpec.cpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #include "HybridNitroGeolocationSpec.hpp"
@@ -2,7 +2,7 @@
2
2
  /// HybridNitroGeolocationSpec.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// LocationError.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// LocationProvider.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © 2025 Marc Rousavy @ Margelo
5
+ /// Copyright © Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once