Commit 8d047e2
feat: support Capacitor 6 & 7
Widen the @capacitor/core peer range to >=5.0.0 <8.0.0 (adds v6 and v7
alongside existing v5) and move the build toolchain to Capacitor 7 levels:
- peerDependencies @capacitor/core: ^5.0.0 -> >=5.0.0 <8.0.0
- devDependencies @capacitor/{core,android,ios}: ^5.0.0 -> ^7.0.0
- Android: AGP 8.6.0 -> 8.7.2, Gradle 8.4 -> 8.11.1, compileSdk/targetSdk 34 -> 35
- Fix addListener() for Capacitor 6+: drop the legacy
'& PluginListenerHandle' intersection from the return type
- Bump version 2.1.0 -> 2.2.0
iOS deployment target (14) and minSdk (26) already satisfy Capacitor 7.
TS/JS build verified against @capacitor/core 7.6.7. Supersedes #51.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8c5b301 commit 8d047e2
6 files changed
Lines changed: 650 additions & 217 deletions
File tree
- android
- gradle/wrapper
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
0 commit comments