4
4
5
5
[ ![ ] ( https://jitpack.io/v/SimformSolutionsPvtLtd/SSImagePicker.svg )] ( https://jitpack.io/#SimformSolutionsPvtLtd/SSImagePicker )
6
6
[ ![ API] ( https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat )] ( https://android-arsenal.com/api?level=21 )
7
- [ ![ Kotlin Version] ( https://img.shields.io/badge/Kotlin-v1.9.23 -blue.svg )] ( https://kotlinlang.org )
7
+ [ ![ Kotlin Version] ( https://img.shields.io/badge/Kotlin-v2.0.21 -blue.svg )] ( https://kotlinlang.org )
8
8
[ ![ Android Weekly] ( https://img.shields.io/badge/Android%20Weekly-%23473-orange )] ( https://androidweekly.net/issues/issue-473 )
9
9
[ ![ Android Arsenal] ( https://img.shields.io/badge/Android%20Arsenal-SSImagePicker-green.svg?style=flat )] ( https://android-arsenal.com/details/1/8243 )
10
10
@@ -19,6 +19,7 @@ using Camera with maximum size, extension, crop, rotate, zoom and compress featu
19
19
* Support for
20
20
new [ Photo Picker] ( https://developer.android.com/training/data-storage/shared/photopicker ) for
21
21
Android 11+.
22
+ * Dark theme support.
22
23
23
24
# :zap : Features :
24
25
@@ -36,6 +37,7 @@ using Camera with maximum size, extension, crop, rotate, zoom and compress featu
36
37
* Compress image
37
38
* Customize entire Image Picker screen UI with your own options and style
38
39
* New Photo picker for the Android 11+.
40
+ * Edge-to-Edge Support ([ Refer Here] ( https://developer.android.com/develop/ui/views/layout/edge-to-edge ) )
39
41
40
42
# 🎬Preview
41
43
@@ -94,7 +96,7 @@ using Camera with maximum size, extension, crop, rotate, zoom and compress featu
94
96
95
97
```kotlin
96
98
dependencies {
97
- implementation(" com.github.SimformSolutionsPvtLtd:SSImagePicker:2.3 " )
99
+ implementation(" com.github.SimformSolutionsPvtLtd:SSImagePicker:2.4 " )
98
100
}
99
101
```
100
102
@@ -163,6 +165,7 @@ imagePicker.open(PickerType.GALLERY)
163
165
.compressImage(false )
164
166
.maxImageSize(2 )
165
167
.extension(PickExtension .JPEG )
168
+ .aspectRatio(AspectRatio (16 , 8 ))
166
169
imagePicker.open(PickerType .GALLERY )
167
170
```
168
171
@@ -202,12 +205,13 @@ imagePicker.open(PickerType.GALLERY)
202
205
203
206
# :pencil : Permissions
204
207
205
- ** SSImagePicker** Uses following permissions to display images. For
206
- system [ Photo Picker] ( https://developer.android.com/training/data-storage/shared/photopicker ) on
207
- Android 11+ no permission is required.
208
+ ** SSImagePicker** handles permissions automatically and follows modern Android best practices:
208
209
209
- * API ** 21(Android 5)** to API ** 32(Android 12L)** : ` android.permission.READ_EXTERNAL_STORAGE `
210
- * API ** 33(Android 13)** onwards: ` android.permission.READ_MEDIA_IMAGES `
210
+ * ** API 21(Android 5) to API 29(Android 10)** : Requires ` android.permission.READ_EXTERNAL_STORAGE ` to access gallery images
211
+ * ** API 30(Android 11) to API 32(Android 12L)** : You can choose between two options:
212
+ - ** Traditional Gallery Picker** : Requires ` android.permission.READ_EXTERNAL_STORAGE `
213
+ - ** System Photo Picker** : Available and ** requires no permissions** (recommended for better user experience)
214
+ * ** API 33(Android 13) and above** : Uses the system [ Photo Picker] ( https://developer.android.com/training/data-storage/shared/photopicker ) API which ** requires no permissions**
211
215
212
216
# :rocket : Migration
213
217
0 commit comments