Skip to content

Commit

Permalink
fix example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
ren6 committed Dec 29, 2023
1 parent 53da626 commit bfe5fa7
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class AppVariables {

static let lifetimeProductID = "com.apphud.gold"

@MainActor
static var isPremium: Bool {
Apphud.hasActiveSubscription() ||
Apphud.isNonRenewingPurchaseActive(productIdentifier: lifetimeProductID)
Expand Down
12 changes: 8 additions & 4 deletions Example/ApphudDemoSwift/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Example/ApphudDemoSwiftUI/AppVariables.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class AppVariables {

static let lifetimeProductID = "com.apphud.gold"

@MainActor
static var isPremium: Bool {
Apphud.hasActiveSubscription() ||
Apphud.isNonRenewingPurchaseActive(productIdentifier: lifetimeProductID)
Expand Down
1 change: 1 addition & 0 deletions Example/ApphudDemoSwiftUI/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct ContentView: View {
})
}

@MainActor
var premiumStatus: String {
AppVariables.isPremium ? "ON" : "OFF"
}
Expand Down
12 changes: 8 additions & 4 deletions Example/ApphudDemoSwiftUI/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bfe5fa7

Please sign in to comment.