pushdeer/ios/PushDeer-iOS/PushDeer/Env.swift
hext c3d0cd13f5 新增功能: 桌面小部件, 展示最近消息, 支持收到推送自动刷新;
新增功能: 1分钟内删除两条消息, 会提示是否一键清空全部消息.
2022-04-19 00:35:56 +08:00

40 lines
1.0 KiB
Swift

//
// Env.swift
// PushDeer
//
// Created by HEXT on 2022/1/30.
//
import Foundation
/// APP
struct Env {
/// , true, 线 false
static let isSelfHosted: Bool = {
#if SELFHOSTED
return true
#else
return false
#endif
}()
/// 线 Api Endpoint
static let onlineApiEndpoint = "https://api2.pushdeer.com"
/// AppStore appId, : 1608017631; 线: 1596771139
static let appStoreId = isSelfHosted ? 1608017631 : 1596771139
/// ID
static let wxAppid = "wx3ae07931d0555a24"
/// Universal Link
static let wxUniversalLink = "https://vip.pushdeer.com/app/"
/// PushDeer
static let officialWebsite = "https://www.pushdeer.com"
/// , 使访 App Clip Widget
static let appGroupId: String = {
#if SELFHOSTED
return "group.com.pushdeer.self.ios"
#else
return "group.com.pushdeer.app.ios"
#endif
}()
}