Replace Patreon with GitHub Sponsors
This commit is contained in:
parent
a8075d5c57
commit
812e8f0f13
|
@ -646,14 +646,14 @@ internal enum L10n {
|
||||||
/// Make a donation
|
/// Make a donation
|
||||||
internal static let caption = L10n.tr("Core", "organizer.cells.donate.caption")
|
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 {
|
internal enum JoinCommunity {
|
||||||
/// Join community
|
/// Join community
|
||||||
internal static let caption = L10n.tr("Core", "organizer.cells.join_community.caption")
|
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 Profile {
|
||||||
internal enum Value {
|
internal enum Value {
|
||||||
/// In use
|
/// In use
|
||||||
|
|
|
@ -332,6 +332,10 @@ class OrganizerViewController: UITableViewController, StrongTableHost {
|
||||||
present(alert, animated: true, completion: nil)
|
present(alert, animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func becomeSponsor() {
|
||||||
|
UIApplication.shared.open(AppConstants.URLs.githubSponsors, options: [:], completionHandler: nil)
|
||||||
|
}
|
||||||
|
|
||||||
private func subscribeSubreddit() {
|
private func subscribeSubreddit() {
|
||||||
UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil)
|
UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil)
|
||||||
}
|
}
|
||||||
|
@ -437,7 +441,7 @@ extension OrganizerViewController {
|
||||||
|
|
||||||
case donate
|
case donate
|
||||||
|
|
||||||
// case patreon
|
// case githubSponsors
|
||||||
|
|
||||||
case translate
|
case translate
|
||||||
|
|
||||||
|
@ -530,9 +534,9 @@ extension OrganizerViewController {
|
||||||
cell.leftText = L10n.Core.Organizer.Cells.Donate.caption
|
cell.leftText = L10n.Core.Organizer.Cells.Donate.caption
|
||||||
return cell
|
return cell
|
||||||
|
|
||||||
// case .patreon:
|
// case .githubSponsors:
|
||||||
// let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
// 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
|
// return cell
|
||||||
|
|
||||||
case .translate:
|
case .translate:
|
||||||
|
@ -601,8 +605,8 @@ extension OrganizerViewController {
|
||||||
case .donate:
|
case .donate:
|
||||||
donateToDeveloper()
|
donateToDeveloper()
|
||||||
|
|
||||||
// case .patreon:
|
// case .githubSponsors:
|
||||||
// visit(AppConstants.URLs.patreon)
|
// becomeSponsor()
|
||||||
|
|
||||||
case .translate:
|
case .translate:
|
||||||
offerTranslation()
|
offerTranslation()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 26431df4a4d189f45e2892c8fab4268e48c2f7f4
|
Subproject commit dafd50f19867c8b0f6e25f8c8c63efd06d635599
|
Loading…
Reference in New Issue