Skip to content

Commit 01b2bb2

Browse files
feat: Add support for AGP>=8 (#589)
1 parent a7e5e90 commit 01b2bb2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

android/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ repositories {
4848
android {
4949
namespace = "com.reactnativemmkv"
5050
compileSdkVersion safeExtGet("compileSdkVersion", 28)
51+
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
52+
53+
if (agpVersion.tokenize('.')[0].toInteger() >= 8) {
54+
buildFeatures {
55+
buildConfig = true
56+
}
57+
}
5158

5259
// Used to override the NDK path/version on internal CI or by allowing
5360
// users to customize the NDK path/version from their root project (e.g. for M1 support)

0 commit comments

Comments
 (0)