8ee607cbc1
Add PerfActivity to Skottie demo app, which can render with both Lottie and Skottie players. Create bash script, which runs 15 lottie files with both renderers, runs perfetto and outputs performance metrics in json files. Test: ran run_perf.sh and it outpus perf metrics Change-Id: Ibc29d3a9dc7bfe79002bf91472e93883d746c03d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/296276 Reviewed-by: Derek Sollenberger <djsollen@google.com> Commit-Queue: Stan Iliev <stani@google.com>
45 lines
1.3 KiB
Groovy
45 lines
1.3 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 project("skottielib")
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'com.airbnb.android:lottie:3.4.1'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 28
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
flavorDimensions "tier"
|
|
defaultConfig {
|
|
minSdkVersion 19
|
|
targetSdkVersion 28
|
|
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"
|
|
|
|
// When building from Android Studio, ensure that local variables are set:
|
|
// sdk.dir=[sdk file path]
|
|
// depot_tools.dir=[depot tools file path]
|
|
// x86.out.dir=[out file for x86]
|
|
// x64.out.dir=[out file for x64]
|
|
// arm64.out.dir=[out file for xarm64]
|
|
// arm.out.dir=[out file for arm]
|
|
|
|
productFlavors { arm {}; arm64 {}; x86 {}; x64 {}; arm64vulkan{}; }
|
|
|
|
}
|