Skip to content

Commit 0390ff0

Browse files
committed
Apply Google formatting
1 parent 4258052 commit 0390ff0

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

firebase-app-distribution/src/main/java/com/google/firebase/app/distribution/FirebaseAppDistributionTesterApiClient.java

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,17 @@ AppDistributionReleaseInternal parseNewRelease(String responseBody)
106106
? BinaryType.APK
107107
: BinaryType.AAB;
108108

109-
AppDistributionReleaseInternal newRelease = AppDistributionReleaseInternal.builder()
110-
.setDisplayVersion(displayVersion)
111-
.setBuildVersion(buildVersion)
112-
.setReleaseNotes(releaseNotes)
113-
.setBinaryType(binaryType)
114-
.setIasArtifactId(iasArtifactId)
115-
.setCodeHash(codeHash)
116-
.setApkHash(apkHash)
117-
.setDownloadUrl(downloadUrl)
118-
.build();
109+
AppDistributionReleaseInternal newRelease =
110+
AppDistributionReleaseInternal.builder()
111+
.setDisplayVersion(displayVersion)
112+
.setBuildVersion(buildVersion)
113+
.setReleaseNotes(releaseNotes)
114+
.setBinaryType(binaryType)
115+
.setIasArtifactId(iasArtifactId)
116+
.setCodeHash(codeHash)
117+
.setApkHash(apkHash)
118+
.setDownloadUrl(downloadUrl)
119+
.build();
119120

120121
LogWrapper.getInstance().v("Zip hash for the new release " + newRelease.getApkHash());
121122
return newRelease;
@@ -171,8 +172,8 @@ private String tryGetValue(JSONObject jsonObject, String key) {
171172
}
172173
}
173174

174-
HttpsURLConnection openHttpsUrlConnection(String appId, String fid, String apiKey,
175-
String authToken, Context context)
175+
HttpsURLConnection openHttpsUrlConnection(
176+
String appId, String fid, String apiKey, String authToken, Context context)
176177
throws FirebaseAppDistributionException {
177178
HttpsURLConnection httpsURLConnection;
178179
URL url = getReleasesEndpointUrl(appId, fid);
@@ -201,9 +202,7 @@ private URL getReleasesEndpointUrl(String appId, String fid)
201202
return new URL(String.format(RELEASE_ENDPOINT_URL_FORMAT, appId, fid));
202203
} catch (MalformedURLException e) {
203204
throw new FirebaseAppDistributionException(
204-
ErrorMessages.UNKNOWN_ERROR,
205-
FirebaseAppDistributionException.Status.UNKNOWN,
206-
e);
205+
ErrorMessages.UNKNOWN_ERROR, FirebaseAppDistributionException.Status.UNKNOWN, e);
207206
}
208207
}
209208

@@ -217,9 +216,7 @@ private static String convertInputStreamToString(InputStream is) throws IOExcept
217216
return result.toString();
218217
}
219218

220-
/**
221-
* Gets the Android package's SHA-1 fingerprint.
222-
*/
219+
/** Gets the Android package's SHA-1 fingerprint. */
223220
private String getFingerprintHashForPackage(Context context) {
224221
byte[] hash;
225222

firebase-app-distribution/src/test/java/com/google/firebase/app/distribution/FirebaseAppDistributionTesterApiClientTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ public class FirebaseAppDistributionTesterApiClientTest {
4949

5050
private FirebaseAppDistributionTesterApiClient firebaseAppDistributionTesterApiClient;
5151
private Context applicationContext;
52-
@Mock
53-
private HttpsURLConnection mockHttpsURLConnection;
52+
@Mock private HttpsURLConnection mockHttpsURLConnection;
5453

5554
@Before
5655
public void setup() throws Exception {

0 commit comments

Comments
 (0)