Skip to content

Commit a60492d

Browse files
lfkelloggkaibolay
authored andcommitted
Rename collectAndSendFeedback to startFeedback (#3932)
1 parent 092f04f commit a60492d

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

firebase-appdistribution-api/api.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ package com.google.firebase.appdistribution {
1515

1616
public interface FirebaseAppDistribution {
1717
method @NonNull public com.google.android.gms.tasks.Task<com.google.firebase.appdistribution.AppDistributionRelease> checkForNewRelease();
18-
method public void collectAndSendFeedback();
1918
method @NonNull public static com.google.firebase.appdistribution.FirebaseAppDistribution getInstance();
2019
method public boolean isTesterSignedIn();
2120
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> signInTester();
2221
method public void signOutTester();
22+
method public void startFeedback();
2323
method @NonNull public com.google.firebase.appdistribution.UpdateTask updateApp();
2424
method @NonNull public com.google.firebase.appdistribution.UpdateTask updateIfNewReleaseAvailable();
2525
}

firebase-appdistribution-api/src/main/java/com/google/firebase/appdistribution/FirebaseAppDistribution.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ public interface FirebaseAppDistribution {
117117
* <ol>
118118
* <li>Takes a screenshot of the current activity
119119
* <li>If tester is not signed in, presents the tester with a Google Sign-in UI
120-
* <li>Looks up the currently installed App Distribution release
121120
* <li>Starts a full screen activity for the tester to compose and submit the feedback
122121
* </ol>
123122
*/
124-
void collectAndSendFeedback();
123+
void startFeedback();
125124

126125
/** Gets the singleton {@link FirebaseAppDistribution} instance. */
127126
@NonNull

firebase-appdistribution-api/src/main/java/com/google/firebase/appdistribution/internal/FirebaseAppDistributionProxy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public UpdateTask updateApp() {
7373
}
7474

7575
@Override
76-
public void collectAndSendFeedback() {
77-
delegate.collectAndSendFeedback();
76+
public void startFeedback() {
77+
delegate.startFeedback();
7878
}
7979
}

firebase-appdistribution-api/src/main/java/com/google/firebase/appdistribution/internal/FirebaseAppDistributionStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public UpdateTask updateApp() {
7474
}
7575

7676
@Override
77-
public void collectAndSendFeedback() {
77+
public void startFeedback() {
7878
return;
7979
}
8080

firebase-appdistribution/src/main/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,12 @@ private UpdateTask updateApp(boolean showDownloadInNotificationManager) {
306306
}
307307

308308
@Override
309-
public void collectAndSendFeedback() {
310-
collectAndSendFeedback(Executors.newSingleThreadExecutor());
309+
public void startFeedback() {
310+
startFeedback(Executors.newSingleThreadExecutor());
311311
}
312312

313313
@VisibleForTesting
314-
public void collectAndSendFeedback(Executor taskExecutor) {
314+
public void startFeedback(Executor taskExecutor) {
315315
screenshotTaker
316316
.takeScreenshot()
317317
.onSuccessTask(

firebase-appdistribution/src/test/java/com/google/firebase/appdistribution/impl/FirebaseAppDistributionServiceImplTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,11 @@ public void updateApp_withApkReleaseAvailable_returnsSameApkTask() {
631631
}
632632

633633
@Test
634-
public void collectAndSendFeedback_signsInTesterAndStartsActivity() throws InterruptedException {
634+
public void startFeedback_signsInTesterAndStartsActivity() throws InterruptedException {
635635
ExecutorService testExecutor = Executors.newSingleThreadExecutor();
636636
when(mockReleaseIdentifier.identifyRelease()).thenReturn(Tasks.forResult("release-name"));
637637

638-
firebaseAppDistribution.collectAndSendFeedback(testExecutor);
638+
firebaseAppDistribution.startFeedback(testExecutor);
639639
TestUtils.awaitAsyncOperations(testExecutor);
640640

641641
ArgumentCaptor<Intent> argument = ArgumentCaptor.forClass(Intent.class);

firebase-appdistribution/test-app/src/main/java/com/googletest/firebase/appdistribution/testapp/MainActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import androidx.appcompat.app.AppCompatActivity
1212
import androidx.appcompat.widget.AppCompatButton
1313
import com.google.android.gms.tasks.Task
1414
import com.google.firebase.appdistribution.AppDistributionRelease
15-
import com.google.firebase.appdistribution.FirebaseAppDistributionException
1615
import com.google.firebase.appdistribution.UpdateProgress
1716
import com.google.firebase.appdistribution.ktx.appDistribution
1817
import com.google.firebase.ktx.Firebase
@@ -170,7 +169,7 @@ class MainActivity : AppCompatActivity() {
170169
}
171170

172171
feedbackButton.setOnClickListener {
173-
firebaseAppDistribution.collectAndSendFeedback()
172+
firebaseAppDistribution.startFeedback()
174173
}
175174
}
176175

0 commit comments

Comments
 (0)