@capgo/native-audio 4.0.2 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CapgoNativeAudio.podspec +1 -1
- package/README.md +19 -20
- package/android/build.gradle +8 -9
- package/package.json +7 -9
package/CapgoNativeAudio.podspec
CHANGED
@@ -11,6 +11,6 @@ Pod::Spec.new do |s|
|
|
11
11
|
s.author = package['author']
|
12
12
|
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
14
|
-
s.ios.deployment_target = '
|
14
|
+
s.ios.deployment_target = '13.0'
|
15
15
|
s.dependency 'Capacitor'
|
16
16
|
end
|
package/README.md
CHANGED
@@ -1,17 +1,22 @@
|
|
1
|
-
<
|
1
|
+
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
2
|
+
|
3
|
+
<div align="center">
|
4
|
+
<h2><a href="https://capgo.app/">Check out: Capgo — Instant updates for capacitor</a></h2>
|
5
|
+
</div>
|
6
|
+
|
2
7
|
<h3 align="center">Native Audio</h3>
|
3
|
-
<p align="center"><strong><code>@
|
8
|
+
<p align="center"><strong><code>@capgo/native-audio</code></strong></p>
|
4
9
|
<p align="center">
|
5
|
-
Capacitor
|
10
|
+
Capacitor plugin for playing sounds.
|
6
11
|
</p>
|
7
12
|
|
8
13
|
<p align="center">
|
9
|
-
<img src="https://img.shields.io/maintenance/yes/
|
10
|
-
<a href="https://github.com/
|
11
|
-
<a href="https://www.npmjs.com/package
|
14
|
+
<img src="https://img.shields.io/maintenance/yes/2022?style=flat-square" />
|
15
|
+
<a href="https://github.com/capgo/native-audio/actions?query=workflow%3A%22Test+and+Build+Plugin%22"><img src="https://img.shields.io/github/workflow/status/@capgo/native-audio/Test%20and%20Build%20Plugin?style=flat-square" /></a>
|
16
|
+
<a href="https://www.npmjs.com/package/capgo/native-audio"><img src="https://img.shields.io/npm/l/@capgo/native-audio?style=flat-square" /></a>
|
12
17
|
<br>
|
13
|
-
<a href="https://www.npmjs.com/package/@
|
14
|
-
<a href="https://www.npmjs.com/package/@
|
18
|
+
<a href="https://www.npmjs.com/package/@capgo/native-audio"><img src="https://img.shields.io/npm/dw/@capgo/native-audio?style=flat-square" /></a>
|
19
|
+
<a href="https://www.npmjs.com/package/@capgo/native-audio"><img src="https://img.shields.io/npm/v/@capgo/native-audio?style=flat-square" /></a>
|
15
20
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
16
21
|
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-6-orange?style=flat-square" /></a>
|
17
22
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
@@ -20,7 +25,7 @@
|
|
20
25
|
# Capacitor Native Audio Plugin
|
21
26
|
|
22
27
|
Capacitor plugin for native audio engine.
|
23
|
-
Capacitor v3 - ✅ Support!
|
28
|
+
Capacitor v3/v4 - ✅ Support!
|
24
29
|
|
25
30
|
Click on video to see example 💥
|
26
31
|
|
@@ -31,31 +36,25 @@ Click on video to see example 💥
|
|
31
36
|
|
32
37
|
| Maintainer | GitHub | Social |
|
33
38
|
| ------------- | ------------------------------------------- | ----------------------------------- |
|
34
|
-
|
|
39
|
+
| Martin Donadieu | [riderx](https://github.com/riderx) | [Telegram](https://t.me/martindonadieu) |
|
35
40
|
|
36
41
|
Mainteinance Status: Actively Maintained
|
37
42
|
|
38
43
|
## Preparation
|
39
|
-
All audio
|
40
|
-
|
41
|
-
Andoid: `android/app/src/assets`
|
42
|
-
|
43
|
-
iOS: `ios/App/App/sounds`
|
44
|
-
|
45
|
-
Web: `assets/sounds`
|
44
|
+
All audio files must be with the rest of your source files.
|
46
45
|
|
47
46
|
## Installation
|
48
47
|
|
49
48
|
To use npm
|
50
49
|
|
51
50
|
```bash
|
52
|
-
npm install @
|
51
|
+
npm install @capgo/native-audio
|
53
52
|
```
|
54
53
|
|
55
54
|
To use yarn
|
56
55
|
|
57
56
|
```bash
|
58
|
-
yarn add @
|
57
|
+
yarn add @capgo/native-audio
|
59
58
|
```
|
60
59
|
|
61
60
|
Sync native files
|
@@ -98,7 +97,7 @@ No configuration required for this plugin.
|
|
98
97
|
[Example repository](https://github.com/bazuka5801/native-audio-example)
|
99
98
|
|
100
99
|
```typescript
|
101
|
-
import {NativeAudio} from '@
|
100
|
+
import {NativeAudio} from '@capgo/native-audio'
|
102
101
|
|
103
102
|
|
104
103
|
/**
|
package/android/build.gradle
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
ext {
|
2
|
-
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.
|
3
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.
|
4
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
2
|
+
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
3
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
|
4
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
|
5
5
|
}
|
6
6
|
|
7
7
|
buildscript {
|
8
8
|
repositories {
|
9
9
|
google()
|
10
|
-
|
10
|
+
mavenCentral()
|
11
11
|
}
|
12
12
|
dependencies {
|
13
|
-
classpath 'com.android.tools.build:gradle:
|
13
|
+
classpath 'com.android.tools.build:gradle:7.2.1'
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
17
|
apply plugin: 'com.android.library'
|
18
18
|
|
19
19
|
android {
|
20
|
-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
20
|
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
|
21
21
|
defaultConfig {
|
22
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
23
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
22
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
|
23
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
|
24
24
|
versionCode 1
|
25
25
|
versionName "1.0"
|
26
26
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
@@ -40,7 +40,6 @@ android {
|
|
40
40
|
|
41
41
|
repositories {
|
42
42
|
google()
|
43
|
-
jcenter()
|
44
43
|
mavenCentral()
|
45
44
|
}
|
46
45
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@capgo/native-audio",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.1.1",
|
4
4
|
"description": "A native plugin for native audio engine",
|
5
5
|
"main": "dist/plugin.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -48,8 +48,11 @@
|
|
48
48
|
"@ionic/eslint-config": "^0.3.0",
|
49
49
|
"@ionic/prettier-config": "^2.0.0",
|
50
50
|
"@ionic/swiftlint-config": "^1.1.2",
|
51
|
-
"eslint": "^
|
52
|
-
"
|
51
|
+
"@typescript-eslint/eslint-plugin": "^5.42.1",
|
52
|
+
"@typescript-eslint/parser": "^5.42.1",
|
53
|
+
"eslint": "^8.27.0",
|
54
|
+
"eslint-plugin-import": "^2.26.0",
|
55
|
+
"husky": "^8.0.2",
|
53
56
|
"prettier": "^2.7.1",
|
54
57
|
"prettier-plugin-java": "^1.6.2",
|
55
58
|
"rimraf": "^3.0.2",
|
@@ -60,11 +63,6 @@
|
|
60
63
|
"peerDependencies": {
|
61
64
|
"@capacitor/core": "^3.0.0 || ^4.0.0"
|
62
65
|
},
|
63
|
-
"husky": {
|
64
|
-
"hooks": {
|
65
|
-
"pre-commit": "pretty-quick --staged"
|
66
|
-
}
|
67
|
-
},
|
68
66
|
"capacitor": {
|
69
67
|
"ios": {
|
70
68
|
"src": "ios"
|
@@ -88,4 +86,4 @@
|
|
88
86
|
"publishConfig": {
|
89
87
|
"access": "public"
|
90
88
|
}
|
91
|
-
}
|
89
|
+
}
|