Skip to content

Commit

Permalink
Update Bundle+Ext.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Jul 22, 2023
1 parent b0f009a commit f681e77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/UpgradeAlert/ext/Bundle+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ extension Bundle {
* - Note: Another example: https://stackoverflow.com/a/59047187/5389500
* - Note: Might have become broken in iOS 13
* - Note: If it fails there might be a fix here: https://stackoverflow.com/a/52232267/5389500
* - Note: seems like this can determine if an app is beta: https://developer.apple.com/documentation/appstoreconnectapi/list_all_builds_of_an_app
* - Fixme: ⚠️️ Make this a var
* - Note: Seems like this can determine if an app is beta: https://developer.apple.com/documentation/appstoreconnectapi/list_all_builds_of_an_app
* - Fixme: ⚠️️ Here is code that checks if something is testflight: https://gist.github.com/lukaskubanek/cbfcab29c0c93e0e9e0a16ab09586996
*/
public static var isBeta: Bool { // was named: isSimulatorOrTestFlight
guard let path = Bundle.main.appStoreReceiptURL?.path else {
Expand All @@ -28,4 +28,3 @@ extension Bundle {
return isSimulator || isTestFlight
}
}

0 comments on commit f681e77

Please sign in to comment.