SVGA

Integration Guide

Integrate the player to iOS / Android / Flutter / Web

iOS

  • Open https://github.com/svga/SVGAPlayer-iOS to download the source code.

  • Add the code in Source to your project.

  • Create the SVGAPlayer instance to the UIView just like the example.

  • You can also use CocoaPods, add the code:

    pod 'SVGAPlayer'

    to the Podfile of your project.

Android

  • Open https://github.com/svga/SVGAPlayer-Android to download the source code.

  • Add the code in

    library/src/main/java/com/opensource/svgaplayer

    to your project.

  • Create the SVGAImageView for SVGAPlayer to the layout.xml just like the example.

  • You can also use Gradle, add JitPack.io to root build.gradle

    allprojects {
      repositories {
        ...
        maven { url 'https://jitpack.io' }
      }
    }

  • Add the following dependencies:

    compile 'com.github.svga:SVGAPlayer-Android:1.2.4'
    compile 'org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.1'

  • Modify the version number as needed, and click in for the latest version
    https://jitpack.io/#svga/SVGAPlayer-Android

Web