capacitor-plugin-playlist 0.8.5 → 0.8.7
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/README.md +28 -0
- package/android/build.gradle +6 -19
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,6 +89,34 @@ architect => build => options:
|
|
|
89
89
|
</application>
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
+
##### Gradle Configuration (Gradle 9+)
|
|
93
|
+
|
|
94
|
+
**Important**: If you're using Gradle 9 or later, you need to ensure the Kotlin plugin is declared in your root `android/build.gradle` file. This plugin no longer includes its own `buildscript` block to avoid conflicts with Gradle 9's plugin loading requirements.
|
|
95
|
+
|
|
96
|
+
Add the Kotlin plugin to your root `android/build.gradle`:
|
|
97
|
+
|
|
98
|
+
```gradle
|
|
99
|
+
buildscript {
|
|
100
|
+
ext.kotlin_version = '2.3.0' // Or your preferred Kotlin version
|
|
101
|
+
|
|
102
|
+
repositories {
|
|
103
|
+
google()
|
|
104
|
+
mavenCentral()
|
|
105
|
+
}
|
|
106
|
+
dependencies {
|
|
107
|
+
classpath 'com.android.tools.build:gradle:8.13.2'
|
|
108
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
109
|
+
// ... other dependencies
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
ext {
|
|
114
|
+
kotlin_version = '2.3.0' // Make it available to subprojects
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The plugin's `build.gradle` will automatically use the Kotlin plugin from the root project. If you see a warning about the Kotlin plugin being loaded multiple times, ensure you've removed any `buildscript` blocks that declare the Kotlin plugin from other subprojects (except the root project).
|
|
119
|
+
|
|
92
120
|
##### Glide image loading for notifiction center
|
|
93
121
|
|
|
94
122
|
To be able to use glide you need to create a file MyAppGlideModule.java:
|
package/android/build.gradle
CHANGED
|
@@ -6,18 +6,6 @@ ext {
|
|
|
6
6
|
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
buildscript {
|
|
10
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
11
|
-
repositories {
|
|
12
|
-
google()
|
|
13
|
-
mavenCentral()
|
|
14
|
-
}
|
|
15
|
-
dependencies {
|
|
16
|
-
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
17
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
9
|
apply plugin: 'com.android.library'
|
|
22
10
|
apply plugin: 'kotlin-android'
|
|
23
11
|
|
|
@@ -54,7 +42,6 @@ kotlin {
|
|
|
54
42
|
|
|
55
43
|
repositories {
|
|
56
44
|
google()
|
|
57
|
-
jcenter()
|
|
58
45
|
mavenCentral()
|
|
59
46
|
}
|
|
60
47
|
|
|
@@ -65,18 +52,18 @@ dependencies {
|
|
|
65
52
|
testImplementation "junit:junit:$junitVersion"
|
|
66
53
|
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
67
54
|
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
68
|
-
implementation "androidx.core:core-ktx:1.
|
|
69
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
55
|
+
implementation "androidx.core:core-ktx:1.17.0"
|
|
56
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib:${rootProject.ext.kotlin_version}"
|
|
70
57
|
|
|
71
58
|
// Image Exomedia
|
|
72
|
-
implementation 'com.devbrackets.android:exomedia:5.
|
|
59
|
+
implementation 'com.devbrackets.android:exomedia:5.2.0'
|
|
73
60
|
|
|
74
61
|
// Image Loading
|
|
75
|
-
implementation 'com.github.bumptech.glide:glide:
|
|
76
|
-
annotationProcessor 'com.github.bumptech.glide:compiler:
|
|
62
|
+
implementation 'com.github.bumptech.glide:glide:5.0.5'
|
|
63
|
+
annotationProcessor 'com.github.bumptech.glide:compiler:5.0.5'
|
|
77
64
|
|
|
78
65
|
// Playlist support
|
|
79
66
|
implementation 'com.devbrackets.android:playlistcore:2.2.0'
|
|
80
|
-
implementation 'androidx.work:work-runtime-ktx:2.
|
|
67
|
+
implementation 'androidx.work:work-runtime-ktx:2.11.0'
|
|
81
68
|
|
|
82
69
|
}
|