Skip to content

Commit

Permalink
Merge pull request #207 from Dhaval2404/feature/v2.1
Browse files Browse the repository at this point in the history
v2.1 Release
  • Loading branch information
Dhaval2404 authored May 27, 2021
2 parents 8b19401 + b0fd494 commit 7baa21d
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 53 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1] - 2021-05-27
### Added
* Added uzbekistan translation (Special Thanks to Khudoyshukur Juraev)
### Changed
* Removed requestLegacyExternalStorage flag
* Removed unused string resources

## [2.0] - 2021-05-15
### Added
* Added arabic translation [#157](https://github.com/Dhaval2404/ImagePicker/pull/157) (Special Thanks to [zhangzhu95](https://github.com/zhangzhu95))
Expand Down Expand Up @@ -106,7 +113,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Handle Runtime Permission for Camera and Storage
* Retrieve Image Result as File, File Path as String or Uri object

[Unreleased]: https://github.com/Dhaval2404/ImagePicker/compare/v2.1...HEAD
[Unreleased]: https://github.com/Dhaval2404/ImagePicker/compare/v2.2...HEAD
[2.1]: https://github.com/Dhaval2404/ImagePicker/compare/v2.0...v2.1
[2.0]: https://github.com/Dhaval2404/ImagePicker/compare/v1.8...v2.0
[1.8]: https://github.com/Dhaval2404/ImagePicker/compare/v1.7.5...v1.8
[1.7.5]: https://github.com/Dhaval2404/ImagePicker/compare/v1.7.4...v1.7.5
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Almost 90% of the app that I have developed has an Image upload feature. Along w
* Pick Gallery Image
* Pick Image from Google Drive
* Capture Camera Image
* Crop Image(Crop image based on provided aspect ratio or let user choose one)
* Compress Image(Compress image based on provided resolution and size)
* Crop Image (Crop image based on provided aspect ratio or let user choose one)
* Compress Image (Compress image based on provided resolution and size)
* Retrieve Image Result as Uri object (Retrieve as File object feature is removed in v2.0 to support scope storage)
* Handle runtime permission for camera
* Does not require storage permission to pick gallery image or capture new image.
Expand All @@ -51,13 +51,13 @@ Almost 90% of the app that I have developed has an Image upload feature. Along w
```groovy
allprojects {
repositories {
maven { url "https://jitpack.io" } //Make sure to add this in your project for uCrop
maven { url "https://jitpack.io" }
}
}
```

```groovy
implementation 'com.github.dhaval2404:imagepicker:2.0'
implementation 'com.github.dhaval2404:imagepicker:2.1'
```

**If you are yet to Migrate on AndroidX, Use support build artifact:**
Expand Down Expand Up @@ -300,6 +300,10 @@ Almost 90% of the app that I have developed has an Image upload feature. Along w
# ✔️Changelog
### Version: 2.1
* Added uzbekistan translation (Special Thanks to Khudoyshukur Juraev)
* Removed requestLegacyExternalStorage flag
* Removed unused string resources
### Version: 2.0
Expand Down
6 changes: 3 additions & 3 deletions imagepicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 30
versionCode 15
versionName "2.0"
versionCode 16
versionName "2.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down Expand Up @@ -69,7 +69,7 @@ ext {
siteUrl = 'https://github.com/Dhaval2404/ImagePicker/'
gitUrl = 'https://github.com/Dhaval2404/ImagePicker.git'

libraryVersion = '2.0'
libraryVersion = '2.1'
//If you are uploading new library try : gradlew install
//If you are updating existing library then execute: gradlew bintrayUpload
//In both the case don't forgot to put bintray credentials in local.properties file.
Expand Down
4 changes: 2 additions & 2 deletions imagepicker/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.dhaval2404.imagepicker">
<application android:requestLegacyExternalStorage="true">

<application>

<activity
android:name=".ImagePickerActivity"
Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<string name="title_gallery">معرض الصور</string>
<string name="title_camera">كاميرا</string>

<string name="message_gallery_permission_denied">البرنامج بحاجة إلى صلاحية الولوج إلى وحدة التخزين الخارجية لتحديد الصورة. يرجى تفعيل هذه صلاحية إنطلاقاً من الإعدادات > الترخيص.</string>
<string name="message_camera_permission_denied">البرنامج بحاجة إلى صلاحيات الولوج إلى الكاميرا و وحدة التخزين الخارجية لالتقاط الصورة. بتعطيلكم لهاته الصلاحيات لن يتمكن التطبيق من الإشتغال بسلاسة. يرجى تفعيل جميع الصلاحيات المطلوبة إنطلاقاً من الإعدادات > الترخيص.</string>
<string name="permission_gallery_denied">
<![CDATA[البرنامج بحاجة إلى صلاحية الولوج إلى وحدة تخزين الجهاز لاختيار صورة من معرض الصور. يرجى تفعيل صلاحية التخزين إنطلاقاً من الإعدادات > الترخيص.]]></string>
<string name="permission_camera_denied">
<![CDATA[البرنامج بحاجة إلى صلاحية الولوج إلى وحدة تخزين الجهاز لالتقاط الصورة. يرجى تفعيل صلاحية التخزين إنطلاقاً من الإعدادات > الترخيص.]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<string name="title_gallery">Galerie</string>
<string name="title_camera">Kamera</string>

<string name="message_gallery_permission_denied">Die Berechtigung zum Lesen des Speichers ist notwendig um ein Bild auszuwählen. Bitte erlaube die entsprechende Berechtigung unter Einstellungen > Berechtigungen.</string>
<string name="message_camera_permission_denied">Die Berechtigungen Kamera und Zugriff auf den externen Speicher sind notwendig um ein Foto aufzunehmen. Bitte erlaube alle angefordeten Berechtigungen unter Einstellungen > Berechtigungen.</string>
<string name="permission_gallery_denied">
<![CDATA[Die Berechtigung zum Lesen des Speichers ist notwendig um ein Bild auszuwählen. Bitte erlaube die entsprechende Berechtigung unter Einstellungen > Berechtigungen.]]></string>
<string name="permission_camera_denied">
<![CDATA[Die Berechtigung zum Zugriff auf den externen Speicher ist notwendig um ein Foto aufzunehmen. Bitte erlaube den Zugriff unter Einstellungen > Berechtigungen.]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<string name="title_gallery">Galeria</string>
<string name="title_camera">Cámara</string>

<string name="message_gallery_permission_denied">Se necesitan permisos de Lectura de Datos Externos para seleccionar una imagen. Por favor activa los permisos seleccionados en Ajustes > Permisos.</string>
<string name="message_camera_permission_denied">Se necesitan permisos de Cámara y de Almacenamiento Externo para seleccionar una imagen. Denegar cualquier permiso no ayudará a que la aplicación funcione de manera correcta. Por favor activa todos los permisos solicitados en Ajustes > Permisos.</string>
<string name="permission_gallery_denied">
<![CDATA[Se necesita permiso de Almacenamiento para elegir galería de imágenes. Por favor activa todos los permisos solicitados en Ajustes > Permisos.]]></string>
<string name="permission_camera_denied">
<![CDATA[Se necesitan permisos de Almacenamiento para tomar imágenes. Por favor activa todos los permisos solicitados en Ajustes > Permisos.]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-fa/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<string name="title_gallery">گالری</string>
<string name="title_camera">دوربین</string>

<string name="message_gallery_permission_denied">برای انتخاب عکس دسترسی خواندن فضای خارجی لازم است. لطفا دسترسی درخواست شده را از تنظیمات فعال کنید > دسترسی ها</string>
<string name="message_camera_permission_denied">برای گرفتن عکس دسترسی دوربین و فضای خارجی لازم است. غیرمجاز کردن این پرمیشن ها اجازه کارکرد صحیح برنامه را میگیرد. لطفا تمامی دسترسی های درخواست شده را از تنظیمات فعال کنید > دسترسی ها</string>
<string name="permission_gallery_denied">
<![CDATA[برای انتخاب عکس دسترسی خواندن فضای خارجی لازم است. لطفا دسترسی درخواست شده را از تنظیمات فعال کنید > دسترسی ها]]></string>
<string name="permission_camera_denied">
<![CDATA[دسترسی فضای خارجی برای گرفتن عکس لازم است. لطفا دسترسی فضای خارجی را از تنظیمات فعال کنید < دسترسی ها]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-gu/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<string name="title_gallery">ગેલેરી</string>
<string name="title_camera">કૅમેરા</string>

<string name="message_gallery_permission_denied">છબીને પસંદ કરવા માટે બાહ્ય સ્ટોરેજ વાંચવાની પરવાનગી આવશ્યક છે. કૃપા કરીને સેટિંગ્સ>પરવાનગીથી તરફથી વિનંતી કરેલ પરવાનગી ચાલુ કરો.</string>
<string name="message_camera_permission_denied">છબીને કેપ્ચર કરવા માટે કૅમેરા અને બાહ્ય સ્ટોરેજ પરવાનગીની આવશ્યકતા છે. કોઈપણ પરવાનગી બંધ કરવાથી એપ્લિકેશન સરળતાથી ચાલવાની મંજૂરી આપશે નહીં. કૃપા કરીને સેટિંગ્સ>પરવાનગીથી બધી વિનંતી કરેલ મંજૂરીઓ ચાલુ કરો.</string>
<string name="permission_gallery_denied">
<![CDATA[ગેલેરી છબી પસંદ કરવા માટે સ્ટોરેજ પરવાનગીની જરૂર છે. કૃપા કરીને સેટિંગ્સ>પરવાનગીથી સ્ટોરેજ પરવાનગીની મંજૂરી આપો.]]></string>
<string name="permission_camera_denied">
<![CDATA[ચિત્ર લેવા માટે સ્ટોરેજ પરવાનગીની જરૂર છે. કૃપા કરીને સેટિંગ્સ>પરવાનગીથી સ્ટોરેજ પરવાનગીની મંજૂરી આપો.]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-hi/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<string name="title_gallery">गेलरी</string>
<string name="title_camera">कैमरा</string>

<string name="message_gallery_permission_denied">छवि का चयन करने के लिए बाहरी संग्रहण की अनुमति आवश्यक है। कृपया सेटिंग्स> अनुमतियों से अनुरोधित अनुमति को चालू करें।</string>
<string name="message_camera_permission_denied">इमेज कैप्चर करने के लिए कैमरा और स्टोरेज परमिशन की जरूरत होती है। किसी भी अनुमति को बंद करने से एप्लिकेशन आसानी से नहीं चल सकेगा। कृपया सेटिंग्स> अनुमतियों से सभी अनुरोधित अनुमतियों को चालू करें।</string>
<string name="permission_gallery_denied">
<![CDATA[गैलरी की छवि चुनने के लिए संग्रहण अनुमति की आवश्यकता होती है। कृपया सेटिंग्स> अनुमतियों से संग्रहण की अनुमति दें।]]></string>
<string name="permission_camera_denied">
<![CDATA[चित्र लेने के लिए संग्रहण अनुमति की आवश्यकता होती है। कृपया सेटिंग्स> अनुमतियों से भंडारण की अनुमति दें।]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-in/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<string name="title_gallery">Galeri</string>
<string name="title_camera">Kamera</string>

<string name="message_gallery_permission_denied">Untuk memilih gambar dibutuhkan akses perizinan penyimpanan. Mohon berikan perizinan tersebut melalui Pengaturan > Perizinan.</string>
<string name="message_camera_permission_denied">Untuk mengambil gambar dibutuhkan akses perizinan kamera. Tanpa perizinan aplikasi tidak bisa berjalan dengan baik. Mohon berikan perizinan tersebut melalui Pengaturan > Perizinan.</string>
<string name="permission_gallery_denied">
<![CDATA[Untuk memilih gambar dari galeri dibutuhkan akses perizinan penyimpanan. Mohon berikan tersebut perizinan melalui Pengaturan > Perizinan.]]></string>
<string name="permission_camera_denied">
<![CDATA[Untuk mengambil gambar dibutuhkan akses perizinan penyimpanan. Mohon berikan perizinan tersebut melalui Pengaturan > Perizinan.]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-nb-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<string name="title_gallery">Galleri</string>
<string name="title_camera">Kamera</string>

<string name="message_gallery_permission_denied">Les Ekstern Lagring-tillatelse trengs for å velge bilde. Du kan endre tillatelser i Innstillinger > Tillatelser.</string>
<string name="message_camera_permission_denied">Kamera- og Les Ekstern Lagring-tillatelser trengs for å ta bilde med kamera. Hvis du ikke aksepterer tillatelsene vil ikke appen fungere optimalt. Du kan endre tillatelser i Innstillinger > Tillatelser.</string>
<string name="permission_gallery_denied">
<![CDATA[Lagrings-tillatelse trengs for å velge bilde fra galleriet. Du kan endre tillatelser i Innstillinger > Tillatelser.]]></string>
<string name="permission_camera_denied">
<![CDATA[Lagrings-tillatelse trengs for å ta bilde. Du kan endre tillatelser i Innstillinger > Tillatelser.]]></string>

Expand Down
4 changes: 0 additions & 4 deletions imagepicker/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
<string name="title_gallery">Galeria</string>
<string name="title_camera">Aparat</string>

<string name="message_gallery_permission_denied">Dostęp do pamięci zewnętrznej jest wymagany, aby móc wybrać obraz. Zmienić dostęp do pamięci można z poziomu Ustawień > Uprawnienia</string>
<string name="message_camera_permission_denied">Dostęp do aparatu oraz zewnętrznej pamięci jest wymagany, aby przechwycić obraz. Zabranie uprawnień aplikacji może powodować błędy w jej działaniu. Zmienić dostęp do pamięci można z poziomu Ustawień > Uprawnienia</string>
<string name="permission_gallery_denied">
<![CDATA[Dostęp do pamięci urządzenia jest wymagany, aby wybrać obraz z galerii. Zmienić dostęp do pamięci można z poziomu Ustawień > Uprawnienia.]]></string>
<string name="permission_camera_denied">
<![CDATA[Dostęp do pamięci jest wymagany aby wykonać zdjęcie. Zmienić dostęp do pamięci można z poziomu Ustawień > Uprawnienia.]]></string>

Expand Down
28 changes: 28 additions & 0 deletions imagepicker/src/main/res/values-uz/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<resources>
<!-- ImagePicker string resource start -->
<string name="title_choose_image_provider">Tanlang</string>
<string name="action_cancel">Bekor qilish</string>
<string name="title_gallery">Galereya</string>
<string name="title_camera">Kamera</string>

<string name="permission_camera_denied">
<![CDATA[Rasmga olish uchun kameradan foydalanishga ruhsat berilishi kerak. Iltimos sozlamalardan ushbu ruhsatni amalga oshiring Sozlamalar > Ruhsatlar.]]></string>

<string name="error_failed_to_create_camera_image_file">Kamera rasm fayli yaratishda xatolik yuz berdi</string>
<string name="error_failed_pick_gallery_image">Galereyadan rasm tanlashda xatolik yuz berdi</string>
<string name="error_failed_to_crop_image">Rasmni kesishda xatolik yuz berdi</string>
<string name="error_failed_to_compress_image">Rasmni zichlashda xatolik yuz berdi</string>
<string name="error_task_cancelled">Vazifa bekor qilindi</string>
<string name="error_camera_app_not_found">Kamera uchun dastur topilmadi</string>
<!-- ImagePicker string resource end -->

<!-- uCrop string resource start -->
<string name="ucrop_label_original">Original</string>
<string name="ucrop_label_edit_photo">Rasmni o\'zgartirish</string>
<string name="ucrop_menu_crop">Kesish</string>
<string name="ucrop_rotate">Aylantirish</string>
<string name="ucrop_scale">O\'lcham</string>
<string name="ucrop_crop">Kesish</string>
<!-- uCrop string resource end -->

</resources>
6 changes: 1 addition & 5 deletions imagepicker/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
<string name="title_gallery">Gallery</string>
<string name="title_camera">Camera</string>

<string name="message_gallery_permission_denied">Read External Storage permission is needed to select Image. Please turn on the requested permission from Settings > Permissions.</string>
<string name="message_camera_permission_denied">Camera and External Storage permissions are needed to capture the image. Turning off any permission won\'t allow the application to run smoothly. Please turn on all requested permissions from Settings > Permissions.</string>
<string name="permission_gallery_denied">
<![CDATA[Storage permission is needed to pick gallery image. Please allow storage permission from Settings > Permissions.]]></string>
<string name="permission_camera_denied">
<string name="permission_camera_denied">
<![CDATA[Camera permission is needed to take a picture. Please allow permission from Settings > Permissions.]]></string>

<string name="error_failed_to_create_camera_image_file">Failed to create Camera image file</string>
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.github.dhaval2404.imagepicker.sample"
minSdkVersion 19
targetSdkVersion 30
versionCode 15
versionName "2.0"
versionCode 16
versionName "2.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
Expand Down

0 comments on commit 7baa21d

Please sign in to comment.