react-native-health-connect 1.0.4 → 1.1.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.
@@ -34,6 +34,12 @@ def getExtOrIntegerDefault(name) {
34
34
  }
35
35
 
36
36
  android {
37
+ def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
38
+ // Check AGP version for backward compatibility reasons
39
+ if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
40
+ namespace = "dev.matinzd.healthconnect"
41
+ }
42
+
37
43
  compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
38
44
 
39
45
  defaultConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-health-connect",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "React native library for health connect (Android only)",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -77,7 +77,8 @@
77
77
  },
78
78
  "peerDependencies": {
79
79
  "react": "*",
80
- "react-native": "*"
80
+ "react-native": "*",
81
+ "@expo/config-plugins": ">= 6.0.2"
81
82
  },
82
83
  "engines": {
83
84
  "node": ">= 16.0.0"
@@ -160,8 +161,5 @@
160
161
  "extends": [
161
162
  "@commitlint/config-conventional"
162
163
  ]
163
- },
164
- "dependencies": {
165
- "@expo/config-plugins": "^6.0.2"
166
164
  }
167
165
  }