mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-08-05 22:08:40 +02:00
Update Ghostgram features
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
||||
|
||||
swift_library(
|
||||
name = "SGConfig",
|
||||
module_name = "SGConfig",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
copts = [
|
||||
"-warnings-as-errors",
|
||||
],
|
||||
deps = [
|
||||
"//submodules/BuildConfig:BuildConfig"
|
||||
],
|
||||
visibility = [
|
||||
"//visibility:public",
|
||||
],
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
import Foundation
|
||||
|
||||
public struct SGConfig: Codable {
|
||||
public var apiUrl: String = "https://api.swiftgram.app"
|
||||
public var webappUrl: String = "https://my.swiftgram.app"
|
||||
public var botUsername: String = "SwiftgramBot"
|
||||
public var publicKey: String?
|
||||
public var iaps: [String] = []
|
||||
}
|
||||
|
||||
public let SG_CONFIG: SGConfig = SGConfig()
|
||||
public let SG_API_WEBAPP_URL_PARSED = URL(string: SG_CONFIG.webappUrl)!
|
||||
Reference in New Issue
Block a user