@mcfarljw/capacitor-audio 1.0.3 → 1.1.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/android/build.gradle
CHANGED
|
@@ -11,7 +11,7 @@ buildscript {
|
|
|
11
11
|
mavenCentral()
|
|
12
12
|
}
|
|
13
13
|
dependencies {
|
|
14
|
-
classpath 'com.android.tools.build:gradle:8.
|
|
14
|
+
classpath 'com.android.tools.build:gradle:8.2.1'
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
|
|
|
19
19
|
|
|
20
20
|
android {
|
|
21
21
|
namespace "com.mcfarljw.capacitor.audio"
|
|
22
|
-
|
|
22
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
|
|
23
23
|
defaultConfig {
|
|
24
24
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
|
25
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
|
|
26
26
|
versionCode 1
|
|
27
27
|
versionName "1.0"
|
|
28
28
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -15,7 +15,7 @@ public class CapacitorAudioPlugin: CAPPlugin {
|
|
|
15
15
|
|
|
16
16
|
@objc func play(_ call: CAPPluginCall) {
|
|
17
17
|
let path = call.getString("path") ?? ""
|
|
18
|
-
let track = call.getInt("
|
|
18
|
+
let track = call.getInt("track", 0)
|
|
19
19
|
|
|
20
20
|
implementation.play(path, track)
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ public class CapacitorAudioPlugin: CAPPlugin {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@objc func stop(_ call: CAPPluginCall) {
|
|
26
|
-
let track = call.getInt("
|
|
26
|
+
let track = call.getInt("track", 0)
|
|
27
27
|
|
|
28
28
|
implementation.stop(track)
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcfarljw/capacitor-audio",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A native audio plugin for Ionic Capacitor.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
|
+
"packageManager": "^npm@10.5.0",
|
|
7
8
|
"types": "dist/esm/index.d.ts",
|
|
8
9
|
"unpkg": "dist/plugin.js",
|
|
9
10
|
"files": [
|
|
@@ -44,11 +45,11 @@
|
|
|
44
45
|
"prepublishOnly": "npm run build"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@capacitor/android": "^
|
|
48
|
-
"@capacitor/cli": "^
|
|
49
|
-
"@capacitor/core": "^
|
|
48
|
+
"@capacitor/android": "^6.0.0",
|
|
49
|
+
"@capacitor/cli": "^6.0.0",
|
|
50
|
+
"@capacitor/core": "^6.0.0",
|
|
50
51
|
"@capacitor/docgen": "^0.0.18",
|
|
51
|
-
"@capacitor/ios": "^
|
|
52
|
+
"@capacitor/ios": "^6.0.0",
|
|
52
53
|
"@ionic/eslint-config": "^0.3.0",
|
|
53
54
|
"@ionic/prettier-config": "^1.0.1",
|
|
54
55
|
"@ionic/swiftlint-config": "^1.1.2",
|