capacitor-plugin-playlist 0.4.1 → 0.5.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 (44) hide show
  1. package/android/.gradle/8.2.1/checksums/checksums.lock +0 -0
  2. package/android/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/8.2.1/dependencies-accessors/gc.properties +0 -0
  6. package/android/.gradle/8.2.1/executionHistory/executionHistory.bin +0 -0
  7. package/android/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
  8. package/android/.gradle/8.2.1/fileChanges/last-build.bin +0 -0
  9. package/android/.gradle/8.2.1/fileHashes/fileHashes.bin +0 -0
  10. package/android/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
  11. package/android/.gradle/8.2.1/gc.properties +0 -0
  12. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  13. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  14. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  15. package/android/.gradle/file-system.probe +0 -0
  16. package/android/bin/.gradle/8.2.1/checksums/checksums.lock +0 -0
  17. package/android/bin/.gradle/8.2.1/checksums/md5-checksums.bin +0 -0
  18. package/android/bin/.gradle/8.2.1/checksums/sha1-checksums.bin +0 -0
  19. package/android/bin/.gradle/8.2.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  20. package/android/bin/.gradle/8.2.1/dependencies-accessors/gc.properties +0 -0
  21. package/android/bin/.gradle/8.2.1/executionHistory/executionHistory.bin +0 -0
  22. package/android/bin/.gradle/8.2.1/executionHistory/executionHistory.lock +0 -0
  23. package/android/bin/.gradle/8.2.1/fileChanges/last-build.bin +0 -0
  24. package/android/bin/.gradle/8.2.1/fileHashes/fileHashes.bin +0 -0
  25. package/android/bin/.gradle/8.2.1/fileHashes/fileHashes.lock +0 -0
  26. package/android/bin/.gradle/8.2.1/gc.properties +0 -0
  27. package/android/bin/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  28. package/android/bin/.gradle/buildOutputCleanup/cache.properties +2 -2
  29. package/android/bin/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  30. package/android/bin/.gradle/file-system.probe +0 -0
  31. package/android/bin/build.gradle +4 -4
  32. package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
  33. package/android/bin/gradle/wrapper/gradle-wrapper.properties +2 -1
  34. package/android/bin/gradlew +8 -4
  35. package/android/bin/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +1 -1
  36. package/android/build.gradle +4 -4
  37. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  38. package/android/gradle/wrapper/gradle-wrapper.properties +2 -1
  39. package/android/gradlew +8 -4
  40. package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +1 -1
  41. package/dist/docs.json +52 -569
  42. package/dist/esm/definitions.d.ts +1 -1
  43. package/package.json +7 -7
  44. package/android/bin/.settings/org.eclipse.buildship.core.prefs +0 -13
File without changes
@@ -1,2 +1,2 @@
1
- #Sat Jul 13 00:28:49 CEST 2024
2
- gradle.version=8.0.2
1
+ #Sat Jul 13 16:08:50 CEST 2024
2
+ gradle.version=8.2.1
Binary file
File without changes
@@ -1,2 +1,2 @@
1
- #Sat Jul 13 00:28:49 CEST 2024
2
- gradle.version=8.0.2
1
+ #Sat Jul 13 16:08:50 CEST 2024
2
+ gradle.version=8.2.1
@@ -6,13 +6,13 @@ ext {
6
6
  }
7
7
 
8
8
  buildscript {
9
- ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.8.20'
9
+ ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.10'
10
10
  repositories {
11
11
  google()
12
12
  mavenCentral()
13
13
  }
14
14
  dependencies {
15
- classpath 'com.android.tools.build:gradle:8.0.0'
15
+ classpath 'com.android.tools.build:gradle:8.2.1'
16
16
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17
17
  }
18
18
  }
@@ -22,10 +22,10 @@ apply plugin: 'kotlin-android'
22
22
 
23
23
  android {
24
24
  namespace "org.dwbn.plugins.playlist"
25
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
25
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
26
26
  defaultConfig {
27
27
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
28
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
28
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
29
29
  versionCode 1
30
30
  versionName "1.0"
31
31
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -1,6 +1,7 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
4
4
  networkTimeout=10000
5
+ validateDistributionUrl=true
5
6
  zipStoreBase=GRADLE_USER_HOME
6
7
  zipStorePath=wrapper/dists
@@ -85,9 +85,6 @@ done
85
85
  APP_BASE_NAME=${0##*/}
86
86
  APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87
87
 
88
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90
-
91
88
  # Use the maximum available, or set MAX_FD != -1 to use that value.
92
89
  MAX_FD=maximum
93
90
 
@@ -133,10 +130,13 @@ location of your Java installation."
133
130
  fi
134
131
  else
135
132
  JAVACMD=java
136
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
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.
137
136
 
138
137
  Please set the JAVA_HOME variable in your environment to match the
139
138
  location of your Java installation."
139
+ fi
140
140
  fi
141
141
 
142
142
  # Increase the maximum file descriptors if we can.
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
197
197
  done
198
198
  fi
199
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
+
200
204
  # Collect all arguments for the java command;
201
205
  # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202
206
  # shell script including quotes and variable substitutions, so put them in
@@ -64,7 +64,7 @@ class PlaylistManager(application: Application) :
64
64
  */
65
65
  override val isNextAvailable: Boolean
66
66
  get() {
67
- if (itemCount == 1) {
67
+ if (itemCount <= 1) {
68
68
  return false;
69
69
  }
70
70
  val isAtEnd = currentPosition + 1 >= itemCount
@@ -6,13 +6,13 @@ ext {
6
6
  }
7
7
 
8
8
  buildscript {
9
- ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.8.20'
9
+ ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '1.9.10'
10
10
  repositories {
11
11
  google()
12
12
  mavenCentral()
13
13
  }
14
14
  dependencies {
15
- classpath 'com.android.tools.build:gradle:8.0.0'
15
+ classpath 'com.android.tools.build:gradle:8.2.1'
16
16
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17
17
  }
18
18
  }
@@ -22,10 +22,10 @@ apply plugin: 'kotlin-android'
22
22
 
23
23
  android {
24
24
  namespace "org.dwbn.plugins.playlist"
25
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
25
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
26
26
  defaultConfig {
27
27
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
28
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
28
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
29
29
  versionCode 1
30
30
  versionName "1.0"
31
31
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -1,6 +1,7 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
4
4
  networkTimeout=10000
5
+ validateDistributionUrl=true
5
6
  zipStoreBase=GRADLE_USER_HOME
6
7
  zipStorePath=wrapper/dists
package/android/gradlew CHANGED
@@ -85,9 +85,6 @@ done
85
85
  APP_BASE_NAME=${0##*/}
86
86
  APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87
87
 
88
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90
-
91
88
  # Use the maximum available, or set MAX_FD != -1 to use that value.
92
89
  MAX_FD=maximum
93
90
 
@@ -133,10 +130,13 @@ location of your Java installation."
133
130
  fi
134
131
  else
135
132
  JAVACMD=java
136
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
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.
137
136
 
138
137
  Please set the JAVA_HOME variable in your environment to match the
139
138
  location of your Java installation."
139
+ fi
140
140
  fi
141
141
 
142
142
  # Increase the maximum file descriptors if we can.
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
197
197
  done
198
198
  fi
199
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
+
200
204
  # Collect all arguments for the java command;
201
205
  # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202
206
  # shell script including quotes and variable substitutions, so put them in
@@ -64,7 +64,7 @@ class PlaylistManager(application: Application) :
64
64
  */
65
65
  override val isNextAvailable: Boolean
66
66
  get() {
67
- if (itemCount == 1) {
67
+ if (itemCount <= 1) {
68
68
  return false;
69
69
  }
70
70
  val isAtEnd = currentPosition + 1 >= itemCount
package/dist/docs.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "addListener",
10
- "signature": "(eventName: 'status', listenerFunc: PlaylistStatusChangeCallback) => PluginListenerHandle",
10
+ "signature": "(eventName: 'status', listenerFunc: PlaylistStatusChangeCallback) => Promise<PluginListenerHandle>",
11
11
  "parameters": [
12
12
  {
13
13
  "name": "eventName",
@@ -20,7 +20,7 @@
20
20
  "type": "(data: PlaylistStatusChangeCallbackArg) => void"
21
21
  }
22
22
  ],
23
- "returns": "PluginListenerHandle",
23
+ "returns": "Promise<PluginListenerHandle>",
24
24
  "tags": [],
25
25
  "docs": "Listen for screen reader state change (on/off)",
26
26
  "complexTypes": [
@@ -469,7 +469,7 @@
469
469
  "parameters": [],
470
470
  "returns": "string",
471
471
  "tags": [],
472
- "docs": "Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",
472
+ "docs": "Returns a string representation of an array. The elements are converted to string using their toLocalString methods.",
473
473
  "complexTypes": [],
474
474
  "slug": "tolocalestring"
475
475
  },
@@ -499,20 +499,7 @@
499
499
  "tags": [
500
500
  {
501
501
  "name": "param",
502
- "text": [
503
- {
504
- "text": "items",
505
- "kind": "parameterName"
506
- },
507
- {
508
- "text": " ",
509
- "kind": "space"
510
- },
511
- {
512
- "text": "New elements to add to the array.",
513
- "kind": "text"
514
- }
515
- ]
502
+ "text": "items New elements to add to the array."
516
503
  }
517
504
  ],
518
505
  "docs": "Appends new elements to the end of an array, and returns the new length of the array.",
@@ -535,20 +522,7 @@
535
522
  "tags": [
536
523
  {
537
524
  "name": "param",
538
- "text": [
539
- {
540
- "text": "items",
541
- "kind": "parameterName"
542
- },
543
- {
544
- "text": " ",
545
- "kind": "space"
546
- },
547
- {
548
- "text": "Additional arrays and/or items to add to the end of the array.",
549
- "kind": "text"
550
- }
551
- ]
525
+ "text": "items Additional arrays and/or items to add to the end of the array."
552
526
  }
553
527
  ],
554
528
  "docs": "Combines two or more arrays.\r\nThis method returns a new array without modifying any existing arrays.",
@@ -572,20 +546,7 @@
572
546
  "tags": [
573
547
  {
574
548
  "name": "param",
575
- "text": [
576
- {
577
- "text": "items",
578
- "kind": "parameterName"
579
- },
580
- {
581
- "text": " ",
582
- "kind": "space"
583
- },
584
- {
585
- "text": "Additional arrays and/or items to add to the end of the array.",
586
- "kind": "text"
587
- }
588
- ]
549
+ "text": "items Additional arrays and/or items to add to the end of the array."
589
550
  }
590
551
  ],
591
552
  "docs": "Combines two or more arrays.\r\nThis method returns a new array without modifying any existing arrays.",
@@ -597,7 +558,7 @@
597
558
  },
598
559
  {
599
560
  "name": "join",
600
- "signature": "(separator?: string) => string",
561
+ "signature": "(separator?: string | undefined) => string",
601
562
  "parameters": [
602
563
  {
603
564
  "name": "separator",
@@ -609,20 +570,7 @@
609
570
  "tags": [
610
571
  {
611
572
  "name": "param",
612
- "text": [
613
- {
614
- "text": "separator",
615
- "kind": "parameterName"
616
- },
617
- {
618
- "text": " ",
619
- "kind": "space"
620
- },
621
- {
622
- "text": "A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",
623
- "kind": "text"
624
- }
625
- ]
573
+ "text": "separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma."
626
574
  }
627
575
  ],
628
576
  "docs": "Adds all the elements of an array into a string, separated by the specified separator string.",
@@ -655,7 +603,7 @@
655
603
  },
656
604
  {
657
605
  "name": "slice",
658
- "signature": "(start?: number, end?: number) => T[]",
606
+ "signature": "(start?: number | undefined, end?: number | undefined) => T[]",
659
607
  "parameters": [
660
608
  {
661
609
  "name": "start",
@@ -672,37 +620,11 @@
672
620
  "tags": [
673
621
  {
674
622
  "name": "param",
675
- "text": [
676
- {
677
- "text": "start",
678
- "kind": "parameterName"
679
- },
680
- {
681
- "text": " ",
682
- "kind": "space"
683
- },
684
- {
685
- "text": "The beginning index of the specified portion of the array.\r\nIf start is undefined, then the slice begins at index 0.",
686
- "kind": "text"
687
- }
688
- ]
623
+ "text": "start The beginning index of the specified portion of the array.\r\nIf start is undefined, then the slice begins at index 0."
689
624
  },
690
625
  {
691
626
  "name": "param",
692
- "text": [
693
- {
694
- "text": "end",
695
- "kind": "parameterName"
696
- },
697
- {
698
- "text": " ",
699
- "kind": "space"
700
- },
701
- {
702
- "text": "The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\r\nIf end is undefined, then the slice extends to the end of the array.",
703
- "kind": "text"
704
- }
705
- ]
627
+ "text": "end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\r\nIf end is undefined, then the slice extends to the end of the array."
706
628
  }
707
629
  ],
708
630
  "docs": "Returns a copy of a section of an array.\r\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\r\nFor example, -2 refers to the second to last element of the array.",
@@ -717,7 +639,7 @@
717
639
  "parameters": [
718
640
  {
719
641
  "name": "compareFn",
720
- "docs": "Function used to determine the order of the elements. It is expected to return\r\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```",
642
+ "docs": "Function used to determine the order of the elements. It is expected to return\r\na negative value if first argument is less than second argument, zero if they're equal and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```",
721
643
  "type": "((a: T, b: T) => number) | undefined"
722
644
  }
723
645
  ],
@@ -725,20 +647,7 @@
725
647
  "tags": [
726
648
  {
727
649
  "name": "param",
728
- "text": [
729
- {
730
- "text": "compareFn",
731
- "kind": "parameterName"
732
- },
733
- {
734
- "text": " ",
735
- "kind": "space"
736
- },
737
- {
738
- "text": "Function used to determine the order of the elements. It is expected to return\r\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```",
739
- "kind": "text"
740
- }
741
- ]
650
+ "text": "compareFn Function used to determine the order of the elements. It is expected to return\r\na negative value if first argument is less than second argument, zero if they're equal and a positive\r\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\r\n```ts\r\n[11,2,22,1].sort((a, b) => a - b)\r\n```"
742
651
  }
743
652
  ],
744
653
  "docs": "Sorts an array in place.\r\nThis method mutates the array and returns a reference to the same array.",
@@ -749,7 +658,7 @@
749
658
  },
750
659
  {
751
660
  "name": "splice",
752
- "signature": "(start: number, deleteCount?: number) => T[]",
661
+ "signature": "(start: number, deleteCount?: number | undefined) => T[]",
753
662
  "parameters": [
754
663
  {
755
664
  "name": "start",
@@ -766,46 +675,15 @@
766
675
  "tags": [
767
676
  {
768
677
  "name": "param",
769
- "text": [
770
- {
771
- "text": "start",
772
- "kind": "parameterName"
773
- },
774
- {
775
- "text": " ",
776
- "kind": "space"
777
- },
778
- {
779
- "text": "The zero-based location in the array from which to start removing elements.",
780
- "kind": "text"
781
- }
782
- ]
678
+ "text": "start The zero-based location in the array from which to start removing elements."
783
679
  },
784
680
  {
785
681
  "name": "param",
786
- "text": [
787
- {
788
- "text": "deleteCount",
789
- "kind": "parameterName"
790
- },
791
- {
792
- "text": " ",
793
- "kind": "space"
794
- },
795
- {
796
- "text": "The number of elements to remove.",
797
- "kind": "text"
798
- }
799
- ]
682
+ "text": "deleteCount The number of elements to remove."
800
683
  },
801
684
  {
802
685
  "name": "returns",
803
- "text": [
804
- {
805
- "text": "An array containing the elements that were deleted.",
806
- "kind": "text"
807
- }
808
- ]
686
+ "text": "An array containing the elements that were deleted."
809
687
  }
810
688
  ],
811
689
  "docs": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.",
@@ -838,63 +716,19 @@
838
716
  "tags": [
839
717
  {
840
718
  "name": "param",
841
- "text": [
842
- {
843
- "text": "start",
844
- "kind": "parameterName"
845
- },
846
- {
847
- "text": " ",
848
- "kind": "space"
849
- },
850
- {
851
- "text": "The zero-based location in the array from which to start removing elements.",
852
- "kind": "text"
853
- }
854
- ]
719
+ "text": "start The zero-based location in the array from which to start removing elements."
855
720
  },
856
721
  {
857
722
  "name": "param",
858
- "text": [
859
- {
860
- "text": "deleteCount",
861
- "kind": "parameterName"
862
- },
863
- {
864
- "text": " ",
865
- "kind": "space"
866
- },
867
- {
868
- "text": "The number of elements to remove.",
869
- "kind": "text"
870
- }
871
- ]
723
+ "text": "deleteCount The number of elements to remove."
872
724
  },
873
725
  {
874
726
  "name": "param",
875
- "text": [
876
- {
877
- "text": "items",
878
- "kind": "parameterName"
879
- },
880
- {
881
- "text": " ",
882
- "kind": "space"
883
- },
884
- {
885
- "text": "Elements to insert into the array in place of the deleted elements.",
886
- "kind": "text"
887
- }
888
- ]
727
+ "text": "items Elements to insert into the array in place of the deleted elements."
889
728
  },
890
729
  {
891
730
  "name": "returns",
892
- "text": [
893
- {
894
- "text": "An array containing the elements that were deleted.",
895
- "kind": "text"
896
- }
897
- ]
731
+ "text": "An array containing the elements that were deleted."
898
732
  }
899
733
  ],
900
734
  "docs": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.",
@@ -917,20 +751,7 @@
917
751
  "tags": [
918
752
  {
919
753
  "name": "param",
920
- "text": [
921
- {
922
- "text": "items",
923
- "kind": "parameterName"
924
- },
925
- {
926
- "text": " ",
927
- "kind": "space"
928
- },
929
- {
930
- "text": "Elements to insert at the start of the array.",
931
- "kind": "text"
932
- }
933
- ]
754
+ "text": "items Elements to insert at the start of the array."
934
755
  }
935
756
  ],
936
757
  "docs": "Inserts new elements at the start of an array, and returns the new length of the array.",
@@ -941,7 +762,7 @@
941
762
  },
942
763
  {
943
764
  "name": "indexOf",
944
- "signature": "(searchElement: T, fromIndex?: number) => number",
765
+ "signature": "(searchElement: T, fromIndex?: number | undefined) => number",
945
766
  "parameters": [
946
767
  {
947
768
  "name": "searchElement",
@@ -958,37 +779,11 @@
958
779
  "tags": [
959
780
  {
960
781
  "name": "param",
961
- "text": [
962
- {
963
- "text": "searchElement",
964
- "kind": "parameterName"
965
- },
966
- {
967
- "text": " ",
968
- "kind": "space"
969
- },
970
- {
971
- "text": "The value to locate in the array.",
972
- "kind": "text"
973
- }
974
- ]
782
+ "text": "searchElement The value to locate in the array."
975
783
  },
976
784
  {
977
785
  "name": "param",
978
- "text": [
979
- {
980
- "text": "fromIndex",
981
- "kind": "parameterName"
982
- },
983
- {
984
- "text": " ",
985
- "kind": "space"
986
- },
987
- {
988
- "text": "The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",
989
- "kind": "text"
990
- }
991
- ]
786
+ "text": "fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0."
992
787
  }
993
788
  ],
994
789
  "docs": "Returns the index of the first occurrence of a value in an array, or -1 if it is not present.",
@@ -999,7 +794,7 @@
999
794
  },
1000
795
  {
1001
796
  "name": "lastIndexOf",
1002
- "signature": "(searchElement: T, fromIndex?: number) => number",
797
+ "signature": "(searchElement: T, fromIndex?: number | undefined) => number",
1003
798
  "parameters": [
1004
799
  {
1005
800
  "name": "searchElement",
@@ -1016,37 +811,11 @@
1016
811
  "tags": [
1017
812
  {
1018
813
  "name": "param",
1019
- "text": [
1020
- {
1021
- "text": "searchElement",
1022
- "kind": "parameterName"
1023
- },
1024
- {
1025
- "text": " ",
1026
- "kind": "space"
1027
- },
1028
- {
1029
- "text": "The value to locate in the array.",
1030
- "kind": "text"
1031
- }
1032
- ]
814
+ "text": "searchElement The value to locate in the array."
1033
815
  },
1034
816
  {
1035
817
  "name": "param",
1036
- "text": [
1037
- {
1038
- "text": "fromIndex",
1039
- "kind": "parameterName"
1040
- },
1041
- {
1042
- "text": " ",
1043
- "kind": "space"
1044
- },
1045
- {
1046
- "text": "The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",
1047
- "kind": "text"
1048
- }
1049
- ]
818
+ "text": "fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array."
1050
819
  }
1051
820
  ],
1052
821
  "docs": "Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.",
@@ -1074,37 +843,11 @@
1074
843
  "tags": [
1075
844
  {
1076
845
  "name": "param",
1077
- "text": [
1078
- {
1079
- "text": "predicate",
1080
- "kind": "parameterName"
1081
- },
1082
- {
1083
- "text": " ",
1084
- "kind": "space"
1085
- },
1086
- {
1087
- "text": "A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array.",
1088
- "kind": "text"
1089
- }
1090
- ]
846
+ "text": "predicate A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array."
1091
847
  },
1092
848
  {
1093
849
  "name": "param",
1094
- "text": [
1095
- {
1096
- "text": "thisArg",
1097
- "kind": "parameterName"
1098
- },
1099
- {
1100
- "text": " ",
1101
- "kind": "space"
1102
- },
1103
- {
1104
- "text": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.",
1105
- "kind": "text"
1106
- }
1107
- ]
850
+ "text": "thisArg An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value."
1108
851
  }
1109
852
  ],
1110
853
  "docs": "Determines whether all the members of an array satisfy the specified test.",
@@ -1133,37 +876,11 @@
1133
876
  "tags": [
1134
877
  {
1135
878
  "name": "param",
1136
- "text": [
1137
- {
1138
- "text": "predicate",
1139
- "kind": "parameterName"
1140
- },
1141
- {
1142
- "text": " ",
1143
- "kind": "space"
1144
- },
1145
- {
1146
- "text": "A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array.",
1147
- "kind": "text"
1148
- }
1149
- ]
879
+ "text": "predicate A function that accepts up to three arguments. The every method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value false, or until the end of the array."
1150
880
  },
1151
881
  {
1152
882
  "name": "param",
1153
- "text": [
1154
- {
1155
- "text": "thisArg",
1156
- "kind": "parameterName"
1157
- },
1158
- {
1159
- "text": " ",
1160
- "kind": "space"
1161
- },
1162
- {
1163
- "text": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.",
1164
- "kind": "text"
1165
- }
1166
- ]
883
+ "text": "thisArg An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value."
1167
884
  }
1168
885
  ],
1169
886
  "docs": "Determines whether all the members of an array satisfy the specified test.",
@@ -1191,37 +908,11 @@
1191
908
  "tags": [
1192
909
  {
1193
910
  "name": "param",
1194
- "text": [
1195
- {
1196
- "text": "predicate",
1197
- "kind": "parameterName"
1198
- },
1199
- {
1200
- "text": " ",
1201
- "kind": "space"
1202
- },
1203
- {
1204
- "text": "A function that accepts up to three arguments. The some method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value true, or until the end of the array.",
1205
- "kind": "text"
1206
- }
1207
- ]
911
+ "text": "predicate A function that accepts up to three arguments. The some method calls\r\nthe predicate function for each element in the array until the predicate returns a value\r\nwhich is coercible to the Boolean value true, or until the end of the array."
1208
912
  },
1209
913
  {
1210
914
  "name": "param",
1211
- "text": [
1212
- {
1213
- "text": "thisArg",
1214
- "kind": "parameterName"
1215
- },
1216
- {
1217
- "text": " ",
1218
- "kind": "space"
1219
- },
1220
- {
1221
- "text": "An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value.",
1222
- "kind": "text"
1223
- }
1224
- ]
915
+ "text": "thisArg An object to which the this keyword can refer in the predicate function.\r\nIf thisArg is omitted, undefined is used as the this value."
1225
916
  }
1226
917
  ],
1227
918
  "docs": "Determines whether the specified callback function returns true for any element of an array.",
@@ -1249,37 +940,11 @@
1249
940
  "tags": [
1250
941
  {
1251
942
  "name": "param",
1252
- "text": [
1253
- {
1254
- "text": "callbackfn",
1255
- "kind": "parameterName"
1256
- },
1257
- {
1258
- "text": " ",
1259
- "kind": "space"
1260
- },
1261
- {
1262
- "text": "A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.",
1263
- "kind": "text"
1264
- }
1265
- ]
943
+ "text": "callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array."
1266
944
  },
1267
945
  {
1268
946
  "name": "param",
1269
- "text": [
1270
- {
1271
- "text": "thisArg",
1272
- "kind": "parameterName"
1273
- },
1274
- {
1275
- "text": " ",
1276
- "kind": "space"
1277
- },
1278
- {
1279
- "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",
1280
- "kind": "text"
1281
- }
1282
- ]
947
+ "text": "thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value."
1283
948
  }
1284
949
  ],
1285
950
  "docs": "Performs the specified action for each element in an array.",
@@ -1307,37 +972,11 @@
1307
972
  "tags": [
1308
973
  {
1309
974
  "name": "param",
1310
- "text": [
1311
- {
1312
- "text": "callbackfn",
1313
- "kind": "parameterName"
1314
- },
1315
- {
1316
- "text": " ",
1317
- "kind": "space"
1318
- },
1319
- {
1320
- "text": "A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.",
1321
- "kind": "text"
1322
- }
1323
- ]
975
+ "text": "callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array."
1324
976
  },
1325
977
  {
1326
978
  "name": "param",
1327
- "text": [
1328
- {
1329
- "text": "thisArg",
1330
- "kind": "parameterName"
1331
- },
1332
- {
1333
- "text": " ",
1334
- "kind": "space"
1335
- },
1336
- {
1337
- "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",
1338
- "kind": "text"
1339
- }
1340
- ]
979
+ "text": "thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value."
1341
980
  }
1342
981
  ],
1343
982
  "docs": "Calls a defined callback function on each element of an array, and returns an array that contains the results.",
@@ -1366,37 +1005,11 @@
1366
1005
  "tags": [
1367
1006
  {
1368
1007
  "name": "param",
1369
- "text": [
1370
- {
1371
- "text": "predicate",
1372
- "kind": "parameterName"
1373
- },
1374
- {
1375
- "text": " ",
1376
- "kind": "space"
1377
- },
1378
- {
1379
- "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.",
1380
- "kind": "text"
1381
- }
1382
- ]
1008
+ "text": "predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array."
1383
1009
  },
1384
1010
  {
1385
1011
  "name": "param",
1386
- "text": [
1387
- {
1388
- "text": "thisArg",
1389
- "kind": "parameterName"
1390
- },
1391
- {
1392
- "text": " ",
1393
- "kind": "space"
1394
- },
1395
- {
1396
- "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",
1397
- "kind": "text"
1398
- }
1399
- ]
1012
+ "text": "thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value."
1400
1013
  }
1401
1014
  ],
1402
1015
  "docs": "Returns the elements of an array that meet the condition specified in a callback function.",
@@ -1425,37 +1038,11 @@
1425
1038
  "tags": [
1426
1039
  {
1427
1040
  "name": "param",
1428
- "text": [
1429
- {
1430
- "text": "predicate",
1431
- "kind": "parameterName"
1432
- },
1433
- {
1434
- "text": " ",
1435
- "kind": "space"
1436
- },
1437
- {
1438
- "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.",
1439
- "kind": "text"
1440
- }
1441
- ]
1041
+ "text": "predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array."
1442
1042
  },
1443
1043
  {
1444
1044
  "name": "param",
1445
- "text": [
1446
- {
1447
- "text": "thisArg",
1448
- "kind": "parameterName"
1449
- },
1450
- {
1451
- "text": " ",
1452
- "kind": "space"
1453
- },
1454
- {
1455
- "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",
1456
- "kind": "text"
1457
- }
1458
- ]
1045
+ "text": "thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value."
1459
1046
  }
1460
1047
  ],
1461
1048
  "docs": "Returns the elements of an array that meet the condition specified in a callback function.",
@@ -1478,37 +1065,11 @@
1478
1065
  "tags": [
1479
1066
  {
1480
1067
  "name": "param",
1481
- "text": [
1482
- {
1483
- "text": "callbackfn",
1484
- "kind": "parameterName"
1485
- },
1486
- {
1487
- "text": " ",
1488
- "kind": "space"
1489
- },
1490
- {
1491
- "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.",
1492
- "kind": "text"
1493
- }
1494
- ]
1068
+ "text": "callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array."
1495
1069
  },
1496
1070
  {
1497
1071
  "name": "param",
1498
- "text": [
1499
- {
1500
- "text": "initialValue",
1501
- "kind": "parameterName"
1502
- },
1503
- {
1504
- "text": " ",
1505
- "kind": "space"
1506
- },
1507
- {
1508
- "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
1509
- "kind": "text"
1510
- }
1511
- ]
1072
+ "text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
1512
1073
  }
1513
1074
  ],
1514
1075
  "docs": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
@@ -1559,37 +1120,11 @@
1559
1120
  "tags": [
1560
1121
  {
1561
1122
  "name": "param",
1562
- "text": [
1563
- {
1564
- "text": "callbackfn",
1565
- "kind": "parameterName"
1566
- },
1567
- {
1568
- "text": " ",
1569
- "kind": "space"
1570
- },
1571
- {
1572
- "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.",
1573
- "kind": "text"
1574
- }
1575
- ]
1123
+ "text": "callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array."
1576
1124
  },
1577
1125
  {
1578
1126
  "name": "param",
1579
- "text": [
1580
- {
1581
- "text": "initialValue",
1582
- "kind": "parameterName"
1583
- },
1584
- {
1585
- "text": " ",
1586
- "kind": "space"
1587
- },
1588
- {
1589
- "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
1590
- "kind": "text"
1591
- }
1592
- ]
1127
+ "text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
1593
1128
  }
1594
1129
  ],
1595
1130
  "docs": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
@@ -1613,37 +1148,11 @@
1613
1148
  "tags": [
1614
1149
  {
1615
1150
  "name": "param",
1616
- "text": [
1617
- {
1618
- "text": "callbackfn",
1619
- "kind": "parameterName"
1620
- },
1621
- {
1622
- "text": " ",
1623
- "kind": "space"
1624
- },
1625
- {
1626
- "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.",
1627
- "kind": "text"
1628
- }
1629
- ]
1151
+ "text": "callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array."
1630
1152
  },
1631
1153
  {
1632
1154
  "name": "param",
1633
- "text": [
1634
- {
1635
- "text": "initialValue",
1636
- "kind": "parameterName"
1637
- },
1638
- {
1639
- "text": " ",
1640
- "kind": "space"
1641
- },
1642
- {
1643
- "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
1644
- "kind": "text"
1645
- }
1646
- ]
1155
+ "text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
1647
1156
  }
1648
1157
  ],
1649
1158
  "docs": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
@@ -1694,37 +1203,11 @@
1694
1203
  "tags": [
1695
1204
  {
1696
1205
  "name": "param",
1697
- "text": [
1698
- {
1699
- "text": "callbackfn",
1700
- "kind": "parameterName"
1701
- },
1702
- {
1703
- "text": " ",
1704
- "kind": "space"
1705
- },
1706
- {
1707
- "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.",
1708
- "kind": "text"
1709
- }
1710
- ]
1206
+ "text": "callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array."
1711
1207
  },
1712
1208
  {
1713
1209
  "name": "param",
1714
- "text": [
1715
- {
1716
- "text": "initialValue",
1717
- "kind": "parameterName"
1718
- },
1719
- {
1720
- "text": " ",
1721
- "kind": "space"
1722
- },
1723
- {
1724
- "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",
1725
- "kind": "text"
1726
- }
1727
- ]
1210
+ "text": "initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value."
1728
1211
  }
1729
1212
  ],
1730
1213
  "docs": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.",
@@ -1753,7 +1236,7 @@
1753
1236
  "methods": [
1754
1237
  {
1755
1238
  "name": "join",
1756
- "signature": "(separator?: string) => string",
1239
+ "signature": "(separator?: string | undefined) => string",
1757
1240
  "parameters": [
1758
1241
  {
1759
1242
  "name": "separator",
@@ -1769,7 +1252,7 @@
1769
1252
  },
1770
1253
  {
1771
1254
  "name": "slice",
1772
- "signature": "(start?: number, end?: number) => T[]",
1255
+ "signature": "(start?: number | undefined, end?: number | undefined) => T[]",
1773
1256
  "parameters": [
1774
1257
  {
1775
1258
  "name": "start",
@@ -4,7 +4,7 @@ export interface PlaylistPlugin {
4
4
  /**
5
5
  * Listen for screen reader state change (on/off)
6
6
  */
7
- addListener(eventName: 'status', listenerFunc: PlaylistStatusChangeCallback): PluginListenerHandle;
7
+ addListener(eventName: 'status', listenerFunc: PlaylistStatusChangeCallback): Promise<PluginListenerHandle>;
8
8
  setOptions(options: AudioPlayerOptions): Promise<void>;
9
9
  initialize(): Promise<void>;
10
10
  release(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-plugin-playlist",
3
- "version": "0.4.1",
3
+ "version": "0.5.1",
4
4
  "description": "Playlist ",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -32,15 +32,15 @@
32
32
  "author": "phiamo",
33
33
  "license": "MIT",
34
34
  "devDependencies": {
35
- "@capacitor/android": "^5.0.0",
36
- "@capacitor/core": "^5.0.0",
35
+ "@capacitor/android": "^6.0.0",
36
+ "@capacitor/core": "^6.0.0",
37
37
  "@capacitor/docgen": "^0.0.10",
38
- "@capacitor/ios": "^5.0.0",
38
+ "@capacitor/ios": "^6.0.0",
39
39
  "@ionic/prettier-config": "^1.0.1",
40
40
  "@ionic/swiftlint-config": "^1.1.2",
41
- "@ionic/eslint-config": "^0.3.0",
41
+ "@ionic/eslint-config": "^0.4.0",
42
42
  "@types/hls.js": "^0.13.2",
43
- "eslint": "^7.26.0",
43
+ "eslint": "^8.57.0",
44
44
  "prettier": "~2.2.0",
45
45
  "prettier-plugin-java": "~1.0.0",
46
46
  "rimraf": "^3.0.2",
@@ -49,7 +49,7 @@
49
49
  "typescript": "~5.0.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@capacitor/core": "^5.0.0"
52
+ "@capacitor/core": "^6.0.0"
53
53
  },
54
54
  "prettier": "@ionic/prettier-config",
55
55
  "swiftlint": "@ionic/swiftlint-config",
@@ -1,13 +0,0 @@
1
- arguments=--init-script /var/folders/z8/yqqmzrfj5xj7gp3bjllxy9zh0000gn/T/db3b08fc4a9ef609cb16b96b200fa13e563f396e9bb1ed0905fdab7bc3bc513b.gradle --init-script /var/folders/z8/yqqmzrfj5xj7gp3bjllxy9zh0000gn/T/52cde0cfcf3e28b8b7510e992210d9614505e0911af0c190bd590d7158574963.gradle
2
- auto.sync=false
3
- build.scans.enabled=false
4
- connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
5
- connection.project.dir=
6
- eclipse.preferences.version=1
7
- gradle.user.home=
8
- java.home=/opt/homebrew/Cellar/openjdk@11/11.0.23/libexec/openjdk.jdk/Contents/Home
9
- jvm.arguments=
10
- offline.mode=false
11
- override.workspace.settings=true
12
- show.console.view=true
13
- show.executions.view=true