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.
- package/android/build.gradle +13 -5
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -25,7 +25,13 @@ ext {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
apply plugin: 'com.android.library'
|
|
28
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
61
|
+
if (agpMajorVersion < 9) {
|
|
62
|
+
kotlin {
|
|
63
|
+
compilerOptions {
|
|
64
|
+
jvmTarget = JvmTarget.JVM_21
|
|
65
|
+
}
|
|
58
66
|
}
|
|
59
67
|
}
|
|
60
68
|
|