Skip to content

Commit

Permalink
added bmac link
Browse files Browse the repository at this point in the history
  • Loading branch information
n3d1117 committed Jan 5, 2022
1 parent e4f2f29 commit a711d3a
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 4 deletions.
6 changes: 3 additions & 3 deletions appdb/Other/Images.xcassets/Credits/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
23 changes: 23 additions & 0 deletions appdb/Other/Images.xcassets/Credits/bmac.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "bmac.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "bmac-2.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "bmac-1.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions appdb/Startup/Global.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ enum Global {

static let mainSite: String = "https://appdb.to/"
static let githubSite: String = "https://github.com/n3d1117/appdb"
static let donateSite: String = "https://www.buymeacoffee.com/ne_do"
static let email: String = "[email protected]"
static let telegramUsername: String = "ne_do"
static let telemetryAppId: String = "4AA0955D-55BD-43DB-AF8A-746A74CEBE60"
Expand Down
3 changes: 2 additions & 1 deletion appdb/Tabs/Settings/Credits/Credits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ class Credits: TableViewController {
}

lazy var credits: [Credit] = [
Credit(name: "ned", imageName: "ned", type: .developer, handle: .telegram(username: Global.telegramUsername)),
Credit(name: "ned", imageName: "ned", type: .developer, handle: .none),
Credit(name: "View project on GitHub".localized(), imageName: "github", type: .developer, handle: .website(site: Global.githubSite)),
Credit(name: "Buy me a coffee".localized(), imageName: "bmac", type: .developer, handle: .website(site: Global.donateSite)),

Credit(name: "appdb team", imageName: "appdb", type: .specialThanks, handle: .website(site: Global.mainSite)),
Credit(name: "Alessandro Chiarlitti (aesign)", detail: "Icon and banner designer".localized(), imageName: "aesign", type: .specialThanks, handle: .website(site: "https://aesign.me")),
Expand Down
3 changes: 3 additions & 0 deletions appdb/Tabs/Settings/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ class Settings: TableViewController {
alertController.addAction(UIAlertAction(title: "Telegram".localized(), style: .default) { _ in
self.openTelegramLink()
})
alertController.addAction(UIAlertAction(title: "Buy me a coffee".localized(), style: .default) { _ in
self.openInSafari(Global.donateSite)
})
if let popover = alertController.popoverPresentationController {
popover.sourceView = tableView
popover.sourceRect = tableView.rectForRow(at: indexPath)
Expand Down

0 comments on commit a711d3a

Please sign in to comment.