File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -717,7 +717,7 @@ jobs:
717
717
run : echo "CLOUDSDK_PYTHON=${{env.pythonLocation}}\python.exe" >> $GITHUB_ENV
718
718
- name : Install Cloud SDK
719
719
if : ${{ !cancelled() }}
720
- uses : GoogleCloudPlatform/ github-actions/setup-gcloud@master
720
+ uses : google- github-actions/setup-gcloud@master
721
721
- name : Upload Desktop Artifacts to GCS
722
722
if : ${{ !cancelled() }}
723
723
run : |
Original file line number Diff line number Diff line change @@ -128,6 +128,13 @@ jobs:
128
128
pip install -r scripts/gha/requirements.txt
129
129
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
130
130
131
+ - name : Install OpenSSL (windows)
132
+ if : matrix.target_platform == 'Desktop' &&
133
+ matrix.ssl_variant == 'openssl' &&
134
+ startsWith(matrix.os, 'windows')
135
+ run : |
136
+ choco install openssl -r
137
+
131
138
- name : Build integration tests
132
139
shell : bash
133
140
run : |
@@ -150,7 +157,7 @@ jobs:
150
157
run : echo "CLOUDSDK_PYTHON=${{env.pythonLocation}}\python.exe" >> $GITHUB_ENV
151
158
- name : Install Cloud SDK
152
159
if : ${{ !cancelled() }}
153
- uses : GoogleCloudPlatform/ github-actions/setup-gcloud@master
160
+ uses : google- github-actions/setup-gcloud@master
154
161
- name : Upload Desktop Artifacts to GCS
155
162
if : matrix.target_platform == 'Desktop' && !cancelled()
156
163
run : |
Original file line number Diff line number Diff line change @@ -298,6 +298,19 @@ else()
298
298
"${app_desktop_HDRS} " )
299
299
endif ()
300
300
301
+ if (ANDROID OR IOS )
302
+ # If building for Android or iOS, include the Flatbuffers source files directly.
303
+ set (app_flatbuffers_srcs
304
+ ${FLATBUFFERS_SOURCE_DIR} /src/idl_parser.cpp
305
+ ${FLATBUFFERS_SOURCE_DIR} /src/idl_gen_text.cpp
306
+ ${FLATBUFFERS_SOURCE_DIR} /src/reflection.cpp
307
+ ${FLATBUFFERS_SOURCE_DIR} /src/util.cpp )
308
+ set (app_flatbuffers_lib )
309
+ else ()
310
+ set (app_flatbuffers_srcs )
311
+ set (app_flatbuffers_lib flatbuffers )
312
+ endif ()
313
+
301
314
add_library (firebase_app STATIC
302
315
${log_SRCS}
303
316
${log_HDRS}
@@ -311,7 +324,8 @@ add_library(firebase_app STATIC
311
324
memory/atomic.h
312
325
meta/move.h
313
326
memory/unique_ptr.h
314
- memory/shared_ptr.h )
327
+ memory/shared_ptr.h
328
+ ${app_flatbuffers_srcs} )
315
329
316
330
set_property (TARGET firebase_app PROPERTY FOLDER "Firebase Cpp" )
317
331
@@ -339,7 +353,7 @@ target_compile_definitions(firebase_app
339
353
# firebase_app has a dependency on flatbuffers, which needs to be included.
340
354
target_link_libraries (firebase_app
341
355
PRIVATE
342
- flatbuffers
356
+ ${app_flatbuffers_lib}
343
357
${LIBSECRET_LIBRARIES}
344
358
)
345
359
# Automatically include headers that might not be declared.
Original file line number Diff line number Diff line change @@ -53,5 +53,9 @@ for product in ${product_list[*]}; do
53
53
done
54
54
# Copy the top-level Proguard files in as well.
55
55
cp -f " ${sourcepath} /${product} /build/Release/${product} .pro" " ${destpath} /libs/android/"
56
+ # Copy the special messaging aar file, but only if messaging was built.
57
+ if [[ " ${product} " == " messaging" ]]; then
58
+ cp -f " ${sourcepath} /messaging/messaging_java/build/outputs/aar/messaging_java-release.aar" " ${destpath} /libs/android/firebase_messaging_cpp.aar"
59
+ fi
56
60
done
57
61
cd " ${origpath} "
You can’t perform that action at this time.
0 commit comments