diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 569ff5e3e..e9f07876e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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) diff --git a/app/src/main/kotlin/org/fossify/gallery/helpers/FilterThumbnailsManager.kt b/app/src/main/kotlin/org/fossify/gallery/helpers/FilterThumbnailsManager.kt index b30df4a80..c8ad38a7a 100644 --- a/app/src/main/kotlin/org/fossify/gallery/helpers/FilterThumbnailsManager.kt +++ b/app/src/main/kotlin/org/fossify/gallery/helpers/FilterThumbnailsManager.kt @@ -13,7 +13,7 @@ class FilterThumbnailsManager { fun processThumbs(): ArrayList { 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 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 33f3fc5d9..047a74fac 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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" } diff --git a/settings.gradle.kts b/settings.gradle.kts index 5251e7354..7e56d4d8c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -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") \ No newline at end of file +include(":app")