mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix build
This commit is contained in:
parent
fc903f49e9
commit
bf46c81c49
@ -196,6 +196,7 @@ framework(
|
||||
"//submodules/PhoneNumberFormat:PhoneNumberFormat",
|
||||
"//submodules/AppLock:AppLock",
|
||||
"//submodules/NotificationsPresentationData:NotificationsPresentationData",
|
||||
"//submodules/UrlWhitelist:UrlWhitelist",
|
||||
],
|
||||
frameworks = [
|
||||
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
|
||||
|
@ -54,6 +54,7 @@ import WalletUrl
|
||||
import LocalizedPeerData
|
||||
import PhoneNumberFormat
|
||||
import SettingsUI
|
||||
import UrlWhitelist
|
||||
|
||||
public enum ChatControllerPeekActions {
|
||||
case standard
|
||||
|
@ -109,9 +109,16 @@ final class WalletContextImpl: WalletContext {
|
||||
let storage: WalletStorageInterface
|
||||
let tonInstance: TonInstance
|
||||
let keychain: TonKeychain
|
||||
let strings: PresentationStrings
|
||||
let presentationData: WalletPresentationData
|
||||
|
||||
let supportsCustomConfigurations: Bool = false
|
||||
var termsUrl: String? {
|
||||
return self.strings.TelegramWallet_Intro_TermsUrl
|
||||
}
|
||||
var feeInfoUrl: String? {
|
||||
return self.strings.AppWallet_TransactionInfo_FeeInfoURL
|
||||
}
|
||||
|
||||
var inForeground: Signal<Bool, NoError> {
|
||||
return self.context.sharedContext.applicationBindings.applicationInForeground
|
||||
@ -125,6 +132,7 @@ final class WalletContextImpl: WalletContext {
|
||||
self.tonInstance = tonContext.instance
|
||||
self.keychain = tonContext.keychain
|
||||
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
|
||||
self.strings = presentationData.strings
|
||||
let theme = presentationData.theme
|
||||
let strings = presentationData.strings
|
||||
let timeFormat: WalletTimeFormat
|
||||
|
13
submodules/UrlWhitelist/BUCK
Normal file
13
submodules/UrlWhitelist/BUCK
Normal file
@ -0,0 +1,13 @@
|
||||
load("//Config:buck_rule_macros.bzl", "static_library")
|
||||
|
||||
static_library(
|
||||
name = "UrlWhitelist",
|
||||
srcs = glob([
|
||||
"Sources/**/*.swift",
|
||||
]),
|
||||
deps = [
|
||||
],
|
||||
frameworks = [
|
||||
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
|
||||
],
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user