With it, you can operate Android-asset resources just like using java.io.File.
Not only the main AssetFile class, but also the accompanying I/O Stream class and Reader/Writer class.
Context and AssetManager are automatically obtained and do not require manual transfer of parameters.
Inspired by https://github.com/xiandanin/AssetFile
JavaDoc: https://tianscar.github.io/AssetFile/
- Step 1. Add the JitPack repository to your build file
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 {
...
implementation 'com.github.Tianscar:AssetFile:1.0.4.1'
}
MIT © Tianscar