diff --git a/Bubble.xcodeproj/project.pbxproj b/Bubble.xcodeproj/project.pbxproj index 0968655..d408440 100644 --- a/Bubble.xcodeproj/project.pbxproj +++ b/Bubble.xcodeproj/project.pbxproj @@ -1129,7 +1129,7 @@ ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; CODE_SIGN_ENTITLEMENTS = BubbleWidgets/BubbleWidgetsExtension.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 292; + CURRENT_PROJECT_VERSION = 304; DEVELOPMENT_TEAM = HB5P3BML86; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = BubbleWidgets/Info.plist; @@ -1164,7 +1164,7 @@ ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; CODE_SIGN_ENTITLEMENTS = BubbleWidgets/BubbleWidgetsExtension.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 292; + CURRENT_PROJECT_VERSION = 304; DEVELOPMENT_TEAM = HB5P3BML86; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = BubbleWidgets/Info.plist; @@ -1327,9 +1327,10 @@ ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CODE_SIGN_ENTITLEMENTS = Bubble/Bubble.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 292; + CURRENT_PROJECT_VERSION = 304; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = HB5P3BML86; + ENABLE_MODULE_VERIFIER = NO; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Bubble/Info.plist; @@ -1369,9 +1370,10 @@ ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CODE_SIGN_ENTITLEMENTS = Bubble/Bubble.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 292; + CURRENT_PROJECT_VERSION = 304; DEVELOPMENT_ASSET_PATHS = ""; DEVELOPMENT_TEAM = HB5P3BML86; + ENABLE_MODULE_VERIFIER = NO; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Bubble/Info.plist; @@ -1405,7 +1407,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 292; + CURRENT_PROJECT_VERSION = 304; DEVELOPMENT_TEAM = HB5P3BML86; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = AuthService/Info.plist; @@ -1435,7 +1437,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 292; + CURRENT_PROJECT_VERSION = 304; DEVELOPMENT_TEAM = HB5P3BML86; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = AuthService/Info.plist; diff --git a/Bubble/AppDelegate.swift b/Bubble/AppDelegate.swift index 2ad4fe3..d860e56 100644 --- a/Bubble/AppDelegate.swift +++ b/Bubble/AppDelegate.swift @@ -54,9 +54,6 @@ public class AppDelegate: NSObject, UIWindowSceneDelegate, Sendable, UIApplicati /// This function uses the REAL customer info to access the premium state static func hasPlus(completionHandler: @escaping (Bool) -> Void) { - #if targetEnvironment(simulator) - completionHandler(true) - #else Purchases.shared.getCustomerInfo { (customerInfo, error) in guard let error else { let hasPrem: Bool = hasActuallyPlus(customerInfo: customerInfo) @@ -65,7 +62,6 @@ public class AppDelegate: NSObject, UIWindowSceneDelegate, Sendable, UIApplicati } fatalError(error.localizedDescription) } - #endif } /// This function returns a fake "true" value every time whatever the customer info is diff --git a/Bubble/Views/Settings/SettingsView.swift b/Bubble/Views/Settings/SettingsView.swift index fe09044..d712ec2 100644 --- a/Bubble/Views/Settings/SettingsView.swift +++ b/Bubble/Views/Settings/SettingsView.swift @@ -104,14 +104,17 @@ struct SettingsView: View { } .listRowThreaded() - #if !targetEnvironment(simulator) + Button { +#if !targetEnvironment(simulator) openURL(URL(string: "https://apps.apple.com/app/id6477757490?action=write-review")!) +#else + print("Review app") +#endif } label: { Label("setting.review", systemImage: "star.fill") } .listRowThreaded() - #endif Button { navigator.navigate(to: .support)