Integration Guide

Integrate the player to iOS / Android / Web

iOS

  • Open https://github.com/yyued/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/yyued/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.yyued: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/#yyued/SVGAPlayer-Android/

Web