Secondary changes

This commit is contained in:
lumaa-dev 2024-09-26 22:01:40 +02:00
parent 1c23d7237c
commit 1404c865cd
3 changed files with 13 additions and 12 deletions

View File

@ -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;

View File

@ -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

View File

@ -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)