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

Sign-In through android and desktop webview #90

Conversation

mboukadir
Copy link
Contributor

@mboukadir mboukadir commented Dec 4, 2022

📑 What does this PR do?

The login is done through a Webview. So I set up two implementations of the Webview, one on Android and the second on desktop.

The pr aims to identify a viable solution to use a Webview on a desktop. For this, I used JavaFX without going through the official plugin because it is not currently possible to use it in the module alongside the Android Library plugin.

✅ Checklist

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🧪 How can this PR been tested?

🧾 Tasks Remaining: (List of tasks remaining to be implemented)

  • Find a viable solution to use webview on desktop
  • Look at all the places where I put TODO 😬

🖼️ Screenshots (if applicable):

Screen.Recording.2022-12-04.at.02.25.03.mov

Copy link
Member

@crocsandcoffee crocsandcoffee left a comment

Choose a reason for hiding this comment

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

Overall looks good! Just did a quick first pass to get you some early feedback

@mboukadir
Copy link
Contributor Author

mboukadir commented Dec 4, 2022

Overall looks good! Just did a quick first pass to get you some early feedback

Thank you @crocsandcoffee for your feedback which I have taken into account. Tell me if I can switch the pr to non-draft

@mboukadir mboukadir force-pushed the feature/signin-through-android-desktop-webview branch from 8e7fbe2 to 6faf9e3 Compare December 4, 2022 22:07
ui/common/build.gradle.kts Outdated Show resolved Hide resolved
@mboukadir
Copy link
Contributor Author

@crocsandcoffee for your information, I moved the sign-in webview, from the common module to the signed-out module because its implementation is specific to the sign-in use case.

I changed the structure of the packages in the signed-out module to have a package-by-step (landing, sign-in). I would like to know what you think about it.

Copy link
Member

@crocsandcoffee crocsandcoffee left a comment

Choose a reason for hiding this comment

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

Looks good, let's go ahead and move this out of draft

@crocsandcoffee
Copy link
Member

@crocsandcoffee for your information, I moved the sign-in webview, from the common module to the signed-out module because its implementation is specific to the sign-in use case.

I changed the structure of the packages in the signed-out module to have a package-by-step (landing, sign-in). I would like to know what you think about it.

Yes, I missed that in the first pass of the draft review, it definitely makes sense to move it from common to signed-out module. We can of course create a more general WebView composable in the common module and have the "SignInWebView" call that if we want.

Also the package structure in the signed-out module sounds good

@crocsandcoffee crocsandcoffee marked this pull request as ready for review December 6, 2022 02:13
@crocsandcoffee crocsandcoffee changed the title POC : SignIn through android and desktop webview Sign-In through android and desktop webview Dec 6, 2022
Copy link
Contributor

@krizzu krizzu left a comment

Choose a reason for hiding this comment

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

Great work 👏

@mboukadir mboukadir force-pushed the feature/signin-through-android-desktop-webview branch from e64ea72 to a716381 Compare December 6, 2022 10:33
@crocsandcoffee crocsandcoffee enabled auto-merge (squash) December 8, 2022 14:43
@crocsandcoffee crocsandcoffee merged commit 9856e2a into AndroidDev-social:main Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants