Skip to content

Commit

Permalink
Android RN 72 Support - Update build.gradle w/ Namespace (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandez authored Nov 4, 2023
1 parent a2d3c11 commit ed7057d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def getExtOrIntegerDefault(name) {
apply plugin: 'com.android.library'

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

compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')

defaultConfig {
Expand Down

0 comments on commit ed7057d

Please sign in to comment.