@tryvital/vital-devices-react-native 0.3.2 → 1.0.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/build.gradle
CHANGED
|
@@ -136,8 +136,8 @@ dependencies {
|
|
|
136
136
|
implementation "com.facebook.react:react-native:+"
|
|
137
137
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
138
138
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
|
139
|
-
implementation 'com.github.tryVital.vital-android:VitalClient:v1.0.0-alpha.
|
|
140
|
-
implementation 'com.github.tryVital.vital-android:VitalDevices:v1.0.0-alpha.
|
|
139
|
+
implementation 'com.github.tryVital.vital-android:VitalClient:v1.0.0-alpha.16'
|
|
140
|
+
implementation 'com.github.tryVital.vital-android:VitalDevices:v1.0.0-alpha.16'
|
|
141
141
|
// From node_modules
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -44,7 +44,7 @@ class VitalDevicesReactNativeModule(reactContext: ReactApplicationContext) :
|
|
|
44
44
|
sendEvent(VitalDevicesEvent.ScanEvent, WritableNativeMap().apply {
|
|
45
45
|
putString("id", it.address)
|
|
46
46
|
putString("name", it.name)
|
|
47
|
-
putString("
|
|
47
|
+
putString("address", it.address)
|
|
48
48
|
putMap("deviceModel", WritableNativeMap().apply {
|
|
49
49
|
putString("name", it.deviceModel.name)
|
|
50
50
|
putString("brand", brandToString(it.deviceModel.brand))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryvital/vital-devices-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Client to access Vital's Endpoints",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"test": "jest",
|
|
30
30
|
"typescript": "tsc --declaration",
|
|
31
31
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
32
|
-
"release": "release-it",
|
|
33
32
|
"example": "yarn --cwd example",
|
|
34
33
|
"bootstrap": "yarn example && yarn install && yarn example pods",
|
|
35
34
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
|
|
@@ -56,14 +55,10 @@
|
|
|
56
55
|
"react-native": "*"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
|
-
"@arkweid/lefthook": "^0.7.7",
|
|
60
|
-
"@commitlint/config-conventional": "^17.0.2",
|
|
61
58
|
"@react-native-community/eslint-config": "^3.0.2",
|
|
62
|
-
"@release-it/conventional-changelog": "^5.0.0",
|
|
63
59
|
"@types/jest": "^28.1.2",
|
|
64
60
|
"@types/react": "~17.0.21",
|
|
65
61
|
"@types/react-native": "0.70.0",
|
|
66
|
-
"commitlint": "^17.0.2",
|
|
67
62
|
"del-cli": "^5.0.0",
|
|
68
63
|
"eslint": "^8.4.1",
|
|
69
64
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -74,9 +69,7 @@
|
|
|
74
69
|
"prettier": "^2.0.5",
|
|
75
70
|
"react": "18.1.0",
|
|
76
71
|
"react-native": "0.70.6",
|
|
77
|
-
"react-native-builder-bob": "^0.20.1",
|
|
78
72
|
"react-native-version": "^4.0.0",
|
|
79
|
-
"release-it": "^15.0.0",
|
|
80
73
|
"typescript": "^4.5.2"
|
|
81
74
|
},
|
|
82
75
|
"resolutions": {
|
|
@@ -93,28 +86,6 @@
|
|
|
93
86
|
"<rootDir>/lib/"
|
|
94
87
|
]
|
|
95
88
|
},
|
|
96
|
-
"commitlint": {
|
|
97
|
-
"extends": [
|
|
98
|
-
"@commitlint/config-conventional"
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
"release-it": {
|
|
102
|
-
"git": {
|
|
103
|
-
"commitMessage": "chore: release ${version}",
|
|
104
|
-
"tagName": "v${version}"
|
|
105
|
-
},
|
|
106
|
-
"npm": {
|
|
107
|
-
"publish": true
|
|
108
|
-
},
|
|
109
|
-
"github": {
|
|
110
|
-
"release": true
|
|
111
|
-
},
|
|
112
|
-
"plugins": {
|
|
113
|
-
"@release-it/conventional-changelog": {
|
|
114
|
-
"preset": "angular"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
89
|
"eslintConfig": {
|
|
119
90
|
"root": true,
|
|
120
91
|
"extends": [
|