Version 10.13

This commit is contained in:
Kylmakalle
2024-07-02 19:58:37 +03:00
parent 1d1ea447ad
commit 1cfbc5b7cd
634 changed files with 30999 additions and 1244 deletions

View File

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

View File

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

View File

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