Skip to content

Conversation

@StanislavMayorov
Copy link
Contributor

@StanislavMayorov StanislavMayorov commented Nov 6, 2025

Add Expo config plugin with replaceAndroidBackupConfig option

Implements Expo config plugin to resolve Android Auto Backup conflicts between:

  • Native Adapty Android SDK
  • expo-secure-store
  • appsflyer-react-native-plugin

Changes

  • Added app.plugin.js and plugin/withAdapty.js
  • Created backup rules XML files (rn_adapty_backup_rules.xml, rn_adapty_data_extraction_rules.xml)
  • Backup rules exclude sensitive data from: Adapty, expo-secure-store, and AppsFlyer
  • Uses tools:replace to override native SDK manifest attributes

Usage

{
  "plugins": [
    ["react-native-adapty", { "replaceAndroidBackupConfig": true }]
  ]
}

Default behavior

replaceAndroidBackupConfig is false by default (no modifications to manifest).

Problem

Resolves manifest merger conflicts like:

Attribute application@fullBackupContent value=(@xml/rn_adapty_backup_rules) from AndroidManifest.xml
is also present at [io.adapty:android-sdk:X.X.X] AndroidManifest.xml value=(@xml/adapty_backup_rules)

Resolved Issues

…ild conflicts with appsflyer and expo-secure-store
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