Skip to content

Commit

Permalink
fix(android): android gradle plugin 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy authored Nov 10, 2023
1 parent f78a565 commit 03da1a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-native/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ project.ext {
}

android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
// Check AGP version for backward compatibility w/react-native versions still on gradle plugin 6
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace = "io.invertase.notifee"
}

defaultConfig {
multiDexEnabled true
}
Expand Down

0 comments on commit 03da1a7

Please sign in to comment.