Skip to content

Commit c30be85

Browse files
committed
publish v3.0.2
fix #42 #38 #22 #21
1 parent b639a12 commit c30be85

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## [TakePhoto](https://github.com/crazycodeboy/TakePhoto) 简介
2-
`TakePhoto`是一款用于在Android设备上获取照片(拍照或从相册、文件中选择)、裁剪图片、压缩图片的开源工具库,目前最新版本[3.0.1](https://github.com/crazycodeboy/TakePhoto/)
2+
`TakePhoto`是一款用于在Android设备上获取照片(拍照或从相册、文件中选择)、裁剪图片、压缩图片的开源工具库,目前最新版本[3.0.2](https://github.com/crazycodeboy/TakePhoto/)
33
3.0以下版本及API说明,详见[TakePhoto2.0+](https://github.com/crazycodeboy/TakePhoto/blob/master/README.2+.md)
44

55
**V3.0**
@@ -35,7 +35,7 @@ GitHub地址: [https://github.com/crazycodeboy/TakePhoto](https://github.com/c
3535
**Gradle:**
3636

3737
```groovy
38-
compile 'com.jph.takephoto:takephoto_library:3.0.1'
38+
compile 'com.jph.takephoto:takephoto_library:3.0.2'
3939
```
4040

4141
**Maven:**
@@ -44,7 +44,7 @@ GitHub地址: [https://github.com/crazycodeboy/TakePhoto](https://github.com/c
4444
<dependency>
4545
<groupId>com.jph.takephoto</groupId>
4646
<artifactId>takephoto_library</artifactId>
47-
<version>3.0.1</version>
47+
<version>3.0.2</version>
4848
<type>pom</type>
4949
</dependency>
5050
```

takephoto_library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
defaultConfig {
88
minSdkVersion 8
99
targetSdkVersion 24
10-
versionCode 31
11-
versionName "3.0.1"
10+
versionCode 32
11+
versionName "3.0.2"
1212
}
1313
buildTypes {
1414
release {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static File getTempFile(Context context, Uri photoUri)throws TException {
106106
* @return
107107
*/
108108
public static boolean checkMimeType(Context context,String minType) {
109-
boolean isPicture=TextUtils.isEmpty(minType)?false:".jpg|.gif|.png|.bmp|.jpeg|".contains(minType.toLowerCase())?true:false;
109+
boolean isPicture=TextUtils.isEmpty(minType)?false:".jpg|.gif|.png|.bmp|.jpeg|.webp|".contains(minType.toLowerCase())?true:false;
110110
if (!isPicture)Toast.makeText(context,context.getResources().getText(R.string.tip_type_not_image),Toast.LENGTH_SHORT).show();
111111
return isPicture;
112112
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<paths>
4-
<external-path path="" name="camera_photos" />
4+
<root-path path="" name="camera_photos" />
55
</paths>
66
</resources>

0 commit comments

Comments
 (0)