Skip to content

Commit

Permalink
Paywalls: fixed SimpleApp release build (#3203)
Browse files Browse the repository at this point in the history
We're currently making debug builds for it, but this fixes the release
build in case we want to do that (like for profiling).
  • Loading branch information
NachoSoto committed Sep 14, 2023
1 parent 2ad05a7 commit 0a4d459
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/TestingApps/SimpleApp/SimpleApp/SamplePaywalls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Nacho Soto on 7/27/23.
//

#if DEBUG

import Foundation
import RevenueCat
@testable import RevenueCatUI
Expand Down Expand Up @@ -456,3 +458,5 @@ extension PaywallColor: ExpressibleByStringLiteral {
}

#endif

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ struct AppContentView: View {
Label("App", systemImage: "iphone")
}

#if DEBUG
SamplePaywallsList()
.tabItem {
Label("Examples", systemImage: "pawprint")
}
#endif

OfferingsList()
.tabItem {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Nacho Soto on 8/9/23.
//

#if DEBUG

import RevenueCat
@testable import RevenueCatUI
import SwiftUI
Expand Down Expand Up @@ -84,3 +86,5 @@ struct CustomPaywall_Previews: PreviewProvider {
}

#endif

#endif

0 comments on commit 0a4d459

Please sign in to comment.