Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions flutter_readium/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Fixed

- **Android builds warned that `flutter_readium` still applied the Kotlin Gradle Plugin.**
The Android source layout and example now support AGP's built-in Kotlin, and
`wakelock_plus` is constrained to a compatible release.

## [0.4.2] - 2026-08-28

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion flutter_readium/android/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Thin wrapper over [kotlin-toolkit](https://github.com/readium/kotlin-toolkit/);

## Toolchain

`minSdkVersion 24`, `compileSdk 36`, Kotlin 2.3.21, AGP 8.13.2, Java 18 source/target.
`minSdkVersion 24`, `compileSdk 36`, Kotlin 2.3.21, Java 18 source/target.
The plugin fallback uses AGP 8.13.2; the example validates AGP 9.3.0 with Gradle 9.5.
1 change: 0 additions & 1 deletion flutter_readium/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ android {
compileSdkVersion 36

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
main.res.srcDirs += 'src/main/res'
}
defaultConfig {
Expand Down
2 changes: 0 additions & 2 deletions flutter_readium/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.newDsl=false
android.builtInKotlin=false

2 changes: 1 addition & 1 deletion flutter_readium/example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.android.application")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins
// The Flutter Gradle Plugin must be applied after the Android Gradle plugin.
id("dev.flutter.flutter-gradle-plugin")
}

Expand Down
2 changes: 1 addition & 1 deletion flutter_readium/example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
# This builtInKotlin flag was added automatically by Flutter migrator
android.builtInKotlin=false
android.builtInKotlin=true
# This newDsl flag was added automatically by Flutter migrator
android.newDsl=false
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-all.zip
2 changes: 1 addition & 1 deletion flutter_readium/example/android/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pluginManagement {

plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.13.2" apply false
id("com.android.application") version "9.3.0" apply false
id("org.jetbrains.kotlin.android") version "2.3.21" apply false
id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0"
}
Expand Down
2 changes: 1 addition & 1 deletion flutter_readium/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies:
flutter_web_plugins:
sdk: flutter
flutter_readium_platform_interface: ^0.4.2
wakelock_plus: ^1.6.0
wakelock_plus: ^1.7.0
web: ^1.1.1
collection: ^1.19.1
http: ^1.5.0
Expand Down
Loading