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

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.
package/nitro.json CHANGED
@@ -11,6 +11,9 @@
11
11
  "NitroLocationTracking": {
12
12
  "swift": "NitroLocationTracking",
13
13
  "kotlin": "NitroLocationTracking"
14
+ },
15
+ "NitroLocationComplexLogicsCalculation": {
16
+ "cpp": "HybridNitroLocationComplexLogicsCalculation"
14
17
  }
15
18
  },
16
19
  "ignorePaths": ["node_modules"]
@@ -25,6 +25,7 @@
25
25
  #include "JFunc_void_LocationProviderStatus_LocationProviderStatus.hpp"
26
26
  #include "JFunc_void_PermissionStatus.hpp"
27
27
  #include <NitroModules/DefaultConstructableObject.hpp>
28
+ #include "HybridNitroLocationComplexLogicsCalculation.hpp"
28
29
 
29
30
  namespace margelo::nitro::nitrolocationtracking {
30
31
 
@@ -54,6 +55,15 @@ int initialize(JavaVM* vm) {
54
55
  return instance->cthis()->shared();
55
56
  }
56
57
  );
58
+ HybridObjectRegistry::registerHybridObjectConstructor(
59
+ "NitroLocationComplexLogicsCalculation",
60
+ []() -> std::shared_ptr<HybridObject> {
61
+ static_assert(std::is_default_constructible_v<HybridNitroLocationComplexLogicsCalculation>,
62
+ "The HybridObject \"HybridNitroLocationComplexLogicsCalculation\" is not default-constructible! "
63
+ "Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
64
+ return std::make_shared<HybridNitroLocationComplexLogicsCalculation>();
65
+ }
66
+ );
57
67
  });
58
68
  }
59
69
 
@@ -11,6 +11,7 @@
11
11
  #import <type_traits>
12
12
 
13
13
  #include "HybridNitroLocationTrackingSpecSwift.hpp"
14
+ #include "HybridNitroLocationComplexLogicsCalculation.hpp"
14
15
 
15
16
  @interface NitroLocationTrackingAutolinking : NSObject
16
17
  @end
@@ -28,6 +29,15 @@
28
29
  return hybridObject;
29
30
  }
30
31
  );
32
+ HybridObjectRegistry::registerHybridObjectConstructor(
33
+ "NitroLocationComplexLogicsCalculation",
34
+ []() -> std::shared_ptr<HybridObject> {
35
+ static_assert(std::is_default_constructible_v<HybridNitroLocationComplexLogicsCalculation>,
36
+ "The HybridObject \"HybridNitroLocationComplexLogicsCalculation\" is not default-constructible! "
37
+ "Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
38
+ return std::make_shared<HybridNitroLocationComplexLogicsCalculation>();
39
+ }
40
+ );
31
41
  }
32
42
 
33
43
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-location-tracking",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
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",