diff options
author | Trumeet <liangyuteng12345@gmail.com> | 2017-09-30 20:03:29 +0800 |
---|---|---|
committer | Trumeet <liangyuteng12345@gmail.com> | 2017-09-30 20:03:29 +0800 |
commit | 266894af1c1cf4c82addd22f2635a07ec2f1506d (patch) | |
tree | 3b3f98346823d3ac1391228e15887c4c48b05ee0 /README.md | |
parent | 37bd9772688c6228a8d265b41e216e7985e17408 (diff) | |
download | RedirectStorage-master.tar RedirectStorage-master.tar.gz RedirectStorage-master.tar.bz2 RedirectStorage-master.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -8,12 +8,12 @@ * Add it in your root build.gradle at the end of repositories: ``` - allprojects { - repositories { - ... - maven { url 'https://jitpack.io' } - } - } +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } +} ``` * 查詢最新版本 @@ -23,9 +23,9 @@ * 添加依賴 ``` - dependencies { - compile 'com.github.Trumeet:RedirectStorage:<最新版本號>' - } +dependencies { + compile 'com.github.Trumeet:RedirectStorage:<最新版本號>' +} ``` # Usage @@ -35,7 +35,7 @@ ```java // 启用 -enable(String pathSuffix) // pathSuffix 是 加在原目录后面的后缀,详情见 JavaDoc +enable(PathCallback callback) // 当需要 Hack 路径的时候的 Callback // 禁用 disable() |