mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge pull request #255 from airbnb/btw/buildfix
Fix build error for bundle addition
This commit is contained in:
@@ -242,7 +242,7 @@
|
|||||||
|
|
||||||
LOTComposition *comp = [[LOTAnimationCache sharedCache] animationForKey:animationName];
|
LOTComposition *comp = [[LOTAnimationCache sharedCache] animationForKey:animationName];
|
||||||
if (comp) {
|
if (comp) {
|
||||||
return [[LOTAnimationView alloc] initWithModel:comp];
|
return [[LOTAnimationView alloc] initWithModel:comp inBundle:[NSBundle mainBundle]];
|
||||||
}
|
}
|
||||||
|
|
||||||
NSError *error;
|
NSError *error;
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
LOTComposition *laScene = [[LOTComposition alloc] initWithJSON:JSONObject];
|
LOTComposition *laScene = [[LOTComposition alloc] initWithJSON:JSONObject];
|
||||||
laScene.rootDirectory = [filePath stringByDeletingLastPathComponent];
|
laScene.rootDirectory = [filePath stringByDeletingLastPathComponent];
|
||||||
[[LOTAnimationCache sharedCache] addAnimation:laScene forKey:animationName];
|
[[LOTAnimationCache sharedCache] addAnimation:laScene forKey:animationName];
|
||||||
return [[LOTAnimationView alloc] initWithModel:laScene];
|
return [[LOTAnimationView alloc] initWithModel:laScene inBundle:[NSBundle mainBundle]];
|
||||||
}
|
}
|
||||||
|
|
||||||
NSException* resourceNotFoundException = [NSException exceptionWithName:@"ResourceNotFoundException"
|
NSException* resourceNotFoundException = [NSException exceptionWithName:@"ResourceNotFoundException"
|
||||||
|
|||||||
Reference in New Issue
Block a user