Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Public/images/sponsors/sentry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Public/images/sponsors/sentry~dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 35 additions & 12 deletions Sources/App/Core/Supporters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,48 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import Dependencies

enum Supporters {
static let primary: Corporate = .init(name: "Apple",
logo: .init(lightModeUrl: "/images/sponsors/apple.svg",
darkModeUrl: "/images/sponsors/apple~dark.svg",
width: 100, height: 123),
url: "http://apple.com")

nonisolated(unsafe) static var corporate: [Corporate] = [
.init(name: "Emerge Tools",
logo: .init(lightModeUrl: "/images/sponsors/emerge.png",
darkModeUrl: "/images/sponsors/emerge~dark.png"),
url: "https://www.emergetools.com/?utm_source=spi2&utm_medium=sponsor&utm_campaign=emerge",
advertisingCopy: "Join the future of mobile development. Trusted by top companies like Duolingo, Square, DoorDash & more…"),
.init(name: "RevenueCat",
logo: .init(lightModeUrl: "/images/sponsors/revenuecat.png",
darkModeUrl: "/images/sponsors/revenuecat~dark.png"),
url: "https://www.revenuecat.com/?utm_medium=sponsored&utm_source=swift_package_index&utm_campaign=general_sponsorship&utm_content=banner%20ad",
advertisingCopy: "The world’s best apps use RevenueCat to power in-app purchases, manage customer data, and grow revenue."),
]
nonisolated(unsafe) static var corporate: [Corporate] = {
@Dependency(\.environment) var environment

if environment.current() == .development {
// Staging sponsors
return [
.init(name: "Sentry",
logo: .init(lightModeUrl: "/images/sponsors/sentry.png",
darkModeUrl: "/images/sponsors/sentry~dark.png"),
url: "https://sentry.io/welcome/",
advertisingCopy: "Application monitoring software considered “not bad” by 4 million developers."),
.init(name: "RevenueCat",
logo: .init(lightModeUrl: "/images/sponsors/revenuecat.png",
darkModeUrl: "/images/sponsors/revenuecat~dark.png"),
url: "https://www.revenuecat.com/?utm_medium=sponsored&utm_source=swift_package_index&utm_campaign=general_sponsorship&utm_content=banner%20ad",
advertisingCopy: "The world's best apps use RevenueCat to power in-app purchases, manage customer data, and grow revenue."),
]
} else {
// Production sponsors
return [
.init(name: "Emerge Tools",
logo: .init(lightModeUrl: "/images/sponsors/emerge.png",
darkModeUrl: "/images/sponsors/emerge~dark.png"),
url: "https://www.emergetools.com/?utm_source=spi2&utm_medium=sponsor&utm_campaign=emerge",
advertisingCopy: "Join the future of mobile development. Trusted by top companies like Duolingo, Square, DoorDash & more…"),
.init(name: "RevenueCat",
logo: .init(lightModeUrl: "/images/sponsors/revenuecat.png",
darkModeUrl: "/images/sponsors/revenuecat~dark.png"),
url: "https://www.revenuecat.com/?utm_medium=sponsored&utm_source=swift_package_index&utm_campaign=general_sponsorship&utm_content=banner%20ad",
advertisingCopy: "The world's best apps use RevenueCat to power in-app purchases, manage customer data, and grow revenue."),
]
}
}()

nonisolated(unsafe) static var infrastructure: [Corporate] = [
.init(name: "MacStadium",
Expand Down
Loading