capacitor-plugin-playlist 0.5.1 → 0.6.0
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 +29 -23
- package/android/build.gradle +1 -3
- package/android/src/main/java/org/dwbn/plugins/playlist/App.kt +0 -43
- package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +217 -153
- package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.java +4 -2
- package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +8 -6
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +20 -11
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.java +1 -46
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/BaseMediaApi.kt +4 -8
- package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaService.kt +17 -0
- package/package.json +1 -1
- package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.0.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.0.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.0.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/8.0.2/gc.properties +0 -0
- package/android/.gradle/8.2.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.2.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.2.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.2.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.2.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.2.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/file-system.probe +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -19
- package/android/.idea/kotlinc.xml +0 -6
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/vcs.xml +0 -6
- package/android/bin/.gradle/8.0.2/checksums/checksums.lock +0 -0
- package/android/bin/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
- package/android/bin/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
- package/android/bin/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/bin/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
- package/android/bin/.gradle/8.0.2/executionHistory/executionHistory.bin +0 -0
- package/android/bin/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
- package/android/bin/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
- package/android/bin/.gradle/8.0.2/fileHashes/fileHashes.bin +0 -0
- package/android/bin/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/bin/.gradle/8.0.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/bin/.gradle/8.0.2/gc.properties +0 -0
- package/android/bin/.gradle/8.2.1/checksums/checksums.lock +0 -0
- package/android/bin/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
- package/android/bin/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
- package/android/bin/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/bin/.gradle/8.2.1/dependencies-accessors/gc.properties +0 -0
- package/android/bin/.gradle/8.2.1/executionHistory/executionHistory.bin +0 -0
- package/android/bin/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
- package/android/bin/.gradle/8.2.1/fileChanges/last-build.bin +0 -0
- package/android/bin/.gradle/8.2.1/fileHashes/fileHashes.bin +0 -0
- package/android/bin/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
- package/android/bin/.gradle/8.2.1/gc.properties +0 -0
- package/android/bin/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/bin/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/bin/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/bin/.gradle/config.properties +0 -2
- package/android/bin/.gradle/file-system.probe +0 -0
- package/android/bin/.gradle/vcs-1/gc.properties +0 -0
- package/android/bin/.idea/compiler.xml +0 -6
- package/android/bin/.idea/gradle.xml +0 -19
- package/android/bin/.idea/kotlinc.xml +0 -6
- package/android/bin/.idea/migrations.xml +0 -10
- package/android/bin/.idea/misc.xml +0 -9
- package/android/bin/.idea/vcs.xml +0 -6
- package/android/bin/.project +0 -34
- package/android/bin/build.gradle +0 -79
- package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/bin/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/bin/gradle.properties +0 -22
- package/android/bin/gradlew +0 -248
- package/android/bin/gradlew.bat +0 -92
- package/android/bin/local.properties +0 -8
- package/android/bin/proguard-rules.pro +0 -21
- package/android/bin/settings.gradle +0 -2
- package/android/bin/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.class +0 -0
- package/android/bin/src/main/AndroidManifest.xml +0 -4
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/App.kt +0 -62
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/FakeR.kt +0 -39
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/OnStatusCallback.kt +0 -34
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/OnStatusReportListener.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/PlaylistItemOptions.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +0 -356
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxAudioErrorType.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxAudioStatusMessage.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxConstants.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/TrackRemovalItem.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/data/AudioTrack.kt +0 -94
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/MediaControlsListener.kt +0 -13
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/Options.kt +0 -77
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +0 -286
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/notification/PlaylistNotificationProvider.kt +0 -26
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +0 -101
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler$Builder.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.class +0 -0
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/BaseMediaApi.kt +0 -40
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/service/MediaImageProvider.kt +0 -79
- package/android/bin/src/main/java/org/dwbn/plugins/playlist/service/MediaService.kt +0 -53
- package/android/bin/src/main/res/.gitkeep +0 -0
- package/android/bin/src/main/res/drawable/ic_closed_caption_white_24dp.xml +0 -9
- package/android/bin/src/main/res/drawable/ic_demo_icon_adaptive.xml +0 -15
- package/android/bin/src/main/res/drawable/ic_launcher_background.xml +0 -48
- package/android/bin/src/main/res/drawable/ic_launcher_foreground.xml +0 -22
- package/android/bin/src/main/res/drawable/ic_notification_icon.png +0 -0
- package/android/bin/src/main/res/layout/bridge_layout_main.xml +0 -15
- package/android/bin/src/main/res/values/colors.xml +0 -3
- package/android/bin/src/main/res/values/strings.xml +0 -3
- package/android/bin/src/main/res/values/styles.xml +0 -3
- package/android/bin/src/test/java/com/getcapacitor/ExampleUnitTest.class +0 -0
- package/android/local.properties +0 -8
|
@@ -2,11 +2,8 @@ package org.dwbn.plugins.playlist.playlist;
|
|
|
2
2
|
|
|
3
3
|
import android.app.Service;
|
|
4
4
|
import android.content.Context;
|
|
5
|
-
import android.support.v4.media.MediaMetadataCompat;
|
|
6
|
-
import android.support.v4.media.session.PlaybackStateCompat;
|
|
7
5
|
import android.util.Log;
|
|
8
6
|
|
|
9
|
-
import androidx.annotation.NonNull;
|
|
10
7
|
import androidx.annotation.Nullable;
|
|
11
8
|
|
|
12
9
|
import com.devbrackets.android.playlistcore.api.MediaPlayerApi;
|
|
@@ -19,9 +16,8 @@ import com.devbrackets.android.playlistcore.components.mediacontrols.MediaContro
|
|
|
19
16
|
import com.devbrackets.android.playlistcore.components.mediasession.DefaultMediaSessionProvider;
|
|
20
17
|
import com.devbrackets.android.playlistcore.components.mediasession.MediaSessionProvider;
|
|
21
18
|
import com.devbrackets.android.playlistcore.components.playlisthandler.DefaultPlaylistHandler;
|
|
22
|
-
import com.devbrackets.android.playlistcore.data.MediaInfo;
|
|
23
|
-
import com.devbrackets.android.playlistcore.data.MediaProgress;
|
|
24
19
|
import com.devbrackets.android.playlistcore.manager.BasePlaylistManager;
|
|
20
|
+
|
|
25
21
|
import org.dwbn.plugins.playlist.RmxAudioPlayer;
|
|
26
22
|
import org.dwbn.plugins.playlist.data.AudioTrack;
|
|
27
23
|
import org.dwbn.plugins.playlist.manager.PlaylistManager;
|
|
@@ -113,47 +109,6 @@ public class AudioPlaylistHandler<I extends PlaylistItem, M extends BasePlaylist
|
|
|
113
109
|
super.onCompletion(mediaPlayer);
|
|
114
110
|
}
|
|
115
111
|
|
|
116
|
-
/**
|
|
117
|
-
* A workaround to set current position into MediaControls session.
|
|
118
|
-
*
|
|
119
|
-
* @deprecated Can be delete after PlaylistCore updated.
|
|
120
|
-
*/
|
|
121
|
-
@Override
|
|
122
|
-
public boolean onProgressUpdated(@NonNull MediaProgress mediaProgress) {
|
|
123
|
-
MediaPlayerApi<I> currentMediaPlayer = getCurrentMediaPlayer();
|
|
124
|
-
|
|
125
|
-
long pos = currentMediaPlayer != null ? currentMediaPlayer.getCurrentPosition() : PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN;
|
|
126
|
-
|
|
127
|
-
PlaybackStateCompat.Builder playbackStateBuilder = new PlaybackStateCompat.Builder();
|
|
128
|
-
playbackStateBuilder.setState(
|
|
129
|
-
isPlaying() ? PlaybackStateCompat.STATE_PLAYING : PlaybackStateCompat.STATE_CONNECTING,
|
|
130
|
-
pos,
|
|
131
|
-
1.0f
|
|
132
|
-
);
|
|
133
|
-
getMediaSessionProvider().get().setPlaybackState(playbackStateBuilder.build());
|
|
134
|
-
|
|
135
|
-
return super.onProgressUpdated(mediaProgress);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* A workaround to set duration into MediaControls metadata.
|
|
140
|
-
*
|
|
141
|
-
* @deprecated Can be delete after PlaylistCore updated.
|
|
142
|
-
*/
|
|
143
|
-
@Override
|
|
144
|
-
public void updateMediaControls() {
|
|
145
|
-
super.updateMediaControls();
|
|
146
|
-
|
|
147
|
-
MediaPlayerApi<I> currentMediaPlayer = getCurrentMediaPlayer();
|
|
148
|
-
|
|
149
|
-
long duration = currentMediaPlayer != null ? currentMediaPlayer.getDuration() : -1;
|
|
150
|
-
|
|
151
|
-
// Set duration to Media Controls.
|
|
152
|
-
MediaMetadataCompat.Builder metaDataBuilder = new MediaMetadataCompat.Builder();
|
|
153
|
-
metaDataBuilder.putLong(MediaMetadataCompat.METADATA_KEY_DURATION, duration);
|
|
154
|
-
|
|
155
|
-
getMediaSessionProvider().get().setMetadata(metaDataBuilder.build());
|
|
156
|
-
}
|
|
157
112
|
|
|
158
113
|
public static class Builder<I extends PlaylistItem, M extends BasePlaylistManager<I>> {
|
|
159
114
|
|
|
@@ -11,28 +11,24 @@ abstract class BaseMediaApi : MediaPlayerApi<AudioTrack>, OnPreparedListener, On
|
|
|
11
11
|
protected var bufferPercent: Int = 0
|
|
12
12
|
|
|
13
13
|
protected var statusListener: MediaStatusListener<AudioTrack>? = null
|
|
14
|
-
|
|
15
14
|
override fun setMediaStatusListener(listener: MediaStatusListener<AudioTrack>) {
|
|
16
15
|
statusListener = listener
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
override fun onCompletion() {
|
|
20
18
|
statusListener?.onCompletion(this)
|
|
21
19
|
}
|
|
22
|
-
|
|
23
|
-
override fun onError(e: Exception): Boolean {
|
|
24
|
-
return statusListener?.onError(this) == true
|
|
25
|
-
}
|
|
26
|
-
|
|
27
20
|
override fun onPrepared() {
|
|
28
21
|
prepared = true
|
|
29
22
|
statusListener?.onPrepared(this)
|
|
30
23
|
}
|
|
31
|
-
|
|
32
24
|
override fun onSeekComplete() {
|
|
33
25
|
statusListener?.onSeekComplete(this)
|
|
34
26
|
}
|
|
35
27
|
|
|
28
|
+
override fun onError(e: Exception?): Boolean {
|
|
29
|
+
return statusListener?.onError(this) == true
|
|
30
|
+
}
|
|
31
|
+
|
|
36
32
|
override fun onBufferingUpdate(percent: Int) {
|
|
37
33
|
bufferPercent = percent
|
|
38
34
|
statusListener?.onBufferingUpdate(this, percent)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
package org.dwbn.plugins.playlist.service
|
|
2
2
|
|
|
3
|
+
import android.app.Notification
|
|
4
|
+
import android.content.pm.ServiceInfo
|
|
5
|
+
import android.os.Build
|
|
3
6
|
import com.devbrackets.android.playlistcore.components.playlisthandler.PlaylistHandler
|
|
4
7
|
import com.devbrackets.android.playlistcore.service.BasePlaylistService
|
|
5
8
|
import org.dwbn.plugins.playlist.App
|
|
@@ -32,6 +35,20 @@ class MediaService : BasePlaylistService<AudioTrack, PlaylistManager>() {
|
|
|
32
35
|
playlistManager.mediaPlayers.clear()
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
override fun runAsForeground(notificationId: Int, notification: Notification) {
|
|
39
|
+
if (inForeground) {
|
|
40
|
+
return
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
inForeground = true
|
|
44
|
+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
|
45
|
+
startForeground(notificationId, notification)
|
|
46
|
+
} else {
|
|
47
|
+
startForeground(notificationId, notification,
|
|
48
|
+
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK)
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
35
52
|
override val playlistManager: PlaylistManager
|
|
36
53
|
get() = (applicationContext as App).playlistManager
|
|
37
54
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
package/android/.idea/gradle.xml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
4
|
-
<component name="GradleSettings">
|
|
5
|
-
<option name="linkedExternalProjectsSettings">
|
|
6
|
-
<GradleProjectSettings>
|
|
7
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
-
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
-
<option name="modules">
|
|
10
|
-
<set>
|
|
11
|
-
<option value="$PROJECT_DIR$" />
|
|
12
|
-
<option value="$PROJECT_DIR$/../node_modules/@capacitor/android/capacitor" />
|
|
13
|
-
</set>
|
|
14
|
-
</option>
|
|
15
|
-
<option name="resolveExternalAnnotations" value="false" />
|
|
16
|
-
</GradleProjectSettings>
|
|
17
|
-
</option>
|
|
18
|
-
</component>
|
|
19
|
-
</project>
|
package/android/.idea/misc.xml
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<project version="4">
|
|
2
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
3
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
|
4
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectType">
|
|
7
|
-
<option name="id" value="Android" />
|
|
8
|
-
</component>
|
|
9
|
-
</project>
|
package/android/.idea/vcs.xml
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
4
|
-
<component name="GradleSettings">
|
|
5
|
-
<option name="linkedExternalProjectsSettings">
|
|
6
|
-
<GradleProjectSettings>
|
|
7
|
-
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
-
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
-
<option name="modules">
|
|
10
|
-
<set>
|
|
11
|
-
<option value="$PROJECT_DIR$" />
|
|
12
|
-
<option value="$PROJECT_DIR$/../node_modules/@capacitor/android/capacitor" />
|
|
13
|
-
</set>
|
|
14
|
-
</option>
|
|
15
|
-
<option name="resolveExternalAnnotations" value="false" />
|
|
16
|
-
</GradleProjectSettings>
|
|
17
|
-
</option>
|
|
18
|
-
</component>
|
|
19
|
-
</project>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<project version="4">
|
|
2
|
-
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
3
|
-
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
|
|
4
|
-
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="ProjectType">
|
|
7
|
-
<option name="id" value="Android" />
|
|
8
|
-
</component>
|
|
9
|
-
</project>
|
package/android/bin/.project
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>capacitor-plugin-playlist</name>
|
|
4
|
-
<comment>Project capacitor-plugin-playlist created by Buildship.</comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
<buildCommand>
|
|
9
|
-
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
10
|
-
<arguments>
|
|
11
|
-
</arguments>
|
|
12
|
-
</buildCommand>
|
|
13
|
-
<buildCommand>
|
|
14
|
-
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
|
|
15
|
-
<arguments>
|
|
16
|
-
</arguments>
|
|
17
|
-
</buildCommand>
|
|
18
|
-
</buildSpec>
|
|
19
|
-
<natures>
|
|
20
|
-
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
21
|
-
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
|
22
|
-
</natures>
|
|
23
|
-
<filteredResources>
|
|
24
|
-
<filter>
|
|
25
|
-
<id>1717354886357</id>
|
|
26
|
-
<name></name>
|
|
27
|
-
<type>30</type>
|
|
28
|
-
<matcher>
|
|
29
|
-
<id>org.eclipse.core.resources.regexFilterMatcher</id>
|
|
30
|
-
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
|
|
31
|
-
</matcher>
|
|
32
|
-
</filter>
|
|
33
|
-
</filteredResources>
|
|
34
|
-
</projectDescription>
|
package/android/bin/build.gradle
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
ext {
|
|
2
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
|
|
4
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
|
|
5
|
-
exoPlayerVersion = project.hasProperty('exoPlayerVersion') ? rootProject.ext.exoPlayerVersion : "2.9.6"
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
buildscript {
|
|
9
|
-
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.10'
|
|
10
|
-
repositories {
|
|
11
|
-
google()
|
|
12
|
-
mavenCentral()
|
|
13
|
-
}
|
|
14
|
-
dependencies {
|
|
15
|
-
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
16
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
apply plugin: 'com.android.library'
|
|
21
|
-
apply plugin: 'kotlin-android'
|
|
22
|
-
|
|
23
|
-
android {
|
|
24
|
-
namespace "org.dwbn.plugins.playlist"
|
|
25
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
26
|
-
defaultConfig {
|
|
27
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
28
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
29
|
-
versionCode 1
|
|
30
|
-
versionName "1.0"
|
|
31
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
32
|
-
}
|
|
33
|
-
buildTypes {
|
|
34
|
-
release {
|
|
35
|
-
minifyEnabled false
|
|
36
|
-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
lintOptions {
|
|
40
|
-
abortOnError false
|
|
41
|
-
}
|
|
42
|
-
compileOptions {
|
|
43
|
-
sourceCompatibility JavaVersion.VERSION_17
|
|
44
|
-
targetCompatibility JavaVersion.VERSION_17
|
|
45
|
-
}
|
|
46
|
-
kotlinOptions {
|
|
47
|
-
jvmTarget = '17'
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
repositories {
|
|
52
|
-
google()
|
|
53
|
-
jcenter()
|
|
54
|
-
mavenCentral()
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
dependencies {
|
|
59
|
-
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
60
|
-
implementation project(':capacitor-android')
|
|
61
|
-
testImplementation "junit:junit:$junitVersion"
|
|
62
|
-
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
63
|
-
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
64
|
-
implementation "androidx.core:core-ktx:1.6.0"
|
|
65
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
66
|
-
|
|
67
|
-
// Image Exomedia
|
|
68
|
-
implementation 'com.devbrackets.android:exomedia:4.3.0'
|
|
69
|
-
implementation "com.google.android.exoplayer:extension-okhttp:$exoPlayerVersion"
|
|
70
|
-
|
|
71
|
-
// Image Loading
|
|
72
|
-
implementation 'com.github.bumptech.glide:glide:4.6.1'
|
|
73
|
-
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
|
|
74
|
-
|
|
75
|
-
// Playlist support
|
|
76
|
-
implementation 'com.devbrackets.android:playlistcore:2.1.0'
|
|
77
|
-
implementation 'androidx.work:work-runtime-ktx:2.7.1'
|
|
78
|
-
|
|
79
|
-
}
|
|
Binary file
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# Project-wide Gradle settings.
|
|
2
|
-
|
|
3
|
-
# IDE (e.g. Android Studio) users:
|
|
4
|
-
# Gradle settings configured through the IDE *will override*
|
|
5
|
-
# any settings specified in this file.
|
|
6
|
-
|
|
7
|
-
# For more details on how to configure your build environment visit
|
|
8
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
-
|
|
10
|
-
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
-
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
-
org.gradle.jvmargs=-Xmx1536m
|
|
13
|
-
|
|
14
|
-
# When configured, Gradle will run in incubating parallel mode.
|
|
15
|
-
# This option should only be used with decoupled projects. More details, visit
|
|
16
|
-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
17
|
-
# org.gradle.parallel=true
|
|
18
|
-
|
|
19
|
-
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
20
|
-
# Android operating system, and which are packaged with your app's APK
|
|
21
|
-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
22
|
-
android.useAndroidX=true
|