Skip to content

Commit 9e7023d

Browse files
committed
Merge branch 'master' into mila/BloomFilter
2 parents 3862731 + 0c1240e commit 9e7023d

File tree

50 files changed

+351
-272
lines changed

Some content is hidden

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

50 files changed

+351
-272
lines changed

appcheck/firebase-appcheck-debug-testing/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
* [unchanged] Updated to keep [app_check] SDK versions aligned.
3+
4+
# 16.1.1
25
* [changed] Integrated the [app_check] Debug Testing SDK with Firebase Components. (#4436)
36

47
# 16.1.0
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.1.1
2-
latestReleasedVersion=16.1.0
1+
version=16.1.2
2+
latestReleasedVersion=16.1.1

appcheck/firebase-appcheck-debug/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
* [unchanged] Updated to keep [app_check] SDK versions aligned.
3+
4+
# 16.1.1
25
* [changed] Migrated [app_check] SDKs to use standard Firebase executors. (#4431, #4449)
36
* [changed] Integrated the [app_check] Debug SDK with Firebase Components. (#4436)
47
* [changed] Moved Task continuations off the main thread. (#4453)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.1.1
2-
latestReleasedVersion=16.1.0
1+
version=16.1.2
2+
latestReleasedVersion=16.1.1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.1.1
2-
latestReleasedVersion=16.1.0
1+
version=16.1.2
2+
latestReleasedVersion=16.1.1

appcheck/firebase-appcheck-playintegrity/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
* [unchanged] Updated to keep [app_check] SDK versions aligned.
3+
4+
# 16.1.1
25
* [changed] Migrated [app_check] SDKs to use standard Firebase executors. (#4431, #4449)
36
* [changed] Integrated the [app_check] Play Integrity SDK with Firebase Components. (#4436)
47
* [changed] Moved Task continuations off the main thread. (#4453)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.1.1
2-
latestReleasedVersion=16.1.0
1+
version=16.1.2
2+
latestReleasedVersion=16.1.1

appcheck/firebase-appcheck-safetynet/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
* [deprecated] Added deprecation tagging to the `SafetyNetAppCheckProviderFactory` class. (#4686)
3+
4+
# 16.1.1
25
* [changed] Migrated [app_check] SDKs to use standard Firebase executors. (#4431, #4449)
36
* [changed] Integrated the [app_check] SafetyNet SDK with Firebase Components. (#4436)
47
* [changed] Moved Task continuations off the main thread. (#4453)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.1.1
2-
latestReleasedVersion=16.1.0
1+
version=16.1.2
2+
latestReleasedVersion=16.1.1

appcheck/firebase-appcheck-safetynet/src/main/java/com/google/firebase/appcheck/safetynet/SafetyNetAppCheckProviderFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
/**
2424
* Implementation of an {@link AppCheckProviderFactory} that builds {@link
2525
* SafetyNetAppCheckProvider}s. This is the default implementation.
26+
*
27+
* @deprecated Use {@code PlayIntegrityAppCheckProviderFactory} instead.
2628
*/
29+
@Deprecated
2730
public class SafetyNetAppCheckProviderFactory implements AppCheckProviderFactory {
2831

2932
private static final SafetyNetAppCheckProviderFactory instance =
@@ -34,7 +37,10 @@ private SafetyNetAppCheckProviderFactory() {}
3437
/**
3538
* Gets an instance of this class for installation into a {@link
3639
* com.google.firebase.appcheck.FirebaseAppCheck} instance.
40+
*
41+
* @deprecated Use {@code PlayIntegrityAppCheckProviderFactory#getInstance} instead.
3742
*/
43+
@Deprecated
3844
@NonNull
3945
public static SafetyNetAppCheckProviderFactory getInstance() {
4046
return instance;

appcheck/firebase-appcheck/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Unreleased
2+
* [unchanged] Updated to keep [app_check] SDK versions aligned.
3+
4+
# 16.1.1
25
* [changed] Migrated [app_check] SDKs to use standard Firebase executors. (#4431, #4449)
36
* [changed] Moved Task continuations off the main thread. (#4453)
47

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=16.1.1
2-
latestReleasedVersion=16.1.0
1+
version=16.1.2
2+
latestReleasedVersion=16.1.1

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ buildscript {
3939
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.14'
4040
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:1.3.0'
4141
classpath 'gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.9'
42-
classpath 'com.google.gms:google-services:4.3.3'
42+
classpath 'com.google.gms:google-services:4.3.15'
4343
classpath "com.ncorti.ktfmt.gradle:plugin:0.11.0"
4444
}
4545
}
@@ -54,6 +54,7 @@ ext {
5454
robolectricVersion = libs.versions.robolectric.get()
5555
protocVersion = libs.versions.protoc.get()
5656
javaliteVersion = libs.versions.javalite.get()
57+
protobufJavaUtilVersion = libs.versions.protobufjavautil.get()
5758
}
5859

5960
apply plugin: com.google.firebase.gradle.plugins.publish.PublishingPlugin

ci/fireci/fireciplugins/coverage.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ def coverage(pull_request, log, metrics_service_url, access_token):
6060
uploader.post_report(test_report, metrics_service_url, access_token, 'coverage')
6161

6262
if process.returncode != 0:
63-
_logger.error(f'{process.args} failed with error code: {process.returncode}.')
64-
raise click.ClickException('Coverage test failed with above errors.')
63+
_logger.warning(f'{process.args} failed with error code: {process.returncode}.')
6564

6665

6766
def _parse_xml_reports():

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

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

4545
testImplementation 'com.google.guava:guava:31.0-jre'
4646
testImplementation 'junit:junit:4.13.1'
47-
testImplementation 'com.google.protobuf:protobuf-java-util:3.11.0'
47+
testImplementation "com.google.protobuf:protobuf-java-util:$protobufJavaUtilVersion"
4848
testImplementation 'com.google.truth.extensions:truth-proto-extension:1.0'
4949
testImplementation "com.google.truth:truth:$googleTruthVersion"
5050

firebase-abt/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=21.1.1
2-
latestReleasedVersion=21.1.0
1+
version=21.1.2
2+
latestReleasedVersion=21.1.1

firebase-annotations/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
version=16.1.1
16-
latestReleasedVersion=16.1.0
15+
version=16.2.1
16+
latestReleasedVersion=16.2.0

firebase-common/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=20.2.1
2-
latestReleasedVersion=20.2.0
1+
version=20.3.1
2+
latestReleasedVersion=20.3.0
33
android.enableUnitTestBinaryResources=true

firebase-components/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
version=17.0.2
16-
latestReleasedVersion=17.0.1
15+
version=17.1.1
16+
latestReleasedVersion=17.1.0

firebase-config/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
#
1616

17-
version=21.2.1
18-
latestReleasedVersion=21.2.0
17+
version=21.2.2
18+
latestReleasedVersion=21.2.1
1919
android.enableUnitTestBinaryResources=true
2020

firebase-crashlytics-ndk/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Unreleased
22

3+
# 18.3.5
4+
* [fixed] Updated `firebase-common` to its latest version (v20.3.0) to fix an issue that was
5+
causing a nondeterministic crash on startup.
6+
7+
# 18.3.4
38
* [changed] Updated internal Crashpad version to commit `c902f6`.
49

510
# 18.3.2
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=18.3.3
2-
latestReleasedVersion=18.3.2
1+
version=18.3.6
2+
latestReleasedVersion=18.3.5

firebase-crashlytics/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
* [changed] Add improved support capturing build ids for Native ANRs on older
55
Android versions.
66

7+
# 18.3.5
8+
* [fixed] Updated `firebase-common` to its latest version (v20.3.0) to fix an issue that was
9+
causing a nondeterministic crash on startup.
10+
711
# 18.3.2
812
* [unchanged] Updated to accommodate the release of the updated
913
`firebase-crashlytics-ndk` v18.3.2.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=18.3.3
2-
latestReleasedVersion=18.3.2
1+
version=18.3.6
2+
latestReleasedVersion=18.3.5

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/CrashlyticsCore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class CrashlyticsCore {
5959
static final String CRASHLYTICS_REQUIRE_BUILD_ID = "com.crashlytics.RequireBuildId";
6060
static final boolean CRASHLYTICS_REQUIRE_BUILD_ID_DEFAULT = true;
6161

62-
static final int DEFAULT_MAIN_HANDLER_TIMEOUT_SEC = 4;
62+
static final int DEFAULT_MAIN_HANDLER_TIMEOUT_SEC = 3;
6363

6464
private static final String ON_DEMAND_RECORDED_KEY =
6565
"com.crashlytics.on-demand.recorded-exceptions";

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/Utils.java

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414

1515
package com.google.firebase.crashlytics.internal.common;
1616

17-
import static java.util.Objects.requireNonNull;
18-
1917
import android.annotation.SuppressLint;
20-
import androidx.annotation.NonNull;
18+
import android.os.Looper;
2119
import com.google.android.gms.tasks.Continuation;
2220
import com.google.android.gms.tasks.Task;
2321
import com.google.android.gms.tasks.TaskCompletionSource;
@@ -30,9 +28,9 @@
3028
import java.util.concurrent.TimeoutException;
3129

3230
/** Utils */
31+
@SuppressWarnings({"ResultOfMethodCallIgnored", "UnusedReturnValue"})
3332
public final class Utils {
34-
35-
private Utils() {}
33+
private static final int TIMEOUT_SEC = 4;
3634

3735
/** @return A tasks that is resolved when either of the given tasks is resolved. */
3836
// TODO(b/261014167): Use an explicit executor in continuations.
@@ -43,8 +41,8 @@ public static <T> Task<T> race(Task<T> t1, Task<T> t2) {
4341
task -> {
4442
if (task.isSuccessful()) {
4543
result.trySetResult(task.getResult());
46-
} else {
47-
result.trySetException(requireNonNull(task.getException()));
44+
} else if (task.getException() != null) {
45+
result.trySetException(task.getException());
4846
}
4947
return null;
5048
};
@@ -60,8 +58,8 @@ public static <T> Task<T> race(Executor executor, Task<T> t1, Task<T> t2) {
6058
task -> {
6159
if (task.isSuccessful()) {
6260
result.trySetResult(task.getResult());
63-
} else {
64-
result.trySetException(requireNonNull(task.getException()));
61+
} else if (task.getException() != null) {
62+
result.trySetException(task.getException());
6563
}
6664
return null;
6765
};
@@ -72,34 +70,27 @@ public static <T> Task<T> race(Executor executor, Task<T> t1, Task<T> t2) {
7270

7371
/** Similar to Tasks.call, but takes a Callable that returns a Task. */
7472
public static <T> Task<T> callTask(Executor executor, Callable<Task<T>> callable) {
75-
final TaskCompletionSource<T> tcs = new TaskCompletionSource<T>();
73+
final TaskCompletionSource<T> result = new TaskCompletionSource<>();
7674
executor.execute(
77-
new Runnable() {
78-
// TODO(b/261014167): Use an explicit executor in continuations.
79-
@SuppressLint("TaskMainThread")
80-
@Override
81-
public void run() {
82-
try {
83-
callable
84-
.call()
85-
.continueWith(
86-
new Continuation<T, Void>() {
87-
@Override
88-
public Void then(@NonNull Task<T> task) throws Exception {
89-
if (task.isSuccessful()) {
90-
tcs.setResult(task.getResult());
91-
} else {
92-
tcs.setException(task.getException());
93-
}
94-
return null;
95-
}
96-
});
97-
} catch (Exception e) {
98-
tcs.setException(e);
99-
}
75+
() -> {
76+
try {
77+
callable
78+
.call()
79+
.continueWith(
80+
executor,
81+
task -> {
82+
if (task.isSuccessful()) {
83+
result.setResult(task.getResult());
84+
} else if (task.getException() != null) {
85+
result.setException(task.getException());
86+
}
87+
return null;
88+
});
89+
} catch (Exception e) {
90+
result.setException(e);
10091
}
10192
});
102-
return tcs.getTask();
93+
return result.getTask();
10394
}
10495

10596
/**
@@ -126,7 +117,11 @@ public static <T> T awaitEvenIfOnMainThread(Task<T> task)
126117
return null;
127118
});
128119

129-
latch.await(CrashlyticsCore.DEFAULT_MAIN_HANDLER_TIMEOUT_SEC, TimeUnit.SECONDS);
120+
if (Looper.getMainLooper() == Looper.myLooper()) {
121+
latch.await(CrashlyticsCore.DEFAULT_MAIN_HANDLER_TIMEOUT_SEC, TimeUnit.SECONDS);
122+
} else {
123+
latch.await(TIMEOUT_SEC, TimeUnit.SECONDS);
124+
}
130125

131126
if (task.isSuccessful()) {
132127
return task.getResult();
@@ -170,4 +165,6 @@ public static boolean awaitUninterruptibly(CountDownLatch latch, long timeout, T
170165
private static final ExecutorService TASK_CONTINUATION_EXECUTOR_SERVICE =
171166
ExecutorUtils.buildSingleThreadExecutorService(
172167
"awaitEvenIfOnMainThread task continuation executor");
168+
169+
private Utils() {}
173170
}

firebase-firestore/gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=24.4.2
2-
latestReleasedVersion=24.4.1
1+
version=24.4.4
2+
latestReleasedVersion=24.4.3

0 commit comments

Comments
 (0)