Skip to content
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

Importing FirebaseStorage or FirebaseFunctions publicizes internal FirebaseCore APIs #9884

Closed
ryanwilson opened this issue Jun 7, 2022 · 1 comment

Comments

@ryanwilson
Copy link
Member

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 13, 14
  • Firebase SDK version: latest
  • Installation method: Swift Package Manager, haven't tested CocoaPods yet
  • Firebase Component: Functions, Storage, Core
  • Target platform(s): All

[REQUIRED] Step 2: Describe the problem

Importing FirebaseStorage or FirebaseFunctions publicizes internal FirebaseCore APIs.

Steps to reproduce:

  1. Add Firebase via SwiftPM (either Functions or Storage)
  2. Add the sample code below.
  3. Compile, which should fail, but it does not.

Relevant Code:

Commenting out import FirebaseFunctions causes the build to fail, as expected.

import SwiftUI
import FirebaseCore
import FirebaseFunctions

@main
struct Xcode14B1TestingApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
            .onAppear {
              // Should not compile, but does.
              FirebaseApp.isDefaultAppConfigured()
              FirebaseApp.resetApps()
            }
        }
    }
}
@ryanwilson
Copy link
Member Author

Fixed in #9887

@firebase firebase locked and limited conversation to collaborators Jul 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant