-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Config] Consolidate Config and ConfigSwift #11808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f4bdf6b
[Config] Merge RemoteConfig and its Swift extension in a non-breaking…
ncooke3 a2beb9c
[Config] Refactor Swift sources out of FirebaseRemoteConfigSwift (#11…
ncooke3 0681681
[Config] Lock down no-op API's availability for Swift clients (#11764)
ncooke3 e3619bb
[ConfigSwift] Only re-export the API that used to be in ConfigSwift (…
ncooke3 c410dff
[Config] Update RemoteConfig and RemoteConfigSwift CHANGELOGs (#11749)
ncooke3 709cdd5
Resolve TODO and stub out warning
ncooke3 323562a
Update changelog
ncooke3 3f92582
Add TODO to update changelog entry if warning is enabled
ncooke3 002c3a6
Minimize dependency versioning in podspec
ncooke3 f074877
Add note in deprecation warning about '@testable' imports
ncooke3 204f84a
Add note in release note about '@testable' imports
ncooke3 5a0f6aa
Update release note to reflect plan to deprecate
ncooke3 8f45cfb
Enable deprecation warning
ncooke3 a60c4a1
Update dependency version in podspec
ncooke3 4ab1dbd
Allow warnings since RCSwift is deprecated
ncooke3 51ae256
Resolve TODO
ncooke3 187aaf1
Make warning message a non-multiline string
ncooke3 14fa489
Fix SPM CI
ncooke3 5254025
Update deprecation/documentation messages
ncooke3 382345f
Update dependency version in podspec
ncooke3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#if SWIFT_PACKAGE | ||
@_exported import FirebaseRemoteConfigInternal | ||
|
||
// This is a trick to force generate a `FirebaseRemoteConfig-Swift.h` header | ||
// that re-exports `FirebaseRemoteConfigInternal` for Objective-C clients. It | ||
// is important for the below code to reference a Remote Config symbol defined | ||
// in Objective-C as that will import the symbol's module | ||
// (`FirebaseRemoteConfigInternal`) in the generated header. This allows | ||
// Objective-C clients to import Remote Config's Objective-C API using | ||
// `@import FirebaseRemoteConfig;`. This API is not needed for Swift clients | ||
// and is therefore unavailable in a Swift context. | ||
@available(*, unavailable) | ||
@objc public extension RemoteConfig { | ||
static var __no_op: () -> Void { {} } | ||
} | ||
#endif // SWIFT_PACKAGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
FirebaseRemoteConfigSwift/Sources/FirebaseRemoteConfigSwift.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#warning( | ||
"All of the public API from `FirebaseRemoteConfigSwift` can now be accessed through the `FirebaseRemoteConfig` module. Therefore, the `FirebaseRemoteConfigSwift` module is deprecated and will be removed in the future. See https://firebase.google.com/docs/ios/swift-migration for migration instructions." | ||
) | ||
|
||
// The `@_exported` is needed to prevent breaking clients that are using | ||
// types prefixed with the `FirebaseRemoteConfigSwift` module name (e.g. | ||
// `FirebaseRemoteConfigSwift.RemoteConfigValueCodableError`). | ||
@_exported import enum FirebaseRemoteConfig.RemoteConfigValueCodableError | ||
@_exported import enum FirebaseRemoteConfig.RemoteConfigCodableError | ||
@_exported import struct FirebaseRemoteConfig.RemoteConfigProperty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.