Update README.md

This commit is contained in:
oupson 2018-10-24 13:28:13 +02:00 committed by GitHub
parent 58ba64ee8a
commit db5e7056e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -33,3 +33,21 @@ apng.addFrames(BitmapFactory.decodeByteArray(file2.readBytes(), 0, file2.readByt
val apngByteArray = apng.generateAPNGByteArray() val apngByteArray = apng.generateAPNGByteArray()
File("output file path").writeBytes(apngByteArray) File("output file path").writeBytes(apngByteArray)
``` ```
How to install :
Via jitpack
```gradle
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.oupson:Kapng-Android:1.0.0'
}
```
Or put the aar file in /libs/ and verify that you have :
```gradle
dependencies {
implementation fileTree(include: ['*.aar'], dir: 'libs')
}