Skip to content

Commit de77530

Browse files
committed
Release 2.3.17
1 parent 7594348 commit de77530

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10-
* Migrate to Kotlin 1.7.0
10+
## [2.3.17] - 2022-08-23
11+
12+
* Migrate to Kotlin 1.7.10
1113
* Update internal dependencies
14+
* Let user pick multiple files in the gallery mode
15+
* Let user define the output format
1216

1317
## [2.1.16] - 2022-06-22
1418

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ Where `$libVersion` = [![libVersion](https://img.shields.io/github/release/drjac
6363
**Java**
6464

6565
```java
66-
ActivityResultLauncher<Intent> launcher =
67-
registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), (ActivityResult result) -> {
68-
if (result.getResultCode() == RESULT_OK) {
69-
Uri uri = result.getData().getData();
70-
// Use the uri to load the image
71-
} else if (result.getResultCode() == ImagePicker.RESULT_ERROR) {
72-
// Use ImagePicker.Companion.getError(result.getData()) to show an error
73-
}
74-
});
66+
ActivityResultLauncher<Intent> launcher=
67+
registerForActivityResult(new ActivityResultContracts.StartActivityForResult(),(ActivityResult result)->{
68+
if(result.getResultCode()==RESULT_OK){
69+
Uri uri=result.getData().getData();
70+
// Use the uri to load the image
71+
}else if(result.getResultCode()==ImagePicker.RESULT_ERROR){
72+
// Use ImagePicker.Companion.getError(result.getData()) to show an error
73+
}
74+
});
7575
```
7676

7777
**If you want both Camera and Gallery:**
@@ -88,22 +88,22 @@ Where `$libVersion` = [![libVersion](https://img.shields.io/github/release/drjac
8888
**Java**
8989

9090
```java
91-
ImagePicker.Companion.with(this)
92-
.crop()
93-
.cropOval()
91+
ImagePicker.Companion.with(this)
92+
.crop()
93+
.cropOval()
9494
.maxResultSize(512,512,true)
9595
.provider(ImageProvider.BOTH) //Or bothCameraGallery()
9696
.createIntentFromDialog((Function1)(new Function1(){
97-
public Object invoke(Object var1) {
98-
this.invoke((Intent) var1);
99-
return Unit.INSTANCE;
100-
}
101-
102-
public final void invoke(@NotNull Intent it) {
103-
Intrinsics.checkNotNullParameter(it, "it");
104-
launcher.launch(it);
105-
}
106-
}));
97+
public Object invoke(Object var1){
98+
this.invoke((Intent)var1);
99+
return Unit.INSTANCE;
100+
}
101+
102+
public final void invoke(@NotNull Intent it){
103+
Intrinsics.checkNotNullParameter(it,"it");
104+
launcher.launch(it);
105+
}
106+
}));
107107
```
108108

109109
**If you want just one option:**
@@ -122,7 +122,7 @@ Where `$libVersion` = [![libVersion](https://img.shields.io/github/release/drjac
122122
**Java**
123123

124124
```java
125-
ImagePicker.Companion.with(this)
125+
ImagePicker.Companion.with(this)
126126
.crop() //Crop image(Optional), Check Customization for more option
127127
.cropOval() //Allow dimmed layer to have a circle inside
128128
.cropFreeStyle() //Let the user to resize crop bounds

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
buildscript {
33
ext {
44
kotlin_version = '1.7.10'
5-
versionCode = 36
6-
versionName = '2.1.16'
5+
versionCode = 37
6+
versionName = '2.3.17'
77
}
88

99
repositories {

0 commit comments

Comments
 (0)