Skip to content

Commit fe7e455

Browse files
author
Niklas Bachmann
committed
Bump version
1 parent ff1ce09 commit fe7e455

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# PhotoEditor SDK - Changelog
22

3-
## v8.0.1
3+
## v8.0.2
4+
5+
### Fixed
6+
* `IllegalArgumentException` while exporting a video on some devices.
7+
8+
9+
## ~~v8.0.1~~ (Deprecated version, don't use it!)
410

511
### Fixed
612
* `KotlinNullPointerException` if using a relative export uri.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<img src="https://img.shields.io/badge/platform-android-2DC25C.svg?style=flat">
1717
</a>
1818
<a href="https://artifactory.img.ly/artifactory/imgly/ly/img/android/pesdk/">
19-
<img src="https://img.shields.io/badge/VERSION-8.0.1-007ec6.svg?style=flat" alt="Maven">
19+
<img src="https://img.shields.io/badge/VERSION-8.0.2-007ec6.svg?style=flat" alt="Maven">
2020
</a>
2121
<a href="http://twitter.com/PhotoEditorSDK">
2222
<img src="https://img.shields.io/badge/twitter-@PhotoEditorSDK-8646E2.svg?style=flat" alt="Twitter">
@@ -126,7 +126,7 @@ buildscript {
126126
maven { url "https://artifactory.img.ly/artifactory/imgly" }
127127
}
128128
dependencies {
129-
classpath 'ly.img.android.pesdk:plugin:8.0.1'
129+
classpath 'ly.img.android.pesdk:plugin:8.0.2'
130130
}
131131
}
132132

app/src/main/java/com/photoeditorsdk/android/app/KEditorDemoActivity.kt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,15 @@ class KEditorDemoActivity : Activity(), PermissionRequest.Response {
9999
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*")
100100
}
101101

102-
startActivityForResult(intent, GALLERY_RESULT)
103-
102+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R || intent.resolveActivity(packageManager) != null) {
103+
startActivityForResult(intent, GALLERY_RESULT)
104+
} else {
105+
Toast.makeText(
106+
this,
107+
"No Gallery APP installed",
108+
Toast.LENGTH_LONG
109+
).show()
110+
}
104111
}
105112

106113
fun openEditor(inputImage: Uri?) {
@@ -123,7 +130,7 @@ class KEditorDemoActivity : Activity(), PermissionRequest.Response {
123130

124131
if (resultCode == RESULT_OK && requestCode == GALLERY_RESULT) {
125132
// Open Editor with some uri in this case with an image selected from the system gallery.
126-
val selectedImage = intent?.data
133+
val selectedImage = intent.data
127134
if (selectedImage != null) {
128135
openEditor(selectedImage)
129136
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
buildscript {
44
ext.kotlin_version = '1.4.10'
5-
ext.pesdk_version = '8.0.1' // Insert the latest SDK version here. You will find it here https://github.com/imgly/pesdk-android-demo/releases
5+
ext.pesdk_version = '8.0.2' // Insert the latest SDK version here. You will find it here https://github.com/imgly/pesdk-android-demo/releases
66
repositories {
77
google()
88
jcenter()

0 commit comments

Comments
 (0)