Skip to content

Implement SignIn MVP #2783

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

Merged
merged 4 commits into from
Jul 2, 2021
Merged

Implement SignIn MVP #2783

merged 4 commits into from
Jul 2, 2021

Conversation

andrewbibiloni
Copy link
Contributor

@andrewbibiloni andrewbibiloni commented Jul 1, 2021

  • Extend ActivityLifecycleCallbacks in main FAD class
  • Add signIn functionality by generating FID and Auth Token and redirecting to FAD Google login
  • Add unit tests

@googlebot googlebot added the cla: yes Override cla label Jul 1, 2021
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 1, 2021

Coverage Report

Affected SDKs

  • firebase-app-distribution

    SDK overall coverage changed from ? (460fd3f) to 53.89% (7fecfcd2) by ?.

    Filename Base (460fd3f) Head (7fecfcd2) Diff
    AppDistributionRelease.java ? 0.00% ?
    BinaryType.java ? 0.00% ?
    FirebaseAppDistribution.java ? 64.60% ?
    FirebaseAppDistributionException.java ? 72.73% ?
    FirebaseAppDistributionRegistrar.java ? 80.00% ?
    OnProgressListener.java ? 0.00% ?
    SignInResultActivity.java ? 0.00% ?
    UpdateState.java ? 0.00% ?
    UpdateStatus.java ? 0.00% ?
    UpdateTask.java ? 0.00% ?

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (7fecfcd2) is created by Prow via merging commits: 460fd3f 46f5f2d.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 1, 2021

Binary Size Report

Affected SDKs

  • firebase-app-distribution

    Type Base (460fd3f) Head (7fecfcd2) Diff
    aar 10.2 kB 33.1 kB +23.0 kB (+225.8%)

Test Logs

Notes

Head commit (7fecfcd2) is created by Prow via merging commits: 460fd3f 46f5f2d.

/** Signs in the App Distribution tester. Presents the tester with a Google sign in UI */
@NonNull
public Task<Void> signInTester() {
return Tasks.forResult(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the comment here.
Also should we consider adding some logic to handle the case where a previous signInTaskCompletionSource is not yet complete. Maybe if the previoussignInTaskCompleteionSource is not complete, we just cancel it with an error and then proceed forward?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forgot to add cancellation logic, will do that in the next push.

if (supportsCustomTabs(firebaseApp.getApplicationContext())) {
// If we can launch a chrome view, try that.
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();

Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, do we need this animation? How does it behave if we don't set any animation?

Its not a super big deal but unless we really need it, we should not have it. Animations can be a bit wonky on older devices.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without the animation the transition looks like how it does for a normal browser where it looks like it's popping up a new app. It's not needed so I'll remove them

public void onSuccess(String fid) {
Uri uri =
Uri.parse(
String.format(
Copy link
Contributor

@pranavrajgopal pranavrajgopal Jul 2, 2021

Choose a reason for hiding this comment

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

This should change to https://appdistribution.firebase.google.com/pub/apps/" + "%s/installations/%s/buildalerts?appName=%s&packageName=%s

@rachaprince
Copy link

/test smoke-tests

@rachaprince rachaprince merged commit eff44b3 into master Jul 2, 2021
@rachaprince rachaprince deleted the fad-testersignin-mvp branch July 2, 2021 16:45
@rachaprince rachaprince restored the fad-testersignin-mvp branch July 7, 2021 21:23
@rachaprince rachaprince deleted the fad-testersignin-mvp branch July 8, 2021 13:30
@firebase firebase locked and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants