Skip to content

Commit deac088

Browse files
authored
Merge branch 'firebase:master' into master
2 parents b09426c + 53ff022 commit deac088

File tree

219 files changed

+5806
-2318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+5806
-2318
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ currently includes the following Firebase libraries, and some of their
55
dependencies:
66

77
* `firebase-abt`
8+
* `firebase-appdistribution`
89
* `firebase-common`
910
* `firebase-common-ktx`
1011
* `firebase-crashlytics`
@@ -22,6 +23,8 @@ dependencies:
2223
* `firebase-inappmessaging-ktx`
2324
* `firebase-inappmessaging-display`
2425
* `firebase-inappmessaging-display-ktx`
26+
* `firebase-messaging`
27+
* `firebase-messaging-directboot`
2528
* `firebase-perf`
2629
* `firebase-perf-ktx`
2730
* `firebase-remote-config`

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ buildscript {
1818
ext.kotlinVersion = '1.3.72'
1919
repositories {
2020
google()
21-
jcenter()
2221
mavenCentral()
2322
maven {
2423
url "https://plugins.gradle.org/m2/"
2524
}
2625
maven {
2726
url 'https://storage.googleapis.com/android-ci/mvn/'
2827
}
28+
jcenter()
2929
}
3030

3131
dependencies {
@@ -70,11 +70,11 @@ if(JavaVersion.current() != JavaVersion.VERSION_11){
7070
configure(subprojects) {
7171
repositories {
7272
google()
73-
jcenter()
7473
mavenLocal()
7574
maven {
7675
url 'https://storage.googleapis.com/android-ci/mvn/'
7776
}
77+
jcenter()
7878
}
7979

8080
apply plugin: "org.jlleitschuh.gradle.ktlint"

ci/fireci/fireciplugins/fireperf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def fireperf_e2e_test(target_environment, plugin_repo_dir):
4242

4343
_logger.info('Building fireperf plugin ...')
4444
with chdir(plugin_repo_dir):
45-
build_plugin_task = ':firebase-performance:performance-gradle:publishToMavenLocal'
45+
build_plugin_task = ':firebase-performance:perf-plugin:publishToMavenLocal'
4646
gradle.run(build_plugin_task, gradle.P('publishMode', 'SNAPSHOT'))
4747

4848
version = _find_fireperf_plugin_version()

ci/fireci/fireciplugins/macrobenchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async def _execute_benchmark_tests(self):
184184
args += ['--type', 'instrumentation']
185185
args += ['--app', app_apk_path]
186186
args += ['--test', test_apk_path]
187-
args += ['--device', 'model=flame,version=30,locale=en,orientation=portrait']
187+
args += ['--device', 'model=redfin,version=30,locale=en,orientation=portrait']
188188
args += ['--directories-to-pull', '/sdcard/Download']
189189
args += ['--results-bucket', f'gs://{self.test_results_bucket}']
190190
args += ['--results-dir', self.test_results_dir]

encoders/firebase-encoders-proto/firebase-encoders-proto.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies {
4242

4343
testAnnotationProcessor project(':encoders:firebase-encoders-processor')
4444

45-
testImplementation 'com.google.guava:guava:30.0-jre'
45+
testImplementation 'com.google.guava:guava:31.0-jre'
4646
testImplementation 'junit:junit:4.13.1'
4747
testImplementation 'com.google.protobuf:protobuf-java-util:3.11.0'
4848
testImplementation 'com.google.truth.extensions:truth-proto-extension:1.0'

encoders/firebase-encoders-proto/src/test/java/com/google/firebase/encoders/proto/WithCollectionsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void test2() throws InvalidProtocolBufferException {
5151
.put("noValue", new Fixed())
5252
.put("value", new Fixed(1, 2, 3, 4))
5353
.put("", new Fixed())
54-
.build(),
54+
.buildOrThrow(),
5555
ImmutableList.of(
5656
new OtherTypes("hello", new byte[0], false, true),
5757
new OtherTypes("", new byte[] {42}, true, false),

firebase-app-distribution/api.txt

Lines changed: 0 additions & 78 deletions
This file was deleted.

firebase-app-distribution/ktx/api.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

firebase-appdistribution-stub/api.txt

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Signature format: 2.0
2+
package com.google.firebase.appdistribution {
3+
4+
public abstract class AppDistributionRelease {
5+
ctor public AppDistributionRelease();
6+
method @NonNull public abstract com.google.firebase.appdistribution.BinaryType getBinaryType();
7+
method @NonNull public abstract String getDisplayVersion();
8+
method @Nullable public abstract String getReleaseNotes();
9+
method @NonNull public abstract long getVersionCode();
10+
}
11+
12+
public enum BinaryType {
13+
enum_constant public static final com.google.firebase.appdistribution.BinaryType AAB;
14+
enum_constant public static final com.google.firebase.appdistribution.BinaryType APK;
15+
}
16+
17+
public class FirebaseAppDistribution {
18+
method @NonNull public com.google.android.gms.tasks.Task<com.google.firebase.appdistribution.AppDistributionRelease> checkForNewRelease();
19+
method @NonNull public static com.google.firebase.appdistribution.FirebaseAppDistribution getInstance();
20+
method public boolean isTesterSignedIn();
21+
method @NonNull public com.google.android.gms.tasks.Task<java.lang.Void> signInTester();
22+
method public void signOutTester();
23+
method @NonNull public com.google.firebase.appdistribution.UpdateTask updateApp();
24+
method @NonNull public com.google.firebase.appdistribution.UpdateTask updateIfNewReleaseAvailable();
25+
}
26+
27+
public class FirebaseAppDistributionException extends com.google.firebase.FirebaseException {
28+
method @NonNull public com.google.firebase.appdistribution.FirebaseAppDistributionException.Status getErrorCode();
29+
method @Nullable public com.google.firebase.appdistribution.AppDistributionRelease getRelease();
30+
}
31+
32+
public enum FirebaseAppDistributionException.Status {
33+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status APP_RUNNING_IN_PRODUCTION;
34+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status AUTHENTICATION_CANCELED;
35+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status AUTHENTICATION_FAILURE;
36+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status DOWNLOAD_FAILURE;
37+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status INSTALLATION_CANCELED;
38+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status INSTALLATION_FAILURE;
39+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status NETWORK_FAILURE;
40+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status UNKNOWN;
41+
enum_constant public static final com.google.firebase.appdistribution.FirebaseAppDistributionException.Status UPDATE_NOT_AVAILABLE;
42+
}
43+
44+
public interface OnProgressListener {
45+
method public void onProgressUpdate(@NonNull com.google.firebase.appdistribution.UpdateProgress);
46+
}
47+
48+
public abstract class UpdateProgress {
49+
ctor public UpdateProgress();
50+
method @NonNull public abstract long getApkBytesDownloaded();
51+
method @NonNull public abstract long getApkFileTotalBytes();
52+
method @NonNull public abstract com.google.firebase.appdistribution.UpdateStatus getUpdateStatus();
53+
}
54+
55+
public enum UpdateStatus {
56+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus DOWNLOADED;
57+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus DOWNLOADING;
58+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus DOWNLOAD_FAILED;
59+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus INSTALL_CANCELED;
60+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus INSTALL_FAILED;
61+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus NEW_RELEASE_CHECK_FAILED;
62+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus NEW_RELEASE_NOT_AVAILABLE;
63+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus PENDING;
64+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus REDIRECTED_TO_PLAY;
65+
enum_constant public static final com.google.firebase.appdistribution.UpdateStatus UPDATE_CANCELED;
66+
}
67+
68+
public abstract class UpdateTask extends com.google.android.gms.tasks.Task<java.lang.Void> {
69+
ctor public UpdateTask();
70+
method @NonNull public abstract com.google.firebase.appdistribution.UpdateTask addOnProgressListener(@NonNull com.google.firebase.appdistribution.OnProgressListener);
71+
method @NonNull public abstract com.google.firebase.appdistribution.UpdateTask addOnProgressListener(@Nullable java.util.concurrent.Executor, @NonNull com.google.firebase.appdistribution.OnProgressListener);
72+
}
73+
74+
}
75+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
plugins {
16+
id 'firebase-library'
17+
}
18+
19+
android {
20+
compileSdkVersion project.targetSdkVersion
21+
22+
defaultConfig {
23+
minSdkVersion 16
24+
targetSdkVersion project.targetSdkVersion
25+
multiDexEnabled true
26+
versionName version
27+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
28+
}
29+
compileOptions {
30+
sourceCompatibility JavaVersion.VERSION_1_8
31+
targetCompatibility JavaVersion.VERSION_1_8
32+
}
33+
testOptions {
34+
unitTests {
35+
includeAndroidResources = true
36+
}
37+
}
38+
}
39+
40+
dependencies {
41+
implementation 'org.jetbrains:annotations:15.0'
42+
implementation 'com.google.android.gms:play-services-tasks:17.0.0'
43+
44+
testImplementation 'junit:junit:4.13.2'
45+
testImplementation "com.google.truth:truth:$googleTruthVersion"
46+
testImplementation "org.robolectric:robolectric:$robolectricVersion"
47+
48+
compileOnly 'com.google.auto.value:auto-value-annotations:1.6.5'
49+
annotationProcessor 'com.google.auto.value:auto-value:1.6.5'
50+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
version=0.0.1
16+
latestReleasedVersion=0.0.1
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Signature format: 2.0
2+
package com.google.firebase.appdistribution.ktx {
3+
4+
public final class FirebaseAppDistributionKt {
5+
ctor public FirebaseAppDistributionKt();
6+
method @NonNull public static com.google.firebase.appdistribution.FirebaseAppDistribution getAppDistribution(@NonNull com.google.firebase.ktx.Firebase);
7+
}
8+
9+
}
10+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
plugins {
16+
id 'firebase-library'
17+
id 'kotlin-android'
18+
}
19+
20+
firebaseLibrary {
21+
releaseWith project(':firebase-appdistribution-stub')
22+
testLab.enabled = true
23+
publishJavadoc = true
24+
publishSources = true
25+
}
26+
27+
android {
28+
compileSdkVersion project.targetSdkVersion
29+
defaultConfig {
30+
minSdkVersion 16
31+
multiDexEnabled true
32+
targetSdkVersion project.targetSdkVersion
33+
versionName version
34+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
35+
}
36+
sourceSets {
37+
main.java.srcDirs += 'src/main/kotlin'
38+
test.java {
39+
srcDir 'src/test/kotlin'
40+
}
41+
androidTest.java.srcDirs += 'src/androidTest/kotlin'
42+
}
43+
testOptions.unitTests.includeAndroidResources = true
44+
}
45+
46+
dependencies {
47+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
48+
49+
implementation project(':firebase-common')
50+
implementation project(':firebase-components')
51+
implementation project(':firebase-common:ktx')
52+
implementation 'androidx.annotation:annotation:1.1.0'
53+
implementation project(':firebase-appdistribution-stub')
54+
55+
testImplementation "org.robolectric:robolectric:$robolectricVersion"
56+
testImplementation 'junit:junit:4.12'
57+
testImplementation "com.google.truth:truth:$googleTruthVersion"
58+
testImplementation 'org.mockito:mockito-core:2.25.0'
59+
60+
androidTestImplementation 'junit:junit:4.12'
61+
androidTestImplementation "com.google.truth:truth:$googleTruthVersion"
62+
androidTestImplementation 'androidx.test:runner:1.2.0'
63+
androidTestImplementation 'androidx.test:core:1.2.0'
64+
}

0 commit comments

Comments
 (0)