Replace Patreon with GitHub Sponsors

This commit is contained in:
Davide De Rosa 2020-06-01 10:35:11 +02:00
parent a8075d5c57
commit 812e8f0f13
3 changed files with 14 additions and 10 deletions

View File

@ -646,14 +646,14 @@ internal enum L10n {
/// Make a donation
internal static let caption = L10n.tr("Core", "organizer.cells.donate.caption")
}
internal enum GithubSponsors {
/// Support me on GitHub
internal static let caption = L10n.tr("Core", "organizer.cells.github_sponsors.caption")
}
internal enum JoinCommunity {
/// Join community
internal static let caption = L10n.tr("Core", "organizer.cells.join_community.caption")
}
internal enum Patreon {
/// Support me on Patreon
internal static let caption = L10n.tr("Core", "organizer.cells.patreon.caption")
}
internal enum Profile {
internal enum Value {
/// In use

View File

@ -332,6 +332,10 @@ class OrganizerViewController: UITableViewController, StrongTableHost {
present(alert, animated: true, completion: nil)
}
private func becomeSponsor() {
UIApplication.shared.open(AppConstants.URLs.githubSponsors, options: [:], completionHandler: nil)
}
private func subscribeSubreddit() {
UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil)
}
@ -437,7 +441,7 @@ extension OrganizerViewController {
case donate
// case patreon
// case githubSponsors
case translate
@ -530,9 +534,9 @@ extension OrganizerViewController {
cell.leftText = L10n.Core.Organizer.Cells.Donate.caption
return cell
// case .patreon:
// case .githubSponsors:
// let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
// cell.leftText = L10n.Core.Organizer.Cells.Patreon.caption
// cell.leftText = L10n.Core.Organizer.Cells.GithubSponsors.caption
// return cell
case .translate:
@ -601,8 +605,8 @@ extension OrganizerViewController {
case .donate:
donateToDeveloper()
// case .patreon:
// visit(AppConstants.URLs.patreon)
// case .githubSponsors:
// becomeSponsor()
case .translate:
offerTranslation()

@ -1 +1 @@
Subproject commit 26431df4a4d189f45e2892c8fab4268e48c2f7f4
Subproject commit dafd50f19867c8b0f6e25f8c8c63efd06d635599