mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-04-08 14:17:54 +00:00
Version 10.13
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
load(
|
||||
"@build_configuration//:variables.bzl",
|
||||
"sg_config",
|
||||
"telegram_api_id",
|
||||
"telegram_api_hash",
|
||||
"telegram_app_center_id",
|
||||
@@ -20,6 +21,7 @@ objc_library(
|
||||
]),
|
||||
copts = [
|
||||
"-Werror",
|
||||
"-DAPP_SG_CONFIG=\\\"{}\\\"".format(sg_config.replace('"', '\\\\\\"')),
|
||||
"-DAPP_CONFIG_API_ID={}".format(telegram_api_id),
|
||||
"-DAPP_CONFIG_API_HASH=\\\"{}\\\"".format(telegram_api_hash),
|
||||
"-DAPP_CONFIG_APP_CENTER_ID=\\\"{}\\\"".format(telegram_app_center_id),
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
- (instancetype _Nonnull)initWithBaseAppBundleId:(NSString * _Nonnull)baseAppBundleId;
|
||||
|
||||
@property (nonatomic, strong, readonly) NSString * _Nullable appCenterId;
|
||||
@property (nonatomic, strong, readonly) NSString * _Nonnull sgConfig;
|
||||
@property (nonatomic, readonly) int32_t apiId;
|
||||
@property (nonatomic, strong, readonly) NSString * _Nonnull apiHash;
|
||||
@property (nonatomic, readonly) bool isInternalBuild;
|
||||
|
||||
@@ -70,6 +70,7 @@ API_AVAILABLE(ios(10))
|
||||
|
||||
@interface BuildConfig () {
|
||||
NSData * _Nullable _bundleData;
|
||||
NSString * _Nonnull _sgConfig;
|
||||
int32_t _apiId;
|
||||
NSString * _Nonnull _apiHash;
|
||||
NSString * _Nullable _appCenterId;
|
||||
@@ -127,6 +128,7 @@ API_AVAILABLE(ios(10))
|
||||
- (instancetype _Nonnull)initWithBaseAppBundleId:(NSString * _Nonnull)baseAppBundleId {
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
_sgConfig = @(APP_SG_CONFIG);
|
||||
_apiId = APP_CONFIG_API_ID;
|
||||
_apiHash = @(APP_CONFIG_API_HASH);
|
||||
_appCenterId = @(APP_CONFIG_APP_CENTER_ID);
|
||||
|
||||
Reference in New Issue
Block a user