react-native-wakeword-sid 1.1.75 → 1.1.77

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.
@@ -1 +1 @@
1
- 50862aa181f9e90c686f985677960a24 keyworddetection-1.0.0.aar
1
+ 22f4340588cd6109750d34a49d89901a keyworddetection-1.0.0.aar
@@ -1 +1 @@
1
- 3a0d3de64293f27044cfbd32a57d8ef3e7572dce keyworddetection-1.0.0.aar
1
+ 526a43f6833f5a65d2ec69ca1ce2728996f705ab keyworddetection-1.0.0.aar
@@ -1,4 +1,3 @@
1
- // android/src/main/java/com/davoice/DaVoiceUnifiedPackage.java
2
1
  package com.davoice;
3
2
 
4
3
  import com.facebook.react.ReactPackage;
@@ -6,24 +5,25 @@ import com.facebook.react.bridge.NativeModule;
6
5
  import com.facebook.react.bridge.ReactApplicationContext;
7
6
  import com.facebook.react.uimanager.ViewManager;
8
7
 
9
- // Speaker-ID bridge
10
- import com.davoice.speakeridrn.SpeakerIdRNBridge;
11
- // Wakeword bridge
8
+ // Your two existing modules:
12
9
  import com.davoice.keywordspotting.KeyWordRNBridge;
10
+ import com.davoice.speakeridrn.SpeakerIdRNBridge;
13
11
 
14
- import java.util.*;
12
+ import java.util.Arrays;
13
+ import java.util.Collections;
14
+ import java.util.List;
15
15
 
16
16
  public class DaVoiceUnifiedPackage implements ReactPackage {
17
17
  @Override
18
- public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
19
- List<NativeModule> modules = new ArrayList<>();
20
- modules.add(new KeyWordRNBridge(reactContext)); // wakeword
21
- modules.add(new SpeakerIdRNBridge(reactContext)); // speaker-id
22
- return modules;
18
+ public List<NativeModule> createNativeModules(ReactApplicationContext rc) {
19
+ return Arrays.asList(
20
+ new KeyWordRNBridge(rc),
21
+ new SpeakerIdRNBridge(rc)
22
+ );
23
23
  }
24
24
 
25
25
  @Override
26
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
26
+ public List<ViewManager> createViewManagers(ReactApplicationContext rc) {
27
27
  return Collections.emptyList();
28
28
  }
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword-sid",
3
- "version": "1.1.75",
3
+ "version": "1.1.77",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -14,6 +14,7 @@
14
14
  "speakerid/",
15
15
  "android/",
16
16
  "ios/",
17
+ "react-native.config.js",
17
18
  "./app.plugin.js",
18
19
  "KeyWordRNBridge.podspec"
19
20
  ],
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ packageImportPath: 'import com.davoice.DaVoiceUnifiedPackage;',
6
+ packageInstance: 'new DaVoiceUnifiedPackage()',
7
+ },
8
+ },
9
+ },
10
+ };