Fix lottie

This commit is contained in:
Peter 2019-10-04 23:23:42 +04:00
parent 3dad670e84
commit 3396a1155f
5 changed files with 33 additions and 1 deletions

3
.gitmodules vendored
View File

@ -0,0 +1,3 @@
[submodule "submodules/rlottie/rlottie"]
path = submodules/rlottie/rlottie
url=https://github.com/peter-iakovlev/rlottie.git

View File

@ -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) {
if (message == nullptr) {
return nil;

View File

@ -20,7 +20,8 @@ static_library(
], exclude = [
"rlottie/src/lottie/rapidjson/msinttypes/**/*",
]) + [
"LottieInstance.h"
"LottieInstance.h",
"config.h",
],
exported_headers = [
"LottieInstance.h"

19
submodules/rlottie/config.h Executable file
View 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

@ -0,0 +1 @@
Subproject commit 0f3d10739148ce430aca5db41ee97d05b3d0898c