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

View file

@ -13,7 +13,7 @@ class FilterThumbnailsManager {
fun processThumbs(): ArrayList<FilterItem> { fun processThumbs(): ArrayList<FilterItem> {
for (filterItem in filterThumbnails) { 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) processedThumbnails.add(filterItem)
} }
return processedThumbnails return processedThumbnails

View file

@ -24,7 +24,7 @@ zjupureWebpdecoder = "2.6.4.16.0"
jxlDecoder = "2.3.0" jxlDecoder = "2.3.0"
gestureviews = "e706487a14" gestureviews = "e706487a14"
androidsvgAar = "1.4" androidsvgAar = "1.4"
imagefilters = "1.0.7" androidphotofilters = "193f2ae509"
sanselan = "0.97-incubator" sanselan = "0.97-incubator"
media3Exoplayer = "1.4.1" media3Exoplayer = "1.4.1"
okhttp = "4.12.0" 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" } subsamplingscaleimageview = { module = "org.fossify:subsampling-scale-image-view", version.ref = "subsamplingScaleImageView" }
androidsvg-aar = { module = "com.caverock:androidsvg-aar", version.ref = "androidsvgAar" } androidsvg-aar = { module = "com.caverock:androidsvg-aar", version.ref = "androidsvgAar" }
gestureviews = { module = "org.fossify:gestureviews", version.ref = "gestureviews" } 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" } okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okio = { module = "com.squareup.okio:okio", version.ref = "okio" } okio = { module = "com.squareup.okio:okio", version.ref = "okio" }
sanselan = { module = "org.apache.sanselan:sanselan", version.ref = "sanselan" } sanselan = { module = "org.apache.sanselan:sanselan", version.ref = "sanselan" }

View file

@ -2,7 +2,6 @@ pluginManagement {
repositories { repositories {
gradlePluginPortal() gradlePluginPortal()
google() google()
jcenter()
mavenCentral() mavenCentral()
} }
} }
@ -11,7 +10,6 @@ dependencyResolutionManagement {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
jcenter()
maven { setUrl("https://jitpack.io") } maven { setUrl("https://jitpack.io") }
} }
} }