Skip to content

Commit 63c9804

Browse files
fix(android): gradle 8 compatibility (#791)
1 parent 5f6c13f commit 63c9804

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ if (isNewArchitectureEnabled()) {
2424

2525

2626
android {
27-
namespace = "com.reactcommunity.rndatetimepicker"
27+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
28+
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
29+
namespace "com.reactcommunity.rndatetimepicker"
30+
}
31+
2832
compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
2933

3034
// Used to override the NDK path/version on internal CI or by allowing

0 commit comments

Comments
 (0)