From b19110c2049f68e57c68f6ffb281143f6c85a387 Mon Sep 17 00:00:00 2001 From: r17171709 Date: Sat, 10 Jun 2017 16:48:54 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BA=93?= =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ImageLibrary/build.gradle | 4 ++-- app/build.gradle | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ImageLibrary/build.gradle b/ImageLibrary/build.gradle index 19e2d51..f917773 100644 --- a/ImageLibrary/build.gradle +++ b/ImageLibrary/build.gradle @@ -7,7 +7,7 @@ group='com.github.renyu' android { compileSdkVersion 25 - buildToolsVersion "25.0.3" + buildToolsVersion "26.0.0" defaultConfig { minSdkVersion 19 @@ -35,7 +35,7 @@ dependencies { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12' - compile 'com.github.r17171709:AndroidCommonLibrary:v1.0.2' + compile 'com.github.r17171709:AndroidCommonLibrary:v1.0.8' // CircleIndicator A lightweight viewpager indicator like in nexus 5 launcher compile 'me.relex:circleindicator:1.2.2@aar' // PhotoDraweeView PhotoView For Fresco diff --git a/app/build.gradle b/app/build.gradle index f3842db..8c43236 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 25 - buildToolsVersion "25.0.3" + buildToolsVersion "26.0.0" defaultConfig { applicationId "com.renyu.androidimagelibrary" minSdkVersion 19 @@ -26,5 +26,6 @@ dependencies { }) compile 'com.android.support.constraint:constraint-layout:1.0.2' testCompile 'junit:junit:4.12' - compile 'com.github.r17171709:AndroidImageLibrary:v1.0.2' + // compile 'com.github.r17171709:AndroidImageLibrary:v1.0.2' + compile project(':ImageLibrary') } From f6b79681d446ce1370e5bb11e669a27d9c8282f5 Mon Sep 17 00:00:00 2001 From: r17171709 Date: Sat, 10 Jun 2017 16:56:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BA=93?= =?UTF-8?q?=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/renyu/imagelibrary/camera/CameraFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java b/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java index 1cfd43c..d2ad263 100644 --- a/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java +++ b/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java @@ -88,7 +88,7 @@ public void loadData() { public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { FileUtils.createOrExistsDir(InitParams.IMAGE_PATH); dirPath=InitParams.IMAGE_PATH+"/"+System.currentTimeMillis()+".jpg"; - FileUtils.createFileByDeleteOldFile(dirPath); + FileUtils.createFileByDeleteOldFile(new File(dirPath)); return super.onCreateView(inflater, container, savedInstanceState); }