Skip to content

Commit d470b84

Browse files
committed
Merge branch 'main' into bugfix/app-cmake-exceptions-private
2 parents 9b657b8 + 27f3bc7 commit d470b84

File tree

6 files changed

+34
-17
lines changed

6 files changed

+34
-17
lines changed

.github/workflows/cpp-packaging.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ jobs:
142142
name: packaging-tools-${{ matrix.tools_platform }}
143143
path: packaging-tools.tgz
144144

145-
build_and_package_ios:
146-
name: build-and-package-ios
145+
build_and_package_ios_tvos:
146+
name: build-and-package-ios-tvos
147147
runs-on: macos-latest
148148
if: ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
149149
steps:
@@ -156,15 +156,21 @@ jobs:
156156
with:
157157
path: sdk-src
158158

159+
- name: Setup python
160+
uses: actions/setup-python@v2
161+
with:
162+
python-version: 3.7
163+
159164
- name: install prerequisites
160165
run: sdk-src/build_scripts/ios/install_prereqs.sh
161166

162167
- name: build sdk
163168
run: |
164-
sdk-src/build_scripts/ios/build.sh -b firebase-cpp-sdk-ios-build -s sdk-src
165-
sdk-src/build_scripts/ios/package.sh firebase-cpp-sdk-ios-build firebase-cpp-sdk-ios-package
166-
cd firebase-cpp-sdk-ios-package
167-
tar -czhf ../firebase-cpp-sdk-ios-package.tgz .
169+
python sdk-src/scripts/gha/build_ios_tvos.py -b firebase-cpp-sdk-ios-tvos-build -s sdk-src
170+
sdk-src/build_scripts/ios/package.sh firebase-cpp-sdk-ios-tvos-build firebase-cpp-sdk-ios-tvos-package
171+
sdk-src/build_scripts/tvos/package.sh firebase-cpp-sdk-ios-tvos-build firebase-cpp-sdk-ios-tvos-package
172+
cd firebase-cpp-sdk-ios-tvos-package
173+
tar -czhf ../firebase-cpp-sdk-ios-tvos-package.tgz .
168174
169175
- name: Print built libraries
170176
shell: bash
@@ -184,8 +190,8 @@ jobs:
184190
- name: upload artifacts
185191
uses: actions/[email protected]
186192
with:
187-
name: firebase-cpp-sdk-ios-package
188-
path: firebase-cpp-sdk-ios-package.tgz
193+
name: firebase-cpp-sdk-ios-tvos-package
194+
path: firebase-cpp-sdk-ios-tvos-package.tgz
189195

190196
build_and_package_android:
191197
name: build-and-package-android-${{matrix.stl}}
@@ -600,7 +606,7 @@ jobs:
600606
name: final-merge-packages
601607
runs-on: ubuntu-latest
602608
if: ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
603-
needs: [build_and_package_ios, build_and_package_android, package_desktop, log_inputs]
609+
needs: [build_and_package_ios_tvos, build_and_package_android, package_desktop, log_inputs]
604610
steps:
605611
- name: fetch SDK
606612
uses: actions/[email protected]

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ if(FIREBASE_CPP_BUILD_TESTS OR FIREBASE_CPP_BUILD_STUB_TESTS)
118118
endif()
119119

120120
if (PLATFORM STREQUAL TVOS OR PLATFORM STREQUAL SIMULATOR_TVOS)
121-
# AdMob, FDL are not supported on tvOS.
121+
# Analytics, AdMob, FDL are not supported on tvOS.
122122
set(FIREBASE_INCLUDE_ADMOB OFF)
123+
set(FIREBASE_INCLUDE_ANALYTICS OFF)
123124
set(FIREBASE_INCLUDE_DYNAMIC_LINKS OFF)
124125
endif()
125126

firestore/integration_test_internal/src/bundle_test.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,12 @@ TEST_F(BundleTest, CanDeleteFirestoreFromProgressUpdate) {
177177
progresses.push_back(progress);
178178
// Delete firestore before the final progress.
179179
if (progresses.size() == 3) {
180+
// Save `db_deleted` to a local variable because this lambda gets
181+
// deleted by the call to `DeleteFirestore()` below, and therefore it
182+
// is undefined behavior to access any captured variables thereafter.
183+
auto& db_deleted_local = db_deleted;
180184
DeleteFirestore(db);
181-
db_deleted.set_value();
185+
db_deleted_local.set_value();
182186
}
183187
});
184188

release_build_files/readme.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,12 @@ code.
569569

570570
### 8.3.0
571571
- Changes
572+
- General: This release adds tvOS C++ libraries that wrap the community
573+
supported Firebase tvOS SDK. `libs/tvos` contains tvOS specific
574+
libraries and the `xcframeworks` directory now includes support for both
575+
iOS and tvOS. The following products are currently included for tvOS:
576+
Auth, Database, Firestore, Functions, Installations, Messaging,
577+
Remote Config, Storage.
572578
- Firestore: Removed the deprecated
573579
`Firestore::RunTransaction(TransactionFunction*)` function. Please use
574580
the overload that takes a `std::function` argument instead.

scripts/gha/build_ios_tvos.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,17 +558,18 @@ def main():
558558

559559
# Since we renamed firebase_app.framework to firebase.framework we add that
560560
# to our list of targets.
561-
supported_targets.add('firebase')
561+
targets = set(args.target)
562+
targets.add('firebase')
562563

563564
# if we built for all architectures build universal framework as well.
564-
build_universal_framework(frameworks_path, supported_targets)
565+
build_universal_framework(frameworks_path, targets)
565566

566567
# Build xcframeworks
567568
xcframeworks_path = os.path.join(args.build_dir, 'xcframeworks')
568569
template_info_plist_path = os.path.join(args.source_dir, 'build_scripts',
569570
'tvos', 'Info_ios_and_tvos.plist')
570571
build_xcframeworks(frameworks_path, xcframeworks_path,
571-
template_info_plist_path, supported_targets)
572+
template_info_plist_path, targets)
572573

573574

574575
def parse_cmdline_args():

scripts/gha/trigger_workflow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@ def main():
5454
json_params = {}
5555
for param in args.param:
5656
json_params[param[0]] = param[1]
57-
json_params["platforms"] = "Desktop,Android,iOS"
5857
json_text = '{"ref":%s,"inputs":%s}' % (json.dumps(args.branch), json.dumps(json_params))
5958
if args.verbose or args.dryrun:
6059
print('request_url: %s' % request_url)
6160
print('request_body: %s' % json_text)
6261
if args.dryrun:
6362
return(0)
64-
63+
6564
print('Sending request to GitHub API...')
6665
run_output = subprocess.check_output([args.curl,
6766
'-s', '-o', '-', '-w', '\nHTTP status %{http_code}\n',
@@ -104,7 +103,7 @@ def main():
104103
workflow['head_branch'] == args.branch):
105104
run_id = workflow['id']
106105
break
107-
106+
108107
if run_id:
109108
workflow_url = 'https://github.com/firebase/firebase-cpp-sdk/actions/runs/%s' % (run_id)
110109
else:

0 commit comments

Comments
 (0)