launchdarkly / android-client-sdk

LaunchDarkly Client-side SDK for Android
Other
45 stars 23 forks source link

android:allowBackup=true is back in Release 3.0.0 #138

Closed oorlov closed 3 years ago

oorlov commented 3 years ago

Describe the bug Release 3.0.0 added android:allowBackup=true back to the AndroidManifest.xml Because of this app developers have to use tools:replace="android:allowBackup" as a workaround. In general libraries are not supposed to declare this specific flag (unless there is some special use for it? Maybe?)

To reproduce

Expected behavior Adding implementation 'com.launchdarkly:launchdarkly-android-client-sdk:3.1.0' shouldn't cause build error due to allowBackup conflict

Language version, developer tools AndroidStudio 4.1.3

OS/platform OS X, but should be any

oorlov commented 3 years ago

Caused by this I believe: https://github.com/launchdarkly/android-client-sdk/pull/126/files#diff-4ea1d5d45e25fbd99af946e3fed3b51b84b61585974e6056d92e25710d108376R8

gwhelanLD commented 3 years ago

Hi @Oorlov,

Thanks for the issue report. We'll release a patch to address this issue. For the moment, you can follow the instructions in the error message to include `tools:replace="android:allowBackup" as a workaround.

Thanks, @gwhelanLD

gwhelanLD commented 3 years ago

Hi @oorlov,

This should be resolved in the 3.1.1 release of the SDK.

Thanks for the report! @gwhelanLD

oorlov commented 3 years ago

@gwhelanLD Thank you! It works well!