Skip to content

Commit 5f91f6a

Browse files
committed
publish v3.0.4 fix #51 #50
1 parent 2964056 commit 5f91f6a

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
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/)
311
3.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
```

simple/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
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
}

takephoto_library/build.gradle

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apply plugin: 'com.android.library'
22

33
android {
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

2121
dependencies {
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
}

takephoto_library/src/main/java/com/jph/takephoto/uitl/TUriParse.java

+1-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)