react-native-bluebreeze 0.0.1 → 0.0.5

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 (99) hide show
  1. package/android/build.gradle +8 -17
  2. package/android/generated/java/com/bluebreeze/NativeBlueBreezeSpec.java +17 -9
  3. package/android/generated/jni/RNBlueBreezeSpec-generated.cpp +21 -14
  4. package/android/generated/jni/react/renderer/components/RNBlueBreezeSpec/RNBlueBreezeSpecJSI-generated.cpp +19 -12
  5. package/android/generated/jni/react/renderer/components/RNBlueBreezeSpec/RNBlueBreezeSpecJSI.h +279 -53
  6. package/android/gradle.properties +5 -5
  7. package/android/src/main/java/com/bluebreeze/BlueBreezeModule.kt +632 -16
  8. package/android/src/main/java/com/bluebreeze/BlueBreezePackage.kt +0 -1
  9. package/ios/BlueBreezeImpl.swift +92 -84
  10. package/ios/Bluebreeze.mm +52 -25
  11. package/ios/generated/RNBlueBreezeSpec/RNBlueBreezeSpec-generated.mm +30 -18
  12. package/ios/generated/RNBlueBreezeSpec/RNBlueBreezeSpec.h +12 -7
  13. package/ios/generated/RNBlueBreezeSpecJSI-generated.cpp +19 -12
  14. package/ios/generated/RNBlueBreezeSpecJSI.h +279 -53
  15. package/lib/commonjs/NativeBlueBreeze.js +11 -0
  16. package/lib/commonjs/NativeBlueBreeze.js.map +1 -0
  17. package/lib/commonjs/implementation/bluebreeze_authorization.js +2 -0
  18. package/lib/commonjs/implementation/bluebreeze_authorization.js.map +1 -0
  19. package/lib/commonjs/implementation/bluebreeze_characteristic.js +29 -0
  20. package/lib/commonjs/implementation/bluebreeze_characteristic.js.map +1 -0
  21. package/lib/commonjs/implementation/bluebreeze_device.js +31 -0
  22. package/lib/commonjs/implementation/bluebreeze_device.js.map +1 -0
  23. package/lib/commonjs/implementation/bluebreeze_scan_result.js +20 -0
  24. package/lib/commonjs/implementation/bluebreeze_scan_result.js.map +1 -0
  25. package/lib/commonjs/implementation/bluebreeze_service.js +15 -0
  26. package/lib/commonjs/implementation/bluebreeze_service.js.map +1 -0
  27. package/lib/commonjs/implementation/bluebreeze_state.js +2 -0
  28. package/lib/commonjs/implementation/bluebreeze_state.js.map +1 -0
  29. package/lib/commonjs/implementation/emitters.js +32 -0
  30. package/lib/commonjs/implementation/emitters.js.map +1 -0
  31. package/lib/commonjs/index.js +171 -0
  32. package/lib/commonjs/index.js.map +1 -0
  33. package/lib/module/NativeBlueBreeze.js +10 -0
  34. package/lib/module/NativeBlueBreeze.js.map +1 -0
  35. package/lib/module/implementation/bluebreeze_authorization.js +2 -0
  36. package/lib/module/implementation/bluebreeze_authorization.js.map +1 -0
  37. package/lib/module/implementation/bluebreeze_characteristic.js +23 -0
  38. package/lib/module/implementation/bluebreeze_characteristic.js.map +1 -0
  39. package/lib/module/implementation/bluebreeze_device.js +25 -0
  40. package/lib/module/implementation/bluebreeze_device.js.map +1 -0
  41. package/lib/module/implementation/bluebreeze_scan_result.js +15 -0
  42. package/lib/module/implementation/bluebreeze_scan_result.js.map +1 -0
  43. package/lib/module/implementation/bluebreeze_service.js +10 -0
  44. package/lib/module/implementation/bluebreeze_service.js.map +1 -0
  45. package/lib/module/implementation/bluebreeze_state.js +2 -0
  46. package/lib/module/implementation/bluebreeze_state.js.map +1 -0
  47. package/lib/module/implementation/emitters.js +25 -0
  48. package/lib/module/implementation/emitters.js.map +1 -0
  49. package/lib/module/index.js +168 -0
  50. package/lib/module/index.js.map +1 -0
  51. package/lib/typescript/commonjs/package.json +1 -0
  52. package/lib/typescript/commonjs/src/NativeBlueBreeze.d.ts +86 -0
  53. package/lib/typescript/commonjs/src/NativeBlueBreeze.d.ts.map +1 -0
  54. package/lib/typescript/commonjs/src/implementation/bluebreeze_authorization.d.ts +2 -0
  55. package/lib/typescript/commonjs/src/implementation/bluebreeze_authorization.d.ts.map +1 -0
  56. package/lib/typescript/commonjs/src/implementation/bluebreeze_characteristic.d.ts +14 -0
  57. package/lib/typescript/commonjs/src/implementation/bluebreeze_characteristic.d.ts.map +1 -0
  58. package/lib/typescript/commonjs/src/implementation/bluebreeze_device.d.ts +15 -0
  59. package/lib/typescript/commonjs/src/implementation/bluebreeze_device.d.ts.map +1 -0
  60. package/lib/typescript/commonjs/src/implementation/bluebreeze_scan_result.d.ts +13 -0
  61. package/lib/typescript/commonjs/src/implementation/bluebreeze_scan_result.d.ts.map +1 -0
  62. package/lib/typescript/commonjs/src/implementation/bluebreeze_service.d.ts +8 -0
  63. package/lib/typescript/commonjs/src/implementation/bluebreeze_service.d.ts.map +1 -0
  64. package/lib/typescript/commonjs/src/implementation/bluebreeze_state.d.ts +2 -0
  65. package/lib/typescript/commonjs/src/implementation/bluebreeze_state.d.ts.map +1 -0
  66. package/lib/typescript/commonjs/src/implementation/emitters.d.ts +12 -0
  67. package/lib/typescript/commonjs/src/implementation/emitters.d.ts.map +1 -0
  68. package/lib/typescript/commonjs/src/index.d.ts +32 -0
  69. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  70. package/lib/typescript/module/package.json +1 -0
  71. package/lib/typescript/module/src/NativeBlueBreeze.d.ts +86 -0
  72. package/lib/typescript/module/src/NativeBlueBreeze.d.ts.map +1 -0
  73. package/lib/typescript/module/src/implementation/bluebreeze_authorization.d.ts +2 -0
  74. package/lib/typescript/module/src/implementation/bluebreeze_authorization.d.ts.map +1 -0
  75. package/lib/typescript/module/src/implementation/bluebreeze_characteristic.d.ts +14 -0
  76. package/lib/typescript/module/src/implementation/bluebreeze_characteristic.d.ts.map +1 -0
  77. package/lib/typescript/module/src/implementation/bluebreeze_device.d.ts +15 -0
  78. package/lib/typescript/module/src/implementation/bluebreeze_device.d.ts.map +1 -0
  79. package/lib/typescript/module/src/implementation/bluebreeze_scan_result.d.ts +13 -0
  80. package/lib/typescript/module/src/implementation/bluebreeze_scan_result.d.ts.map +1 -0
  81. package/lib/typescript/module/src/implementation/bluebreeze_service.d.ts +8 -0
  82. package/lib/typescript/module/src/implementation/bluebreeze_service.d.ts.map +1 -0
  83. package/lib/typescript/module/src/implementation/bluebreeze_state.d.ts +2 -0
  84. package/lib/typescript/module/src/implementation/bluebreeze_state.d.ts.map +1 -0
  85. package/lib/typescript/module/src/implementation/emitters.d.ts +12 -0
  86. package/lib/typescript/module/src/implementation/emitters.d.ts.map +1 -0
  87. package/lib/typescript/module/src/index.d.ts +32 -0
  88. package/lib/typescript/module/src/index.d.ts.map +1 -0
  89. package/package.json +25 -21
  90. package/react-native-bluebreeze.podspec +1 -1
  91. package/src/NativeBlueBreeze.ts +83 -104
  92. package/src/implementation/bluebreeze_authorization.ts +1 -0
  93. package/src/implementation/bluebreeze_characteristic.ts +40 -0
  94. package/src/implementation/bluebreeze_device.ts +40 -0
  95. package/src/implementation/bluebreeze_scan_result.ts +32 -0
  96. package/src/implementation/bluebreeze_service.ts +17 -0
  97. package/src/implementation/bluebreeze_state.ts +1 -0
  98. package/src/implementation/emitters.ts +28 -0
  99. package/src/index.tsx +292 -81
@@ -1,6 +1,7 @@
1
1
  buildscript {
2
- // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["BlueBreeze_kotlinVersion"]
2
+ ext.getExtOrDefault = {name ->
3
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['BlueBreeze_' + name]
4
+ }
4
5
 
5
6
  repositories {
6
7
  google()
@@ -8,16 +9,12 @@ buildscript {
8
9
  }
9
10
 
10
11
  dependencies {
11
- classpath "com.android.tools.build:gradle:7.2.1"
12
+ classpath "com.android.tools.build:gradle:8.7.2"
12
13
  // noinspection DifferentKotlinGradleVersion
13
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
14
15
  }
15
16
  }
16
17
 
17
- def reactNativeArchitectures() {
18
- def value = rootProject.getProperties().get("reactNativeArchitectures")
19
- return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
20
- }
21
18
 
22
19
  def isNewArchitectureEnabled() {
23
20
  return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
@@ -30,10 +27,6 @@ if (isNewArchitectureEnabled()) {
30
27
  apply plugin: "com.facebook.react"
31
28
  }
32
29
 
33
- def getExtOrDefault(name) {
34
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["BlueBreeze_" + name]
35
- }
36
-
37
30
  def getExtOrIntegerDefault(name) {
38
31
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["BlueBreeze_" + name]).toInteger()
39
32
  }
@@ -64,7 +57,6 @@ android {
64
57
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
65
58
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
66
59
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
67
-
68
60
  }
69
61
 
70
62
  buildFeatures {
@@ -106,11 +98,10 @@ repositories {
106
98
  def kotlin_version = getExtOrDefault("kotlinVersion")
107
99
 
108
100
  dependencies {
109
- // For < 0.71, this will be from the local maven repo
110
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
111
- //noinspection GradleDynamicVersion
112
- implementation "com.facebook.react:react-native:+"
101
+ implementation "com.facebook.react:react-android"
113
102
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
103
+
104
+ implementation "dev.likemagic:bluebreeze:0.0.9"
114
105
  }
115
106
 
116
107
  if (isNewArchitectureEnabled()) {
@@ -35,16 +35,20 @@ public abstract class NativeBlueBreezeSpec extends ReactContextBaseJavaModule im
35
35
  return NAME;
36
36
  }
37
37
 
38
+ protected final void emitStateEmitter(String value) {
39
+ mEventEmitterCallback.invoke("stateEmitter", value);
40
+ }
41
+
38
42
  protected final void emitAuthorizationStatusEmitter(String value) {
39
43
  mEventEmitterCallback.invoke("authorizationStatusEmitter", value);
40
44
  }
41
45
 
42
- protected final void emitStateEmitter(String value) {
43
- mEventEmitterCallback.invoke("stateEmitter", value);
46
+ protected final void emitScanEnabledEmitter(boolean value) {
47
+ mEventEmitterCallback.invoke("scanEnabledEmitter", value);
44
48
  }
45
49
 
46
- protected final void emitScanningEnabledEmitter(boolean value) {
47
- mEventEmitterCallback.invoke("scanningEnabledEmitter", value);
50
+ protected final void emitScanResultEmitter(ReadableMap value) {
51
+ mEventEmitterCallback.invoke("scanResultEmitter", value);
48
52
  }
49
53
 
50
54
  protected final void emitDevicesEmitter(ReadableArray value) {
@@ -71,6 +75,10 @@ public abstract class NativeBlueBreezeSpec extends ReactContextBaseJavaModule im
71
75
  mEventEmitterCallback.invoke("deviceCharacteristicNotifyEnabledEmitter", value);
72
76
  }
73
77
 
78
+ @ReactMethod(isBlockingSynchronousMethod = true)
79
+ @DoNotStrip
80
+ public abstract String state();
81
+
74
82
  @ReactMethod(isBlockingSynchronousMethod = true)
75
83
  @DoNotStrip
76
84
  public abstract String authorizationStatus();
@@ -79,21 +87,21 @@ public abstract class NativeBlueBreezeSpec extends ReactContextBaseJavaModule im
79
87
  @DoNotStrip
80
88
  public abstract void authorizationRequest();
81
89
 
82
- @ReactMethod(isBlockingSynchronousMethod = true)
90
+ @ReactMethod
83
91
  @DoNotStrip
84
- public abstract String state();
92
+ public abstract void authorizationOpenSettings();
85
93
 
86
94
  @ReactMethod(isBlockingSynchronousMethod = true)
87
95
  @DoNotStrip
88
- public abstract boolean scanningEnabled();
96
+ public abstract boolean scanEnabled();
89
97
 
90
98
  @ReactMethod
91
99
  @DoNotStrip
92
- public abstract void scanningStart();
100
+ public abstract void scanStart();
93
101
 
94
102
  @ReactMethod
95
103
  @DoNotStrip
96
- public abstract void scanningStop();
104
+ public abstract void scanStop();
97
105
 
98
106
  @ReactMethod(isBlockingSynchronousMethod = true)
99
107
  @DoNotStrip
@@ -12,6 +12,11 @@
12
12
 
13
13
  namespace facebook::react {
14
14
 
15
+ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_state(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
+ static jmethodID cachedMethodId = nullptr;
17
+ return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "state", "()Ljava/lang/String;", args, count, cachedMethodId);
18
+ }
19
+
15
20
  static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_authorizationStatus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
21
  static jmethodID cachedMethodId = nullptr;
17
22
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "authorizationStatus", "()Ljava/lang/String;", args, count, cachedMethodId);
@@ -22,24 +27,24 @@ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_authorization
22
27
  return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "authorizationRequest", "()V", args, count, cachedMethodId);
23
28
  }
24
29
 
25
- static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_state(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
30
+ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_authorizationOpenSettings(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
26
31
  static jmethodID cachedMethodId = nullptr;
27
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "state", "()Ljava/lang/String;", args, count, cachedMethodId);
32
+ return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "authorizationOpenSettings", "()V", args, count, cachedMethodId);
28
33
  }
29
34
 
30
- static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_scanningEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
35
+ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_scanEnabled(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
31
36
  static jmethodID cachedMethodId = nullptr;
32
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "scanningEnabled", "()Z", args, count, cachedMethodId);
37
+ return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "scanEnabled", "()Z", args, count, cachedMethodId);
33
38
  }
34
39
 
35
- static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_scanningStart(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
40
+ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_scanStart(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
36
41
  static jmethodID cachedMethodId = nullptr;
37
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "scanningStart", "()V", args, count, cachedMethodId);
42
+ return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "scanStart", "()V", args, count, cachedMethodId);
38
43
  }
39
44
 
40
- static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_scanningStop(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
45
+ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_scanStop(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
41
46
  static jmethodID cachedMethodId = nullptr;
42
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "scanningStop", "()V", args, count, cachedMethodId);
47
+ return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "scanStop", "()V", args, count, cachedMethodId);
43
48
  }
44
49
 
45
50
  static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_devices(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
@@ -114,12 +119,13 @@ static facebook::jsi::Value __hostFunction_NativeBlueBreezeSpecJSI_deviceCharact
114
119
 
115
120
  NativeBlueBreezeSpecJSI::NativeBlueBreezeSpecJSI(const JavaTurboModule::InitParams &params)
116
121
  : JavaTurboModule(params) {
122
+ methodMap_["state"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_state};
117
123
  methodMap_["authorizationStatus"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_authorizationStatus};
118
124
  methodMap_["authorizationRequest"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_authorizationRequest};
119
- methodMap_["state"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_state};
120
- methodMap_["scanningEnabled"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_scanningEnabled};
121
- methodMap_["scanningStart"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_scanningStart};
122
- methodMap_["scanningStop"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_scanningStop};
125
+ methodMap_["authorizationOpenSettings"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_authorizationOpenSettings};
126
+ methodMap_["scanEnabled"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_scanEnabled};
127
+ methodMap_["scanStart"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_scanStart};
128
+ methodMap_["scanStop"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_scanStop};
123
129
  methodMap_["devices"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeSpecJSI_devices};
124
130
  methodMap_["deviceServices"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeSpecJSI_deviceServices};
125
131
  methodMap_["deviceConnectionStatus"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeSpecJSI_deviceConnectionStatus};
@@ -134,9 +140,10 @@ NativeBlueBreezeSpecJSI::NativeBlueBreezeSpecJSI(const JavaTurboModule::InitPara
134
140
  methodMap_["deviceCharacteristicWrite"] = MethodMetadata {5, __hostFunction_NativeBlueBreezeSpecJSI_deviceCharacteristicWrite};
135
141
  methodMap_["deviceCharacteristicSubscribe"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeSpecJSI_deviceCharacteristicSubscribe};
136
142
  methodMap_["deviceCharacteristicUnsubscribe"] = MethodMetadata {3, __hostFunction_NativeBlueBreezeSpecJSI_deviceCharacteristicUnsubscribe};
137
- eventEmitterMap_["authorizationStatusEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
138
143
  eventEmitterMap_["stateEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
139
- eventEmitterMap_["scanningEnabledEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
144
+ eventEmitterMap_["authorizationStatusEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
145
+ eventEmitterMap_["scanEnabledEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
146
+ eventEmitterMap_["scanResultEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
140
147
  eventEmitterMap_["devicesEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
141
148
  eventEmitterMap_["deviceServicesEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
142
149
  eventEmitterMap_["deviceConnectionStatusEmitter"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
@@ -11,6 +11,11 @@
11
11
 
12
12
  namespace facebook::react {
13
13
 
14
+ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_state(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
+ return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->state(
16
+ rt
17
+ );
18
+ }
14
19
  static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationStatus(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
20
  return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationStatus(
16
21
  rt
@@ -22,24 +27,25 @@ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationRequest
22
27
  );
23
28
  return jsi::Value::undefined();
24
29
  }
25
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_state(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
26
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->state(
30
+ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationOpenSettings(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
+ static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->authorizationOpenSettings(
27
32
  rt
28
33
  );
34
+ return jsi::Value::undefined();
29
35
  }
30
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanningEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
- return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanningEnabled(
36
+ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanEnabled(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
37
+ return static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanEnabled(
32
38
  rt
33
39
  );
34
40
  }
35
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanningStart(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
36
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanningStart(
41
+ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStart(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
+ static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanStart(
37
43
  rt
38
44
  );
39
45
  return jsi::Value::undefined();
40
46
  }
41
- static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanningStop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
42
- static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanningStop(
47
+ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
48
+ static_cast<NativeBlueBreezeCxxSpecJSI *>(&turboModule)->scanStop(
43
49
  rt
44
50
  );
45
51
  return jsi::Value::undefined();
@@ -145,12 +151,13 @@ static jsi::Value __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceCharacteristic
145
151
 
146
152
  NativeBlueBreezeCxxSpecJSI::NativeBlueBreezeCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
147
153
  : TurboModule("BlueBreeze", jsInvoker) {
154
+ methodMap_["state"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_state};
148
155
  methodMap_["authorizationStatus"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationStatus};
149
156
  methodMap_["authorizationRequest"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationRequest};
150
- methodMap_["state"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_state};
151
- methodMap_["scanningEnabled"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanningEnabled};
152
- methodMap_["scanningStart"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanningStart};
153
- methodMap_["scanningStop"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanningStop};
157
+ methodMap_["authorizationOpenSettings"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_authorizationOpenSettings};
158
+ methodMap_["scanEnabled"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanEnabled};
159
+ methodMap_["scanStart"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStart};
160
+ methodMap_["scanStop"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_scanStop};
154
161
  methodMap_["devices"] = MethodMetadata {0, __hostFunction_NativeBlueBreezeCxxSpecJSI_devices};
155
162
  methodMap_["deviceServices"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceServices};
156
163
  methodMap_["deviceConnectionStatus"] = MethodMetadata {1, __hostFunction_NativeBlueBreezeCxxSpecJSI_deviceConnectionStatus};