-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Make it possible to install Play Store and debug builds on the same device #731
Conversation
android:usesCleartextTraffic="true"/> | ||
<application tools:replace="android:label" | ||
android:usesCleartextTraffic="true" | ||
android:label="Lichess beta - DEBUG"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say just call it Lichess - DEBUG
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice - I missed that you renamed the release app!
Thanks for this! I didn't know we could achieve this with only this simple change. Can you also make sure the release build works and is correctly named? |
@veloce verified! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
It would be nice to do the same for iOS. But that can be done in another PR.
Not sure that this is a better solution but another way of doing it would be to add |
We should change the By the way why the |
Is it really needed that the Why would we want it to be the same then? |
After logging in Lichess users are redirected to both the Lichess and Lichess-DEBUG app and have to choose one between the two. If the |
hmm. doesn't seem too risky though, does it? Will accept a PR if you're willing to test that. I guess the only change should be done in the Do not use So just keep it the same and append |
This doesn't work with |
But then why does it work with |
My fault, I was wrong, the redirect uri doesn't need match the app id, it just that it often does. And it works with There is still a small problem when I login. Since the redirect uri To remove this warning, it would require to replace the redirect_uri here on dev environments so in the end I am not sure if this is worth the change. |
Yes I think it's fine the way it is. |
Summary
org.lichess.mobileV2
toorg.lichess.mobileV2.debug
, so it is possible to have both installed at the same timeThe Android emulator performs poorly on my computer, so I have been using my personal phone to test changes. With this change, I will no longer have to uninstall the production app from the Play Store in order to develop.
Testing
Initial testing:
flutter run --dart-define=LICHESS_HOST=lichess.dev --dart-define=LICHESS_WS_HOST=socket.lichess.dev
After additional request: