Merge pull request #716 from airbnb/btw/2.5.2
Fixed Build
diff --git a/lottie-ios.podspec b/lottie-ios.podspec
index 7b8f741..e49ea9f 100644
--- a/lottie-ios.podspec
+++ b/lottie-ios.podspec
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'lottie-ios'
- s.version = '2.5.1'
+ s.version = '2.5.2'
s.summary = 'Used to natively render vector animations exported from After Effects.'
s.description = <<-DESC
diff --git a/lottie-ios/Classes/Private/LOTAnimationView.m b/lottie-ios/Classes/Private/LOTAnimationView.m
index d663865..4ce382e 100644
--- a/lottie-ios/Classes/Private/LOTAnimationView.m
+++ b/lottie-ios/Classes/Private/LOTAnimationView.m
@@ -134,14 +134,6 @@
self.clipsToBounds = YES;
}
-#else
-
-- (void)_initializeAnimationContainer {
- self.wantsLayer = YES;
-}
-
-#endif
-
- (void)_commonInit {
_animationSpeed = 1;
_animationProgress = 0;
@@ -156,6 +148,28 @@
[NSNotificationCenter.defaultCenter addObserver:self selector:@selector(_handleWillEnterBackground) name:UIApplicationDidEnterBackgroundNotification object:nil];
}
+#else
+
+- (void)_initializeAnimationContainer {
+ self.wantsLayer = YES;
+}
+
+- (void)_commonInit {
+ _animationSpeed = 1;
+ _animationProgress = 0;
+ _loopAnimation = NO;
+ _autoReverseAnimation = NO;
+ _playRangeEndFrame = nil;
+ _playRangeStartFrame = nil;
+ _playRangeEndProgress = 0;
+ _playRangeStartProgress = 0;
+ _shouldRasterizeWhenIdle = NO;
+}
+
+#endif
+
+
+
- (void)dealloc {
[NSNotificationCenter.defaultCenter removeObserver:self];
}
diff --git a/package.json b/package.json
index c5c4c09..3869b91 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "lottie-ios",
- "version": "2.5.1",
+ "version": "2.5.2",
"description": "Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations exported as json with bodymovin and renders the vector animations natively on mobile and through React Native!",
"main": "index.js",
"scripts": {