Skip to content

Commit 488a705

Browse files
committed
Update configuration
1 parent 9883f56 commit 488a705

15 files changed

Lines changed: 96 additions & 358 deletions

build.gradle

Lines changed: 0 additions & 27 deletions
This file was deleted.

build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
3+
plugins {
4+
id("com.android.library") version "8.10.0" apply false
5+
kotlin("android") version "2.1.10" apply false
6+
id("maven-publish")
7+
}
8+
9+
configurations.all {
10+
resolutionStrategy {
11+
failOnVersionConflict()
12+
}
13+
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Wed Jun 04 18:05:05 MSK 2025
1+
#Wed Jun 04 17:20:58 MSK 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip

library/build.gradle

Lines changed: 0 additions & 64 deletions
This file was deleted.

library/build.gradle.kts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
plugins {
2+
id("com.android.library") version "8.10.0"
3+
kotlin("android") version "2.1.10"
4+
id("maven-publish")
5+
}
6+
7+
group = "tachiyomiorg"
8+
9+
android {
10+
compileSdk = 36
11+
ndkVersion = "28.2.13676358"
12+
namespace = "tachiyomi.decoder"
13+
14+
defaultConfig {
15+
minSdk = 21
16+
17+
consumerProguardFiles("consumer-rules.pro")
18+
externalNativeBuild {
19+
cmake {
20+
}
21+
}
22+
}
23+
24+
buildTypes {
25+
release {
26+
isMinifyEnabled = false
27+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
28+
}
29+
}
30+
compileOptions {
31+
sourceCompatibility = JavaVersion.VERSION_1_8
32+
targetCompatibility = JavaVersion.VERSION_1_8
33+
}
34+
kotlinOptions {
35+
jvmTarget = "1.8"
36+
}
37+
externalNativeBuild {
38+
cmake {
39+
path = file("src/main/cpp/CMakeLists.txt")
40+
version = "3.22.1+"
41+
}
42+
}
43+
}
44+
45+
dependencies {
46+
}
47+
48+
afterEvaluate {
49+
publishing {
50+
publications {
51+
// Creates a Maven publication called "release".
52+
// release(MavenPublication) {
53+
//// from components.release
54+
// groupId = "tachiyomiorg"
55+
// artifactId = "image-decoder"
56+
// version = "1.0"
57+
// }
58+
}
59+
}
60+
}

library/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.14)
1+
cmake_minimum_required(VERSION 3.22..4.0)
22
project(imagedecoder C CXX ASM)
33
include(FetchContent)
44

@@ -7,9 +7,6 @@ set(CMAKE_BUILD_TYPE Release)
77
option(WITH_JPEG "Include JPEG decoder" ON)
88
option(WITH_PNG "Include PNG decoder" ON)
99
option(WITH_WEBP "Include WebP decoder" ON)
10-
option(WITH_HEIF "Include HEIF decoder" OFF)
11-
option(WITH_AVIF "Include AVIF decoder" OFF)
12-
option(WITH_JXL "Include JXL decoder" OFF)
1310

1411
add_library(imagedecoder SHARED
1512
java_stream.cpp
@@ -40,15 +37,5 @@ if(WITH_WEBP)
4037
add_definitions(-DHAVE_LIBWEBP)
4138
target_sources(imagedecoder PRIVATE decoder_webp.cpp)
4239
endif()
43-
if(WITH_HEIF OR WITH_AVIF)
44-
add_subdirectory(libheif)
45-
add_definitions(-DHAVE_LIBHEIF)
46-
target_sources(imagedecoder PRIVATE decoder_heif.cpp)
47-
endif()
48-
if(WITH_JXL)
49-
add_subdirectory(libjxl)
50-
add_definitions(-DHAVE_LIBJXL)
51-
target_sources(imagedecoder PRIVATE decoder_jxl.cpp)
52-
endif()
5340

5441
target_link_libraries(imagedecoder android jnigraphics log)

library/src/main/cpp/lcms/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FetchContent_Declare(lcms2
22
GIT_REPOSITORY https://github.com/mm2/Little-CMS
3-
GIT_TAG lcms2.16
3+
GIT_TAG lcms2.17
44
PATCH_COMMAND git apply ${CMAKE_CURRENT_LIST_DIR}/lcms2.12.patch || true
55
BINARY_DIR build
66
SUBBUILD_DIR subbuild

library/src/main/cpp/lcms/lcms2.12.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@@ -0,0 +1,48 @@
44
+project(lcms2)
55
+
6-
+cmake_minimum_required(VERSION 2.8)
6+
+cmake_minimum_required(VERSION 3.22..4.0)
77
+
88
+include_directories(include)
99
+

library/src/main/cpp/libheif/CMakeLists.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.

library/src/main/cpp/libheif/dav1d.cmake

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)