Skip to content

Commit f8311f2

Browse files
authored
Merge branch 'main' into davidmotson.imagen_support
2 parents a9ea9e6 + cf5fe2e commit f8311f2

File tree

213 files changed

+3232
-1664
lines changed

Some content is hidden

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

213 files changed

+3232
-1664
lines changed

.github/workflows/dataconnect_demo_app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
env:
1919
FDC_NODE_VERSION: ${{ inputs.nodeVersion || '20' }}
20-
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '13.25.0' }}
20+
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '13.28.0' }}
2121
FDC_JAVA_VERSION: ${{ inputs.javaVersion || '17' }}
2222
FDC_FIREBASE_TOOLS_DIR: ${{ github.workspace }}/firebase-tools
2323
FDC_FIREBASE_COMMAND: ${{ github.workspace }}/firebase-tools/node_modules/.bin/firebase
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Check buildSrc
1+
name: Check plugins
22

33
on:
44
pull_request:
55
paths:
6-
- 'buildSrc/**'
6+
- 'plugins/**'
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1010
cancel-in-progress: true
1111

1212
jobs:
13-
build-src-check:
13+
plugins-check:
1414
runs-on: ubuntu-22.04
1515
steps:
1616
- uses: actions/[email protected]
@@ -20,13 +20,13 @@ jobs:
2020
java-version: 17
2121
distribution: temurin
2222
cache: gradle
23-
- name: buildSrc Tests
23+
- name: plugins tests
2424
env:
2525
FIREBASE_CI: 1
2626
run: |
27-
./gradlew -b buildSrc/build.gradle.kts -PenablePluginTests=true check
27+
./gradlew plugins:check
2828
- name: Publish Test Results
2929
uses: EnricoMi/publish-unit-test-result-action@82082dac68ad6a19d980f8ce817e108b9f496c2a
3030
with:
3131
files: "**/build/test-results/**/*.xml"
32-
check_name: "buildSrc Test Results"
32+
check_name: "plugins test results"

.github/workflows/release-note-changes.yml

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -9,59 +9,59 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/[email protected]
13-
with:
14-
fetch-depth: 0
12+
- uses: actions/[email protected]
13+
with:
14+
fetch-depth: 0
1515

16-
- name: Create output file
17-
run: touch changelog_comment.md
16+
- name: Create output file
17+
run: touch changelog_comment.md
1818

19-
- name: Get changed changelog files
20-
id: changed-files
21-
uses: tj-actions/[email protected]
22-
with:
23-
files_ignore: |
24-
buildSrc/**
25-
files: |
26-
**/CHANGELOG.md
19+
- name: Get changed changelog files
20+
id: changed-files
21+
uses: tj-actions/[email protected]
22+
with:
23+
files_ignore: |
24+
plugins/**
25+
files: |
26+
**/CHANGELOG.md
2727
28-
- name: Set up JDK 17
29-
uses: actions/[email protected]
30-
with:
31-
java-version: 17
32-
distribution: temurin
33-
cache: gradle
28+
- name: Set up JDK 17
29+
uses: actions/[email protected]
30+
with:
31+
java-version: 17
32+
distribution: temurin
33+
cache: gradle
3434

35-
- name: Set up Python 3.10
36-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
37-
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
38-
with:
39-
python-version: '3.10'
35+
- name: Set up Python 3.10
36+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
37+
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
38+
with:
39+
python-version: '3.10'
4040

41-
- name: Set up fireci
42-
id: install-fireci
43-
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
44-
run: pip3 install -e ci/fireci
41+
- name: Set up fireci
42+
id: install-fireci
43+
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
44+
run: pip3 install -e ci/fireci
4545

46-
- name: Generate comment
47-
id: generate-comment
48-
if: ${{ steps.install-fireci.outcome == 'success' }}
49-
run: |
50-
fireci changelog_comment -c "${{ steps.changed-files.outputs.all_changed_files }}" -o ./changelog_comment.md
46+
- name: Generate comment
47+
id: generate-comment
48+
if: ${{ steps.install-fireci.outcome == 'success' }}
49+
run: |
50+
fireci changelog_comment -c "${{ steps.changed-files.outputs.all_changed_files }}" -o ./changelog_comment.md
5151
52-
- name: Add PR Comment
53-
uses: mshick/[email protected]
54-
continue-on-error: true
55-
with:
56-
status: ${{ steps.generate-comment.outcome }}
57-
message-path: ./changelog_comment.md
58-
message-skipped: |
59-
## Release note changes
60-
No release note changes were detected. If you made changes that should be
61-
present in the next release, ensure you've added an entry in the appropriate
62-
`CHANGELOG.md` file(s).
63-
message-failure: |
64-
## Release note changes
65-
A `CHANGELOG.md` file seems to not match the expected format.
66-
Please ensure your changelog files are following the format as
67-
defined in [our documentation](#).
52+
- name: Add PR Comment
53+
uses: mshick/[email protected]
54+
continue-on-error: true
55+
with:
56+
status: ${{ steps.generate-comment.outcome }}
57+
message-path: ./changelog_comment.md
58+
message-skipped: |
59+
## Release note changes
60+
No release note changes were detected. If you made changes that should be
61+
present in the next release, ensure you've added an entry in the appropriate
62+
`CHANGELOG.md` file(s).
63+
message-failure: |
64+
## Release note changes
65+
A `CHANGELOG.md` file seems to not match the expected format.
66+
Please ensure your changelog files are following the format as
67+
defined in [our documentation](#).

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dependencies {
5353
api 'com.google.firebase:firebase-annotations:16.2.0'
5454
api 'com.google.firebase:firebase-common:21.0.0'
5555
api 'com.google.firebase:firebase-components:18.0.0'
56+
implementation platform(libs.kotlin.bom)
5657

5758
implementation libs.playservices.base
5859
implementation libs.playservices.tasks

build.gradle

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

build.gradle.kts

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/*
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
import com.diffplug.gradle.spotless.SpotlessPlugin
18+
import java.util.regex.Pattern
19+
20+
plugins {
21+
alias(libs.plugins.spotless)
22+
alias(libs.plugins.protobuf) apply false
23+
alias(libs.plugins.errorprone)
24+
alias(libs.plugins.crashlytics) apply false
25+
id("PublishingPlugin")
26+
id("firebase-ci")
27+
id("smoke-tests")
28+
alias(libs.plugins.google.services)
29+
}
30+
31+
extra["targetSdkVersion"] = 34
32+
33+
extra["compileSdkVersion"] = 34
34+
35+
extra["minSdkVersion"] = 21
36+
37+
firebaseContinuousIntegration {
38+
ignorePaths =
39+
listOf(
40+
Pattern.compile(".*\\.gitignore$"),
41+
Pattern.compile(".*\\/.*.md$"),
42+
Pattern.compile(".*\\.gitignore$"),
43+
)
44+
}
45+
46+
fun Project.applySpotless() {
47+
apply<SpotlessPlugin>()
48+
spotless {
49+
java {
50+
target("src/**/*.java")
51+
targetExclude("**/test/resources/**")
52+
googleJavaFormat("1.22.0").reorderImports(true).skipJavadocFormatting()
53+
}
54+
kotlin {
55+
target("src/**/*.kt")
56+
ktfmt("0.41").googleStyle()
57+
}
58+
kotlinGradle {
59+
target("*.gradle.kts") // default target for kotlinGradle
60+
ktfmt("0.41").googleStyle()
61+
}
62+
}
63+
}
64+
65+
applySpotless()
66+
67+
configure(subprojects) { applySpotless() }
68+
69+
tasks.named("clean") { delete(rootProject.layout.buildDirectory) }
70+
71+
apply(from = "gradle/errorProne.gradle")

0 commit comments

Comments
 (0)