Fix build

This commit is contained in:
Peter 2019-10-29 23:49:42 +04:00
parent fc903f49e9
commit bf46c81c49
5 changed files with 23 additions and 0 deletions

View File

@ -196,6 +196,7 @@ framework(
"//submodules/PhoneNumberFormat:PhoneNumberFormat",
"//submodules/AppLock:AppLock",
"//submodules/NotificationsPresentationData:NotificationsPresentationData",
"//submodules/UrlWhitelist:UrlWhitelist",
],
frameworks = [
"$SDKROOT/System/Library/Frameworks/Foundation.framework",

View File

@ -54,6 +54,7 @@ import WalletUrl
import LocalizedPeerData
import PhoneNumberFormat
import SettingsUI
import UrlWhitelist
public enum ChatControllerPeekActions {
case standard

View File

@ -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

View 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",
],
)