Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Bachmann committed Oct 16, 2020
1 parent ff1ce09 commit fe7e455
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# PhotoEditor SDK - Changelog

## v8.0.1
## v8.0.2

### Fixed
* `IllegalArgumentException` while exporting a video on some devices.


## ~~v8.0.1~~ (Deprecated version, don't use it!)

### Fixed
* `KotlinNullPointerException` if using a relative export uri.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<img src="https://img.shields.io/badge/platform-android-2DC25C.svg?style=flat">
</a>
<a href="https://artifactory.img.ly/artifactory/imgly/ly/img/android/pesdk/">
<img src="https://img.shields.io/badge/VERSION-8.0.1-007ec6.svg?style=flat" alt="Maven">
<img src="https://img.shields.io/badge/VERSION-8.0.2-007ec6.svg?style=flat" alt="Maven">
</a>
<a href="http://twitter.com/PhotoEditorSDK">
<img src="https://img.shields.io/badge/[email protected]?style=flat" alt="Twitter">
Expand Down Expand Up @@ -126,7 +126,7 @@ buildscript {
maven { url "https://artifactory.img.ly/artifactory/imgly" }
}
dependencies {
classpath 'ly.img.android.pesdk:plugin:8.0.1'
classpath 'ly.img.android.pesdk:plugin:8.0.2'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,15 @@ class KEditorDemoActivity : Activity(), PermissionRequest.Response {
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, "image/*")
}

startActivityForResult(intent, GALLERY_RESULT)

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R || intent.resolveActivity(packageManager) != null) {
startActivityForResult(intent, GALLERY_RESULT)
} else {
Toast.makeText(
this,
"No Gallery APP installed",
Toast.LENGTH_LONG
).show()
}
}

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

if (resultCode == RESULT_OK && requestCode == GALLERY_RESULT) {
// Open Editor with some uri in this case with an image selected from the system gallery.
val selectedImage = intent?.data
val selectedImage = intent.data
if (selectedImage != null) {
openEditor(selectedImage)
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

buildscript {
ext.kotlin_version = '1.4.10'
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
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
repositories {
google()
jcenter()
Expand Down

0 comments on commit fe7e455

Please sign in to comment.