

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.1'
    }
}

apply plugin: 'com.android.library'

apply plugin: "kotlin-android"
apply plugin: "kotlin-android-extensions"
apply plugin: 'kotlin-kapt'


android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
    google()
    jcenter()
}
dependencies {
    compile 'com.facebook.react:react-native:+'
    // https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk7
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10'
    // implementation 'androidx.core:core-ktx:1.5.0'

    // Glid
    implementation 'com.github.bumptech.glide:glide:4.13.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.13.0'
    kapt 'com.github.bumptech.glide:compiler:4.13.0'
    
    // integration
    implementation 'com.github.bumptech.glide:gifencoder-integration:4.13.1'
    implementation "com.github.zjupure:webpdecoder:2.0.4.12.0"

    // kotlin 
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0"
    implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2"
    // implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2"

    // implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:1.4.10"
    // Glide end

    // standalone gif decodee encoder
     implementation ('io.github.waynejo:androidndkgif:1.0.1')
    
    def fresco_version = '2.6.0'
    implementation "com.facebook.fresco:fresco:$fresco_version"
    implementation "com.facebook.fresco:webpsupport:$fresco_version"
    implementation "com.facebook.fresco:animated-webp:$fresco_version"
    implementation "com.facebook.fresco:animated-base:$fresco_version"

    def apng_version = '2.23.0'
    // https://mvnrepository.com/artifact/com.github.penfeizhou.android.animation/awebp
    implementation 'com.github.penfeizhou.android.animation:awebp:2.23.0'
    // https://mvnrepository.com/artifact/com.github.penfeizhou.android.animation/awebpencoder
    implementation 'com.github.penfeizhou.android.animation:awebpencoder:2.23.0'
    // https://mvnrepository.com/artifact/com.github.penfeizhou.android.animation/gif
    implementation 'com.github.penfeizhou.android.animation:gif:2.23.0'


}
  