File tree Expand file tree Collapse file tree 4 files changed +25
-17
lines changed
src/main/java/com/jph/takephoto/uitl Expand file tree Collapse file tree 4 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 1- ## [ TakePhoto] ( https://github.com/crazycodeboy/TakePhoto ) 简介
2- ` TakePhoto ` 是一款用于在Android设备上获取照片(拍照或从相册、文件中选择)、裁剪图片、压缩图片的开源工具库,目前最新版本[ 3.0.3] ( https://github.com/crazycodeboy/TakePhoto/ ) 。
1+ ## [ TakePhoto] ( https://github.com/crazycodeboy/TakePhoto ) 简介
2+
3+ [ ![ PRs Welcome] ( https://img.shields.io/badge/PRs-Welcome-brightgreen.svg )] ( https://github.com/crazycodeboy/TakePhoto/pulls )
4+ [ ![ Download] ( https://api.bintray.com/packages/crazycodeboy/maven/TakePhoto/images/download.svg ) ] ( https://bintray.com/crazycodeboy/maven/TakePhoto/_latestVersion )
5+ [ ![ GitHub release] ( https://img.shields.io/github/release/crazycodeboy/TakePhoto.svg?maxAge=2592000?style=flat-square )] ( https://github.com/crazycodeboy/TakePhoto/releases )
6+ [ ![ License Apache2.0] ( http://img.shields.io/badge/license-Apache2.0-brightgreen.svg?style=flat )] ( https://raw.githubusercontent.com/crazycodeboy/TakePhoto/master/LICENSE )
7+
8+
9+
10+ ` TakePhoto ` 是一款用于在Android设备上获取照片(拍照或从相册、文件中选择)、裁剪图片、压缩图片的开源工具库,目前最新版本[ 3.0.4] ( https://github.com/crazycodeboy/TakePhoto/ ) 。
3113.0以下版本及API说明,详见[ TakePhoto2.0+] ( https://github.com/crazycodeboy/TakePhoto/blob/master/README.2+.md ) 。
412
513** V3.0**
@@ -35,7 +43,7 @@ GitHub地址: [https://github.com/crazycodeboy/TakePhoto](https://github.com/c
3543** Gradle:**
3644
3745``` groovy
38- compile 'com.jph.takephoto:takephoto_library:3.0.3 '
46+ compile 'com.jph.takephoto:takephoto_library:3.0.4 '
3947```
4048
4149** Maven:**
@@ -44,7 +52,7 @@ GitHub地址: [https://github.com/crazycodeboy/TakePhoto](https://github.com/c
4452<dependency>
4553 <groupId>com.jph.takephoto</groupId>
4654 <artifactId>takephoto_library</artifactId>
47- <version>3.0.3 </version>
55+ <version>3.0.4 </version>
4856 <type>pom</type>
4957</dependency>
5058```
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.application'
22
33android {
4- compileSdkVersion 24
5- buildToolsVersion " 24 .0.2 "
4+ compileSdkVersion 25
5+ buildToolsVersion " 25 .0.0 "
66
77 defaultConfig {
88 applicationId " com.jph.simple"
9- minSdkVersion 8
10- targetSdkVersion 24
9+ minSdkVersion 9
10+ targetSdkVersion 25
1111 versionCode 1
1212 versionName " 1.0"
1313 }
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 24
5- buildToolsVersion " 24 .0.2 "
4+ compileSdkVersion 25
5+ buildToolsVersion " 25 .0.0 "
66
77 defaultConfig {
8- minSdkVersion 8
9- targetSdkVersion 24
10- versionCode 33
11- versionName " 3.0.3 "
8+ minSdkVersion 9
9+ targetSdkVersion 25
10+ versionCode 34
11+ versionName " 3.0.4 "
1212 }
1313 buildTypes {
1414 release {
@@ -19,8 +19,8 @@ android {
1919}
2020
2121dependencies {
22- compile fileTree(dir : ' libs ' , include : [' *.jar' ])
23- compile ' com.android.support:support-v4:24 .0.0'
22+ compile fileTree(include : [' *.jar' ], dir : ' libs ' )
23+ compile ' com.android.support:support-v4:25 .0.0'
2424 compile ' com.soundcloud.android.crop:lib_crop:1.0.0'
2525 compile ' com.darsh.multipleimageselect:multipleimageselect:1.0.4'
2626}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public static String parseOwnUri(Context context,Uri uri){
7373 if (uri ==null )return null ;
7474 String path ;
7575 if (TextUtils .equals (uri .getAuthority (),TConstant .getFileProviderName (context ))){
76- path =new File (Environment . getExternalStorageDirectory (), uri .getPath ().replace ("camera_photos/" ,"" )).getAbsolutePath ();
76+ path =new File (uri .getPath ().replace ("camera_photos/" ,"" )).getAbsolutePath ();
7777 }else {
7878 path =uri .getPath ();
7979 }
You can’t perform that action at this time.
0 commit comments