capacitor-plugin-playlist 0.5.1 → 0.6.1

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.
Files changed (127) hide show
  1. package/README.md +29 -23
  2. package/android/build.gradle +2 -4
  3. package/android/src/main/java/org/dwbn/plugins/playlist/App.kt +0 -43
  4. package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +217 -153
  5. package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.java +4 -2
  6. package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +8 -6
  7. package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +20 -11
  8. package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.java +1 -46
  9. package/android/src/main/java/org/dwbn/plugins/playlist/playlist/BaseMediaApi.kt +4 -8
  10. package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaService.kt +17 -0
  11. package/package.json +1 -1
  12. package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
  13. package/android/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
  14. package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
  15. package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  16. package/android/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
  17. package/android/.gradle/8.0.2/executionHistory/executionHistory.bin +0 -0
  18. package/android/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
  19. package/android/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
  20. package/android/.gradle/8.0.2/fileHashes/fileHashes.bin +0 -0
  21. package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
  22. package/android/.gradle/8.0.2/fileHashes/resourceHashesCache.bin +0 -0
  23. package/android/.gradle/8.0.2/gc.properties +0 -0
  24. package/android/.gradle/8.2.1/checksums/checksums.lock +0 -0
  25. package/android/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
  26. package/android/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
  27. package/android/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  28. package/android/.gradle/8.2.1/dependencies-accessors/gc.properties +0 -0
  29. package/android/.gradle/8.2.1/executionHistory/executionHistory.bin +0 -0
  30. package/android/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
  31. package/android/.gradle/8.2.1/fileChanges/last-build.bin +0 -0
  32. package/android/.gradle/8.2.1/fileHashes/fileHashes.bin +0 -0
  33. package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
  34. package/android/.gradle/8.2.1/gc.properties +0 -0
  35. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  36. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  37. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  38. package/android/.gradle/config.properties +0 -2
  39. package/android/.gradle/file-system.probe +0 -0
  40. package/android/.gradle/vcs-1/gc.properties +0 -0
  41. package/android/.idea/compiler.xml +0 -6
  42. package/android/.idea/gradle.xml +0 -19
  43. package/android/.idea/kotlinc.xml +0 -6
  44. package/android/.idea/migrations.xml +0 -10
  45. package/android/.idea/misc.xml +0 -9
  46. package/android/.idea/vcs.xml +0 -6
  47. package/android/bin/.gradle/8.0.2/checksums/checksums.lock +0 -0
  48. package/android/bin/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
  49. package/android/bin/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
  50. package/android/bin/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  51. package/android/bin/.gradle/8.0.2/dependencies-accessors/gc.properties +0 -0
  52. package/android/bin/.gradle/8.0.2/executionHistory/executionHistory.bin +0 -0
  53. package/android/bin/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
  54. package/android/bin/.gradle/8.0.2/fileChanges/last-build.bin +0 -0
  55. package/android/bin/.gradle/8.0.2/fileHashes/fileHashes.bin +0 -0
  56. package/android/bin/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
  57. package/android/bin/.gradle/8.0.2/fileHashes/resourceHashesCache.bin +0 -0
  58. package/android/bin/.gradle/8.0.2/gc.properties +0 -0
  59. package/android/bin/.gradle/8.2.1/checksums/checksums.lock +0 -0
  60. package/android/bin/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
  61. package/android/bin/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
  62. package/android/bin/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  63. package/android/bin/.gradle/8.2.1/dependencies-accessors/gc.properties +0 -0
  64. package/android/bin/.gradle/8.2.1/executionHistory/executionHistory.bin +0 -0
  65. package/android/bin/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
  66. package/android/bin/.gradle/8.2.1/fileChanges/last-build.bin +0 -0
  67. package/android/bin/.gradle/8.2.1/fileHashes/fileHashes.bin +0 -0
  68. package/android/bin/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
  69. package/android/bin/.gradle/8.2.1/gc.properties +0 -0
  70. package/android/bin/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  71. package/android/bin/.gradle/buildOutputCleanup/cache.properties +0 -2
  72. package/android/bin/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  73. package/android/bin/.gradle/config.properties +0 -2
  74. package/android/bin/.gradle/file-system.probe +0 -0
  75. package/android/bin/.gradle/vcs-1/gc.properties +0 -0
  76. package/android/bin/.idea/compiler.xml +0 -6
  77. package/android/bin/.idea/gradle.xml +0 -19
  78. package/android/bin/.idea/kotlinc.xml +0 -6
  79. package/android/bin/.idea/migrations.xml +0 -10
  80. package/android/bin/.idea/misc.xml +0 -9
  81. package/android/bin/.idea/vcs.xml +0 -6
  82. package/android/bin/.project +0 -34
  83. package/android/bin/build.gradle +0 -79
  84. package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
  85. package/android/bin/gradle/wrapper/gradle-wrapper.properties +0 -7
  86. package/android/bin/gradle.properties +0 -22
  87. package/android/bin/gradlew +0 -248
  88. package/android/bin/gradlew.bat +0 -92
  89. package/android/bin/local.properties +0 -8
  90. package/android/bin/proguard-rules.pro +0 -21
  91. package/android/bin/settings.gradle +0 -2
  92. package/android/bin/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.class +0 -0
  93. package/android/bin/src/main/AndroidManifest.xml +0 -4
  94. package/android/bin/src/main/java/org/dwbn/plugins/playlist/App.kt +0 -62
  95. package/android/bin/src/main/java/org/dwbn/plugins/playlist/FakeR.kt +0 -39
  96. package/android/bin/src/main/java/org/dwbn/plugins/playlist/OnStatusCallback.kt +0 -34
  97. package/android/bin/src/main/java/org/dwbn/plugins/playlist/OnStatusReportListener.class +0 -0
  98. package/android/bin/src/main/java/org/dwbn/plugins/playlist/PlaylistItemOptions.class +0 -0
  99. package/android/bin/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +0 -356
  100. package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxAudioErrorType.class +0 -0
  101. package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.class +0 -0
  102. package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxAudioStatusMessage.class +0 -0
  103. package/android/bin/src/main/java/org/dwbn/plugins/playlist/RmxConstants.class +0 -0
  104. package/android/bin/src/main/java/org/dwbn/plugins/playlist/TrackRemovalItem.class +0 -0
  105. package/android/bin/src/main/java/org/dwbn/plugins/playlist/data/AudioTrack.kt +0 -94
  106. package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/MediaControlsListener.kt +0 -13
  107. package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/Options.kt +0 -77
  108. package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +0 -286
  109. package/android/bin/src/main/java/org/dwbn/plugins/playlist/notification/PlaylistNotificationProvider.kt +0 -26
  110. package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +0 -101
  111. package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler$Builder.class +0 -0
  112. package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.class +0 -0
  113. package/android/bin/src/main/java/org/dwbn/plugins/playlist/playlist/BaseMediaApi.kt +0 -40
  114. package/android/bin/src/main/java/org/dwbn/plugins/playlist/service/MediaImageProvider.kt +0 -79
  115. package/android/bin/src/main/java/org/dwbn/plugins/playlist/service/MediaService.kt +0 -53
  116. package/android/bin/src/main/res/.gitkeep +0 -0
  117. package/android/bin/src/main/res/drawable/ic_closed_caption_white_24dp.xml +0 -9
  118. package/android/bin/src/main/res/drawable/ic_demo_icon_adaptive.xml +0 -15
  119. package/android/bin/src/main/res/drawable/ic_launcher_background.xml +0 -48
  120. package/android/bin/src/main/res/drawable/ic_launcher_foreground.xml +0 -22
  121. package/android/bin/src/main/res/drawable/ic_notification_icon.png +0 -0
  122. package/android/bin/src/main/res/layout/bridge_layout_main.xml +0 -15
  123. package/android/bin/src/main/res/values/colors.xml +0 -3
  124. package/android/bin/src/main/res/values/strings.xml +0 -3
  125. package/android/bin/src/main/res/values/styles.xml +0 -3
  126. package/android/bin/src/test/java/com/getcapacitor/ExampleUnitTest.class +0 -0
  127. package/android/local.properties +0 -8
@@ -1,248 +0,0 @@
1
- #!/bin/sh
2
-
3
- #
4
- # Copyright © 2015-2021 the original authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- #
21
- # Gradle start up script for POSIX generated by Gradle.
22
- #
23
- # Important for running:
24
- #
25
- # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26
- # noncompliant, but you have some other compliant shell such as ksh or
27
- # bash, then to run this script, type that shell name before the whole
28
- # command line, like:
29
- #
30
- # ksh Gradle
31
- #
32
- # Busybox and similar reduced shells will NOT work, because this script
33
- # requires all of these POSIX shell features:
34
- # * functions;
35
- # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36
- # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37
- # * compound commands having a testable exit status, especially «case»;
38
- # * various built-in commands including «command», «set», and «ulimit».
39
- #
40
- # Important for patching:
41
- #
42
- # (2) This script targets any POSIX shell, so it avoids extensions provided
43
- # by Bash, Ksh, etc; in particular arrays are avoided.
44
- #
45
- # The "traditional" practice of packing multiple parameters into a
46
- # space-separated string is a well documented source of bugs and security
47
- # problems, so this is (mostly) avoided, by progressively accumulating
48
- # options in "$@", and eventually passing that to Java.
49
- #
50
- # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51
- # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52
- # see the in-line comments for details.
53
- #
54
- # There are tweaks for specific operating systems such as AIX, CygWin,
55
- # Darwin, MinGW, and NonStop.
56
- #
57
- # (3) This script is generated from the Groovy template
58
- # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59
- # within the Gradle project.
60
- #
61
- # You can find Gradle at https://github.com/gradle/gradle/.
62
- #
63
- ##############################################################################
64
-
65
- # Attempt to set APP_HOME
66
-
67
- # Resolve links: $0 may be a link
68
- app_path=$0
69
-
70
- # Need this for daisy-chained symlinks.
71
- while
72
- APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73
- [ -h "$app_path" ]
74
- do
75
- ls=$( ls -ld "$app_path" )
76
- link=${ls#*' -> '}
77
- case $link in #(
78
- /*) app_path=$link ;; #(
79
- *) app_path=$APP_HOME$link ;;
80
- esac
81
- done
82
-
83
- # This is normally unused
84
- # shellcheck disable=SC2034
85
- APP_BASE_NAME=${0##*/}
86
- APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87
-
88
- # Use the maximum available, or set MAX_FD != -1 to use that value.
89
- MAX_FD=maximum
90
-
91
- warn () {
92
- echo "$*"
93
- } >&2
94
-
95
- die () {
96
- echo
97
- echo "$*"
98
- echo
99
- exit 1
100
- } >&2
101
-
102
- # OS specific support (must be 'true' or 'false').
103
- cygwin=false
104
- msys=false
105
- darwin=false
106
- nonstop=false
107
- case "$( uname )" in #(
108
- CYGWIN* ) cygwin=true ;; #(
109
- Darwin* ) darwin=true ;; #(
110
- MSYS* | MINGW* ) msys=true ;; #(
111
- NONSTOP* ) nonstop=true ;;
112
- esac
113
-
114
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
115
-
116
-
117
- # Determine the Java command to use to start the JVM.
118
- if [ -n "$JAVA_HOME" ] ; then
119
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
120
- # IBM's JDK on AIX uses strange locations for the executables
121
- JAVACMD=$JAVA_HOME/jre/sh/java
122
- else
123
- JAVACMD=$JAVA_HOME/bin/java
124
- fi
125
- if [ ! -x "$JAVACMD" ] ; then
126
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
127
-
128
- Please set the JAVA_HOME variable in your environment to match the
129
- location of your Java installation."
130
- fi
131
- else
132
- JAVACMD=java
133
- if ! command -v java >/dev/null 2>&1
134
- then
135
- die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
136
-
137
- Please set the JAVA_HOME variable in your environment to match the
138
- location of your Java installation."
139
- fi
140
- fi
141
-
142
- # Increase the maximum file descriptors if we can.
143
- if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144
- case $MAX_FD in #(
145
- max*)
146
- # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147
- # shellcheck disable=SC3045
148
- MAX_FD=$( ulimit -H -n ) ||
149
- warn "Could not query maximum file descriptor limit"
150
- esac
151
- case $MAX_FD in #(
152
- '' | soft) :;; #(
153
- *)
154
- # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155
- # shellcheck disable=SC3045
156
- ulimit -n "$MAX_FD" ||
157
- warn "Could not set maximum file descriptor limit to $MAX_FD"
158
- esac
159
- fi
160
-
161
- # Collect all arguments for the java command, stacking in reverse order:
162
- # * args from the command line
163
- # * the main class name
164
- # * -classpath
165
- # * -D...appname settings
166
- # * --module-path (only if needed)
167
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
168
-
169
- # For Cygwin or MSYS, switch paths to Windows format before running java
170
- if "$cygwin" || "$msys" ; then
171
- APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
172
- CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
173
-
174
- JAVACMD=$( cygpath --unix "$JAVACMD" )
175
-
176
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
177
- for arg do
178
- if
179
- case $arg in #(
180
- -*) false ;; # don't mess with options #(
181
- /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
182
- [ -e "$t" ] ;; #(
183
- *) false ;;
184
- esac
185
- then
186
- arg=$( cygpath --path --ignore --mixed "$arg" )
187
- fi
188
- # Roll the args list around exactly as many times as the number of
189
- # args, so each arg winds up back in the position where it started, but
190
- # possibly modified.
191
- #
192
- # NB: a `for` loop captures its iteration list before it begins, so
193
- # changing the positional parameters here affects neither the number of
194
- # iterations, nor the values presented in `arg`.
195
- shift # remove old arg
196
- set -- "$@" "$arg" # push replacement arg
197
- done
198
- fi
199
-
200
-
201
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203
-
204
- # Collect all arguments for the java command;
205
- # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206
- # shell script including quotes and variable substitutions, so put them in
207
- # double quotes to make sure that they get re-expanded; and
208
- # * put everything else in single quotes, so that it's not re-expanded.
209
-
210
- set -- \
211
- "-Dorg.gradle.appname=$APP_BASE_NAME" \
212
- -classpath "$CLASSPATH" \
213
- org.gradle.wrapper.GradleWrapperMain \
214
- "$@"
215
-
216
- # Stop when "xargs" is not available.
217
- if ! command -v xargs >/dev/null 2>&1
218
- then
219
- die "xargs is not available"
220
- fi
221
-
222
- # Use "xargs" to parse quoted args.
223
- #
224
- # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
225
- #
226
- # In Bash we could simply go:
227
- #
228
- # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
229
- # set -- "${ARGS[@]}" "$@"
230
- #
231
- # but POSIX shell has neither arrays nor command substitution, so instead we
232
- # post-process each arg (as a line of input to sed) to backslash-escape any
233
- # character that might be a shell metacharacter, then use eval to reverse
234
- # that process (while maintaining the separation between arguments), and wrap
235
- # the whole thing up as a single "set" statement.
236
- #
237
- # This will of course break if any of these variables contains a newline or
238
- # an unmatched quote.
239
- #
240
-
241
- eval "set -- $(
242
- printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
243
- xargs -n1 |
244
- sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
245
- tr '\n' ' '
246
- )" '"$@"'
247
-
248
- exec "$JAVACMD" "$@"
@@ -1,92 +0,0 @@
1
- @rem
2
- @rem Copyright 2015 the original author or authors.
3
- @rem
4
- @rem Licensed under the Apache License, Version 2.0 (the "License");
5
- @rem you may not use this file except in compliance with the License.
6
- @rem You may obtain a copy of the License at
7
- @rem
8
- @rem https://www.apache.org/licenses/LICENSE-2.0
9
- @rem
10
- @rem Unless required by applicable law or agreed to in writing, software
11
- @rem distributed under the License is distributed on an "AS IS" BASIS,
12
- @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- @rem See the License for the specific language governing permissions and
14
- @rem limitations under the License.
15
- @rem
16
-
17
- @if "%DEBUG%"=="" @echo off
18
- @rem ##########################################################################
19
- @rem
20
- @rem Gradle startup script for Windows
21
- @rem
22
- @rem ##########################################################################
23
-
24
- @rem Set local scope for the variables with windows NT shell
25
- if "%OS%"=="Windows_NT" setlocal
26
-
27
- set DIRNAME=%~dp0
28
- if "%DIRNAME%"=="" set DIRNAME=.
29
- @rem This is normally unused
30
- set APP_BASE_NAME=%~n0
31
- set APP_HOME=%DIRNAME%
32
-
33
- @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34
- for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35
-
36
- @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37
- set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38
-
39
- @rem Find java.exe
40
- if defined JAVA_HOME goto findJavaFromJavaHome
41
-
42
- set JAVA_EXE=java.exe
43
- %JAVA_EXE% -version >NUL 2>&1
44
- if %ERRORLEVEL% equ 0 goto execute
45
-
46
- echo.
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
- echo.
49
- echo Please set the JAVA_HOME variable in your environment to match the
50
- echo location of your Java installation.
51
-
52
- goto fail
53
-
54
- :findJavaFromJavaHome
55
- set JAVA_HOME=%JAVA_HOME:"=%
56
- set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
-
58
- if exist "%JAVA_EXE%" goto execute
59
-
60
- echo.
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
- echo.
63
- echo Please set the JAVA_HOME variable in your environment to match the
64
- echo location of your Java installation.
65
-
66
- goto fail
67
-
68
- :execute
69
- @rem Setup the command line
70
-
71
- set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72
-
73
-
74
- @rem Execute Gradle
75
- "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76
-
77
- :end
78
- @rem End local scope for the variables with windows NT shell
79
- if %ERRORLEVEL% equ 0 goto mainEnd
80
-
81
- :fail
82
- rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
- rem the _cmd.exe /c_ return code!
84
- set EXIT_CODE=%ERRORLEVEL%
85
- if %EXIT_CODE% equ 0 set EXIT_CODE=1
86
- if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87
- exit /b %EXIT_CODE%
88
-
89
- :mainEnd
90
- if "%OS%"=="Windows_NT" endlocal
91
-
92
- :omega
@@ -1,8 +0,0 @@
1
- ## This file must *NOT* be checked into Version Control Systems,
2
- # as it contains information specific to your local configuration.
3
- #
4
- # Location of the SDK. This is only used by Gradle.
5
- # For customization when using a Version Control System, please read the
6
- # header note.
7
- #Sat Jul 13 01:10:53 CEST 2024
8
- sdk.dir=/Users/philippmohrenweiser/Library/Android/sdk
@@ -1,21 +0,0 @@
1
- # Add project specific ProGuard rules here.
2
- # You can control the set of applied configuration files using the
3
- # proguardFiles setting in build.gradle.
4
- #
5
- # For more details, see
6
- # http://developer.android.com/guide/developing/tools/proguard.html
7
-
8
- # If your project uses WebView with JS, uncomment the following
9
- # and specify the fully qualified class name to the JavaScript interface
10
- # class:
11
- #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
- # public *;
13
- #}
14
-
15
- # Uncomment this to preserve the line number information for
16
- # debugging stack traces.
17
- #-keepattributes SourceFile,LineNumberTable
18
-
19
- # If you keep the line number information, uncomment this to
20
- # hide the original source file name.
21
- #-renamesourcefileattribute SourceFile
@@ -1,2 +0,0 @@
1
- include ':capacitor-android'
2
- project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
@@ -1,4 +0,0 @@
1
-
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- >
4
- </manifest>
@@ -1,62 +0,0 @@
1
- package org.dwbn.plugins.playlist
2
-
3
- import android.app.Application
4
- import com.devbrackets.android.exomedia.ExoMedia
5
- import org.dwbn.plugins.playlist.manager.PlaylistManager
6
- import com.google.android.exoplayer2.ext.okhttp.OkHttpDataSourceFactory
7
- import com.google.android.exoplayer2.upstream.DataSource
8
- import com.google.android.exoplayer2.upstream.TransferListener
9
- import com.google.android.exoplayer2.upstream.cache.CacheDataSource
10
- import com.google.android.exoplayer2.upstream.cache.CacheDataSourceFactory
11
- import com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
12
- import com.google.android.exoplayer2.upstream.cache.SimpleCache
13
- import okhttp3.OkHttpClient
14
- import java.io.File
15
-
16
- class App : Application() {
17
- private lateinit var _playlistManager: PlaylistManager;
18
- val playlistManager get() = _playlistManager
19
-
20
- fun resetPlaylistManager() {
21
- _playlistManager = PlaylistManager(this)
22
- }
23
-
24
- override fun onCreate() {
25
- resetPlaylistManager()
26
- super.onCreate()
27
-
28
- configureExoMedia()
29
- }
30
-
31
- private fun configureExoMedia() {
32
- // Registers the media sources to use the OkHttp client instead of the standard Apache one
33
- // Note: the OkHttpDataSourceFactory can be found in the ExoPlayer extension library `extension-okhttp`
34
- ExoMedia.setDataSourceFactoryProvider(object : ExoMedia.DataSourceFactoryProvider {
35
- private var instance: CacheDataSourceFactory? = null
36
-
37
- override fun provide(
38
- userAgent: String,
39
- listener: TransferListener?
40
- ): DataSource.Factory {
41
- if (instance == null) {
42
- // Updates the network data source to use the OKHttp implementation
43
- val upstreamFactory =
44
- OkHttpDataSourceFactory(OkHttpClient(), userAgent, listener)
45
-
46
- // Adds a cache around the upstreamFactory
47
- val cache = SimpleCache(
48
- File(cacheDir, "ExoMediaCache"),
49
- LeastRecentlyUsedCacheEvictor((50 * 1024 * 1024).toLong())
50
- )
51
- instance = CacheDataSourceFactory(
52
- cache,
53
- upstreamFactory,
54
- CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR
55
- )
56
- }
57
-
58
- return instance!!
59
- }
60
- })
61
- }
62
- }
@@ -1,39 +0,0 @@
1
- package org.dwbn.plugins.playlist
2
-
3
- import android.app.Activity
4
- import android.content.Context
5
-
6
- /**
7
- * R replacement for PhoneGap Build.
8
- * Code adopted from https://github.com/EddyVerbruggen/barcodescanner-lib-aar
9
- *
10
- * ([^.\w])R\.(\w+)\.(\w+)
11
- * $1fakeR("$2", "$3")
12
- *
13
- * @author Maciej Nux Jaros
14
- */
15
- class FakeR {
16
- var context: Context
17
- private set
18
- private var packageName: String
19
-
20
- constructor(activity: Activity) {
21
- context = activity.applicationContext
22
- packageName = context.packageName
23
- }
24
-
25
- constructor(context: Context) {
26
- this.context = context
27
- packageName = context.packageName
28
- }
29
-
30
- fun getId(group: String?, key: String?): Int {
31
- return context.resources.getIdentifier(key, group, packageName)
32
- }
33
-
34
- companion object {
35
- fun getId(context: Context, group: String?, key: String?): Int {
36
- return context.resources.getIdentifier(key, group, context.packageName)
37
- }
38
- }
39
- }
@@ -1,34 +0,0 @@
1
- package org.dwbn.plugins.playlist
2
-
3
- import android.util.Log
4
- import com.getcapacitor.JSObject
5
- import org.json.JSONException
6
- import org.json.JSONObject
7
-
8
- class OnStatusCallback internal constructor(private val plugin: PlaylistPlugin) {
9
- fun onStatus(what: RmxAudioStatusMessage, trackId: String?, param: JSONObject?) {
10
- val data = JSObject()
11
- val detail = JSObject()
12
- detail.put("msgType", what.value)
13
- detail.put("trackId", trackId)
14
- detail.put("value", param)
15
- data.put("action", "status")
16
- data.put("status", detail)
17
- Log.v(TAG, "statusChanged:$data")
18
- plugin.emit("status", data)
19
- }
20
-
21
- companion object {
22
- private const val TAG = "PlaylistStatusCallback"
23
- fun createErrorWithCode(code: RmxAudioErrorType?, message: String?): JSONObject {
24
- val error = JSONObject()
25
- try {
26
- error.put("code", code)
27
- error.put("message", message ?: "")
28
- } catch (e: JSONException) {
29
- Log.e(TAG, "Exception while raising onStatus: ", e)
30
- }
31
- return error
32
- }
33
- }
34
- }