mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Fix lottie
This commit is contained in:
parent
3dad670e84
commit
3396a1155f
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "submodules/rlottie/rlottie"]
|
||||||
|
path = submodules/rlottie/rlottie
|
||||||
|
url=https://github.com/peter-iakovlev/rlottie.git
|
||||||
@ -37,6 +37,14 @@ static NSString * _Nullable readString(std::string &string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static NSData * _Nullable readSecureString(td::SecureString &string) {
|
||||||
|
if (string.size() == 0) {
|
||||||
|
return [NSData data];
|
||||||
|
} else {
|
||||||
|
return [[NSData alloc] initWithBytes:string.data() length:string.size()];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static TONTransactionMessage * _Nullable parseTransactionMessage(tonlib_api::object_ptr<tonlib_api::raw_message> &message) {
|
static TONTransactionMessage * _Nullable parseTransactionMessage(tonlib_api::object_ptr<tonlib_api::raw_message> &message) {
|
||||||
if (message == nullptr) {
|
if (message == nullptr) {
|
||||||
return nil;
|
return nil;
|
||||||
|
|||||||
@ -20,7 +20,8 @@ static_library(
|
|||||||
], exclude = [
|
], exclude = [
|
||||||
"rlottie/src/lottie/rapidjson/msinttypes/**/*",
|
"rlottie/src/lottie/rapidjson/msinttypes/**/*",
|
||||||
]) + [
|
]) + [
|
||||||
"LottieInstance.h"
|
"LottieInstance.h",
|
||||||
|
"config.h",
|
||||||
],
|
],
|
||||||
exported_headers = [
|
exported_headers = [
|
||||||
"LottieInstance.h"
|
"LottieInstance.h"
|
||||||
|
|||||||
19
submodules/rlottie/config.h
Executable file
19
submodules/rlottie/config.h
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
|
|
||||||
|
// enable threading
|
||||||
|
#define LOTTIE_THREAD_SUPPORT
|
||||||
|
|
||||||
|
//enable logging
|
||||||
|
//#define LOTTIE_LOGGING_SUPPORT
|
||||||
|
|
||||||
|
//enable module building of image loader
|
||||||
|
//#define LOTTIE_IMAGE_MODULE_SUPPORT
|
||||||
|
|
||||||
|
//enable lottie model caching
|
||||||
|
//#define LOTTIE_CACHE_SUPPORT
|
||||||
|
|
||||||
|
// disable image loader
|
||||||
|
#define LOTTIE_IMAGE_MODULE_DISABLED
|
||||||
|
|
||||||
|
#endif // CONFIG_H
|
||||||
1
submodules/rlottie/rlottie
Submodule
1
submodules/rlottie/rlottie
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 0f3d10739148ce430aca5db41ee97d05b3d0898c
|
||||||
Loading…
x
Reference in New Issue
Block a user