Skip to content

Commit

Permalink
馃敆 EasyLink App Store redirect option
Browse files Browse the repository at this point in the history
  • Loading branch information
benlmyers committed Feb 7, 2023
1 parent ed3f4d4 commit 6b9b3e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file not shown.
4 changes: 4 additions & 0 deletions Sources/EasyFirebase/Services/Dynamic Links/EasyLink.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public struct EasyLink {
public static var appStoreID: String?
public static var minimumAppVersion: String?
public static var backupURL: URL?
public static var redirectToAppStore: Bool = true

// MARK: - Public Properties

Expand All @@ -44,6 +45,9 @@ public struct EasyLink {
if let appStoreID = Self.appStoreID {
builder.queryItems?.append(.init(name: "isi", value: appStoreID))
}
if !Self.redirectToAppStore, let backupURL = Self.backupURL {
builder.queryItems?.append(.init(name: "ifl", value: backupURL.absoluteString))
}
if let minimumAppVersion = Self.minimumAppVersion {
builder.queryItems?.append(.init(name: "imv", value: minimumAppVersion))
}
Expand Down

0 comments on commit 6b9b3e3

Please sign in to comment.