Skip to content

0.7.0

Latest

Choose a tag to compare

@yuyuyuyuyu-dev yuyuyuyuyu-dev released this 19 Oct 00:17
· 34 commits to main since this release
1a0d8c0

ComposePWA 0.7.0 is out of alpha.
Your PWA should now work fully offline, and you have more choice in where to put index.html.

Highlights

  • New default Workbox configs make your PWA work fully offline.
  • index.html can be in webMain, wasmJsMain, jsMain or commonMain resources.
  • ComposePWA no longer rewrites index.html when it already has the tags it needs, so it works with code formatters.
  • A clear error tells you when a PWA asset is in more than one place.

Before you upgrade

ComposePWA never edits a Workbox config you already have.
To get the new defaults, delete workbox-config-for-wasm.js, workbox-config-for-js.js, or both, and build again.

Details

New default Workbox configs

Before, only the screens you had already visited worked offline.
The new defaults fix this.
They first shipped in the 0.7.0 alphas, and no problems have come up.

More places for index.html

ComposePWA looks for index.html in these resources directories:

  • webMain/resources
  • wasmJsMain/resources
  • jsMain/resources
  • commonMain/resources

Before, it looked only in webMain/resources and failed if the file was somewhere else.
PWA assets (registerServiceWorker.js, manifest.json and icons/) can also be in a different directory from index.html.

Error for duplicated PWA assets

If the same PWA asset is in more than one resources directory, the build stops and shows where each copy is:

> ComposePWA found the same PWA asset in more than one resources directory. Gradle merges
  those directories into one page and cannot pick one, so keep exactly one copy of each:

    registerServiceWorker.js is in:
      - src/webMain/resources/registerServiceWorker.js (identical to the bundled default; safe to delete)
      - src/commonMain/resources/registerServiceWorker.js

Other fixes

  • Building both targets in one command (for example, wasmJsBrowserDistribution jsBrowserDistribution) no longer fails because of a broken npx cache. (#45)
  • The default icons no longer include macOS metadata files. (#15)

Other changes

  • The default short_name in a new manifest.json is now ComposePWA instead of Compose PWA. (#123)

What's Changed

  • build(deps): bump org.jetbrains.compose.material3:material3 from 1.10.0-alpha05 to 1.11.0-alpha07 by @dependabot[bot] in #7
  • build(deps): bump gradle/actions from 4 to 6 by @dependabot[bot] in #6
  • build(deps): bump actions/setup-java from 4 to 5 by @dependabot[bot] in #5
  • build(deps): bump actions/checkout from 4 to 6 by @dependabot[bot] in #4
  • Migrate plugin dependencies to version catalog and fix task annotations by @yuyuyuyuyu-dev in #8
  • docs(README.md): add dependencies and acknowledgments section by @yuyuyuyuyu-dev in #9
  • build(deps): bump gradle-wrapper from 9.5.0 to 9.5.1 by @dependabot[bot] in #10
  • build(deps): bump composeMultiplatform from 1.10.3 to 1.11.0 by @dependabot[bot] in #11
  • Refactor resource copy tasks to use DeployResourceFile by @yuyuyuyuyu-dev in #13
  • Fix: Clean icons.zip metadata and add CI assertions by @yuyuyuyuyu-dev in #15
  • ci: resolve plugin version from release tag by @yuyuyuyuyu-dev in #16
  • build(deps): bump org.jetbrains.compose.material3:material3 from 1.11.0-alpha07 to 1.12.0-alpha01 by @dependabot[bot] in #12
  • build(deps): bump kotlin from 2.3.21 to 2.4.0 by @dependabot[bot] in #17
  • Introduce standard formatters and linters for all file types by @yuyuyuyuyu-dev in #18
  • fix(plugin): make AddNecessaryHtmlTags formatter-agnostic by @yuyuyuyuyu-dev in #19
  • build(deps): bump composeMultiplatform from 1.12.0-alpha01 to 1.12.0-alpha02 by @dependabot[bot] in #20
  • build(deps): bump androidx-lifecycle from 2.11.0-beta01 to 2.11.0-beta02 by @dependabot[bot] in #21
  • build(deps): bump org.jetbrains.compose.material3:material3 from 1.12.0-alpha01 to 1.12.0-alpha02 by @dependabot[bot] in #22
  • build(deps): bump actions/checkout from 6 to 7 by @dependabot[bot] in #23
  • fix(ci): trigger publish on release: published, run on Linux with JBR by @yuyuyuyuyu-dev in #25
  • build(deps): bump com.vanniktech.maven.publish from 0.36.0 to 0.37.0 by @dependabot[bot] in #26
  • refactor: turn the sample app into a standalone "example" Gradle build by @yuyuyuyuyu-dev in #28
  • ci: rename the test jobs to say what they verify by @yuyuyuyuyu-dev in #40
  • feat: support index.html in commonMain, wasmJsMain, and jsMain resources by @yuyuyuyuyu-dev in #42
  • refactor: flatten the plugin into the composepwa package by @yuyuyuyuyu-dev in #43
  • chore(dependabot.yml): set pull requests limit to 1 by @yuyuyuyuyu-dev in #44
  • fix: serialize the workbox tasks to stop corrupting the npx cache by @yuyuyuyuyu-dev in #45
  • build(deps): bump gradle-wrapper from 9.5.1 to 9.6.1 by @dependabot[bot] in #30
  • build(deps): bump gradle-wrapper from 9.1.0 to 9.6.1 in /example by @dependabot[bot] in #31
  • build(deps): bump org.jetbrains.compose.material3:material3 from 1.11.0-alpha07 to 1.12.0-alpha03 in /example by @dependabot[bot] in #37
  • build(deps): bump androidx-lifecycle from 2.11.0-beta01 to 2.11.0-rc01 in /example by @dependabot[bot] in #38
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.6.1 to 2026.7.0 in /example by @dependabot[bot] in #39
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.0 to 2026.7.1 in /example by @dependabot[bot] in #46
  • fix: deploy PWA assets by placement rules instead of assuming one directory by @yuyuyuyuyu-dev in #48
  • build(deps): bump actions/setup-node from 6 to 7 by @dependabot[bot] in #50
  • build(deps): bump androidx-lifecycle from 2.11.0-rc01 to 2.11.0 in /example by @dependabot[bot] in #51
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.1 to 2026.7.2 in /example by @dependabot[bot] in #53
  • build(deps): bump kotlin from 2.4.0 to 2.4.10 in /example by @dependabot[bot] in #54
  • build(deps): bump kotlin from 2.4.0 to 2.4.10 by @dependabot[bot] in #52
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.2 to 2026.7.3 in /example by @dependabot[bot] in #55
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.3 to 2026.7.4 in /example by @dependabot[bot] in #56
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.4 to 2026.7.5 in /example by @dependabot[bot] in #58
  • chore: make the example a real example and move its CI jobs to web-app by @yuyuyuyuyu-dev in #57
  • chore: make the example consume the published ComposePWA plugin by @yuyuyuyuyu-dev in #59
  • feat: update default Workbox configs by @yuyuyuyuyu-dev in #60
  • chore: replace taplo with the version-catalog-update plugin by @yuyuyuyuyu-dev in #61
  • build(deps): bump dev.yuyuyuyuyu.composepwa from 0.7.0-alpha02 to 0.7.0-alpha03 in /example by @dependabot[bot] in #62
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.5 to 2026.7.7 in /example by @dependabot[bot] in #63
  • build(deps): bump org.jsoup:jsoup from 1.22.2 to 1.23.1 by @dependabot[bot] in #64
  • chore: run formatters and linters straight from the CI workflows by @yuyuyuyuyu-dev in #65
  • build(deps-dev): bump eslint-plugin-yml from 3.4.0 to 3.6.0 by @dependabot[bot] in #66
  • build(deps): bump actions/setup-java from 5 to 5.6.0 by @dependabot[bot] in #67
  • build(deps): bump actions/setup-java from 5.6.0 to 5.7.0 by @dependabot[bot] in #68
  • build(deps-dev): bump prettier from 3.8.4 to 3.9.6 by @dependabot[bot] in #69
  • build(deps): bump gradle/actions from 6 to 6.2.0 by @dependabot[bot] in #70
  • build(deps): bump nl.littlerobots.version-catalog-update from 1.1.0 to 1.1.1 by @dependabot[bot] in #72
  • build(deps): bump gradle/actions from 6.2.0 to 6.3.0 by @dependabot[bot] in #73
  • build(deps): bump gradle-wrapper from 9.6.1 to 9.7.0 by @dependabot[bot] in #74
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.7.7 to 2026.8.0 in /example by @dependabot[bot] in #75
  • build(deps-dev): bump globals from 17.6.0 to 17.9.0 by @dependabot[bot] in #71
  • build(deps): bump gradle-wrapper from 9.6.1 to 9.7.0 in /example by @dependabot[bot] in #76
  • build(deps-dev): bump markdownlint-cli2 from 0.22.1 to 0.23.2 by @dependabot[bot] in #77
  • build(deps-dev): bump @eslint/json from 2.0.0 to 2.0.1 by @dependabot[bot] in #78
  • build(deps-dev): bump globals from 17.9.0 to 17.11.0 by @dependabot[bot] in #79
  • build(deps-dev): bump eslint-plugin-yml from 3.6.0 to 3.8.1 by @dependabot[bot] in #80
  • build(deps-dev): bump eslint from 10.5.0 to 10.8.1 by @dependabot[bot] in #81
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.8.0 to 2026.8.1 in /example by @dependabot[bot] in #82
  • build(deps): bump gradle-wrapper from 9.7.0 to 9.7.1 by @dependabot[bot] in #84
  • build(deps-dev): bump eslint from 10.8.1 to 10.9.0 by @dependabot[bot] in #85
  • build(deps): bump actions/setup-java from 5.7.0 to 6.0.0 by @dependabot[bot] in #86
  • ci: group Dependabot minor and patch updates and merge them automatically by @yuyuyuyuyu-dev in #88
  • build(deps): bump org.jsoup:jsoup from 1.23.1 to 1.23.2 in the minor-and-patch group by @dependabot[bot] in #89
  • build(deps): bump the minor-and-patch group across 1 directory with 8 updates by @dependabot[bot] in #90
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.8.4 to 2026.8.5 in /example in the minor-and-patch group by @dependabot[bot] in #91
  • build(deps-dev): bump eslint from 10.9.0 to 10.9.1 by @dependabot[bot] in #87
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.8.5 to 2026.9.0 in /example in the minor-and-patch group by @dependabot[bot] in #92
  • build(deps-dev): bump the minor-and-patch group across 1 directory with 3 updates by @dependabot[bot] in #94
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.9.0 to 2026.9.1 in /example in the minor-and-patch group by @dependabot[bot] in #95
  • build(deps): bump the minor-and-patch group with 4 updates by @dependabot[bot] in #96
  • build(deps): bump the minor-and-patch group across 1 directory with 5 updates by @dependabot[bot] in #98
  • build(deps): bump com.gradle.plugin-publish from 2.2.0 to 2.2.1 in the minor-and-patch group by @dependabot[bot] in #99
  • build(deps): bump actions/setup-java from 6.0.0 to 6.0.1 in the minor-and-patch group across 1 directory by @dependabot[bot] in #100
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.9.1 to 2026.9.2 in /example in the minor-and-patch group by @dependabot[bot] in #101
  • build(deps-dev): bump the minor-and-patch group across 1 directory with 3 updates by @dependabot[bot] in #104
  • docs: rewrite the README and remove the article by @yuyuyuyuyu-dev in #105
  • build(deps): bump the minor-and-patch group across 1 directory with 7 updates by @dependabot[bot] in #106
  • docs: stop hard wrapping Markdown by @yuyuyuyuyu-dev in #109
  • build(deps): bump gradle-wrapper from 9.7.1 to 9.8.0 in the minor-and-patch group across 1 directory by @dependabot[bot] in #107
  • build(deps-dev): bump prettier from 3.9.8 to 3.9.9 in the minor-and-patch group across 1 directory by @dependabot[bot] in #108
  • build(deps): bump gradle/actions from 6.3.0 to 6.4.0 in the minor-and-patch group by @dependabot[bot] in #110
  • build(deps): bump org.jetbrains.kotlin-wrappers:kotlin-browser from 2026.9.2 to 2026.9.3 in /example in the minor-and-patch group by @dependabot[bot] in #111
  • build(deps-dev): bump globals from 17.12.0 to 17.13.0 in the minor-and-patch group by @dependabot[bot] in #112
  • build(deps-dev): bump eslint from 10.11.0 to 10.12.0 in the minor-and-patch group by @dependabot[bot] in #113
  • build(deps-dev): bump the minor-and-patch group with 2 updates by @dependabot[bot] in #114
  • build(deps): bump the minor-and-patch group across 1 directory with 4 updates by @dependabot[bot] in #115
  • build(deps-dev): bump prettier from 3.9.9 to 3.9.10 in the minor-and-patch group across 1 directory by @dependabot[bot] in #117
  • build(deps): bump the minor-and-patch group across 1 directory with 6 updates by @dependabot[bot] in #118
  • build(deps): bump org.jetbrains.compose.material3:material3 from 1.13.0-alpha01 to 1.13.0-alpha02 in /example by @dependabot[bot] in #120
  • ci: split the Tests and Lint workflows by @yuyuyuyuyu-dev in #121
  • build(deps): bump the minor-and-patch group across 1 directory with 2 updates by @dependabot[bot] in #122
  • chore: rename Compose PWA to ComposePWA by @yuyuyuyuyu-dev in #123

New Contributors

Full Changelog: v0.6.1...v0.7.0