Skip to content

Commit 1eaa088

Browse files
committed
Automated g4 rollback of changelist 275555534.
*** Reason for rollback *** The instance id desktop impl internally is hidden behind the EAP flag, and the correct usage of the library is to link against it, and use that flag to disable/enable it. As such, hiding it behind another flag in CMake causes problems, as the potential users of the iid desktop impl always try using it, and assume it will handle being enabled internally. *** Original change description *** Hide the instance id desktop implementation behind a feature flag in open source *** PiperOrigin-RevId: 280665206
1 parent 5c7f173 commit 1eaa088

File tree

8 files changed

+7
-16
lines changed

8 files changed

+7
-16
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ 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_INSTANCE_ID_DESKTOP
48-
"Use the experimental Instance Id desktop implementation." OFF)
4947

5048
if(WIN32)
5149
# Turn on the use of the __cplusplus compiler define that is used to detect if

app/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,7 @@ endif()
382382
if (NOT ANDROID AND NOT IOS)
383383
# Add the rest subdirectory, so that other libraries can access it
384384
add_subdirectory(rest)
385-
if (FIREBASE_INSTANCE_ID_DESKTOP)
386-
add_subdirectory(instance_id)
387-
endif()
385+
add_subdirectory(instance_id)
388386
endif()
389387

390388
if(FIREBASE_CPP_BUILD_TESTS)

instance_id/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else()
5656
"${desktop_SRCS}")
5757
endif()
5858

59-
if(ANDROID OR IOS OR use_stub OR NOT FIREBASE_INSTANCE_ID_DESKTOP)
59+
if(ANDROID OR IOS OR use_stub)
6060
set(additional_link_LIB)
6161
else()
6262
set(additional_link_LIB

remote_config/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,9 @@ else()
8282
${FLATBUFFERS_SOURCE_DIR}/include
8383
${NANOPB_INCLUDE_DIRS}
8484
${PROJECT_BINARY_DIR}/..)
85-
if(FIREBASE_INSTANCE_ID_DESKTOP)
86-
set(iid_desktop firebase_instance_id_desktop_impl)
87-
else()
88-
set(iid_desktop)
89-
endif()
9085
set(additional_link_LIB
9186
firebase_rest_lib
92-
${iid_desktop}
87+
firebase_instance_id_desktop_impl
9388
flatbuffers)
9489
endif()
9590

test_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd linux_build
2727

2828
# Configure cmake with tests enabled
2929
# and disable use of libsecret due to not working on kokoro builders
30-
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON
30+
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
3131

3232
# Build the SDK and the tests
3333
cmake --build .

test_mac_x64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd mac_x64_build
2727

2828
# Configure cmake with tests enabled
2929
# and disable use of libsecret due to not working on kokoro builders
30-
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON
30+
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_FORCE_FAKE_SECURE_STORAGE=ON
3131

3232
# Build the SDK and the tests
3333
cmake --build .

test_windows_x32.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ EXIT /B %status%
4747
mkdir windows_%~1
4848
pushd windows_%~1
4949

50-
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON -DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR="%~2" %~3
50+
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR="%~2" %~3
5151

5252
:: Check for errors, and return if there were any
5353
if %errorlevel% neq 0 (

test_windows_x64.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ EXIT /B %status%
4747
mkdir windows_%~1
4848
pushd windows_%~1
4949

50-
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DFIREBASE_INSTANCE_ID_DESKTOP=ON -DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR="%~2" %~3
50+
cmake .. -DFIREBASE_CPP_BUILD_TESTS=ON -DPROTOBUF_SRC_ROOT_FOLDER=%PROTOBUF_SRC_ROOT_FOLDER% -DOPENSSL_ROOT_DIR="%~2" %~3
5151

5252
:: Check for errors, and return if there were any
5353
if %errorlevel% neq 0 (

0 commit comments

Comments
 (0)