Hyperion Plugin for Inspecting Attribute of Lottie-Android base on Hyperion-Attr.
- Changing Lottie animation file dynamically by typing URL or scanning QR code via network
- Displaying all KeyPathElements with KeyPath of selected Lottie animation file.
- Changing any LottieProperty of any KeyPathElements of selected Lottie animation file via LottieAnimationView#addValueCallback.
STEP 1 : Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
STEP 2 : Add the dependency
dependencies {
debugImplementation 'com.github.ykoyano:hyperion-attr-lottie:0.1.0'
}
STEP 1 : Add the permission to app/src/debug/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.github.ykoyano.hyperion.plugin.attr.lottie">
<application
android:name=".DebugApp"
tools:replace="android:name" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
</manifest>
STEP 2 : Add the request of camera permission to your main activity class for a scanning QR code.
override fun onCreate(savedInstanceState: Bundle?) {
... // some code
if (BuildConfig.DEBUG &&
ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA) ==
PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.CAMERA), 1234)
}
}
This plugin was implemented based on Hyperion-Attr for specialized for debugging Lottie.
And sample application in this repository uses bellow Lottie animations for demonstration.
- AndroidWave.json
- Star Success created by Taras Chernenko
- star created by nanaki
- Star Fav Animation created by Taiki IKEDA
- Trip created by Pratik Malvi
- Header for contact us created by Aris Desainbagus
- Indian Neighborhoo created by Gaurav Pant