Skip to content

Commit

Permalink
fix: add missing check for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Apr 19, 2023
1 parent cbf2a05 commit 4361192
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,16 @@ extension CustomError: LocalizedError {
return String((0..<length).map { _ in letters.randomElement()! })
}

internal static var isDevEnvironment: Bool {
#if DEBUG
return true
#else
return false
#endif
}

private func isProd() -> Bool {
return !self.isAppStoreReceiptSandbox() && !self.hasEmbeddedMobileProvision()
return !self.isDevEnvironment && !self.isAppStoreReceiptSandbox() && !self.hasEmbeddedMobileProvision()
}

// MARK: Private
Expand Down

0 comments on commit 4361192

Please sign in to comment.