Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Feb 24, 2024
2 parents c06ca4c + 475b2b6 commit 01cf729
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 2.12.1 - 2024-02-24

[FIXED] In-app payments for legacy accounts

## 2.12.0 - 2024-02-12

[NEW] Device Management
Expand Down
12 changes: 6 additions & 6 deletions IVPNClient.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = IVPNClient/IVPNClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = WQXXM75BYN;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -2826,7 +2826,7 @@
"$(inherited)",
"$(PROJECT_DIR)/IVPNClient/liboqs",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.12.1;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "-D DEBUG";
Expand Down Expand Up @@ -3297,7 +3297,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = IVPNClient/IVPNClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = WQXXM75BYN;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -3315,7 +3315,7 @@
"$(inherited)",
"$(PROJECT_DIR)/IVPNClient/liboqs",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.12.1;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "-D DEBUG";
Expand All @@ -3336,7 +3336,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = IVPNClient/IVPNClient.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 3;
CURRENT_PROJECT_VERSION = 10;
DEVELOPMENT_TEAM = WQXXM75BYN;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -3354,7 +3354,7 @@
"$(inherited)",
"$(PROJECT_DIR)/IVPNClient/liboqs",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.12.1;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "-D RELEASE";
Expand Down
4 changes: 2 additions & 2 deletions IVPNClient/Models/ServiceStatus.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct ServiceStatus: Codable {
let upgradeToUrl: String?
let paymentMethod: String?
let capabilities: [String]?
let deviceManagement: Bool
let deviceManagement: Bool?

// MARK: - Initialize -

Expand Down Expand Up @@ -91,7 +91,7 @@ struct ServiceStatus: Codable {
}

func isNewStyleAccount() -> Bool {
guard let username = username else {
guard let username = KeyChain.username else {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion IVPNClient/ViewModels/AccountViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct AccountViewModel {
}

var deviceManagement: Bool {
return serviceStatus.deviceManagement
return serviceStatus.deviceManagement ?? false
}

var deviceName: String? {
Expand Down

0 comments on commit 01cf729

Please sign in to comment.