mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.27k stars 1.38k forks source link

Add support for Auth Scheme customization on build time #8261

Closed enahum closed 1 month ago

enahum commented 1 month ago

Summary

The authentication schemes were hardcoded to use mmauthbeta for our Beta app and mmauth for our release app. While the server allows this schemes to be changed in order to be used with custom mobile builds, the mobile app did not have a way to easily customize them, having to make some changes in the code before compiling.

This PR introduces a couple of environment variables to be able to change these authentication schemes on build time.

Note: This is backwards compatible so that the app builds the same way as before if no env var is set.

Ticket Link

N/A.

Release Note

NONE