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: move from SmartLock to CredentialManager #2180

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Lyokone
Copy link

@Lyokone Lyokone commented Jan 28, 2025

Hey there! So you want to contribute to FirebaseUI? Before you file this pull request, follow these steps:

  • Read the contribution guidelines.
  • Run ./gradlew check to ensure the Travis build passes.
  • If this has been discussed in an issue, make sure to mention the issue number here. If not, go file an issue about this to make sure this is a desirable change.
  • If this is a new feature please co-ordinate with someone on FirebaseUI-iOS to make sure that we can implement this on both platforms and maintain feature parity.

@thatfiredev thatfiredev self-requested a review January 28, 2025 13:35
Copy link
Member

@thatfiredev thatfiredev left a comment

Choose a reason for hiding this comment

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

Sorry for the delayed review!

- uses: actions/checkout@v2
- name: set up JDK 11
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- name: set up JDK 11
- name: set up JDK 17

Comment on lines +80 to +83
implementation("androidx.core:core-ktx:1.10.1")

implementation(Config.Libs.Androidx.lifecycleExtensions)
implementation("androidx.core:core-ktx:1.13.1")
Copy link
Member

Choose a reason for hiding this comment

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

We seem to have the same core-ktx dependency listed twice with different versions?
Can we remove the older version?

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
Copy link
Member

Choose a reason for hiding this comment

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

Do we need all? I tend to use bin for the small download size.

Suggested change
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

plugins {
id "com.gradle.enterprise" version "3.3.3"
id "org.jetbrains.dokka" version "2.0.0" apply false
Copy link
Member

Choose a reason for hiding this comment

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

Are we using dokka now, or is this for later? :)

const val min = 16
const val compile = 34
const val target = 34
const val min = 21
Copy link
Member

Choose a reason for hiding this comment

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

The latest version of Auth requires minSdk 23, so we might have to bump this one a little higher 😅

@@ -5,6 +5,7 @@ buildscript {
google()
mavenCentral()
mavenLocal()
maven("https://oss.jfrog.org/artifactory/oss-release-local")
Copy link
Member

Choose a reason for hiding this comment

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

I assume we use this repo for build-info-extractor-gradle ?
I have no idea why we use that plugin, can we maybe add a comment here to say that this line is needed for that plugin? That way we removed them altogether if we find out that it is not needed.


viewModelScope.launch {
try {
credentialManager.createCredential(activity, request)
Copy link
Member

Choose a reason for hiding this comment

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

Looks like createCredential() takes Context as argument. Maybe we can pass that to saveCredentials() instead of activity: androidx.activity.ComponentActivity ?

Also, do we care about the result of createCredential() ? it seems like we're ignoring it right now.

Choose a reason for hiding this comment

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

From what I understood, we don't need to get the result - if createCredential() succeeds, we've safely saved the user's password. But that brings me to another question: (out of curiosity) what's in the result of this call?


class CredentialSaveActivity : InvisibleActivityBase() {

companion object {
Copy link

@marinacoelho marinacoelho Feb 4, 2025

Choose a reason for hiding this comment

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

Can we leave companions objects at the end of classes, conforming to Kotlin's coding conventions?

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