Merge branch 'activate-github-sponsors'
This commit is contained in:
commit
5168f67132
|
@ -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
|
||||||
|
|
|
@ -81,7 +81,7 @@ class OrganizerViewController: UITableViewController, StrongTableHost {
|
||||||
}
|
}
|
||||||
model.setHeader(L10n.Core.Organizer.Sections.Support.header, forSection: .support)
|
model.setHeader(L10n.Core.Organizer.Sections.Support.header, forSection: .support)
|
||||||
model.set([.connectionStatus], forSection: .vpn)
|
model.set([.connectionStatus], forSection: .vpn)
|
||||||
model.set([.donate, .joinCommunity], forSection: .support)
|
model.set([.donate, .githubSponsors, .joinCommunity], forSection: .support)
|
||||||
|
|
||||||
model.set([.openAbout], forSection: .about)
|
model.set([.openAbout], forSection: .about)
|
||||||
model.set([.uninstall], forSection: .destruction)
|
model.set([.uninstall], forSection: .destruction)
|
||||||
|
@ -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,10 +534,10 @@ 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:
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
||||||
|
@ -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 e54b162b4bf1744ea74d5a29c2aa952503ea0a08
|
Loading…
Reference in New Issue