@kingstinct/react-native-healthkit 4.1.1 → 4.4.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 (41) hide show
  1. package/README.md +1 -1
  2. package/ios/ReactNativeHealthkit.m +15 -10
  3. package/ios/ReactNativeHealthkit.swift +365 -177
  4. package/lib/commonjs/index.ios.js +104 -106
  5. package/lib/commonjs/index.ios.js.map +1 -1
  6. package/lib/commonjs/index.js +11 -10
  7. package/lib/commonjs/index.js.map +1 -1
  8. package/lib/commonjs/native-types.js +25 -1
  9. package/lib/commonjs/native-types.js.map +1 -1
  10. package/lib/commonjs/types.js +4 -0
  11. package/lib/commonjs/types.js.map +1 -1
  12. package/lib/example/App.js +197 -0
  13. package/lib/index.ios.js +310 -0
  14. package/lib/index.js +44 -0
  15. package/lib/module/index.ios.js +104 -106
  16. package/lib/module/index.ios.js.map +1 -1
  17. package/lib/module/index.js +4 -3
  18. package/lib/module/index.js.map +1 -1
  19. package/lib/module/native-types.js +20 -1
  20. package/lib/module/native-types.js.map +1 -1
  21. package/lib/module/types.js +1 -1
  22. package/lib/module/types.js.map +1 -1
  23. package/lib/native-types.js +447 -0
  24. package/lib/src/index.ios.js +314 -0
  25. package/lib/src/index.js +45 -0
  26. package/lib/src/native-types.js +453 -0
  27. package/lib/src/types.js +1 -0
  28. package/lib/types.js +1 -0
  29. package/lib/typescript/src/index.d.ts +1 -1
  30. package/lib/typescript/src/index.ios.d.ts +1 -1
  31. package/lib/typescript/src/native-types.d.ts +142 -108
  32. package/lib/typescript/src/types.d.ts +80 -78
  33. package/package.json +25 -39
  34. package/src/index.ios.tsx +260 -264
  35. package/src/index.tsx +14 -13
  36. package/src/native-types.ts +213 -179
  37. package/src/types.ts +106 -100
  38. package/ios/ReactNativeHealthkit.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  39. package/ios/ReactNativeHealthkit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  40. package/ios/ReactNativeHealthkit.xcodeproj/project.xcworkspace/xcuserdata/robertherber.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  41. package/ios/ReactNativeHealthkit.xcodeproj/xcuserdata/robertherber.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kingstinct/react-native-healthkit",
3
- "version": "4.1.1",
3
+ "version": "4.4.0",
4
4
  "description": "React Native bindings for HealthKit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "scripts": {
23
23
  "test": "jest",
24
- "typescript": "tsc --noEmit",
24
+ "typecheck": "tsc --noEmit",
25
25
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
26
26
  "prepare": "bob build",
27
27
  "release": "release-it",
@@ -45,24 +45,35 @@
45
45
  "homepage": "https://github.com/kingstinct/react-native-healthkit#readme",
46
46
  "devDependencies": {
47
47
  "@commitlint/config-conventional": "12",
48
- "@react-native-community/eslint-config": "^2.0.0",
48
+ "@graphql-eslint/eslint-plugin": ">=3",
49
49
  "@release-it/conventional-changelog": "2",
50
- "@types/jest": "^26.0.0",
51
- "@types/react": "^16.9.19",
52
- "@types/react-native": "0.62.13",
50
+ "@types/jest": ">=26",
51
+ "@types/react": "17",
52
+ "@types/react-native": "0.67",
53
+ "@typescript-eslint/eslint-plugin": ">=5",
54
+ "@typescript-eslint/parser": ">=5",
53
55
  "commitlint": "12",
54
- "eslint": "^7.2.0",
55
- "eslint-config-prettier": "8",
56
- "eslint-plugin-prettier": "^3.1.3",
56
+ "eslint": ">=8",
57
+ "eslint-config-airbnb-base": ">=15",
58
+ "eslint-config-kingstinct": "5.1.1",
59
+ "eslint-import-resolver-typescript": ">=3",
60
+ "eslint-plugin-comment-length": ">=0",
61
+ "eslint-plugin-functional": ">=4",
62
+ "eslint-plugin-import": ">=2",
63
+ "eslint-plugin-jest": ">=26",
64
+ "eslint-plugin-jsonc": ">=2",
65
+ "eslint-plugin-unicorn": ">=43",
66
+ "eslint-plugin-yml": ">=1",
67
+ "graphql": ">=16",
57
68
  "husky": "^4.2.5",
58
- "jest": "^26.0.1",
69
+ "jest": ">=26",
70
+ "metro-react-native-babel-preset": "^0.70.3",
59
71
  "pod-install": "^0.1.0",
60
- "prettier": "^2.0.5",
61
- "react": "16.11.0",
62
- "react-native": "0.62.0",
72
+ "react": "17",
73
+ "react-native": "0.68",
63
74
  "react-native-builder-bob": "^0.18.1",
64
75
  "release-it": "14",
65
- "typescript": "4"
76
+ "typescript": ">=4"
66
77
  },
67
78
  "peerDependencies": {
68
79
  "react": "*",
@@ -107,35 +118,10 @@
107
118
  }
108
119
  }
109
120
  },
110
- "eslintConfig": {
111
- "extends": [
112
- "@react-native-community",
113
- "prettier"
114
- ],
115
- "rules": {
116
- "prettier/prettier": [
117
- "error",
118
- {
119
- "quoteProps": "consistent",
120
- "singleQuote": true,
121
- "tabWidth": 2,
122
- "trailingComma": "es5",
123
- "useTabs": false
124
- }
125
- ]
126
- }
127
- },
128
121
  "eslintIgnore": [
129
122
  "node_modules/",
130
123
  "lib/"
131
124
  ],
132
- "prettier": {
133
- "quoteProps": "consistent",
134
- "singleQuote": true,
135
- "tabWidth": 2,
136
- "trailingComma": "es5",
137
- "useTabs": false
138
- },
139
125
  "react-native-builder-bob": {
140
126
  "source": "src",
141
127
  "output": "lib",