Releases: Eyre-S/ResourceTools
v0.3.1
Non-breaking Changes
- Cha dangling zip-entry (an entry that has no parent entry) now will not make read failed. They will be just ignored.
Bug fixes
- Fix when read from jar, special characters in jar path will cause errors.
- Fix a jar path split wrong.
- Fix when read from jar, the non-sorted zip-entries will cause read (create the file tree) failed.
v0.3.0 - new world
Introduces a brand-new API and implements, aiming to provide a more stability and extensible experience.
Changes between v0.2.x:
- The following classes should be replaced to the new interface.
old | new |
---|---|
ResourcesPackage | ResourcePackage |
ResFile | ResourceFile |
ResDir | ResourceDirectory |
The methods should be replaced to the new methods in the new interfaces. Most methods have no big naming changes, you should change it easily.
-
Getting a new resource package should use
ResourcePackage#get(...)
instead ofnew ResourcePackage(...)
, and you should use a identifer file to locate your package. Using a identifier file with unique name should no longer meets conflicts when using many jars that have the same resource dirs. And you will no longer need to provide your class as a identifier (we also not recommend this due to many problems using class). -
The
ResourcePackage
now will always use the root directory of classpath, instead of you can only use a one-level directory as root (due to v0.2.x bugs). -
The
extract
method inResDir
is removed. You may only implement it by yourself usinglistFiles
methods. We may implement it again sooner or later.
v0.2.2 - latest build of API-rejactive
旧提交的补充发布
新的 API 规范 barkar
- v0.3.0+ 正在制作中
当前 API 规范 rejactive
的最终版本,此 API 将不会再进行更新
updates :
- 修复
ResFile.readAsString()
吞掉换行的bug
同时,现在可以通过 workshop 的 maven 仓库 来下载依赖
repositories {
maven { name '-ws'; url 'https://mvn.sukazyo.cc' }
}
dependencies {
implementation "cc.sukazyo:resource-tools:0.2.2"
}
v0.2.1 - 修复特殊字符问题和优化代码
- 补充javadoc, README, LICENSE
- 修复了路径含特殊字符时找不到文件的严重bug
- 删除了主类构造函数抛出IOException
- 优化部分性能问题(#issue1, #issue2)
- 规范一些代码
0.2 | 重大问题修复
修复了上一个版本调用导入的jar而非项目的严重bug
代码注释和文档正在补充,快了快了(逃
ResourceTools 第一次发布
提供了便捷的资源文件引用方案
已支持
- File 的内容读取(String或InputStream)
- Dir 列出所含文件/目录
- Dir 直接解压到某目录
赶工痕迹明显,可能有严重bug,还请第一时间报告