CameronStuartSmith / flutter_lottie

Use lottie in flutter for both iOS and Android
Apache License 2.0
157 stars 75 forks source link

Please update to Swift #9

Closed magicleon94 closed 4 years ago

magicleon94 commented 5 years ago

Newer versions (>2.5.3) of lottie-ios break the plugin because of the migration to Swift.

kimthangatm commented 5 years ago

https://github.com/CameronStuartSmith/flutter_lottie/blob/d1ec99b5d4de3c2a81773855cc050fd635fe0091/ios/flutter_lottie.podspec#L16

  1. Clone flutter_lottie to your computer :
  2. Change s.dependency 'lottie-ios' to s.dependency 'lottie-ios', '2.5.0' in flutter_lottie/ios/flutter_lottie.podspec
  3. Change pubspec.yaml
flutter_lottie: 
    path: '../flutter_lottie'
  1. cd YOUR/project/ios and delete Podfile.lock and run pod install
  2. Get Package to update dependency in local
Raullg98 commented 5 years ago

This will solve your problem @magicleon94, check the iOS part https://github.com/ko2ic/image_downloader/wiki#your-appdelegate-is-the-case-of-objective-c