Skip to content

Conversation

VinayGuthal
Copy link
Contributor

No description provided.

@googlebot googlebot added the cla: yes Override cla label Apr 7, 2020
@VinayGuthal VinayGuthal requested a review from mrwillis21 April 7, 2020 20:45
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 7, 2020

Coverage Report

Affected SDKs

No changes between base commit (f1e32c1) and head commit (462d9124).

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 (462d9124) is created by Prow via merging commits: f1e32c1 e29abd6.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-crashlytics:
error: Added method com.google.firebase.crashlytics.FirebaseCrashlytics.setCrashlyticsCollectionEnabled(Boolean) [AddedMethod]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 7, 2020

Binary Size Report

Affected SDKs

  • firebase-crashlytics

    Type Base (f1e32c1) Head (462d9124) Diff
    aar 409 kB 410 kB +428 B (+0.1%)
    apk (aggressive) 324 kB 324 kB +8 B (+0.0%)
    apk (release) 1.04 MB 1.04 MB +112 B (+0.0%)
  • firebase-installations

    Type Base (f1e32c1) Head (462d9124) Diff
    aar 59.2 kB 59.2 kB +3 B (+0.0%)

Test Logs

Notes

Head commit (462d9124) is created by Prow via merging commits: f1e32c1 e29abd6.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-crashlytics:
error: Added method com.google.firebase.crashlytics.FirebaseCrashlytics.setCrashlyticsCollectionEnabled(Boolean) [AddedMethod]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

@google-oss-bot
Copy link
Contributor

The public api surface has changed for the subproject firebase-crashlytics:
error: Added method com.google.firebase.crashlytics.FirebaseCrashlytics.setCrashlyticsCollectionEnabled(Boolean) [AddedMethod]

Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly.

Copy link
Member

@vkryachko vkryachko left a comment

Choose a reason for hiding this comment

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

LGTM, pls get an lgtm from the crashlytics team

crashlyticsDataCollectionEnabled = enabled;
crashlyticsDataCollectionExplicitlySet = true;
sharedPreferences.edit().putBoolean(FIREBASE_CRASHLYTICS_COLLECTION_ENABLED, enabled).commit();
public synchronized void setCrashlyticsDataCollectionEnabled(Boolean enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can help our future selves by adding some comments here :)

arbiter.setCrashlyticsDataCollectionEnabled(false);
assertFalse(arbiter.isAutomaticDataCollectionEnabled());

when(mockPrefs.contains(PREFS_KEY)).thenReturn(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you split this up into separate tests that express the conditions they check?

@mrwillis21
Copy link
Contributor

/test device-check-changed

@VinayGuthal VinayGuthal merged commit ed3ff88 into master Jul 31, 2020
@VinayGuthal VinayGuthal deleted the update_crash_api branch July 31, 2020 17:31
@@ -463,4 +463,23 @@ public boolean didCrashOnPreviousExecution() {
public void setCrashlyticsCollectionEnabled(boolean enabled) {
core.setCrashlyticsCollectionEnabled(enabled);
}

/**
* Enables/disables/clears automatic data collection config by Crashlytics.
Copy link

@cbonnie