Skip to content

Commit 07d2f22

Browse files
committed
Merge branch 'main' into ep/metalava-semver
2 parents 68e3921 + ba0941b commit 07d2f22

File tree

88 files changed

+4030
-1394
lines changed

Some content is hidden

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

88 files changed

+4030
-1394
lines changed

.github/workflows/dataconnect.yml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,27 +73,35 @@ jobs:
7373
npm install --fund=false --audit=false --save --save-exact firebase-tools@${{ env.FDC_FIREBASE_TOOLS_VERSION }}
7474
7575
- name: Restore Gradle cache
76+
id: restore-gradle-cache
7677
uses: actions/cache/restore@v4
7778
if: github.event_name != 'schedule'
7879
with:
7980
path: |
8081
~/.gradle/caches
8182
~/.gradle/wrapper
82-
key: gradle-cache-jqnvfzw6w7
83+
key: gradle-cache-jqnvfzw6w7-${{ github.run_id }}
84+
restore-keys: |
85+
gradle-cache-jqnvfzw6w7-
8386
8487
- name: tool versions
8588
continue-on-error: true
8689
run: |
87-
set +e -v
88-
uname -a
89-
which java
90-
java -version
91-
which javac
92-
javac -version
93-
which node
94-
node --version
95-
${{ env.FDC_FIREBASE_COMMAND }} --version
96-
./gradlew --version
90+
function run_cmd {
91+
echo "==============================================================================="
92+
echo "Running Command: $*"
93+
("$@" 2>&1) || echo "WARNING: command failed with non-zero exit code $?: $*"
94+
}
95+
96+
run_cmd uname -a
97+
run_cmd which java
98+
run_cmd java -version
99+
run_cmd which javac
100+
run_cmd javac -version
101+
run_cmd which node
102+
run_cmd node --version
103+
run_cmd ${{ env.FDC_FIREBASE_COMMAND }} --version
104+
run_cmd ./gradlew --version
97105
98106
- name: Gradle assembleDebugAndroidTest
99107
run: |
@@ -116,7 +124,7 @@ jobs:
116124
path: |
117125
~/.gradle/caches
118126
~/.gradle/wrapper
119-
key: gradle-cache-jqnvfzw6w7
127+
key: ${{ steps.restore-gradle-cache.outputs.cache-primary-key }}
120128

121129
- name: Enable KVM group permissions for Android Emulator
122130
run: |
@@ -128,24 +136,24 @@ jobs:
128136
- name: Restore AVD cache
129137
uses: actions/cache/restore@v4
130138
if: github.event_name != 'schedule'
131-
id: avd-cache
139+
id: restore-avd-cache
132140
with:
133141
path: |
134142
~/.android/avd/*
135143
~/.android/adb*
136-
key: avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
137-
138-
- run: echo "github.event_name == '${{ github.event_name }}' steps.avd-cache.outputs.cache-hit == '${{ steps.avd-cache.outputs.cache-hit }}'"
144+
key: avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-${{ github.run_id }}
145+
restore-keys: |
146+
avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-
139147
140148
- name: Create AVD
141-
if: github.event_name == 'schedule' || steps.avd-cache.outputs.cache-hit != 'true'
149+
if: github.event_name == 'schedule' || steps.restore-avd-cache.outputs.cache-hit != 'true'
142150
uses: reactivecircus/android-emulator-runner@v2
143151
with:
144152
api-level: ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
145153
arch: x86_64
146154
force-avd-creation: false
147155
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
148-
disable-animations: false
156+
disable-animations: true
149157
script: echo "Generated AVD snapshot for caching."
150158

151159
- name: Save AVD cache
@@ -155,7 +163,7 @@ jobs:
155163
path: |
156164
~/.android/avd/*
157165
~/.android/adb*
158-
key: avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
166+
key: ${{ steps.restore-avd-cache.outputs.cache-primary-key }}
159167

160168
- name: Data Connect Emulator
161169
run: |

.github/workflows/dataconnect_demo_app.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,20 @@ jobs:
8989
- name: tool versions
9090
continue-on-error: true
9191
run: |
92-
set +e -v
93-
which java
94-
java -version
95-
which javac
96-
javac -version
97-
which node
98-
node --version
99-
${{ env.FDC_FIREBASE_COMMAND }} --version
100-
./gradlew --version
92+
function run_cmd {
93+
echo "==============================================================================="
94+
echo "Running Command: $*"
95+
("$@" 2>&1) || echo "WARNING: command failed with non-zero exit code $?: $*"
96+
}
97+
98+
run_cmd which java
99+
run_cmd java -version
100+
run_cmd which javac
101+
run_cmd javac -version
102+
run_cmd which node
103+
run_cmd node --version
104+
run_cmd ${{ env.FDC_FIREBASE_COMMAND }} --version
105+
run_cmd ./gradlew --version
101106
102107
- name: ./gradlew assemble test
103108
run: |

.github/workflows/make-bom.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
1212
with:
1313
python-version: '3.10'
14+
1415
- uses: actions/[email protected]
16+
1517
- name: Set up JDK 17
1618
uses: actions/[email protected]
1719
with:
@@ -21,19 +23,25 @@ jobs:
2123

2224
- name: Build
2325
run: |
24-
./ci/run.sh \
25-
--artifact-target-dir=./logs/artifacts \
26-
--artifact-patterns=bom.zip \
27-
--artifact-patterns=bomReleaseNotes.md \
28-
--artifact-patterns=recipeVersionUpdate.txt \
29-
gradle \
30-
-- \
31-
--build-cache \
32-
buildBomZip
33-
34-
- name: Upload generated artifacts
26+
./gradlew buildBomBundleZip
27+
28+
- name: Upload bom
29+
uses: actions/[email protected]
30+
with:
31+
name: bom
32+
path: build/bom/
33+
retention-days: 15
34+
35+
- name: Upload release notes
36+
uses: actions/[email protected]
37+
with:
38+
name: bom_release_notes
39+
path: build/bomReleaseNotes.md
40+
retention-days: 15
41+
42+
- name: Upload recipe version update
3543
uses: actions/[email protected]
3644
with:
37-
name: artifacts
38-
path: ./logs/artifacts/
39-
retention-days: 5
45+
name: recipe_version
46+
path: build/recipeVersionUpdate.txt
47+
retention-days: 15

firebase-appdistribution/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Unreleased
2-
2+
* [fixed] Added custom tab support for more browsers [#6692]
33

44
# 16.0.0-beta14
55
* [changed] Internal improvements to testing on Android 14

firebase-appdistribution/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
2222
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
2323

24+
<queries>
25+
<intent>
26+
<action android:name="android.support.customtabs.action.CustomTabsService" />
27+
</intent>
28+
</queries>
29+
2430
<application>
2531
<service
2632
android:name="com.google.firebase.components.ComponentDiscoveryService"

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
import android.app.Activity;
2222
import android.content.Context;
2323
import android.content.Intent;
24-
import android.content.pm.ResolveInfo;
2524
import android.net.Uri;
2625
import androidx.annotation.NonNull;
2726
import androidx.annotation.VisibleForTesting;
27+
import androidx.browser.customtabs.CustomTabsClient;
2828
import androidx.browser.customtabs.CustomTabsIntent;
2929
import com.google.android.gms.tasks.OnFailureListener;
3030
import com.google.android.gms.tasks.Task;
@@ -36,7 +36,7 @@
3636
import com.google.firebase.appdistribution.FirebaseAppDistributionException.Status;
3737
import com.google.firebase.inject.Provider;
3838
import com.google.firebase.installations.FirebaseInstallationsApi;
39-
import java.util.List;
39+
import java.util.Collections;
4040
import java.util.concurrent.Executor;
4141
import javax.inject.Inject;
4242
import javax.inject.Singleton;
@@ -212,10 +212,7 @@ private void openSignInFlowInBrowser(String fid, Activity activity) {
212212
}
213213

214214
private boolean supportsCustomTabs(Context context) {
215-
Intent customTabIntent = new Intent("android.support.customtabs.action.CustomTabsService");
216-
customTabIntent.setPackage("com.android.chrome");
217-
List<ResolveInfo> resolveInfos =
218-
context.getPackageManager().queryIntentServices(customTabIntent, 0);
219-
return resolveInfos != null && !resolveInfos.isEmpty();
215+
String packageName = CustomTabsClient.getPackageName(context, Collections.emptyList());
216+
return packageName != null;
220217
}
221218
}

firebase-config/src/main/java/com/google/firebase/remoteconfig/FirebaseRemoteConfig.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,16 +656,17 @@ private Task<Void> setDefaultsWithStringsMapAsync(Map<String, String> defaultsSt
656656
* Asynchronously changes the custom signals for this {@link FirebaseRemoteConfig} instance.
657657
*
658658
* <p>Custom signals are subject to limits on the size of key/value pairs and the total
659-
* number of signals. Any calls that exceed these limits will be discarded.
659+
* number of signals. Any calls that exceed these limits will be discarded. See <a
660+
* href="https://firebase.google.com/docs/remote-config/parameters?template_type=client#custom-signal-limits">Custom
661+
* Signal Limits</a>.
660662
*
661663
* @param customSignals The custom signals to set for this instance.
662-
* <ol>
664+
* <ul>
663665
* <li>New keys will add new key-value pairs in the custom signals.
664666
* <li>Existing keys with new values will update the corresponding signals.
665667
* <li>Setting a key's value to {@code null} will remove the associated signal.
666-
* </ol>
668+
* </ul>
667669
*/
668-
// TODO(b/385028620): Add link to documentation about custom signal limits.
669670
@NonNull
670671
public Task<Void> setCustomSignals(@NonNull CustomSignals customSignals) {
671672
return Tasks.call(

firebase-crashlytics-ndk/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Unreleased
2-
2+
* [changed] Updated `firebase-crashlytics` dependency to v19.4.1
33

44
# 19.3.0
55
* [changed] Updated `firebase-crashlytics` dependency to v19.3.0

firebase-crashlytics/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Unreleased
2-
2+
* [changed] Updated `firebase-sessions` dependency to v2.0.9
33

44
# 19.4.0
55
* [feature] Added an overload for `recordException` that allows logging additional custom

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/KeyValueBuilder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private constructor(
2323
private val builder: CustomKeysAndValues.Builder,
2424
) {
2525
@Deprecated(
26-
"Do not construct this directly. Use `setCustomKeys` instead. To be removed in the next major release."
26+
"Do not construct this directly. Use [setCustomKeys] instead. To be removed in the next major release."
2727
)
2828
constructor(crashlytics: FirebaseCrashlytics) : this(crashlytics, CustomKeysAndValues.Builder())
2929

0 commit comments

Comments
 (0)