-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove allowBackup & supportsRtl from AndroidManifest #180
Conversation
Please merge this |
1 similar comment
Please merge this |
Please merge... What is the work around for this right now? |
In development you can just edit the AndroidManifest.xml in the node_modules If this isn't merged before you deploy you can fork the repo with the updates and use that as your source |
Great. So change android:allowBackup to true? |
Delete the line completely. Also delete the line that says Be sure you are removing it from the |
Now I get it. Thanks. |
So when am deploying for production I will fork the repo with the updates then how do I make it my source as I am reinstalling the library? (Im from a web dev background) |
that's ok, in your
so if you forked it under the same repo name it would be |
Excellent! Thanks |
@esdrasetrenne @TechyTimo Cleaner workaround - keep package.json etc. as they were AndroidManifest.xml
|
Oh nice, I have seen that before. That would go in the main app's AndroidManifest.xml yea? Also, I think with this |
@esdrasetrenne - yes, in your app's AndroidManifest.xml: and you're right about the tools schema too |
Yes please. 👍 |
For the ones who had this error; The prefix "tools" for attribute "tools:replace" associated with an element type "application" is not bound. add xmlns:tools attributes to manifest tag <manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...
> |
still crashing for me with all changes made through tasarsu's suggestion editing manfifest... no build errors, app just crashes on launch. |
@adlondon make sure your color.xml exists in android/app/src/main/res/values |
colors.xml did it. Thanks all! |
RN 0.54 changes the
AndroidManifest.xml
setting forandroid:allowBackup
fromtrue
tofalse
: facebook/react-native@d7a9ca2As react-native-splash-screen specifies
android:allowBackup="true"
, this causes the following linker error for all new RN projects (and those that specify:android:allowBackup="false"
)This PR removes this default from the library, along with the default for
android:supportsRtl
, as per this suggestion: https://medium.com/@elye.project/2-lines-in-manifest-to-remove-when-sharing-your-android-library-565d4c4af04a