@ringg/react-native 0.0.1-alpha.2 → 0.0.1-alpha.3

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.
Files changed (2) hide show
  1. package/app.plugin.js +8 -6
  2. package/package.json +4 -2
package/app.plugin.js CHANGED
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Automatically configures the native project for voice calls by applying:
5
5
  * - WebRTC permissions and build settings (mic, audio, networking)
6
- * - Audio session lifecycle hooks for iOS/Android
6
+ * - LiveKit native lifecycle hooks (auto-linked via expo-module.config.json)
7
7
  *
8
8
  * Usage in app.json:
9
9
  * { "plugins": ["@ringg/react-native"] }
@@ -12,7 +12,7 @@
12
12
  * { "plugins": [["@ringg/react-native", { "enableCamera": false }]] }
13
13
  */
14
14
 
15
- const { createRunOncePlugin, withPlugins } = require("expo/config-plugins");
15
+ const { createRunOncePlugin } = require("expo/config-plugins");
16
16
  const pkg = require("./package.json");
17
17
 
18
18
  /**
@@ -23,14 +23,16 @@ function withRingg(config, props = {}) {
23
23
  const { enableCamera = false } = props;
24
24
 
25
25
  // WebRTC native setup: permissions, bitcode, build settings
26
- const withWebRTC = require("@config-plugins/react-native-webrtc");
26
+ // @config-plugins/react-native-webrtc uses ESM default export compiled to CJS
27
+ const webrtcPlugin = require("@config-plugins/react-native-webrtc");
28
+ const withWebRTC = webrtcPlugin.default || webrtcPlugin;
27
29
  config = withWebRTC(config, {
28
30
  cameraPermission: enableCamera ? "This app uses the camera for video calls." : false,
29
31
  });
30
32
 
31
- // LiveKit native lifecycle: iOS AppDelegate subscriber, Android audio config
32
- const withLiveKit = require("@livekit/react-native-expo-plugin");
33
- config = withLiveKit(config);
33
+ // LiveKit native lifecycle (iOS AppDelegate subscriber, Android audio config)
34
+ // is auto-linked by Expo via @livekit/react-native-expo-plugin's
35
+ // expo-module.config.json no manual plugin call needed.
34
36
 
35
37
  return config;
36
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringg/react-native",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.3",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Ringg AI widget for React Native — drop-in component and headless hooks for voice/text AI agents",
@@ -28,6 +28,8 @@
28
28
  "types": "./lib/typescript/index.d.ts",
29
29
  "default": "./lib/module/index.js"
30
30
  },
31
+ "./app.plugin.js": "./app.plugin.js",
32
+ "./app.plugin": "./app.plugin.js",
31
33
  "./package.json": "./package.json"
32
34
  },
33
35
  "files": [
@@ -46,7 +48,7 @@
46
48
  "@config-plugins/react-native-webrtc": ">=9.0.0",
47
49
  "livekit-client": ">=2.0.0",
48
50
  "react-native-svg": ">=12.0.0",
49
- "@ringg/core": "0.0.1-alpha.2"
51
+ "@ringg/core": "0.0.1-alpha.3"
50
52
  },
51
53
  "devDependencies": {
52
54
  "@types/react": "^18.3.10",