Structure
FirebaseAppID
A parsed and validated Firebase app ID.
struct FirebaseAppIDOverview
Firebase app IDs have the shape {version}:{projectNumber}:{platform}:{hash}. The App Distribution API addresses apps by resource name rather than raw ID, and the project number needed to build that name is embedded in the ID itself, so no separate project configuration is required.
Usage
let appID = try FirebaseAppID("1:1234567890:ios:abc123")
appID.platform // .ios
appID.resourceName // "projects/1234567890/apps/1:1234567890:ios:abc123"Topics
Initializers
init(String) throwsParses and validates a Firebase app ID.
Instance Properties
let platform: FirebaseAppPlatformThe platform parsed from the third segment.
let projectNumber: StringThe Firebase project number parsed from the second segment.
let rawValue: StringThe raw app ID exactly as supplied.
var resourceName: StringThe API resource name:
projects/{projectNumber}/apps/{appID}.
Default Implementations
Relationships
Conforms To
Swift.EquatableSwift.SendableSwift.SendableMetatype