Skip to content

Commit

Permalink
fix(android): gradle 8 compatibility (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandez committed Jul 19, 2023
1 parent 5f6c13f commit 63c9804
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ if (isNewArchitectureEnabled()) {


android {
namespace = "com.reactcommunity.rndatetimepicker"
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace "com.reactcommunity.rndatetimepicker"
}

compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')

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

0 comments on commit 63c9804

Please sign in to comment.