@gromozeqa/react-native-apple-health-kit 0.2.0 → 0.3.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.
- package/android/generated/jni/CMakeLists.txt +17 -4
- package/android/generated/jni/react/renderer/components/RNReactNativeAppleHealthKitSpec/RNReactNativeAppleHealthKitSpecJSI.h +2 -6
- package/ios/generated/RNReactNativeAppleHealthKitSpec/RNReactNativeAppleHealthKitSpec-generated.mm +0 -10
- package/ios/generated/RNReactNativeAppleHealthKitSpec/RNReactNativeAppleHealthKitSpec.h +0 -13
- package/ios/generated/RNReactNativeAppleHealthKitSpecJSI.h +2 -6
- package/package.json +9 -7
@@ -10,7 +10,7 @@ file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/R
|
|
10
10
|
|
11
11
|
add_library(
|
12
12
|
react_codegen_RNReactNativeAppleHealthKitSpec
|
13
|
-
|
13
|
+
SHARED
|
14
14
|
${react_codegen_SRCS}
|
15
15
|
)
|
16
16
|
|
@@ -19,10 +19,23 @@ target_include_directories(react_codegen_RNReactNativeAppleHealthKitSpec PUBLIC
|
|
19
19
|
target_link_libraries(
|
20
20
|
react_codegen_RNReactNativeAppleHealthKitSpec
|
21
21
|
fbjni
|
22
|
+
folly_runtime
|
23
|
+
glog
|
22
24
|
jsi
|
23
|
-
|
24
|
-
|
25
|
-
|
25
|
+
react_codegen_rncore
|
26
|
+
react_debug
|
27
|
+
react_nativemodule_core
|
28
|
+
react_render_componentregistry
|
29
|
+
react_render_core
|
30
|
+
react_render_debug
|
31
|
+
react_render_graphics
|
32
|
+
react_render_imagemanager
|
33
|
+
react_render_mapbuffer
|
34
|
+
react_utils
|
35
|
+
rrc_image
|
36
|
+
rrc_view
|
37
|
+
turbomodulejsijni
|
38
|
+
yoga
|
26
39
|
)
|
27
40
|
|
28
41
|
target_compile_options(
|
@@ -235,12 +235,8 @@ public:
|
|
235
235
|
template <typename T>
|
236
236
|
class JSI_EXPORT NativeReactNativeAppleHealthKitCxxSpec : public TurboModule {
|
237
237
|
public:
|
238
|
-
jsi::Value
|
239
|
-
return delegate_.
|
240
|
-
}
|
241
|
-
|
242
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
243
|
-
return delegate_.getPropertyNames(runtime);
|
238
|
+
jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
239
|
+
return delegate_.get(rt, propName);
|
244
240
|
}
|
245
241
|
|
246
242
|
static constexpr std::string_view kModuleName = "ReactNativeAppleHealthKit";
|
package/ios/generated/RNReactNativeAppleHealthKitSpec/RNReactNativeAppleHealthKitSpec-generated.mm
CHANGED
@@ -14,16 +14,6 @@
|
|
14
14
|
#import "RNReactNativeAppleHealthKitSpec.h"
|
15
15
|
|
16
16
|
|
17
|
-
@implementation NativeReactNativeAppleHealthKitSpecBase
|
18
|
-
|
19
|
-
|
20
|
-
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
|
21
|
-
{
|
22
|
-
_eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
|
23
|
-
}
|
24
|
-
@end
|
25
|
-
|
26
|
-
|
27
17
|
namespace facebook::react {
|
28
18
|
|
29
19
|
static facebook::jsi::Value __hostFunction_NativeReactNativeAppleHealthKitSpecJSI_requestHealthKitPermissions(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
@@ -31,8 +31,6 @@
|
|
31
31
|
#import <vector>
|
32
32
|
|
33
33
|
|
34
|
-
NS_ASSUME_NONNULL_BEGIN
|
35
|
-
|
36
34
|
@protocol NativeReactNativeAppleHealthKitSpec <RCTBridgeModule, RCTTurboModule>
|
37
35
|
|
38
36
|
- (void)requestHealthKitPermissions:(RCTPromiseResolveBlock)resolve
|
@@ -47,16 +45,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
47
45
|
reject:(RCTPromiseRejectBlock)reject;
|
48
46
|
|
49
47
|
@end
|
50
|
-
|
51
|
-
@interface NativeReactNativeAppleHealthKitSpecBase : NSObject {
|
52
|
-
@protected
|
53
|
-
facebook::react::EventEmitterCallback _eventEmitterCallback;
|
54
|
-
}
|
55
|
-
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;
|
56
|
-
|
57
|
-
|
58
|
-
@end
|
59
|
-
|
60
48
|
namespace facebook::react {
|
61
49
|
/**
|
62
50
|
* ObjC++ class for module 'NativeReactNativeAppleHealthKit'
|
@@ -67,5 +55,4 @@ namespace facebook::react {
|
|
67
55
|
};
|
68
56
|
} // namespace facebook::react
|
69
57
|
|
70
|
-
NS_ASSUME_NONNULL_END
|
71
58
|
#endif // RNReactNativeAppleHealthKitSpec_H
|
@@ -235,12 +235,8 @@ public:
|
|
235
235
|
template <typename T>
|
236
236
|
class JSI_EXPORT NativeReactNativeAppleHealthKitCxxSpec : public TurboModule {
|
237
237
|
public:
|
238
|
-
jsi::Value
|
239
|
-
return delegate_.
|
240
|
-
}
|
241
|
-
|
242
|
-
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
243
|
-
return delegate_.getPropertyNames(runtime);
|
238
|
+
jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
239
|
+
return delegate_.get(rt, propName);
|
244
240
|
}
|
245
241
|
|
246
242
|
static constexpr std::string_view kModuleName = "ReactNativeAppleHealthKit";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@gromozeqa/react-native-apple-health-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.3.0",
|
4
4
|
"description": "IOS module for react native to enable health kit",
|
5
5
|
"source": "./src/index.tsx",
|
6
6
|
"main": "./lib/commonjs/index.js",
|
@@ -64,22 +64,22 @@
|
|
64
64
|
"registry": "https://registry.npmjs.org/"
|
65
65
|
},
|
66
66
|
"devDependencies": {
|
67
|
-
"@commitlint/config-conventional": "^
|
67
|
+
"@commitlint/config-conventional": "^19.6.0",
|
68
68
|
"@evilmartians/lefthook": "^1.5.0",
|
69
69
|
"@react-native-community/cli": "15.0.1",
|
70
70
|
"@react-native/eslint-config": "^0.73.1",
|
71
|
-
"@release-it/conventional-changelog": "
|
71
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
72
72
|
"@types/jest": "^29.5.5",
|
73
73
|
"@types/react": "^18.2.44",
|
74
|
-
"commitlint": "^
|
74
|
+
"commitlint": "^19.6.1",
|
75
75
|
"del-cli": "^5.1.0",
|
76
76
|
"eslint": "^8.51.0",
|
77
77
|
"eslint-config-prettier": "^9.0.0",
|
78
78
|
"eslint-plugin-prettier": "^5.0.1",
|
79
79
|
"jest": "^29.7.0",
|
80
80
|
"prettier": "^3.0.3",
|
81
|
-
"react": "
|
82
|
-
"react-native": "0.
|
81
|
+
"react": "18.2.0",
|
82
|
+
"react-native": "0.75.3",
|
83
83
|
"react-native-builder-bob": "^0.37.0",
|
84
84
|
"release-it": "^17.10.0",
|
85
85
|
"turbo": "^1.10.7",
|
@@ -121,7 +121,9 @@
|
|
121
121
|
},
|
122
122
|
"plugins": {
|
123
123
|
"@release-it/conventional-changelog": {
|
124
|
-
"preset":
|
124
|
+
"preset": {
|
125
|
+
"name": "angular"
|
126
|
+
}
|
125
127
|
}
|
126
128
|
}
|
127
129
|
},
|