File tree 7 files changed +22
-20
lines changed
7 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -373,7 +373,7 @@ isPlaying(options: { assetId: string; }) => Promise<{ isPlaying: boolean; }>
373
373
### addListener('complete', ...)
374
374
375
375
``` typescript
376
- addListener (eventName : ' complete' , listenerFunc : (event : { assetId: string ; }) => void ) => Promise < PluginListenerHandle > & PluginListenerHandle
376
+ addListener (eventName : ' complete' , listenerFunc : (event : { assetId: string ; }) => void ) => Promise < PluginListenerHandle >
377
377
```
378
378
379
379
Listen for asset completed playing event
@@ -383,7 +383,7 @@ Listen for asset completed playing event
383
383
| ** ` eventName ` ** | <code >'complete'</code > |
384
384
| ** ` listenerFunc ` ** | <code >(event: { assetId: string; }) => ; void</code > |
385
385
386
- ** Returns:** <code >Promise< ; <a href =" #pluginlistenerhandle " >PluginListenerHandle</a >> ; & < a href = " #pluginlistenerhandle " >PluginListenerHandle</ a > </code >
386
+ ** Returns:** <code >Promise< ; <a href =" #pluginlistenerhandle " >PluginListenerHandle</a >> ; </code >
387
387
388
388
** Since:** 5.0.1
389
389
Original file line number Diff line number Diff line change @@ -11,18 +11,18 @@ buildscript {
11
11
mavenCentral()
12
12
}
13
13
dependencies {
14
- classpath ' com.android.tools.build:gradle:8.0.0 '
14
+ classpath ' com.android.tools.build:gradle:8.2.1 '
15
15
}
16
16
}
17
17
18
18
apply plugin : ' com.android.library'
19
19
20
20
android {
21
21
namespace " com.getcapacitor.community.audio.nativeaudio"
22
- compileSdkVersion project. hasProperty(' compileSdkVersion' ) ? rootProject. ext. compileSdkVersion : 33
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 : 33
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"
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @capacitor-community/native-audio" ,
3
- "version" : " 5 .0.1 " ,
3
+ "version" : " 6 .0.0 " ,
4
4
"description" : " A native plugin for native audio engine" ,
5
5
"main" : " dist/plugin.js" ,
6
6
"module" : " dist/esm/index.js" ,
41
41
"license" : " MIT" ,
42
42
"dependencies" : {},
43
43
"devDependencies" : {
44
- "@capacitor/android" : " ^5 .0.0" ,
45
- "@capacitor/ios" : " ^5 .0.0" ,
46
- "@capacitor/cli" : " ^5 .0.0" ,
47
- "@capacitor/core" : " ^5 .0.0" ,
44
+ "@capacitor/android" : " ^6 .0.0" ,
45
+ "@capacitor/ios" : " ^6 .0.0" ,
46
+ "@capacitor/cli" : " ^6 .0.0" ,
47
+ "@capacitor/core" : " ^6 .0.0" ,
48
48
"@capacitor/docgen" : " 0.2.1" ,
49
49
"@ionic/eslint-config" : " ^0.3.0" ,
50
50
"@ionic/prettier-config" : " ~3.0.0" ,
59
59
"husky" : " ^8.0.3"
60
60
},
61
61
"peerDependencies" : {
62
- "@capacitor/core" : " ^5 .0.0"
62
+ "@capacitor/core" : " ^6 .0.0"
63
63
},
64
64
"husky" : {
65
65
"hooks" : {
Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ export interface NativeAudio {
18
18
*
19
19
* @since 5.0.1
20
20
*/
21
- addListener (
22
- eventName : 'complete' ,
23
- listenerFunc : ( event : { assetId : string } ) => void
24
- ) : Promise < PluginListenerHandle > & PluginListenerHandle ;
21
+ addListener ( eventName : 'complete' , listenerFunc : ( event : { assetId : string } ) => void ) : Promise < PluginListenerHandle > ;
25
22
}
26
23
27
24
export interface ConfigureOptions {
You can’t perform that action at this time.
0 commit comments