Skip to content

Releases: Eyre-S/ResourceTools

v0.3.1

18 Jul 06:43
2c67a0e
Compare
Choose a tag to compare

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

01 Jul 17:21
62a7d63
Compare
Choose a tag to compare

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 of new 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 in ResDir is removed. You may only implement it by yourself using listFiles methods. We may implement it again sooner or later.

v0.2.2 - latest build of API-rejactive

12 Nov 06:38
Compare
Choose a tag to compare

旧提交的补充发布
新的 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 - 修复特殊字符问题和优化代码

02 Oct 16:43
Compare
Choose a tag to compare
  • 补充javadoc, README, LICENSE
  • 修复了路径含特殊字符时找不到文件的严重bug
  • 删除了主类构造函数抛出IOException
  • 优化部分性能问题(#issue1, #issue2)
  • 规范一些代码

0.2 | 重大问题修复

01 Sep 13:26
Compare
Choose a tag to compare
Pre-release

修复了上一个版本调用导入的jar而非项目的严重bug

代码注释和文档正在补充,快了快了(逃

ResourceTools 第一次发布

31 Aug 16:13
Compare
Choose a tag to compare
Pre-release

提供了便捷的资源文件引用方案

已支持

  • File 的内容读取(String或InputStream)
  • Dir 列出所含文件/目录
  • Dir 直接解压到某目录

赶工痕迹明显,可能有严重bug,还请第一时间报告