mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-06-30 09:24:34 -05:00
* Bitmap: Use provided config * Bitmap: implement copy * Bitmap: Simplify getPixels This also fixes a bug where the returned data may not be in the correct format Android getPixels(): > The returned colors are non-premultiplied ARGB values in the sRGB color space. BufferedImage getRGB(): > Returns an array of integer pixels in the default RGB color model (TYPE_INT_ARGB) and default sRGB color space * Stub TextPaint and Paint * Paint: Implement some required functions * Stub StaticLayout and Layout * Implement some Paint support * Draw Bounds * WebP write support * First text rendering * Paint: Fix text size, font metrics * Paint: Fix not copying new properties Fixes font size in draw * Canvas: Stroke add cap/join for better aliasing Otherwise we get bad artifacts on sharp corners Based on https://stackoverflow.com/a/35222059/ * Remove logs * Canvas: Implement other drawText methods * Bitmap: support erase * Layout: Fix text direction Should be LTR, otherwise 0 is read, which is automatically interpreted as RTL without explicit check * Bitmap: scale to destination rectangle * Canvas: drawBitmap with just x/y * Bitmap: Convert image on JPEG export to RGB JPEG does not support alpha, so will throw "bogus color space" * Switch to newer fork
52 lines
1.1 KiB
Kotlin
52 lines
1.1 KiB
Kotlin
plugins {
|
|
id(
|
|
libs.plugins.kotlin.jvm
|
|
.get()
|
|
.pluginId,
|
|
)
|
|
id(
|
|
libs.plugins.kotlin.serialization
|
|
.get()
|
|
.pluginId,
|
|
)
|
|
id(
|
|
libs.plugins.ktlint
|
|
.get()
|
|
.pluginId,
|
|
)
|
|
}
|
|
|
|
dependencies {
|
|
// Shared
|
|
implementation(libs.bundles.shared)
|
|
testImplementation(libs.bundles.sharedTest)
|
|
|
|
// Android stub library
|
|
implementation(libs.android.stubs)
|
|
|
|
// XML
|
|
compileOnly(libs.xmlpull)
|
|
|
|
// Config API
|
|
implementation(projects.androidCompat.config)
|
|
|
|
// APK sig verifier
|
|
compileOnly(libs.apksig)
|
|
|
|
// AndroidX annotations
|
|
compileOnly(libs.android.annotations)
|
|
|
|
// substitute for duktape-android/quickjs
|
|
implementation(libs.bundles.polyglot)
|
|
|
|
// Kotlin wrapper around Java Preferences, makes certain things easier
|
|
implementation(libs.bundles.settings)
|
|
|
|
// Android version of SimpleDateFormat
|
|
implementation(libs.icu4j)
|
|
|
|
// OpenJDK lacks native JPEG encoder and native WEBP decoder
|
|
implementation(libs.bundles.twelvemonkeys)
|
|
implementation(libs.sejda.webp)
|
|
}
|