Skip to content

Commit 8d047e2

Browse files
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/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ buildscript {
1111
mavenCentral()
1212
}
1313
dependencies {
14-
classpath 'com.android.tools.build:gradle:8.6.0'
14+
classpath 'com.android.tools.build:gradle:8.7.2'
1515
}
1616
}
1717

1818
apply plugin: 'com.android.library'
1919

2020
android {
2121
namespace "com.frontegg.ionic"
22-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
22+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
2323
defaultConfig {
2424
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
25-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
25+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
2626
versionCode 1
2727
versionName "1.0"
2828
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)