Move app to a dedicated folder
104
Makefile
@ -42,8 +42,8 @@ BUCK_OPTIONS=\
|
|||||||
|
|
||||||
build_arm64: check_env
|
build_arm64: check_env
|
||||||
$(BUCK) build \
|
$(BUCK) build \
|
||||||
//:AppPackage#iphoneos-arm64 \
|
//Telegram:AppPackage#iphoneos-arm64 \
|
||||||
//:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
||||||
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
@ -62,18 +62,18 @@ build_arm64: check_env
|
|||||||
//submodules/Display:Display#shared,iphoneos-arm64 \
|
//submodules/Display:Display#shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
||||||
//:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
//Telegram:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
||||||
//:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
${BUCK_OPTIONS} ${BUCK_RELEASE_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
${BUCK_OPTIONS} ${BUCK_RELEASE_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
||||||
|
|
||||||
build_debug_arm64: check_env
|
build_debug_arm64: check_env
|
||||||
$(BUCK) build \
|
$(BUCK) build \
|
||||||
//:AppPackage#iphoneos-arm64 \
|
//Telegram:AppPackage#iphoneos-arm64 \
|
||||||
//:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
||||||
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
@ -92,12 +92,12 @@ build_debug_arm64: check_env
|
|||||||
//submodules/Display:Display#shared,iphoneos-arm64 \
|
//submodules/Display:Display#shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
||||||
//:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
//Telegram:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
||||||
//:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
||||||
|
|
||||||
build_wallet_debug_arm64: check_env
|
build_wallet_debug_arm64: check_env
|
||||||
@ -116,8 +116,8 @@ build_wallet_debug_arm64: check_env
|
|||||||
|
|
||||||
build_debug_armv7: check_env
|
build_debug_armv7: check_env
|
||||||
$(BUCK) build \
|
$(BUCK) build \
|
||||||
//:AppPackage#iphoneos-armv7 \
|
//Telegram:AppPackage#iphoneos-armv7 \
|
||||||
//:Telegram#dwarf-and-dsym,iphoneos-armv7 \
|
//Telegram:Telegram#dwarf-and-dsym,iphoneos-armv7 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-armv7 \
|
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-armv7 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-armv7 \
|
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-armv7 \
|
||||||
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-armv7 \
|
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-armv7 \
|
||||||
@ -136,18 +136,18 @@ build_debug_armv7: check_env
|
|||||||
//submodules/Display:Display#shared,iphoneos-armv7 \
|
//submodules/Display:Display#shared,iphoneos-armv7 \
|
||||||
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-armv7 \
|
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-armv7 \
|
||||||
//submodules/TelegramUI:TelegramUI#shared,iphoneos-armv7 \
|
//submodules/TelegramUI:TelegramUI#shared,iphoneos-armv7 \
|
||||||
//:WatchAppExtension#dwarf-and-dsym,watchos-armv7_32,watchos-armv7k \
|
//Telegram:WatchAppExtension#dwarf-and-dsym,watchos-armv7_32,watchos-armv7k \
|
||||||
//:ShareExtension#dwarf-and-dsym,iphoneos-armv7 \
|
//Telegram:ShareExtension#dwarf-and-dsym,iphoneos-armv7 \
|
||||||
//:WidgetExtension#dwarf-and-dsym,iphoneos-armv7 \
|
//Telegram:WidgetExtension#dwarf-and-dsym,iphoneos-armv7 \
|
||||||
//:NotificationContentExtension#dwarf-and-dsym,iphoneos-armv7 \
|
//Telegram:NotificationContentExtension#dwarf-and-dsym,iphoneos-armv7 \
|
||||||
//:NotificationServiceExtension#dwarf-and-dsym,iphoneos-armv7 \
|
//Telegram:NotificationServiceExtension#dwarf-and-dsym,iphoneos-armv7 \
|
||||||
//:IntentsExtension#dwarf-and-dsym,iphoneos-armv7 \
|
//Telegram:IntentsExtension#dwarf-and-dsym,iphoneos-armv7 \
|
||||||
${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
||||||
|
|
||||||
build: check_env
|
build: check_env
|
||||||
$(BUCK) build \
|
$(BUCK) build \
|
||||||
//:AppPackage#iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:AppPackage#iphoneos-arm64,iphoneos-armv7 \
|
||||||
//:Telegram#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:Telegram#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64,iphoneos-armv7 \
|
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64,iphoneos-armv7 \
|
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64,iphoneos-armv7 \
|
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64,iphoneos-armv7 \
|
||||||
@ -166,12 +166,12 @@ build: check_env
|
|||||||
//submodules/Display:Display#shared,iphoneos-arm64,iphoneos-armv7 \
|
//submodules/Display:Display#shared,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64,iphoneos-armv7 \
|
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64,iphoneos-armv7 \
|
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
//Telegram:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
||||||
//:ShareExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:ShareExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//:WidgetExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:WidgetExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
||||||
//:IntentsExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
//Telegram:IntentsExtension#dwarf-and-dsym,iphoneos-arm64,iphoneos-armv7 \
|
||||||
${BUCK_OPTIONS} ${BUCK_RELEASE_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
${BUCK_OPTIONS} ${BUCK_RELEASE_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
||||||
|
|
||||||
package_arm64:
|
package_arm64:
|
||||||
@ -290,8 +290,8 @@ app_debug_armv7: build_debug_armv7 package_debug_armv7
|
|||||||
|
|
||||||
build_buckdebug: check_env
|
build_buckdebug: check_env
|
||||||
BUCK_DEBUG_MODE=1 $(BUCK) build \
|
BUCK_DEBUG_MODE=1 $(BUCK) build \
|
||||||
//:AppPackage#iphoneos-arm64 \
|
//Telegram:AppPackage#iphoneos-arm64 \
|
||||||
//:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
||||||
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
@ -310,12 +310,12 @@ build_buckdebug: check_env
|
|||||||
//submodules/Display:Display#shared,iphoneos-arm64 \
|
//submodules/Display:Display#shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
||||||
//:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
//Telegram:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
||||||
//:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
--verbose 7 ${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
--verbose 7 ${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
||||||
|
|
||||||
build_buckdebug_one: check_env
|
build_buckdebug_one: check_env
|
||||||
@ -330,8 +330,8 @@ build_verbose_one: check_env
|
|||||||
|
|
||||||
build_verbose: check_env
|
build_verbose: check_env
|
||||||
$(BUCK) build \
|
$(BUCK) build \
|
||||||
//:AppPackage#iphoneos-arm64 \
|
//Telegram:AppPackage#iphoneos-arm64 \
|
||||||
//:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:Telegram#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
//submodules/MtProtoKit:MtProtoKit#shared,iphoneos-arm64 \
|
||||||
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
@ -350,16 +350,16 @@ build_verbose: check_env
|
|||||||
//submodules/Display:Display#shared,iphoneos-arm64 \
|
//submodules/Display:Display#shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#dwarf-and-dsym,shared,iphoneos-arm64 \
|
||||||
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
//submodules/TelegramUI:TelegramUI#shared,iphoneos-arm64 \
|
||||||
//:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
//Telegram:WatchAppExtension#dwarf-and-dsym,watchos-arm64_32,watchos-armv7k \
|
||||||
//:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:ShareExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:WidgetExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationContentExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:NotificationServiceExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
//:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
//Telegram:IntentsExtension#dwarf-and-dsym,iphoneos-arm64 \
|
||||||
--verbose 7 ${BUCK_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_DEBUG_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
--verbose 7 ${BUCK_OPTIONS} ${BUCK_THREADS_OPTIONS} ${BUCK_DEBUG_OPTIONS} ${BUCK_CACHE_OPTIONS}
|
||||||
|
|
||||||
deps: check_env
|
deps: check_env
|
||||||
$(BUCK) query "deps(//:AppPackage)" --dot \
|
$(BUCK) query "deps(//Telegram:AppPackage)" --dot \
|
||||||
${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
||||||
|
|
||||||
build_openssl: check_env
|
build_openssl: check_env
|
||||||
@ -381,15 +381,15 @@ clean: kill_xcode
|
|||||||
sh clean.sh
|
sh clean.sh
|
||||||
|
|
||||||
project: check_env kill_xcode
|
project: check_env kill_xcode
|
||||||
$(BUCK) project //:workspace --config custom.mode=project ${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
$(BUCK) project //Telegram:workspace --config custom.mode=project ${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
||||||
open Telegram_Buck.xcworkspace
|
open Telegram_Buck.xcworkspace
|
||||||
|
|
||||||
project_opt: check_env kill_xcode
|
project_opt: check_env kill_xcode
|
||||||
$(BUCK) project //:workspace --config custom.mode=project ${BUCK_OPTIONS} ${BUCK_RELEASE_OPTIONS}
|
$(BUCK) project //Telegram:workspace --config custom.mode=project ${BUCK_OPTIONS} ${BUCK_RELEASE_OPTIONS}
|
||||||
open Telegram_Buck.xcworkspace
|
open Telegram_Buck.xcworkspace
|
||||||
|
|
||||||
project_buckdebug: check_env kill_xcode
|
project_buckdebug: check_env kill_xcode
|
||||||
BUCK_DEBUG_MODE=1 $(BUCK) project //:workspace --config custom.mode=project ${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
BUCK_DEBUG_MODE=1 $(BUCK) project //Telegram:workspace --config custom.mode=project ${BUCK_OPTIONS} ${BUCK_DEBUG_OPTIONS}
|
||||||
open Telegram_Buck.xcworkspace
|
open Telegram_Buck.xcworkspace
|
||||||
|
|
||||||
temp_project: check_env kill_xcode
|
temp_project: check_env kill_xcode
|
||||||
|
Before Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 64 KiB |
@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>$(PRODUCT_NAME)</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>BNDL</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>667</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
@ -1,196 +0,0 @@
|
|||||||
//
|
|
||||||
// SnapshotHelper.swift
|
|
||||||
// Example
|
|
||||||
//
|
|
||||||
// Created by Felix Krause on 10/8/15.
|
|
||||||
// Copyright © 2015 Felix Krause. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
// -----------------------------------------------------
|
|
||||||
// IMPORTANT: When modifying this file, make sure to
|
|
||||||
// increment the version number at the very
|
|
||||||
// bottom of the file to notify users about
|
|
||||||
// the new SnapshotHelper.swift
|
|
||||||
// -----------------------------------------------------
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
import XCTest
|
|
||||||
|
|
||||||
var deviceLanguage = ""
|
|
||||||
var locale = ""
|
|
||||||
|
|
||||||
@available(*, deprecated, message: "use setupSnapshot: instead")
|
|
||||||
func setLanguage(_ app: XCUIApplication) {
|
|
||||||
setupSnapshot(app)
|
|
||||||
}
|
|
||||||
|
|
||||||
func setupSnapshot(_ app: XCUIApplication) {
|
|
||||||
Snapshot.setupSnapshot(app)
|
|
||||||
}
|
|
||||||
|
|
||||||
func snapshot(_ name: String, waitForLoadingIndicator: Bool = true) {
|
|
||||||
Snapshot.snapshot(name, waitForLoadingIndicator: waitForLoadingIndicator)
|
|
||||||
}
|
|
||||||
|
|
||||||
enum SnapshotError: Error, CustomDebugStringConvertible {
|
|
||||||
case cannotDetectUser
|
|
||||||
case cannotFindHomeDirectory
|
|
||||||
case cannotFindSimulatorHomeDirectory
|
|
||||||
case cannotAccessSimulatorHomeDirectory(String)
|
|
||||||
|
|
||||||
var debugDescription: String {
|
|
||||||
switch self {
|
|
||||||
case .cannotDetectUser:
|
|
||||||
return "Couldn't find Snapshot configuration files - can't detect current user "
|
|
||||||
case .cannotFindHomeDirectory:
|
|
||||||
return "Couldn't find Snapshot configuration files - can't detect `Users` dir"
|
|
||||||
case .cannotFindSimulatorHomeDirectory:
|
|
||||||
return "Couldn't find simulator home location. Please, check SIMULATOR_HOST_HOME env variable."
|
|
||||||
case .cannotAccessSimulatorHomeDirectory(let simulatorHostHome):
|
|
||||||
return "Can't prepare environment. Simulator home location is inaccessible. Does \(simulatorHostHome) exist?"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
open class Snapshot: NSObject {
|
|
||||||
static var app: XCUIApplication!
|
|
||||||
static var cacheDirectory: URL!
|
|
||||||
static var screenshotsDirectory: URL? {
|
|
||||||
return cacheDirectory.appendingPathComponent("screenshots", isDirectory: true)
|
|
||||||
}
|
|
||||||
|
|
||||||
open class func setupSnapshot(_ app: XCUIApplication) {
|
|
||||||
do {
|
|
||||||
let cacheDir = try pathPrefix()
|
|
||||||
Snapshot.cacheDirectory = cacheDir
|
|
||||||
print("cacheDir \(cacheDir)")
|
|
||||||
Snapshot.app = app
|
|
||||||
setLanguage(app)
|
|
||||||
setLocale(app)
|
|
||||||
setLaunchArguments(app)
|
|
||||||
} catch let error {
|
|
||||||
print(error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class func setLanguage(_ app: XCUIApplication) {
|
|
||||||
let path = cacheDirectory.appendingPathComponent("language.txt")
|
|
||||||
|
|
||||||
do {
|
|
||||||
let trimCharacterSet = CharacterSet.whitespacesAndNewlines
|
|
||||||
deviceLanguage = try String(contentsOf: path, encoding: .utf8).trimmingCharacters(in: trimCharacterSet)
|
|
||||||
app.launchArguments += ["-AppleLanguages", "(\(deviceLanguage))"]
|
|
||||||
} catch {
|
|
||||||
print("Couldn't detect/set language...")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class func setLocale(_ app: XCUIApplication) {
|
|
||||||
let path = cacheDirectory.appendingPathComponent("locale.txt")
|
|
||||||
|
|
||||||
do {
|
|
||||||
let trimCharacterSet = CharacterSet.whitespacesAndNewlines
|
|
||||||
locale = try String(contentsOf: path, encoding: .utf8).trimmingCharacters(in: trimCharacterSet)
|
|
||||||
} catch {
|
|
||||||
print("Couldn't detect/set locale...")
|
|
||||||
}
|
|
||||||
if locale.isEmpty {
|
|
||||||
locale = Locale(identifier: deviceLanguage).identifier
|
|
||||||
}
|
|
||||||
app.launchArguments += ["-AppleLocale", "\"\(locale)\""]
|
|
||||||
}
|
|
||||||
|
|
||||||
class func setLaunchArguments(_ app: XCUIApplication) {
|
|
||||||
let path = cacheDirectory.appendingPathComponent("snapshot-launch_arguments.txt")
|
|
||||||
app.launchArguments += ["-FASTLANE_SNAPSHOT", "YES", "-ui_testing"]
|
|
||||||
|
|
||||||
do {
|
|
||||||
let launchArguments = try String(contentsOf: path, encoding: String.Encoding.utf8)
|
|
||||||
let regex = try NSRegularExpression(pattern: "(\\\".+?\\\"|\\S+)", options: [])
|
|
||||||
let matches = regex.matches(in: launchArguments, options: [], range: NSRange(location:0, length: launchArguments.count))
|
|
||||||
let results = matches.map { result -> String in
|
|
||||||
(launchArguments as NSString).substring(with: result.range)
|
|
||||||
}
|
|
||||||
app.launchArguments += results
|
|
||||||
} catch {
|
|
||||||
print("Couldn't detect/set launch_arguments...")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
open class func snapshot(_ name: String, waitForLoadingIndicator: Bool = true) {
|
|
||||||
if waitForLoadingIndicator {
|
|
||||||
waitForLoadingIndicatorToDisappear()
|
|
||||||
}
|
|
||||||
|
|
||||||
print("snapshot: \(name)") // more information about this, check out https://github.com/fastlane/fastlane/tree/master/snapshot#how-does-it-work
|
|
||||||
|
|
||||||
sleep(1) // Waiting for the animation to be finished (kind of)
|
|
||||||
|
|
||||||
#if os(OSX)
|
|
||||||
XCUIApplication().typeKey(XCUIKeyboardKeySecondaryFn, modifierFlags: [])
|
|
||||||
#else
|
|
||||||
let screenshot = app.windows.firstMatch.screenshot()
|
|
||||||
guard let simulator = ProcessInfo().environment["SIMULATOR_DEVICE_NAME"], let screenshotsDir = screenshotsDirectory else { return }
|
|
||||||
let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png")
|
|
||||||
do {
|
|
||||||
try screenshot.pngRepresentation.write(to: path)
|
|
||||||
} catch let error {
|
|
||||||
print("Problem writing screenshot: \(name) to \(path)")
|
|
||||||
print(error)
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
class func waitForLoadingIndicatorToDisappear() {
|
|
||||||
#if os(tvOS)
|
|
||||||
return
|
|
||||||
#endif
|
|
||||||
|
|
||||||
let query = XCUIApplication().statusBars.children(matching: .other).element(boundBy: 1).children(matching: .other)
|
|
||||||
|
|
||||||
while (0..<query.count).map({ query.element(boundBy: $0) }).contains(where: { $0.isLoadingIndicator }) {
|
|
||||||
sleep(1)
|
|
||||||
print("Waiting for loading indicator to disappear...")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class func pathPrefix() throws -> URL? {
|
|
||||||
let homeDir: URL
|
|
||||||
// on OSX config is stored in /Users/<username>/Library
|
|
||||||
// and on iOS/tvOS/WatchOS it's in simulator's home dir
|
|
||||||
#if os(OSX)
|
|
||||||
guard let user = ProcessInfo().environment["USER"] else {
|
|
||||||
throw SnapshotError.cannotDetectUser
|
|
||||||
}
|
|
||||||
|
|
||||||
guard let usersDir = FileManager.default.urls(for: .userDirectory, in: .localDomainMask).first else {
|
|
||||||
throw SnapshotError.cannotFindHomeDirectory
|
|
||||||
}
|
|
||||||
|
|
||||||
homeDir = usersDir.appendingPathComponent(user)
|
|
||||||
#else
|
|
||||||
guard let simulatorHostHome = ProcessInfo().environment["SIMULATOR_HOST_HOME"] else {
|
|
||||||
throw SnapshotError.cannotFindSimulatorHomeDirectory
|
|
||||||
}
|
|
||||||
guard let homeDirUrl = URL(string: simulatorHostHome) else {
|
|
||||||
throw SnapshotError.cannotAccessSimulatorHomeDirectory(simulatorHostHome)
|
|
||||||
}
|
|
||||||
homeDir = URL(fileURLWithPath: homeDirUrl.path)
|
|
||||||
#endif
|
|
||||||
return homeDir.appendingPathComponent("Library/Caches/tools.fastlane")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
extension XCUIElement {
|
|
||||||
var isLoadingIndicator: Bool {
|
|
||||||
let whiteListedLoaders = ["GeofenceLocationTrackingOn", "StandardLocationTrackingOn"]
|
|
||||||
if whiteListedLoaders.contains(self.identifier) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
return self.frame.size == CGSize(width: 10, height: 20)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Please don't remove the lines below
|
|
||||||
// They are used to detect outdated configuration files
|
|
||||||
// SnapshotHelperVersion [1.5]
|
|
@ -1,53 +0,0 @@
|
|||||||
import XCTest
|
|
||||||
|
|
||||||
class Telegram_iOS_UITests: XCTestCase {
|
|
||||||
var app: XCUIApplication!
|
|
||||||
|
|
||||||
override func setUp() {
|
|
||||||
super.setUp()
|
|
||||||
|
|
||||||
self.continueAfterFailure = false
|
|
||||||
|
|
||||||
self.app = XCUIApplication()
|
|
||||||
let path = Bundle(for: type(of: self)).bundlePath
|
|
||||||
|
|
||||||
self.app.launchEnvironment["snapshot-data-path"] = path
|
|
||||||
setupSnapshot(app)
|
|
||||||
}
|
|
||||||
|
|
||||||
override func tearDown() {
|
|
||||||
super.tearDown()
|
|
||||||
}
|
|
||||||
|
|
||||||
func testChatList() {
|
|
||||||
self.app.launchArguments = ["snapshot:chat-list"]
|
|
||||||
self.app.launch()
|
|
||||||
XCTAssert(self.app.wait(for: .runningForeground, timeout: 10.0))
|
|
||||||
snapshot("01ChatList")
|
|
||||||
sleep(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
func testSecretChat() {
|
|
||||||
self.app.launchArguments = ["snapshot:secret-chat"]
|
|
||||||
self.app.launch()
|
|
||||||
XCTAssert(self.app.wait(for: .runningForeground, timeout: 10.0))
|
|
||||||
snapshot("02SecretChat")
|
|
||||||
sleep(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
func testSettings() {
|
|
||||||
self.app.launchArguments = ["snapshot:settings"]
|
|
||||||
self.app.launch()
|
|
||||||
XCTAssert(self.app.wait(for: .runningForeground, timeout: 10.0))
|
|
||||||
snapshot("04Settings")
|
|
||||||
sleep(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
func testAppearanceSettings() {
|
|
||||||
self.app.launchArguments = ["snapshot:appearance-settings"]
|
|
||||||
self.app.launch()
|
|
||||||
XCTAssert(self.app.wait(for: .runningForeground, timeout: 10.0))
|
|
||||||
snapshot("05AppearanceSettings")
|
|
||||||
sleep(1)
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
|
||||||
<string>en</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>$(PRODUCT_NAME)</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>BNDL</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>1.0</string>
|
|
||||||
<key>CFBundleSignature</key>
|
|
||||||
<string>????</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>667</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
@ -1,29 +0,0 @@
|
|||||||
import XCTest
|
|
||||||
import Display
|
|
||||||
|
|
||||||
class ListViewTests: XCTestCase {
|
|
||||||
var listView: ListView!
|
|
||||||
|
|
||||||
override func setUp() {
|
|
||||||
super.setUp()
|
|
||||||
|
|
||||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
||||||
|
|
||||||
// In UI tests it is usually best to stop immediately when a failure occurs.
|
|
||||||
continueAfterFailure = false
|
|
||||||
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
|
|
||||||
XCUIApplication().launch()
|
|
||||||
|
|
||||||
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
|
|
||||||
}
|
|
||||||
|
|
||||||
override func tearDown() {
|
|
||||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
||||||
super.tearDown()
|
|
||||||
}
|
|
||||||
|
|
||||||
func testExample() {
|
|
||||||
// Use recording to get started writing UI tests.
|
|
||||||
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
//
|
|
||||||
// Telegram_iOSTests.swift
|
|
||||||
// Telegram-iOSTests
|
|
||||||
//
|
|
||||||
// Created by Peter on 10/06/15.
|
|
||||||
// Copyright (c) 2015 Telegram. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
import UIKit
|
|
||||||
import XCTest
|
|
||||||
|
|
||||||
class Telegram_iOSTests: XCTestCase {
|
|
||||||
|
|
||||||
override func setUp() {
|
|
||||||
super.setUp()
|
|
||||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
|
||||||
}
|
|
||||||
|
|
||||||
override func tearDown() {
|
|
||||||
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
|
||||||
super.tearDown()
|
|
||||||
}
|
|
||||||
|
|
||||||
func testExample() {
|
|
||||||
// This is an example of a functional test case.
|
|
||||||
XCTAssert(true, "Pass")
|
|
||||||
}
|
|
||||||
|
|
||||||
func testPerformanceExample() {
|
|
||||||
// This is an example of a performance test case.
|
|
||||||
self.measure {
|
|
||||||
// Put the code you want to measure the time of here.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -53,13 +53,13 @@ resource_dependencies = [
|
|||||||
"//submodules/PasswordSetupUI:PasswordSetupUIResources",
|
"//submodules/PasswordSetupUI:PasswordSetupUIResources",
|
||||||
"//submodules/PasswordSetupUI:PasswordSetupUIAssets",
|
"//submodules/PasswordSetupUI:PasswordSetupUIAssets",
|
||||||
"//submodules/OverlayStatusController:OverlayStatusControllerResources",
|
"//submodules/OverlayStatusController:OverlayStatusControllerResources",
|
||||||
"//:AppResources",
|
":AppResources",
|
||||||
"//:AppStringResources",
|
":AppStringResources",
|
||||||
"//:InfoPlistStringResources",
|
":InfoPlistStringResources",
|
||||||
"//:AppIntentVocabularyResources",
|
":AppIntentVocabularyResources",
|
||||||
"//:Icons",
|
":Icons",
|
||||||
"//:AdditionalIcons",
|
":AdditionalIcons",
|
||||||
"//:LaunchScreen",
|
":LaunchScreen",
|
||||||
]
|
]
|
||||||
|
|
||||||
build_phase_scripts = [
|
build_phase_scripts = [
|
||||||
@ -129,7 +129,6 @@ apple_resource(
|
|||||||
apple_library(
|
apple_library(
|
||||||
name = "AppLibrary",
|
name = "AppLibrary",
|
||||||
visibility = [
|
visibility = [
|
||||||
"//:",
|
|
||||||
"//...",
|
"//...",
|
||||||
],
|
],
|
||||||
configs = library_configs(),
|
configs = library_configs(),
|
||||||
@ -146,7 +145,6 @@ apple_library(
|
|||||||
apple_binary(
|
apple_binary(
|
||||||
name = "AppBinary",
|
name = "AppBinary",
|
||||||
visibility = [
|
visibility = [
|
||||||
"//:",
|
|
||||||
"//...",
|
"//...",
|
||||||
],
|
],
|
||||||
configs = app_binary_configs(),
|
configs = app_binary_configs(),
|
||||||
@ -163,7 +161,7 @@ apple_binary(
|
|||||||
apple_bundle(
|
apple_bundle(
|
||||||
name = "Telegram",
|
name = "Telegram",
|
||||||
visibility = [
|
visibility = [
|
||||||
"//:",
|
"//Telegram:...",
|
||||||
],
|
],
|
||||||
extension = "app",
|
extension = "app",
|
||||||
binary = ":AppBinary",
|
binary = ":AppBinary",
|
||||||
@ -527,7 +525,7 @@ apple_bundle(
|
|||||||
name = "WatchApp",
|
name = "WatchApp",
|
||||||
binary = ":WatchAppBinary",
|
binary = ":WatchAppBinary",
|
||||||
visibility = [
|
visibility = [
|
||||||
"//:",
|
"//Telegram:...",
|
||||||
],
|
],
|
||||||
extension = "app",
|
extension = "app",
|
||||||
info_plist = "Watch/App/Info.plist",
|
info_plist = "Watch/App/Info.plist",
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 555 B After Width: | Height: | Size: 555 B |
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 592 B After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 929 B After Width: | Height: | Size: 929 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |