@mobileai/react-native 0.9.23 → 0.9.25
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.
|
@@ -10,15 +10,7 @@
|
|
|
10
10
|
* to route telemetry through your own backend without touching this file.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
const isDev = typeof __DEV__ !== 'undefined' ? __DEV__ : process.env.NODE_ENV === 'development';
|
|
15
|
-
const getDevLocalhost = () => {
|
|
16
|
-
if (Platform.OS === 'android') {
|
|
17
|
-
return 'http://10.0.2.2:3001';
|
|
18
|
-
}
|
|
19
|
-
return 'http://localhost:3001';
|
|
20
|
-
};
|
|
21
|
-
const MOBILEAI_BASE = process.env.EXPO_PUBLIC_MOBILEAI_BASE_URL || process.env.NEXT_PUBLIC_MOBILEAI_BASE_URL || (isDev ? getDevLocalhost() : 'https://api.mobileai.dev');
|
|
13
|
+
const MOBILEAI_BASE = process.env.EXPO_PUBLIC_MOBILEAI_BASE_URL || process.env.NEXT_PUBLIC_MOBILEAI_BASE_URL || 'https://api.mobileai.dev';
|
|
22
14
|
export const ENDPOINTS = {
|
|
23
15
|
/** Telemetry event ingest — receives batched SDK events */
|
|
24
16
|
telemetryIngest: `${MOBILEAI_BASE}/api/v1/events`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mobileai/react-native",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.25",
|
|
4
4
|
"description": "Build autonomous AI agents for React Native and Expo apps. Provides AI-native UI traversal, tool calling, and structured reasoning.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -135,9 +135,6 @@
|
|
|
135
135
|
"react-native-view-shot": "*"
|
|
136
136
|
},
|
|
137
137
|
"peerDependenciesMeta": {
|
|
138
|
-
"@google/genai": {
|
|
139
|
-
"optional": true
|
|
140
|
-
},
|
|
141
138
|
"@react-native-async-storage/async-storage": {
|
|
142
139
|
"optional": true
|
|
143
140
|
},
|