Skip to content

Commit 2bbb9a7

Browse files
committed
minor fixes
1 parent 713cacf commit 2bbb9a7

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

remote_config/integration_test/src/integration_test.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,12 @@ TEST_F(FirebaseRemoteConfigTest, TestAddOnConfigUpdateListener) {
200200

201201
EXPECT_TRUE(WaitForCompletion(SetDefaults(rc_), "SetDefaults"));
202202

203-
#if FIREBASE_PLATFORM_IOS
204-
203+
// Realtime RC is not yet supported on desktop.
204+
#if FIREBASE_PLATFORM_DESKTOP
205+
EXPECT_EQ(nullptr, rc_->AddOnConfigUpdateListener(
206+
[](firebase::remote_config::ConfigUpdate&&,
207+
firebase::remote_config::RemoteConfigError) {}));
208+
#else
205209
auto config_update_promise = std::make_shared<std::promise<void>>();
206210

207211
firebase::remote_config::ConfigUpdateListenerRegistration* registration =

remote_config/remote_config_resources/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050

5151
dependencies {
5252
implementation platform('com.google.firebase:firebase-bom:31.2.0')
53-
implementation 'com.google.firebase:firebase-remote_config'
53+
implementation 'com.google.firebase:firebase-config'
5454
}
5555

5656
afterEvaluate {

remote_config/src/android/remote_config_android.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,8 @@ RemoteConfigInternal::AddOnConfigUpdateListener(
11791179
ConfigUpdateListenerRegistration *registration_wrapper =
11801180
new ConfigUpdateListenerRegistration([j_registration]() {
11811181
// TODO almostmatt - get threadsafe jni env. see appcheck.
1182+
// alternatively, define a new type for android ConfigUpdateListenerRegistration
1183+
// and give it the pointer and let it handle global ref in its destructor
11821184
env->CallVoidMethod(j_registration,
11831185
config_update_listener_registration::GetMethodId(
11841186
config_update_listener_registration::kRemove));

0 commit comments

Comments
 (0)