mirror of
https://github.com/easychen/pushdeer.git
synced 2024-11-14 14:29:23 +08:00
3f61db008f
针对自建 SelfHosted 版创建单独的 Info.plist 文件; SelfHosted 版本去掉 Schemes 配置 设置添加查看官网入口
32 lines
801 B
Swift
32 lines
801 B
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"
|
|
|
|
}
|