Skip to content
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

feat: Implement remember me option in login screen #2243

Merged
merged 12 commits into from
Jul 5, 2019
Merged

feat: Implement remember me option in login screen #2243

merged 12 commits into from
Jul 5, 2019

Conversation

atm1504
Copy link
Member

@atm1504 atm1504 commented Jun 1, 2019

Fixes #1301
Changes:
Users can now save their login credentials using smart lock features (Credential API of google). Credentials are stored only if the user selects the remember me options. If clicked so, it auto fills the fields, next time when the user wants to log in.

Screenshots for the change:
sma

@auto-label auto-label bot added the feature label Jun 1, 2019
app/build.gradle Outdated
@@ -153,5 +153,7 @@ dependencies {
//Shimmer
implementation 'com.facebook.shimmer:shimmer:0.4.0'

//Smart LOck authentication
implementation 'com.google.android.gms:play-services-auth:16.0.1'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mention the version number in config.gradle and then use it here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay sure

@@ -325,6 +325,7 @@
<string name="content_type_static">Content Type: Static</string>

<string name="custom_server">Custom Server</string>
<string name="remember_me">Remember Me </string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the space after 'Me'

@arundhatigupta
Copy link
Member

You have placed all the code in the LoginActivity. The code follows MVP. You should not keep any logic or processing in the view. I suggest you read about MVP and update your code accordingly.

@arundhatigupta
Copy link
Member

And, please improve your commit messages.
You could have written a commit message like, "feat: Implement Remember Me feature in the login screen"
You need to write imperative-style commit messages.

@atm1504
Copy link
Member Author

atm1504 commented Jun 3, 2019

@arundhati24 @iamareebjamal @batbrain7 please review it

@iamareebjamal
Copy link
Member

Please make an fdroid build and upload here

@atm1504 atm1504 changed the title feat: Implemented remember me option in login screen feat: Implement remember me option in login screen Jun 4, 2019
@arundhatigupta
Copy link
Member

@arundhati24 @iamareebjamal @batbrain7 please review it

Looks like you have not yet worked on the reviews.

Copy link
Member

@liveHarshit liveHarshit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please check how it is implemented in Attendee app. It will not work with f droid build. As @iamareebjamal suggested make f droid build first then work on play store services.

Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test apk on each PR. Thank you

@atm1504
Copy link
Member Author

atm1504 commented Jun 12, 2019

Can you please check how it is implemented in Attendee app. It will not work with f droid build. As @iamareebjamal suggested make f droid build first then work on play store services.

@liveHarshit I tested it with a fdroid build on my mobile and my friends mobile. It worked fine for both of us.

@liveHarshit
Copy link
Member

liveHarshit commented Jun 12, 2019

I tested it with a fdroid build on my mobile and my friends mobile. It worked fine for both of us.

https://forum.f-droid.org/t/avoid-google-play-services-while-using-play-apps/1756/3

F-Droid Forum
I don’t know what GFS is. It just listed as a requirement for almost all the apps on my phone. I’ve disabled every app I don’t use that I can. Some have no option to disable and, none of the apps that came with my phone are deletable. This is the sort of info I get when checking the apps through Yalp.

@atm1504
Copy link
Member Author

atm1504 commented Jun 12, 2019

Apk:

app-fdroid-debug.apk.zip

@atm1504
Copy link
Member Author

atm1504 commented Jun 12, 2019

@iamareebjamal @arundhati24 please review it.

@liveHarshit
Copy link
Member

Apk:

app-fdroid-debug.apk.zip

Okay, deploy it on fdroid and install from there.

@iamareebjamal
Copy link
Member

fdroid will not accept the app

@liveHarshit
Copy link
Member

liveHarshit commented Jun 12, 2019

fdroid will not accept the app

@atm1504 That's my point. Also discussed in -

https://forum.f-droid.org/t/avoid-google-play-services-while-using-play-apps/1756/3

F-Droid Forum
I don’t know what GFS is. It just listed as a requirement for almost all the apps on my phone. I’ve disabled every app I don’t use that I can. Some have no option to disable and, none of the apps that came with my phone are deletable. This is the sort of info I get when checking the apps through Yalp.

Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you require play services now. Well this will results in more issues with fdroid, right? Please implement another way in that case.

Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We cannot require play services as a dependency.

@iamareebjamal
Copy link
Member

Non open-source libraries can only be used in play store variant as mentioned above several times

@mariobehling
Copy link
Member

Ok, merging this. Please ensure the Fdroid build does not have the requirement.

@mariobehling mariobehling merged commit 33a089d into fossasia:development Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option on login screen to allow the user to store login credentials
5 participants