Update android photo filters library

This commit is contained in:
Naveen Singh 2024-09-23 01:11:53 +05:30
parent d5692219a1
commit ac8f912efb
No known key found for this signature in database
GPG key ID: AF5D43C216778C0B
4 changed files with 6 additions and 8 deletions

View file

@ -70,7 +70,7 @@ android {
}
compileOptions {
val currentJavaVersionFromLibs = JavaVersion.valueOf(libs.versions.app.build.javaVersion.get().toString())
val currentJavaVersionFromLibs = JavaVersion.valueOf(libs.versions.app.build.javaVersion.get())
sourceCompatibility = currentJavaVersionFromLibs
targetCompatibility = currentJavaVersionFromLibs
}
@ -112,7 +112,7 @@ dependencies {
implementation(libs.androidx.constraintlayout)
implementation(libs.androidx.media3.exoplayer)
implementation(libs.sanselan)
implementation(libs.imagefilters)
implementation(libs.androidphotofilters)
implementation(libs.androidsvg.aar)
implementation(libs.gestureviews)
implementation(libs.subsamplingscaleimageview)

View file

@ -13,7 +13,7 @@ class FilterThumbnailsManager {
fun processThumbs(): ArrayList<FilterItem> {
for (filterItem in filterThumbnails) {
filterItem.bitmap = filterItem.filter.processFilter(Bitmap.createBitmap(filterItem.bitmap))
filterItem.bitmap = filterItem.filter.processFilter(Bitmap.createBitmap(filterItem.bitmap))!!
processedThumbnails.add(filterItem)
}
return processedThumbnails

View file

@ -24,7 +24,7 @@ zjupureWebpdecoder = "2.6.4.16.0"
jxlDecoder = "2.3.0"
gestureviews = "e706487a14"
androidsvgAar = "1.4"
imagefilters = "1.0.7"
androidphotofilters = "193f2ae509"
sanselan = "0.97-incubator"
media3Exoplayer = "1.4.1"
okhttp = "4.12.0"
@ -60,7 +60,7 @@ android-image-cropper = { module = "com.vanniktech:android-image-cropper", versi
subsamplingscaleimageview = { module = "org.fossify:subsampling-scale-image-view", version.ref = "subsamplingScaleImageView" }
androidsvg-aar = { module = "com.caverock:androidsvg-aar", version.ref = "androidsvgAar" }
gestureviews = { module = "org.fossify:gestureviews", version.ref = "gestureviews" }
imagefilters = { module = "info.androidhive:imagefilters", version.ref = "imagefilters" }
androidphotofilters = { module = "com.github.naveensingh:androidphotofilters", version.ref = "androidphotofilters" }
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okio = { module = "com.squareup.okio:okio", version.ref = "okio" }
sanselan = { module = "org.apache.sanselan:sanselan", version.ref = "sanselan" }

View file

@ -2,7 +2,6 @@ pluginManagement {
repositories {
gradlePluginPortal()
google()
jcenter()
mavenCentral()
}
}
@ -11,11 +10,10 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
jcenter()
maven { setUrl("https://jitpack.io") }
}
}
rootProject.name = "Gallery"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(":app")
include(":app")