@@ -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
6346apply plugin : ' com.android.library'
6447
6548android {
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"
0 commit comments