equinor / react-native-msal

MSAL for React Native
MIT License
2 stars 3 forks source link

Added missing 'android:exported' directive. Crashing build on Android 12 #13

Closed Goostavo closed 2 months ago

Goostavo commented 1 year ago

When using Expo 49, or targeting android 12+. It gives the following error:

Error:
        android:exported needs to be explicitly specified for element <activity#com.microsoft.identity.client.BrowserTabActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

The workaround was manually change Android.manifest, adding the missing 'android:exported': 'false' directive.

This fixes this bug.

tormodAase commented 2 months ago

Hey @Goostavo ! Sorry for the late reply. We have removed the android side of the project in this fork, because we don't need it and don't have the resources to maintain it. I would recommend forking the original project!