Merge pull request #255 from airbnb/btw/buildfix

Fix build error for bundle addition
This commit is contained in:
Brandon Withrow 2017-06-12 14:46:09 -07:00 committed by GitHub
commit 5b5d49664d

View File

@ -242,7 +242,7 @@
LOTComposition *comp = [[LOTAnimationCache sharedCache] animationForKey:animationName];
if (comp) {
return [[LOTAnimationView alloc] initWithModel:comp];
return [[LOTAnimationView alloc] initWithModel:comp inBundle:[NSBundle mainBundle]];
}
NSError *error;
@ -253,7 +253,7 @@
LOTComposition *laScene = [[LOTComposition alloc] initWithJSON:JSONObject];
laScene.rootDirectory = [filePath stringByDeletingLastPathComponent];
[[LOTAnimationCache sharedCache] addAnimation:laScene forKey:animationName];
return [[LOTAnimationView alloc] initWithModel:laScene];
return [[LOTAnimationView alloc] initWithModel:laScene inBundle:[NSBundle mainBundle]];
}
NSException* resourceNotFoundException = [NSException exceptionWithName:@"ResourceNotFoundException"