Skip to content

Conversation

@paulb777
Copy link
Member

@paulb777 paulb777 commented Nov 26, 2024

RCNConfigContent.[mh] -> ConfigContent.swift

Also, discovered that the multi-namespace testing in RCNRemoteConfigTest.m is thread unsafe - the updates and reads of _fetchConfig can collide with another namespace.

Working around for now by disabling multi-namespace testing. This seems to be the result of properties being atomic in ObjC but not in Swift. Adding an NSLock around _fetchConfig reads and writes doesn't work - so I'll defer this and merge it here.

@google-oss-bot
Copy link

1 Warning
⚠️ Did you forget to add a changelog entry? (Add #no-changelog to the PR description to silence this warning.)

Generated by 🚫 Danger

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2024

Apple API Diff Report

Commit: 7f547a3
Last updated: Tue Nov 26 13:18 PST 2024
View workflow logs & download artifacts


FirebaseRemoteConfig

Classes

FIRRemoteConfig
[ADDED] -initWithAppName:FIROptions:namespace:DBManager:configContent:analytics:
Swift:
+  init ( appName : String , firOptions options : FIROptions , namespace FIRNamespace : String , dbManager DBManager : RCNConfigDBManager , configContent : RCNConfigContent , analytics : ( any FIRAnalyticsInterop )?)
Objective-C:
+  - ( nonnull instancetype ) initWithAppName :( nonnull NSString * ) appName FIROptions :( nonnull FIROptions * ) options namespace :( nonnull NSString * ) FIRNamespace DBManager :( nonnull RCNConfigDBManager * ) DBManager configContent :( nonnull RCNConfigContent * ) configContent analytics :( nullable id < FIRAnalyticsInterop > ) analytics ;
[ADDED] -initWithAppName:FIROptions:namespace:DBManager:configContent:userDefaults:analytics:
Swift:
+  init ( appName : String , firOptions options : FIROptions , namespace FIRNamespace : String , dbManager DBManager : RCNConfigDBManager , configContent : RCNConfigContent , userDefaults : UserDefaults ?, analytics : ( any FIRAnalyticsInterop )?)
Objective-C:
+  - ( instancetype ) initWithAppName :( NSString * ) appName FIROptions :( FIROptions * ) options namespace :( NSString * ) FIRNamespace DBManager :( RCNConfigDBManager * ) DBManager configContent :( RCNConfigContent * ) configContent userDefaults :( nullable NSUserDefaults * ) userDefaults analytics :( nullable id < FIRAnalyticsInterop > ) analytics ;
[ADDED] settings
Swift:
+  var settings : RCNConfigSettings { get }
Objective-C:
+  @property ( nonatomic , readonly , strong ) RCNConfigSettings * settings

@paulb777 paulb777 merged commit 4c1ca6d into rc-swift Nov 27, 2024
32 checks passed
@paulb777 paulb777 deleted the pb-config-content branch November 27, 2024 00:28
paulb777 added a commit that referenced this pull request Dec 11, 2024
paulb777 added a commit that referenced this pull request Dec 11, 2024
@firebase firebase locked and limited conversation to collaborators Dec 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants