Skip to content

Commit fb49fd5

Browse files
committed
Merge remote-tracking branch 'origin/master' into ghm
2 parents 1c2017e + 8f2716f commit fb49fd5

File tree

258 files changed

+23040
-395
lines changed

Some content is hidden

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

258 files changed

+23040
-395
lines changed

Android/firebase_dependencies.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ def firebaseDependenciesMap = [
2020
'admob' : ['com.google.firebase:firebase-ads:18.3.0',
2121
'com.google.android.gms:play-services-measurement-sdk-api:17.2.1'],
2222
'analytics' : ['com.google.firebase:firebase-analytics:17.2.1'],
23-
'auth' : ['com.google.firebase:firebase-auth:19.1.0'],
23+
'auth' : ['com.google.firebase:firebase-auth:19.2.0'],
2424
'database' : ['com.google.firebase:firebase-database:19.2.0'],
2525
'dynamic_links' : ['com.google.firebase:firebase-dynamic-links:19.0.0'],
2626
'functions' : ['com.google.firebase:firebase-functions:19.0.1'],
27-
'instance_id' : ['com.google.firebase:firebase-iid:20.0.1'],
27+
'instance_id' : ['com.google.firebase:firebase-iid:20.0.2'],
2828
'invites' : ['com.google.firebase:firebase-invites:17.0.0'],
2929
// Messaging has an additional local dependency to include.
30-
'messaging' : ['com.google.firebase:firebase-messaging:20.0.1',
30+
'messaging' : ['com.google.firebase:firebase-messaging:20.1.0',
3131
'firebase_cpp_sdk.messaging:messaging_java'],
32-
'performance' : ['com.google.firebase:firebase-perf:19.0.2'],
33-
'remote_config' : ['com.google.firebase:firebase-config:19.0.3'],
32+
'performance' : ['com.google.firebase:firebase-perf:19.0.4'],
33+
'remote_config' : ['com.google.firebase:firebase-config:19.1.0'],
3434
'storage' : ['com.google.firebase:firebase-storage:19.1.0']
3535
]
3636

CMakeLists.txt

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,20 @@ option(FIREBASE_CPP_BUILD_TESTS
4444
"Enable the Firebase C++ Build Tests." OFF)
4545
option(FIREBASE_FORCE_FAKE_SECURE_STORAGE
4646
"Disable use of platform secret store and use fake impl." OFF)
47+
option(FIREBASE_CPP_BUILD_PACKAGE
48+
"Bundle the Firebase C++ libraries into a zip file." OFF)
4749

48-
if(WIN32)
49-
# Turn on the use of the __cplusplus compiler define that is used to detect if
50-
# move operators are supported
51-
add_definitions("/Zc:__cplusplus")
52-
endif()
50+
# Define this directory to be the root of the C++ SDK, which the libraries can
51+
# then refer to.
52+
set(FIREBASE_CPP_SDK_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR})
53+
54+
project (firebase NONE)
55+
enable_language(C)
56+
enable_language(CXX)
5357

5458
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_CURRENT_LIST_DIR}/cmake)
5559
include(external_rules)
60+
include(cpp_pack)
5661

5762
if(FIREBASE_CPP_BUILD_TESTS)
5863
enable_testing()
@@ -74,10 +79,6 @@ set(FIREBASE_GEN_FILE_DIR ${CMAKE_BINARY_DIR}/generated)
7479
# Directory for any shared scripts.
7580
set(FIREBASE_SCRIPT_DIR ${CMAKE_CURRENT_LIST_DIR})
7681

77-
project (firebase NONE)
78-
enable_language(C)
79-
enable_language(CXX)
80-
8182
if (FIREBASE_CPP_BUILD_TESTS AND MSVC)
8283
# Googletest requires MSVC to compile with the static version of the runtime
8384
# library, so define the appropriate runtime flag, before adding libraries.
@@ -94,7 +95,9 @@ set(FIREBASE_INSTALL_DIR ${PROJECT_BINARY_DIR}/opt)
9495
set(FIREBASE_DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/downloads)
9596

9697
# Run the CMake build logic that will download all the external dependencies.
98+
message(STATUS "Downloading external project dependencies...")
9799
download_external_sources()
100+
message(STATUS "Download complete.")
98101

99102
# Disable the Flatbuffer build tests, install and flathash
100103
set(FLATBUFFERS_BUILD_TESTS OFF CACHE BOOL "")
@@ -264,10 +267,6 @@ else()
264267
set(FIREBASE_FLATBUFFERS_DEPENDENCIES "")
265268
endif()
266269

267-
# Define this directory to be the root of the C++ SDK, which the libraries can
268-
# then refer to.
269-
set(FIREBASE_CPP_SDK_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR})
270-
271270
include(binary_to_array)
272271
include(firebase_cpp_gradle)
273272

@@ -311,3 +310,10 @@ endif()
311310
if (FIREBASE_INCLUDE_STORAGE)
312311
add_subdirectory(storage)
313312
endif()
313+
314+
# Place the CMake and gradle build files provided to easily link against the
315+
# prebuilt libraries at the root of the package.
316+
cpp_pack_dir(
317+
"${CMAKE_CURRENT_LIST_DIR}/release_build_files/"
318+
.
319+
)

admob/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,6 @@ elseif(IOS)
120120
# accomplish that.
121121
symlink_pod_headers(firebase_admob Google-Mobile-Ads-SDK GoogleMobileAds)
122122
endif()
123+
124+
cpp_pack_library(firebase_admob "")
125+
cpp_pack_public_headers()

admob/src/android/banner_view_internal_android.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ BoundingBox BannerViewInternalAndroid::GetBoundingBox() const {
188188
// x-coordinate, and y-coordinate.
189189
int count = static_cast<int>(env->GetArrayLength(jni_int_array));
190190
assert(count == 4);
191+
(void)count;
191192

192193
jint* bounding_box_elements =
193194
env->GetIntArrayElements(jni_int_array, nullptr);

admob/src/android/native_express_ad_view_internal_android.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ BoundingBox NativeExpressAdViewInternalAndroid::GetBoundingBox() const {
198198
// x-coordinate, and y-coordinate.
199199
int count = static_cast<int>(env->GetArrayLength(jni_int_array));
200200
assert(count == 4);
201+
(void)count;
201202

202203
jint* bounding_box_elements =
203204
env->GetIntArrayElements(jni_int_array, nullptr);

analytics/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,6 @@ if(FIREBASE_CPP_BUILD_TESTS)
133133
# Add the tests subdirectory
134134
add_subdirectory(tests)
135135
endif()
136+
137+
cpp_pack_library(firebase_analytics "")
138+
cpp_pack_public_headers()

app/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,3 +365,9 @@ if(FIREBASE_CPP_BUILD_TESTS)
365365
# Add the tests subdirectory
366366
add_subdirectory(tests)
367367
endif()
368+
369+
cpp_pack_library(firebase_app "")
370+
cpp_pack_public_headers()
371+
if (NOT ANDROID AND NOT IOS)
372+
cpp_pack_library(flatbuffers "deps/app/external")
373+
endif()

app/instance_id/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ target_compile_definitions(firebase_instance_id_desktop_impl
5858
PRIVATE
5959
-DINTERNAL_EXPERIMENTAL=1
6060
)
61+
62+
cpp_pack_library(firebase_instance_id_desktop_impl "deps/app")

app/rest/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,9 @@ if(FIREBASE_CPP_BUILD_TESTS)
126126
# Add the tests subdirectory
127127
add_subdirectory(tests)
128128
endif()
129+
130+
cpp_pack_library(firebase_rest_lib "deps/app")
131+
cpp_pack_library(libcurl "deps/app/external")
132+
cpp_pack_library(zlibstatic "deps/app/external")
133+
cpp_pack_library_file(${OPENSSL_SSL_LIBRARY} "deps/app/external")
134+
cpp_pack_library_file(${OPENSSL_CRYPTO_LIBRARY} "deps/app/external")

app/src/include/firebase/app.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -54,40 +54,6 @@ class FunctionRegistry;
5454
namespace internal {
5555
class AppInternal;
5656
} // namespace internal
57-
namespace auth {
58-
class Auth;
59-
} // namespace auth
60-
namespace crashlytics {
61-
namespace internal {
62-
class CrashlyticsInternal;
63-
} // namespace internal
64-
} // namespace crashlytics
65-
namespace database {
66-
namespace internal {
67-
class DatabaseInternal;
68-
} // namespace internal
69-
} // namespace database
70-
#ifdef INTERNAL_EXPERIMENTAL
71-
namespace firestore {
72-
class FirestoreInternal;
73-
} // namespace firestore
74-
#endif // INTERNAL_EXPERIMENTAL
75-
namespace functions {
76-
namespace internal {
77-
class FunctionsInternal;
78-
} // namespace internal
79-
} // namespace functions
80-
namespace internal {
81-
class InstanceId;
82-
} // namespace internal
83-
namespace instance_id {
84-
class InstanceId;
85-
} // namespace instance_id
86-
namespace storage {
87-
namespace internal {
88-
class StorageInternal;
89-
} // namespace internal
90-
} // namespace storage
9157

9258
/// @brief Reports whether a Firebase module initialized successfully.
9359
enum InitResult {

0 commit comments

Comments
 (0)