93151726ed
Create a new Skottie test app, which plays lottie files using a TextureView. Implement SkottieView, which takes a JSON input stream and plays the animation. Bug: skia: Change-Id: Ic62688b91692c28f35b13356d1e99b4d15d3e30f Reviewed-on: https://skia-review.googlesource.com/130125 Reviewed-by: Derek Sollenberger <djsollen@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Stan Iliev <stani@google.com>
36 lines
1.0 KiB
Groovy
36 lines
1.0 KiB
Groovy
/*
|
|
* Copyright 2018 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
apply plugin: 'com.android.application'
|
|
|
|
dependencies {
|
|
implementation 'com.android.support:support-v13:23.3.0'
|
|
implementation 'com.android.support:appcompat-v7:23.3.0'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 23
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
flavorDimensions "tier"
|
|
defaultConfig {
|
|
applicationId "org.skia.skottie"
|
|
minSdkVersion 23
|
|
targetSdkVersion 23
|
|
versionCode 1
|
|
versionName "1.0"
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
flavorDimensions "base"
|
|
sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call
|
|
sourceSets.main.jniLibs.srcDir "src/main/libs"
|
|
productFlavors { universal{}; arm {}; arm64 {}; x86 {}; x64 {}; arm64vulkan{}; }
|
|
|
|
setupSkiaLibraryBuild(project, applicationVariants, "libskottie_android")
|
|
}
|