Skip to content

Commit 2d48d35

Browse files
committed
Merge branch 'master'
2 parents d1bd104 + 77b891a commit 2d48d35

File tree

106 files changed

+1484
-517
lines changed

Some content is hidden

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

106 files changed

+1484
-517
lines changed

.github/workflows/abtesting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: macos-12
2424
strategy:
2525
matrix:
26-
target: [ios, tvos, macos, watchos]
26+
target: [ios, tvos, macos]
2727
steps:
2828
- uses: actions/checkout@v2
2929
- uses: ruby/setup-ruby@v1

.github/workflows/auth.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
POD_LIB_LINT_ONLY: 1
2828
strategy:
2929
matrix:
30-
target: [ios, tvos, macos, watchos]
30+
target: [ios, tvos, macos]
3131
steps:
3232
- uses: actions/checkout@v2
3333
- uses: ruby/setup-ruby@v1
@@ -141,8 +141,8 @@ jobs:
141141
runs-on: macos-12
142142
strategy:
143143
matrix:
144-
# The macos and tvos tests can hang, and watchOS doesn't have tests.
145-
target: [ios, tvos --skip-tests, macos --skip-tests, watchos --skip-tests]
144+
# The macos and tvos tests can hang.
145+
target: [ios, tvos --skip-tests, macos --skip-tests]
146146
flags: [
147147
'--use-static-frameworks'
148148
]

.github/workflows/crashlytics.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
strategy:
2828
matrix:
29-
target: [ios, tvos, macos, watchos --skip-tests]
29+
target: [ios, tvos, macos]
3030
steps:
3131
- uses: actions/checkout@v2
3232
- uses: ruby/setup-ruby@v1
@@ -110,8 +110,7 @@ jobs:
110110
runs-on: macos-12
111111
strategy:
112112
matrix:
113-
# Disable watchos because it does not support XCTest.
114-
target: [ios, tvos, macos, watchos --skip-tests]
113+
target: [ios, tvos, macos]
115114
flags: [
116115
'--use-static-frameworks'
117116
]

.github/workflows/database.yml

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

121121
strategy:
122122
matrix:
123-
target: [ios, tvos, macos, watchos]
123+
target: [ios, tvos, macos]
124124
steps:
125125
- uses: actions/checkout@v2
126126
- uses: ruby/setup-ruby@v1

.github/workflows/firestore.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,15 @@ jobs:
126126
sanitizers:
127127
# Don't run on private repo unless it is a PR.
128128
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
129-
# TODO(b/231154868): GRPC 1.44 cause link issues on Mac, moving it to Ubuntu for now and add Mac when it is resolved.
130-
runs-on: ubuntu-latest
131129
needs: check
132130

133131
strategy:
134132
matrix:
133+
os: [macos-12, ubuntu-latest]
135134
sanitizer: [asan, tsan]
136135

136+
runs-on: ${{ matrix.os }}
137+
137138
env:
138139
SANITIZERS: ${{ matrix.sanitizer }}
139140

.github/workflows/functions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: macos-12
3131
strategy:
3232
matrix:
33-
target: [ios, tvos, macos, watchos]
33+
target: [ios, tvos, macos]
3434
steps:
3535
- uses: actions/checkout@v2
3636
- uses: ruby/setup-ruby@v1

.github/workflows/messaging.yml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -138,20 +138,6 @@ jobs:
138138
run: ([ -z $plist_secret ] ||
139139
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Messaging false swift)
140140

141-
pod-lib-lint-watchos:
142-
# Don't run on private repo unless it is a PR.
143-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
144-
runs-on: macos-12
145-
146-
steps:
147-
- uses: actions/checkout@v2
148-
- uses: ruby/setup-ruby@v1
149-
- name: Setup Bundler
150-
run: scripts/setup_bundler.sh
151-
- name: Build and test
152-
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --skip-tests --platforms=watchos
153-
154-
155141
messaging-cron-only:
156142
# Don't run on private repo.
157143
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
@@ -171,24 +157,6 @@ jobs:
171157
- name: PodLibLint Messaging Cron
172158
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=${{ matrix.target }}
173159

174-
messaging-watchos-cron-only:
175-
# Don't run on private repo.
176-
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
177-
runs-on: macos-12
178-
strategy:
179-
matrix:
180-
flags: [
181-
'--use-static-frameworks'
182-
]
183-
needs: pod-lib-lint-watchos
184-
steps:
185-
- uses: actions/checkout@v2
186-
- uses: ruby/setup-ruby@v1
187-
- name: Setup Bundler
188-
run: scripts/setup_bundler.sh
189-
- name: PodLibLint Messaging Cron
190-
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseMessaging.podspec --platforms=watchos
191-
192160
messaging-sample-build-test:
193161
# Don't run on private repo unless it is a PR.
194162
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'

.github/workflows/remoteconfig.yml

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

6060
strategy:
6161
matrix:
62-
target: [ios, tvos, macos, watchos]
62+
target: [ios, tvos, macos]
6363
podspec: [FirebaseRemoteConfig.podspec, FirebaseRemoteConfigSwift.podspec --skip-tests]
6464
steps:
6565
- uses: actions/checkout@v2

.github/workflows/sessions.yml

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

2626
strategy:
2727
matrix:
28-
target: [ios, tvos, macos, watchos --skip-tests]
28+
target: [ios, tvos, macos]
2929
steps:
3030
- uses: actions/checkout@v2
3131
- uses: ruby/setup-ruby@v1

.github/workflows/shared-swift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: macos-12
2424
strategy:
2525
matrix:
26-
target: [ios, tvos, macos, watchos]
26+
target: [ios, tvos, macos]
2727
steps:
2828
- uses: actions/checkout@v2
2929
- uses: ruby/setup-ruby@v1

.github/workflows/storage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
runs-on: macos-12
107107
strategy:
108108
matrix:
109-
target: [ios, tvos, macos, watchos]
109+
target: [ios, tvos, macos]
110110
steps:
111111
- uses: actions/checkout@v2
112112
- uses: ruby/setup-ruby@v1
@@ -122,7 +122,7 @@ jobs:
122122
runs-on: macos-12
123123
strategy:
124124
matrix:
125-
target: [ios, tvos, macos, watchos]
125+
target: [ios, tvos, macos]
126126
needs: pod-lib-lint
127127
steps:
128128
- uses: actions/checkout@v2

.github/workflows/zip.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ jobs:
402402
SDK: "Firestore"
403403
runs-on: macos-12
404404
steps:
405+
# Xcode 14 fails to build FirebaseAuthUI because it includes Resources. See #9886.
406+
- name: Xcode 13.3.1
407+
run: sudo xcode-select -s /Applications/Xcode_13.3.1.app/Contents/Developer
405408
- uses: actions/checkout@v2
406409
- name: Get framework dir
407410
uses: actions/download-artifact@v1

Carthage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseRemoteConfigBinar
5050
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseStorageBinary.json"
5151
```
5252
- Run `carthage update`
53-
- Use Finder to open `Carthage/Build/iOS`.
53+
- Use Finder to open `Carthage/Build`.
5454
- Copy the contents into the top level of your Xcode project and make sure
5555
they're added to the right build target(s).
5656
- To disable AdId support, do not copy

Dangerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ def hasChangesIn(paths)
2424
return false
2525
end
2626

27+
# Determine if any new files were added to paths matching any of the
28+
# path patterns provided.
29+
def hasAdditionsIn(paths)
30+
path_array = Array(paths)
31+
path_array.each do |dir|
32+
if !git.added_files.grep(/#{dir}/).empty?
33+
return true
34+
end
35+
end
36+
return false
37+
end
38+
2739
# Adds the provided labels to the current PR.
2840
def addLabels(label_array)
2941
issue_number = github.pr_json["number"]
@@ -118,6 +130,8 @@ has_license_changes = didModify(["LICENSE"])
118130
@has_storage_changes = hasChangesIn("FirebaseStorage")
119131

120132
@has_releasetooling_changes = hasChangesIn("ReleaseTooling/")
133+
@has_public_additions = hasAdditionsIn("Public/")
134+
@has_umbrella_changes = hasChangesIn("Firebase*.h")
121135

122136
# Convenient flag for all API changes.
123137
@has_api_changes = @has_abtesting_api_changes ||
@@ -164,6 +178,14 @@ if has_sdk_changes
164178
end
165179
end
166180

181+
# Warn if a new public header file is added but no umbrella header changes
182+
# are detected. Prevents regression of #10301
183+
if @has_public_additions && !@has_umbrella_changes
184+
error = "New public headers were added, "\
185+
"did you remember to add them to the umbrella header?"
186+
fail(error)
187+
end
188+
167189
# Error on license edits
168190
fail("LICENSE changes are explicitly disallowed.") if has_license_changes
169191

0 commit comments

Comments
 (0)