Skip to content

Commit ddd50f6

Browse files
authored
Merge pull request #754 from kiwix/752-temporarily-remove-the-support-kiwix-link-from-the-apps
Remove support external link
2 parents 7db517d + 9927321 commit ddd50f6

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

App/App_macOS.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,6 @@ struct RootView: View {
117117
}
118118
}
119119
}
120-
.safeAreaInset(edge: .bottom) {
121-
if let url = URL(string: Brand.supportURLString) {
122-
Link(destination: url) {
123-
HStack {
124-
Image(systemName: "heart")
125-
Text("common.support.app_name".localizedWithFormat(withArgs: Brand.appName))
126-
.foregroundColor(.primary)
127-
.multilineTextAlignment(.leading)
128-
Spacer()
129-
}
130-
}
131-
.padding()
132-
}
133-
}
134120
.frame(minWidth: 150)
135121
.toolbar {
136122
Button {

Model/Brand.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ enum Brand {
4949
static let welcomeLogoImageName: String = "welcomeLogo"
5050
static let aboutText: String = Config.value(for: .aboutText) ?? "settings.about.description".localized
5151
static let aboutWebsite: String = Config.value(for: .aboutWebsite) ?? "https://www.kiwix.org"
52-
static let supportURLString: String = Config.value(for: .supportURL) ?? "https://kiwix.org/get-involved/"
5352

5453
static var defaultExternalLinkPolicy: ExternalLinkLoadingPolicy {
5554
guard let policyString: String = Config.value(for: .externalLinkDefaultPolicy),
@@ -80,7 +79,6 @@ enum Config: String {
8079
case showSearchSnippetInSettings = "SETTINGS_SHOW_SEARCH_SNIPPET"
8180
case aboutText = "CUSTOM_ABOUT_TEXT"
8281
case aboutWebsite = "CUSTOM_ABOUT_WEBSITE"
83-
case supportURL = "SUPPORT_URL"
8482

8583
static func value<T>(for key: Config) -> T? where T: LosslessStringConvertible {
8684
guard let object = Bundle.main.object(forInfoDictionaryKey: key.rawValue) else {

Views/Settings/Settings.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,6 @@ struct Settings: View {
235235
appStoreID: Brand.appStoreId)
236236
UIApplication.shared.open(url)
237237
}
238-
if let url = URL(string: Brand.supportURLString) {
239-
Link("common.support.app_name".localizedWithFormat(withArgs: Brand.appName),
240-
destination: url)
241-
}
242238
NavigationLink("settings.miscellaneous.navigation.about".localized) { About() }
243239
}
244240
}

0 commit comments

Comments
 (0)