Skip to content

Commit f54a93b

Browse files
authoredNov 10, 2023
fix(android): add buildFeaturesbuildConfig for android gradle plugin 8 (#1026)
1 parent 70d6c5d commit f54a93b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎packages/default-storage-backend/android/build.gradle

+5-2
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,12 @@ if (isNewArchitectureEnabled()) {
8888
android {
8989
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
9090
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
91-
namespace "com.reactnativecommunity.asyncstorage"
91+
namespace "com.reactnativecommunity.asyncstorage"
92+
buildFeatures {
93+
buildConfig true
94+
}
9295
}
93-
96+
9497
compileSdkVersion safeExtGet('compileSdkVersion', 32)
9598
// Used to override the NDK path/version by allowing users to customize
9699
// the NDK path/version from their root project (e.g. for M1 support)

0 commit comments

Comments
 (0)
Please sign in to comment.