Skip to content

Commit 3815fd5

Browse files
fix: Fix for issue 5
1 parent f650745 commit 3815fd5

5 files changed

Lines changed: 37 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.2.2] - 2026-04-01
4+
5+
### 🐛 Bug Fixes
6+
7+
- **Android build failure with modern compileSdk** (`example/android/build.gradle.kts`): `irondash_engine_context 0.5.5` was compiled against android-31 but its transitive `androidx.fragment:1.7.1` dependency has `minCompileSdk=34`, causing AGP 8's `checkAarMetadata` to block the build. Added a `subprojects { afterEvaluate { compileSdk = 35 } }` override in the example's root Gradle file. README now documents the same one-line workaround for app-level projects. ([#5](https://github.com/brewkits/hyper_render/issues/5))
8+
39
## [1.2.1] - 2026-03-31
410

511
### 🏗️ Maintenance

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
```yaml
4141
dependencies:
42-
hyper_render: ^1.2.1
42+
hyper_render: ^1.2.2
4343
```
4444
4545
```dart
@@ -53,6 +53,21 @@ HyperViewer(
5353

5454
Zero configuration. XSS sanitization is **on by default**.
5555

56+
> **Android note:** `hyper_render` depends on `super_clipboard` which transitively pulls in `irondash_engine_context`. That library was compiled against Android SDK 31, but its `androidx.fragment:1.7.1` dependency requires `compileSdk ≥ 34`. Add this one-time workaround to your `android/build.gradle.kts`:
57+
>
58+
> ```kotlin
59+
> // android/build.gradle.kts (root — not app/build.gradle.kts)
60+
> subprojects {
61+
> afterEvaluate {
62+
> extensions.findByType(com.android.build.gradle.LibraryExtension::class.java)?.apply {
63+
> compileSdk = 35
64+
> }
65+
> }
66+
> }
67+
> ```
68+
>
69+
> This overrides `compileSdk` for all library sub-projects so AGP's `checkAarMetadata` passes. Tracked in [#5](https://github.com/brewkits/hyper_render/issues/5).
70+
5671
---
5772
5873
## 🏗️ Why Switch? The Architecture Argument

example/android/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ subprojects {
1919
project.evaluationDependsOn(":app")
2020
}
2121

22+
// Workaround: irondash_engine_context 0.5.5 was compiled against android-31 but
23+
// transitively requires androidx.fragment:1.7.1 which has minCompileSdk=34.
24+
// AGP 8 checkAarMetadata blocks the build. Override compileSdk for all library
25+
// subprojects so the check passes.
26+
// Tracked: https://github.com/brewkits/hyper_render/issues/5
27+
subprojects {
28+
afterEvaluate {
29+
extensions.findByType(com.android.build.gradle.LibraryExtension::class.java)?.apply {
30+
compileSdk = 35
31+
}
32+
}
33+
}
34+
2235
tasks.register<Delete>("clean") {
2336
delete(rootProject.layout.buildDirectory)
2437
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: hyper_render
22
description: "Render HTML/Markdown/Delta at 60 FPS. The only Flutter renderer with CSS float layout, crash-free text selection, and CJK Ruby typography. Drop-in flutter_html alternative."
3-
version: 1.2.1
3+
version: 1.2.2
44
homepage: https://github.com/brewkits/hyper_render
55
repository: https://github.com/brewkits/hyper_render
66
issue_tracker: https://github.com/brewkits/hyper_render/issues

pubspec_publish_ready.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: hyper_render
22
description: "Render HTML/Markdown/Delta at 60 FPS. The only Flutter renderer with CSS float layout, crash-free text selection, and CJK Ruby typography. Drop-in flutter_html alternative."
3-
version: 1.2.1
3+
version: 1.2.2
44
homepage: https://github.com/brewkits/hyper_render
55
repository: https://github.com/brewkits/hyper_render
66
issue_tracker: https://github.com/brewkits/hyper_render/issues

0 commit comments

Comments
 (0)