Remove patreon exclusivity message for sources (#594)

This commit is contained in:
Spidy123222
2024-03-14 01:39:40 -07:00
committed by GitHub
parent 49b1fd751c
commit 34a101b796

View File

@@ -197,7 +197,7 @@ private extension SourcesViewController
{ {
let alertController = UIAlertController(title: NSLocalizedString("Add Source", comment: ""), message: nil, preferredStyle: .alert) let alertController = UIAlertController(title: NSLocalizedString("Add Source", comment: ""), message: nil, preferredStyle: .alert)
alertController.addTextField { (textField) in alertController.addTextField { (textField) in
textField.placeholder = "https://apps.altstore.io" textField.placeholder = "https://apps.sidestore.io"
textField.textContentType = .URL textField.textContentType = .URL
} }
alertController.addAction(.cancel) alertController.addAction(.cancel)
@@ -545,19 +545,19 @@ extension SourcesViewController: UICollectionViewDelegateFlowLayout
footerView.textView.delegate = self footerView.textView.delegate = self
let attributedText = NSMutableAttributedString( let attributedText = NSMutableAttributedString(
string: NSLocalizedString("SideStore has reviewed these sources to make sure they meet our safety standards.\n\nSupport for untrusted sources is currently in beta, but you can help test them out by", comment: ""), string: NSLocalizedString("SideStore has reviewed these sources to make sure they meet our safety standards.", comment: ""),
attributes: [.font: font, .foregroundColor: UIColor.gray] attributes: [.font: font, .foregroundColor: UIColor.gray]
) )
attributedText.mutableString.append(" ") //attributedText.mutableString.append(" ")
let boldedFont = UIFont(descriptor: font.fontDescriptor.withSymbolicTraits(.traitBold)!, size: font.pointSize) //let boldedFont = UIFont(descriptor: font.fontDescriptor.withSymbolicTraits(.traitBold)!, size: font.pointSize)
let openPatreonURL = URL(string: "https://SideStore.io/patreon")! //let openPatreonURL = URL(string: "https://SideStore.io/")!
let joinPatreonText = NSAttributedString( // let joinPatreonText = NSAttributedString(
string: NSLocalizedString("joining our Patreon.", comment: ""), // string: NSLocalizedString("", comment: ""),
attributes: [.font: boldedFont, .link: openPatreonURL, .underlineColor: UIColor.clear] // attributes: [.font: boldedFont, .link: openPatreonURL, .underlineColor: UIColor.clear]
) //)
attributedText.append(joinPatreonText) //attributedText.append(joinPatreonText)
footerView.textView.attributedText = attributedText footerView.textView.attributedText = attributedText
footerView.textView.textAlignment = .natural footerView.textView.textAlignment = .natural