firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

RC Dynamic property wrapper feature

Open charlotteliang opened this issue 3 years ago • 5 comments

This feature is built on top of real time config so please just look at the RemoteConfigSwift folder for the code change by selecting FirebaseRemoteConfigSwift on the top left nav bar.

Also add a SwiftUI Sample test app to visualize the API experience.

charlotteliang avatar Jul 29 '22 01:07 charlotteliang

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

Generated by :no_entry_sign: Danger

google-oss-bot avatar Jul 29 '22 01:07 google-oss-bot

Size Report 1

Affected Products

  • FirebaseRemoteConfig

    TypeBase (26075af)Merge (be24676)Diff
    CocoaPods752 kB769 kB+16.9 kB (+2.2%)

Test Logs

google-oss-bot avatar Jul 29 '22 01:07 google-oss-bot

Coverage Report 1

Affected Products

  • FirebaseRemoteConfig-iOS-FirebaseRemoteConfig.framework

    Overall coverage changed from 79.58% (26075af) to 72.25% (be24676) by -7.33%.

    FilenameBase (26075af)Merge (be24676)Diff
    FIRRemoteConfig.m83.61%83.78%+0.17%
    RCNConfigExperiment.m92.25%90.70%-1.55%
    RCNConfigFetch.m79.52%79.55%+0.03%
    RCNConfigRealtime.m?26.11%?

Test Logs

google-oss-bot avatar Jul 29 '22 01:07 google-oss-bot

Please change the base branch so the PR only shows the property wrapper changes.

paulb777 avatar Aug 04 '22 02:08 paulb777

On idea to eliminate the force unwraps would be to have type specific property wrappers like RemoteConfigPropertyInt, RemoteConfigPropertyString, RemoteConfigPropertyArray, RemoteConfigPropertyStruct, etc.

Then they could all use guard try? ... else set default value except for RemoteConfigPropertyStruct which would need the property wrapper to take a default value parameter.

paulb777 avatar Aug 24 '22 13:08 paulb777

@chliangGoogle Can this PR be closed? It was done elsewhere, right?

paulb777 avatar Oct 08 '22 00:10 paulb777