react-native-wakeword-sid 1.1.74 → 1.1.76

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.
@@ -0,0 +1,29 @@
1
+ package com.davoice;
2
+
3
+ import com.facebook.react.ReactPackage;
4
+ import com.facebook.react.bridge.NativeModule;
5
+ import com.facebook.react.bridge.ReactApplicationContext;
6
+ import com.facebook.react.uimanager.ViewManager;
7
+
8
+ // Your two existing modules:
9
+ import com.davoice.keywordspotting.KeyWordRNBridge;
10
+ import com.davoice.speakeridrn.SpeakerIdRNBridge;
11
+
12
+ import java.util.Arrays;
13
+ import java.util.Collections;
14
+ import java.util.List;
15
+
16
+ public class DaVoiceUnifiedPackage implements ReactPackage {
17
+ @Override
18
+ public List<NativeModule> createNativeModules(ReactApplicationContext rc) {
19
+ return Arrays.asList(
20
+ new KeyWordRNBridge(rc),
21
+ new SpeakerIdRNBridge(rc)
22
+ );
23
+ }
24
+
25
+ @Override
26
+ public List<ViewManager> createViewManagers(ReactApplicationContext rc) {
27
+ return Collections.emptyList();
28
+ }
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword-sid",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
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
+ };
@@ -1,25 +0,0 @@
1
- package com.davoice.keywordspotting;
2
-
3
- import com.facebook.react.ReactPackage;
4
- import com.facebook.react.bridge.NativeModule;
5
- import com.facebook.react.bridge.ReactApplicationContext;
6
- import com.facebook.react.uimanager.ViewManager;
7
-
8
- import java.util.ArrayList;
9
- import java.util.Collections;
10
- import java.util.List;
11
-
12
- public class KeyWordRNBridgePackage implements ReactPackage {
13
-
14
- @Override
15
- public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
16
- List<NativeModule> modules = new ArrayList<>();
17
- modules.add(new KeyWordRNBridge(reactContext));
18
- return modules;
19
- }
20
-
21
- @Override
22
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
23
- return Collections.emptyList();
24
- }
25
- }
@@ -1,24 +0,0 @@
1
- package com.davoice.speakeridrn;
2
-
3
- import com.facebook.react.ReactPackage;
4
- import com.facebook.react.bridge.NativeModule;
5
- import com.facebook.react.bridge.ReactApplicationContext;
6
- import com.facebook.react.uimanager.ViewManager;
7
-
8
- import java.util.ArrayList;
9
- import java.util.Collections;
10
- import java.util.List;
11
-
12
- public class SpeakerIdRNBridgePackage implements ReactPackage {
13
- @Override
14
- public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
15
- List<NativeModule> modules = new ArrayList<>();
16
- modules.add(new SpeakerIdRNBridge(reactContext));
17
- return modules;
18
- }
19
-
20
- @Override
21
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
22
- return Collections.emptyList();
23
- }
24
- }