react-native-health-connect 4.1.6 → 4.1.7
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 +10 -1
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -19,7 +19,13 @@ def isNewArchitectureEnabled() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
apply plugin: "com.android.library"
|
|
22
|
-
|
|
22
|
+
// AGP 9 ships built-in Kotlin support and registers the `kotlin` extension
|
|
23
|
+
// itself. Applying the Kotlin plugin on top of it fails configuration with
|
|
24
|
+
// "Cannot add extension with name 'kotlin'". Only apply it when nothing has
|
|
25
|
+
// registered that extension yet.
|
|
26
|
+
if (project.extensions.findByName('kotlin') == null) {
|
|
27
|
+
apply plugin: "kotlin-android"
|
|
28
|
+
}
|
|
23
29
|
|
|
24
30
|
if (isNewArchitectureEnabled()) {
|
|
25
31
|
apply plugin: "com.facebook.react"
|
|
@@ -71,8 +77,11 @@ android {
|
|
|
71
77
|
// This is needed to build Kotlin project with NewArch enabled
|
|
72
78
|
"${project.buildDir}/generated/source/codegen/java"
|
|
73
79
|
]
|
|
80
|
+
// AGP 9 built-in Kotlin does not compile .kt files from extra java.srcDirs
|
|
81
|
+
kotlin.srcDirs += ["src/newarch"]
|
|
74
82
|
} else {
|
|
75
83
|
java.srcDirs += ["src/oldarch"]
|
|
84
|
+
kotlin.srcDirs += ["src/oldarch"]
|
|
76
85
|
}
|
|
77
86
|
}
|
|
78
87
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-health-connect",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7",
|
|
4
4
|
"description": "React native library for health connect (Android only)",
|
|
5
5
|
"funding": "https://github.com/matinzd/react-native-health-connect?sponsor=1",
|
|
6
6
|
"main": "lib/commonjs/index",
|