From 3669d120bcd3c2512fa0530566c78c3e80738a8d Mon Sep 17 00:00:00 2001 From: Trumeet Date: Fri, 8 Sep 2017 20:18:05 +0800 Subject: fix: Remove android-hidden-api, use custom framework.jar instead to fix JitPack compile error --- README.md | 2 +- build.gradle | 5 +++++ library/build.gradle | 1 + library/lib/classes.jar | Bin 0 -> 16348161 bytes .../top/trumeet/redirectstorage/RedirectStorage.java | 2 -- 5 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 library/lib/classes.jar diff --git a/README.md b/README.md index ba8617e..703d3ed 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ getRealPath() **尚未严格兼容性测试,目前 Android O 模拟器测试通过,有问题请提交 issues** # Licenses -使用本項目請確保您遵守 `Apache License 2.0`,本项目使用 [android-hidden-api](https://github.com/anggrayudi/android-hidden-api) 项目。 +使用本項目請確保您遵守 `Apache License 2.0` **特别感谢 [@heruoxin](https://github.com/heruoxin) (冰箱作者)提供核心代码 ~~,我只是做了个简单封装和提供了几个接口 逃跑~~** diff --git a/build.gradle b/build.gradle index 540ef2b..c1344f9 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,11 @@ buildscript { } allprojects { + gradle.projectsEvaluated { + tasks.withType(JavaCompile) { + options.compilerArgs.add('-Xbootclasspath/p:app\\lib\\classes.jar') + } + } repositories { google() jcenter() diff --git a/library/build.gradle b/library/build.gradle index b4e42fb..314f1e5 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -23,4 +23,5 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) + provided files('lib/classes.jar') } diff --git a/library/lib/classes.jar b/library/lib/classes.jar new file mode 100644 index 0000000..1036492 Binary files /dev/null and b/library/lib/classes.jar differ diff --git a/library/src/main/java/top/trumeet/redirectstorage/RedirectStorage.java b/library/src/main/java/top/trumeet/redirectstorage/RedirectStorage.java index 8f6f99c..1aa8d07 100644 --- a/library/src/main/java/top/trumeet/redirectstorage/RedirectStorage.java +++ b/library/src/main/java/top/trumeet/redirectstorage/RedirectStorage.java @@ -19,8 +19,6 @@ import java.util.List; * 如果需要获取没有重定向的真实目录,请使用 {@link RedirectStorage#getRealPath()} * * 特别感谢 little_cup 提供核心代码,我仅仅做了个简单封装和修改 - * 使用了 - * android-hidden-api * @author Trumeet */ -- cgit v1.2.3