Skip to content

Commit a81e9b6

Browse files
feat: register library version for auth service usage
1 parent ad1f667 commit a81e9b6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
@preconcurrency import FirebaseAuth
16+
import FirebaseCore
1617
import SwiftUI
1718

1819
public protocol AuthProviderSwift {
@@ -93,6 +94,7 @@ public final class AuthService {
9394
self.configuration = configuration
9495
string = StringUtils(bundle: configuration.customStringsBundle ?? Bundle.module)
9596
listenerManager = AuthListenerManager(auth: auth, authEnvironment: self)
97+
FirebaseApp.registerLibrary("firebase-ui-ios", withVersion: FirebaseAuthSwiftUIVersion.version)
9698
}
9799

98100
@ObservationIgnored @AppStorage("email-link") public var emailLink: String?
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public enum FirebaseAuthSwiftUIVersion {
2+
// TODO - should we create a script that bumps this version number, commits and pushes a new tag?
3+
public static let version = "15.1.0"
4+
}

0 commit comments

Comments
 (0)