Skip to content

Commit ffdba89

Browse files
Ref: Clear old capacitor version support (#907)
* drop support to older capacitors * link changelog to PR
1 parent f97aaf1 commit ffdba89

File tree

4 files changed

+22
-35
lines changed

4 files changed

+22
-35
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
99
## Unreleased
1010

11+
### Break Change
12+
13+
- Drop support for Capacitor 3, 4 and 5. ([#907](https://github.com/getsentry/sentry-capacitor/pull/907))
14+
1115
### Dependencies
1216

1317
- Bump JavaScript SDKs from v9.0.0 to v9.11.0 ([#872](https://github.com/getsentry/sentry-capacitor/pull/872))

android/build.gradle

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ def GetCapacitorVersion() {
1616
if (compileVersion == 34) {
1717
return 6
1818
}
19-
else if (compileVersion == 33) {
20-
return 5
21-
}
22-
else if (compileVersion == 32 || compileVersion == 31) {
23-
return 4
24-
}
25-
else if (compileVersion == 30 || compileVersion == 29) {
26-
return 3
27-
}
2819
else {
2920
throw new GradleException("The version of Capacitor is not supported by Sentry, CODE: " + compileVersion)
3021
}
@@ -42,31 +33,23 @@ if (capVersion >= 7) {
4233
androidxEspressoCoreVersion = safeExtGet('androidxEspressoCoreVersion', '3.6.1')
4334
}
4435
}
45-
else if (capVersion >= 5) {
46-
println "Sentry Capacitor: Applying defaults for Capacitor 5 and 6"
36+
else {
37+
println "Sentry Capacitor: Applying defaults for Capacitor 6"
4738
targetJavaVersion = JavaVersion.VERSION_17
4839
defaultMinAndroidVersion = 22
4940
ext {
5041
androidxAppCompatVersion = safeExtGet('androidxAppCompatVersion', '1.6.1')
5142
androidxEspressoCoreVersion = safeExtGet('androidxEspressoCoreVersion', '3.5.1')
5243
}
5344
}
54-
else {
55-
println "Sentry Capacitor: Applying defaults for Capacitor 4."
56-
targetJavaVersion = JavaVersion.VERSION_11
57-
defaultMinAndroidVersion = 22
58-
ext {
59-
androidxEspressoCoreVersion = safeExtGet('androidxEspressoCoreVersion', '3.2.0')
60-
}
61-
}
6245

6346
apply plugin: 'com.android.library'
6447

6548
android {
6649
namespace "io.sentry.capacitor"
6750
compileSdkVersion safeExtGet('compileSdkVersion', defaultSdkVersion)
6851
defaultConfig {
69-
minSdkVersion safeExtGet('minSdkVersion', defaultMinAndroidVersion) // Same for Capacitor 6 or lower
52+
minSdkVersion safeExtGet('minSdkVersion', defaultMinAndroidVersion)
7053
targetSdkVersion safeExtGet('targetSdkVersion', defaultSdkVersion)
7154
versionCode 1
7255
versionName "1.0"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
"@sentry/types": "9.23.0"
6363
},
6464
"devDependencies": {
65-
"@capacitor/android": "^3.0.1 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
66-
"@capacitor/core": "^3.0.1 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
67-
"@capacitor/ios": "^3.0.1 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
65+
"@capacitor/android": "^6.0.0 || ^7.0.0",
66+
"@capacitor/core": "^6.0.0 || ^7.0.0",
67+
"@capacitor/ios": "^6.0.0 || ^7.0.0",
6868
"@ionic/prettier-config": "^1.0.0",
6969
"@sentry-internal/eslint-config-sdk": "9.23.0",
7070
"@sentry-internal/eslint-plugin-sdk": "9.23.0",

yarn.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -514,22 +514,22 @@
514514
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
515515
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
516516

517-
"@capacitor/android@^3.0.1 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0":
518-
version "7.0.1"
519-
resolved "https://registry.yarnpkg.com/@capacitor/android/-/android-7.0.1.tgz#16c45a305edeb8bcf0b083ea52abcc62ca4e5e70"
520-
integrity sha512-jukJJHfkcyEBOkFBJRD3EwXMIIQo7lSv0ExPWgsIliPdGXLAj6ElvK2JaYEzec3vKyLc4RTNFVv0PMEU0vnImg==
517+
"@capacitor/android@^6.0.0 || ^7.0.0":
518+
version "7.2.0"
519+
resolved "https://registry.yarnpkg.com/@capacitor/android/-/android-7.2.0.tgz#f30e313315ab92c500bd57d9f0c4716a46b42f40"
520+
integrity sha512-zdhEy3jZPG5Toe/pGzKtDgIiBGywjaoEuQWnGVjBYPlSAEUtAhpZ2At7V0SCb26yluAuzrAUV0Ue+LQeEtHwFQ==
521521

522-
"@capacitor/core@^3.0.1 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0":
523-
version "7.0.1"
524-
resolved "https://registry.yarnpkg.com/@capacitor/core/-/core-7.0.1.tgz#e2a635ffced0aa0e1160f48cffa8d8148f947972"
525-
integrity sha512-1Ob9bvA/p8g8aNwK6VesxEekGXowLVf6APjkW4LRnr05H+7z/bke+Q5pn9zqh/GgTbIxAQ/rwZrAZvvxkdm1UA==
522+
"@capacitor/core@^6.0.0 || ^7.0.0":
523+
version "7.2.0"
524+
resolved "https://registry.yarnpkg.com/@capacitor/core/-/core-7.2.0.tgz#fdd1c5d2fbfa257887ce6065f66151a51f0e6d1b"
525+
integrity sha512-2zCnA6RJeZ9ec4470o8QMZEQTWpekw9FNoqm5TLc10jeCrhvHVI8MPgxdZVc3mOdFlyieYu4AS1fNxSqbS57Pw==
526526
dependencies:
527527
tslib "^2.1.0"
528528

529-
"@capacitor/ios@^3.0.1 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0":
530-
version "7.0.1"
531-
resolved "https://registry.yarnpkg.com/@capacitor/ios/-/ios-7.0.1.tgz#f175f74543edc5faa13de927ababfffff450776f"
532-
integrity sha512-RN6S1C1k7ue57DFmJM4EizzsYBrahTTiMhcnlHspFLaojgHbFWZbYq1VriuRKysPU1ka/P+klsdtRFsB5K9jyw==
529+
"@capacitor/ios@^6.0.0 || ^7.0.0":
530+
version "7.2.0"
531+
resolved "https://registry.yarnpkg.com/@capacitor/ios/-/ios-7.2.0.tgz#c3d9435582e5267b57085229e5678d1d53b15b5a"
532+
integrity sha512-MQgRZcXZpbpjN83bjkGrzQd7s3XeHBZplmWf38/msF/siMGJKLrXNmNzmmPIWA5Xpi/aH6UoJFk1wXuU2U+zMg==
533533

534534
"@chevrotain/cst-dts-gen@11.0.3":
535535
version "11.0.3"

0 commit comments

Comments
 (0)