Skip to content

Commit 8c6677f

Browse files
committed
Merge remote-tracking branch 'origin/master' into mila/BloomFilter
2 parents d63be2b + fe8c9df commit 8c6677f

File tree

119 files changed

+3698
-944
lines changed

Some content is hidden

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

119 files changed

+3698
-944
lines changed

.github/workflows/build-release-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Perform gradle build
2626
run: |
27-
./gradlew firebasePublish -PpublishConfigFilePath=release.cfg -PpublishMode=RELEASE -PincludeFireEscapeArtifacts=true
27+
./gradlew firebasePublish -PpublishConfigFilePath=release.cfg -PpublishMode=RELEASE
2828
2929
- name: Generate release notes
3030
run: |

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
cancel-in-progress: true
99

1010
jobs:
11-
danger:
11+
changelog-check:
1212
runs-on: ubuntu-22.04
1313
env:
1414
BUNDLE_GEMFILE: ./ci/danger/Gemfile

.github/workflows/check-head-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414

1515
- name: Perform gradle build
1616
run: |
17-
./gradlew checkHeadDependencies -PpublishConfigFilePath=release.cfg -PpublishMode=RELEASE -PincludeFireEscapeArtifacts=true
17+
./gradlew checkHeadDependencies -PpublishConfigFilePath=release.cfg -PpublishMode=RELEASE

.github/workflows/merge-to-main.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,5 @@ jobs:
2626
using a feature branch first, and only merge into the main
2727
branch when the code complete and ready to be released.
2828
29-
30-
**Add the 'main-merge-ack' label to your PR to confirm
31-
merging into the main branch is intended.**
32-
33-
- name: Label checker
34-
if: "!contains( github.event.pull_request.labels.*.name, 'main-merge-ack')"
35-
run: |
36-
echo Missing 'main-merge-ack' label. Read the comment about merging to master in your PR for more information.
37-
exit 1
38-
3929
- name: Success
4030
run: exit 0

.github/workflows/sessions-e2e.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Firebase Sessions E2E Tests
2+
3+
on:
4+
workflow_dispatch: # allow triggering the workflow manually
5+
6+
concurrency:
7+
group: ${{ github.workflow }}
8+
9+
env:
10+
SESSIONS_E2E_GOOGLE_SERVICES: ${{ secrets.SESSIONS_E2E_GOOGLE_SERVICES }}
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout firebase-sessions
19+
uses: actions/checkout@v3
20+
with:
21+
ref: 'firebase-sessions'
22+
23+
- name: set up JDK 11
24+
uses: actions/setup-java@v3
25+
with:
26+
java-version: '11'
27+
distribution: 'temurin'
28+
cache: gradle
29+
30+
- name: Add google-services.json
31+
run: |
32+
echo $SESSIONS_E2E_GOOGLE_SERVICES | base64 -d > google-services.json
33+
34+
- name: Grant execute permission for gradlew
35+
run: chmod +x gradlew
36+
37+
- name: Run sessions end-to-end tests
38+
run: ./gradlew firebase-sessions:deviceCheck withErrorProne -PtargetBackend="prod"

.github/workflows/validate-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414

1515
- name: Perform gradle build
1616
run: |
17-
./gradlew validatePomForRelease -PpublishConfigFilePath=release.cfg -PpublishMode=RELEASE -PincludeFireEscapeArtifacts=true
17+
./gradlew validatePomForRelease -PpublishConfigFilePath=release.cfg -PpublishMode=RELEASE

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,10 @@ projects may be published as follows.
251251

252252
### Code Formatting
253253

254-
Code in this repo is formatted with the google-java-format tool. You can enable
255-
this formatting in Android Studio by downloading and installing the
254+
#### Java
255+
256+
Java code in this repo is formatted with the google-java-format tool. You can
257+
enable this formatting in Android Studio by downloading and installing the
256258
[google-java-format plugin](https://github.com/google/google-java-format).
257259
The plugin is disabled by default, but the repo contains configuration information
258260
and links to additional plugins.
@@ -262,6 +264,18 @@ To run formatting on your entire project you can run
262264
./gradlew :<firebase-project>:googleJavaFormat
263265
```
264266

267+
#### Kotlin
268+
269+
Kotlin code in this repo is formatted with the `ktfmt` tool. You can enable
270+
this formatting in Android Studio by downloading and installing the
271+
[ktfmt plugin](https://plugins.jetbrains.com/plugin/14912-ktfmt).
272+
Enable the plugin in Preferences | Editor | ktfmt Settings. and set code style to Google (internal).
273+
274+
To run formatting on your entire project you can run
275+
```bash
276+
./gradlew :<firebase-project>:ktfmtFormat
277+
```
278+
265279
### Contributing
266280

267281
We love contributions! Please read our

appcheck/firebase-appcheck-debug-testing/firebase-appcheck-debug-testing.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ plugins {
1717
}
1818

1919
firebaseLibrary {
20+
libraryGroup "appcheck"
2021
testLab.enabled = true
2122
publishSources = true
2223
}

appcheck/firebase-appcheck-debug/firebase-appcheck-debug.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ plugins {
1717
}
1818

1919
firebaseLibrary {
20+
libraryGroup "appcheck"
2021
publishSources = true
2122
}
2223

appcheck/firebase-appcheck-playintegrity/firebase-appcheck-playintegrity.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ plugins {
1717
}
1818

1919
firebaseLibrary {
20+
libraryGroup "appcheck"
2021
publishSources = true
2122
}
2223

appcheck/firebase-appcheck/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# 16.1.2
44
* [unchanged] Updated to keep [app_check] SDK versions aligned.
55

6+
7+
## Kotlin
8+
The Kotlin extensions library transitively includes the updated
9+
`firebase-appcheck` library. The Kotlin extensions library has no additional
10+
updates.
11+
612
# 16.1.1
713
* [changed] Migrated [app_check] SDKs to use standard Firebase executors.
814
(GitHub [#4431](//github.com/firebase/firebase-android-sdk/issues/4431){: .external}

appcheck/firebase-appcheck/firebase-appcheck.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ plugins {
1717
}
1818

1919
firebaseLibrary {
20+
libraryGroup "appcheck"
2021
publishSources = true
2122
}
2223

appcheck/firebase-appcheck/ktx/ktx.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins {
1818
}
1919

2020
firebaseLibrary {
21-
releaseWith project(':appcheck:firebase-appcheck')
21+
libraryGroup "appcheck"
2222
testLab.enabled = true
2323
publishJavadoc = true
2424
publishSources = true

buildSrc/src/main/java/com/google/firebase/gradle/MultiProjectReleasePlugin.java

Lines changed: 31 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,18 @@
1313
// limitations under the License.
1414
package com.google.firebase.gradle;
1515

16-
import static com.google.firebase.gradle.plugins.ProjectUtilsKt.toBoolean;
17-
1816
import com.google.common.collect.ImmutableMap;
1917
import com.google.firebase.gradle.bomgenerator.BomGeneratorTask;
20-
import com.google.firebase.gradle.plugins.FireEscapeArtifactPlugin;
2118
import com.google.firebase.gradle.plugins.FirebaseLibraryExtension;
22-
import com.google.firebase.gradle.plugins.JavadocPlugin;
2319
import com.google.firebase.gradle.plugins.publish.PublishingPlugin;
24-
import java.io.File;
2520
import java.util.Set;
2621
import java.util.stream.Collectors;
2722
import org.gradle.api.GradleException;
2823
import org.gradle.api.Plugin;
2924
import org.gradle.api.Project;
3025
import org.gradle.api.Task;
26+
import org.gradle.api.tasks.Copy;
27+
import org.gradle.api.tasks.TaskProvider;
3128
import org.gradle.api.tasks.bundling.Zip;
3229

3330
/**
@@ -56,18 +53,6 @@ public class MultiProjectReleasePlugin implements Plugin<Project> {
5653
public void apply(Project project) {
5754
project.apply(ImmutableMap.of("plugin", PublishingPlugin.class));
5855

59-
boolean releaseJavadocs = toBoolean(System.getProperty("releaseJavadocs", "true"));
60-
File firebaseDevsiteJavadoc = new File(project.getBuildDir(), "firebase-kotlindoc/android");
61-
62-
project.subprojects(
63-
sub -> {
64-
sub.afterEvaluate(
65-
p -> {
66-
sub.apply(ImmutableMap.of("plugin", JavadocPlugin.class));
67-
sub.apply(ImmutableMap.of("plugin", FireEscapeArtifactPlugin.class));
68-
});
69-
});
70-
7156
project
7257
.getTasks()
7358
.create(
@@ -80,7 +65,34 @@ public void apply(Project project) {
8065
task.getDestinationDirectory().set(project.getRootDir());
8166
});
8267

83-
project.getTasks().create("generateReleaseConfig", ReleaseGenerator.class);
68+
TaskProvider<ReleaseGenerator> generatorTask =
69+
project
70+
.getTasks()
71+
.register(
72+
"makeReleaseConfigFiles",
73+
ReleaseGenerator.class,
74+
task -> {
75+
task.getCurrentRelease()
76+
.convention(project.property("currentRelease").toString());
77+
task.getPastRelease().convention(project.property("pastRelease").toString());
78+
task.getPrintReleaseConfig()
79+
.convention(project.property("printOutput").toString());
80+
task.getReleaseConfigFile()
81+
.convention(project.getLayout().getBuildDirectory().file("release.cfg"));
82+
task.getReleaseReportFile()
83+
.convention(
84+
project.getLayout().getBuildDirectory().file("release_report.md"));
85+
});
86+
87+
project
88+
.getTasks()
89+
.register(
90+
"generateReleaseConfig",
91+
Copy.class,
92+
task -> {
93+
task.from(generatorTask);
94+
task.into(project.getRootDir());
95+
});
8496

8597
project
8698
.getGradle()
@@ -104,35 +116,7 @@ public void apply(Project project) {
104116
"Required projectsToPublish parameter missing.");
105117
}
106118
}));
107-
Task firebasePublish = project.getTasks().findByName("firebasePublish");
108-
firebasePublish.dependsOn(validateProjectsToPublish);
109-
110-
Task generateAllJavadocs =
111-
project.task(
112-
"generateAllJavadocs",
113-
task -> {
114-
for (Project p : projectsToPublish) {
115-
task.dependsOn(p.getPath() + ":kotlindoc");
116-
}
117-
});
118-
119-
Zip assembleFirebaseJavadocZip =
120-
project
121-
.getTasks()
122-
.create(
123-
"assembleFirebaseJavadocZip",
124-
Zip.class,
125-
zip -> {
126-
zip.dependsOn(generateAllJavadocs);
127-
zip.getDestinationDirectory().set(project.getBuildDir());
128-
zip.getArchiveFileName().set("firebase-javadoc.zip");
129-
zip.from(firebaseDevsiteJavadoc);
130-
zip.include("**/*");
131-
});
132-
133-
if (releaseJavadocs) {
134-
firebasePublish.dependsOn(assembleFirebaseJavadocZip);
135-
}
119+
project.getTasks().findByName("firebasePublish").dependsOn(validateProjectsToPublish);
136120
});
137121
}
138122
}

0 commit comments

Comments
 (0)