Skip to content

fix(android): enable BuildConfig generation - #708

Closed
gulsher7 wants to merge 1 commit into
AppsFlyerSDK:masterfrom
gulsher7:fix/android-buildconfig-agp
Closed

gulsher7 wants to merge 1 commit into
AppsFlyerSDK:masterfrom
gulsher7:fix/android-buildconfig-agp

Conversation

@gulsher7

Copy link
Copy Markdown

While upgrading our React Native app from 0.86.3 to 0.87.1, we started getting the following error from the AppsFlyer Android module:

defaultConfig contains custom BuildConfig fields, but the feature is disabled.

The issue is caused by INCLUDE_CONNECTOR being defined using buildConfigField, while BuildConfig generation is disabled with the newer Android Gradle Plugin version.

This change enables BuildConfig generation for the AppsFlyer Android library:

buildFeatures {
    buildConfig = true
}

@al-af

al-af commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! This is fixed in v7.0.4 (buildFeatures.buildConfig is now enabled, so BuildConfig.INCLUDE_CONNECTOR builds even when the host app disables BuildConfig), so I'm closing this PR. Please upgrade with npm install react-native-appsflyer@7.0.4.

@al-af al-af closed this Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants