capacitor-plugin-playlist 0.11.2 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,13 @@ ext {
25
25
  }
26
26
 
27
27
  apply plugin: 'com.android.library'
28
- apply plugin: 'kotlin-android'
28
+
29
+ // AGP 9+ (consuming apps) provides built-in Kotlin; applying kotlin-android there fails.
30
+ // Standalone `./gradlew test` (CI) still uses AGP 8.x from this module's buildscript.
31
+ def agpMajorVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
32
+ if (agpMajorVersion < 9) {
33
+ apply plugin: 'kotlin-android'
34
+ }
29
35
 
30
36
  android {
31
37
  namespace = "org.dwbn.plugins.playlist"
@@ -40,7 +46,7 @@ android {
40
46
  buildTypes {
41
47
  release {
42
48
  minifyEnabled false
43
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
49
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
44
50
  }
45
51
  }
46
52
  lintOptions {
@@ -52,9 +58,11 @@ android {
52
58
  }
53
59
  }
54
60
 
55
- kotlin {
56
- compilerOptions {
57
- jvmTarget = JvmTarget.JVM_21
61
+ if (agpMajorVersion < 9) {
62
+ kotlin {
63
+ compilerOptions {
64
+ jvmTarget = JvmTarget.JVM_21
65
+ }
58
66
  }
59
67
  }
60
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-playlist",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Playlist ",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",