File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 61
61
# https://developer.apple.com/help/account/reference/supported-capabilities-macos
62
62
- name : Remove In App Purchase capability for macOS FTP (Developer ID signing)
63
63
if : matrix.platform == 'macOS' && matrix.destination == 'ftp'
64
- run : sed -i '' '/in-app-payments/d' project.yml
64
+ run : |
65
+ sed -i '' '/in-app-payments/d' project.yml
66
+ plutil -insert HIDE_DONATION -bool true Support/Info.plist
65
67
66
68
- name : Set VERSION from code
67
69
shell : python
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ struct RootView: View {
195
195
}
196
196
. frame ( minWidth: 160 )
197
197
. safeAreaInset ( edge: . bottom) {
198
- if Payment . paymentButtonType ( ) != nil && Brand . supportDonationVisible {
198
+ if Payment . paymentButtonType ( ) != nil && Brand . hideDonation != true {
199
199
SupportKiwixButton {
200
200
openWindow ( id: " donation " )
201
201
}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ enum Brand {
54
54
// currently only used by Kiwix brand
55
55
// if this is missing from project.yml we fall back to true
56
56
// and hide the support for donation (for macOS FTP)
57
- static let supportDonationVisible : Bool = Config . value ( for: . supportDonationVisible ) ?? false
57
+ static let hideDonation : Bool = Config . value ( for: . hideDonation ) ?? false
58
58
59
59
static var defaultExternalLinkPolicy : ExternalLinkLoadingPolicy {
60
60
guard let policyString: String = Config . value ( for: . externalLinkDefaultPolicy) ,
@@ -85,7 +85,7 @@ enum Config: String {
85
85
case showSearchSnippetInSettings = " SETTINGS_SHOW_SEARCH_SNIPPET "
86
86
case aboutText = " CUSTOM_ABOUT_TEXT "
87
87
case aboutWebsite = " CUSTOM_ABOUT_WEBSITE "
88
- case supportDonationVisible = " SUPPORT_DONATION_VISIBLE "
88
+ case hideDonation = " HIDE_DONATION "
89
89
90
90
static func value< T> ( for key: Config ) -> T ? where T: LosslessStringConvertible {
91
91
guard let object = Bundle . main. object ( forInfoDictionaryKey: key. rawValue) else {
Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ targets:
106
106
INFOPLIST_KEY_CFBundleDisplayName : Kiwix
107
107
INFOPLIST_FILE : Support/Info.plist
108
108
INFOPLIST_KEY_UILaunchStoryboardName : SplashScreenKiwix.storyboard
109
- SUPPORT_DONATION_VISIBLE : true # this line is removed for macOS FTP, where the donation pop up is hidden (not supported)
110
109
sources :
111
110
- path : Support
112
111
excludes :
You can’t perform that action at this time.
0 commit comments