Download mobile/modules/bluetooth-sdk/plugin/src/index.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/bluetooth-sdk/plugin/src/index.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/modules/bluetooth-sdk/plugin/src/index.ts
-
curl -L -o index.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/bluetooth-sdk/plugin/src/index.ts
1.1 kB
| import {type ConfigPlugin} from "expo/config-plugins" | |
| import {withAndroidConfiguration} from "./withAndroid" | |
| import {withIosConfiguration} from "./withIos" | |
| export interface BluetoothSdkPluginProps { | |
| node?: boolean | |
| analytics?: boolean | BluetoothSdkAnalyticsPluginProps | |
| } | |
| export interface BluetoothSdkAnalyticsPluginProps { | |
| enabled?: boolean | |
| /** | |
| * Host-declared build lane (`dev`, `staging`, `prod`, ...), reported as | |
| * `app_environment` on every SDK analytics event. Trimmed and lowercased; | |
| * must then start with a letter or digit, followed by letters, digits, `_` | |
| * or `-`, at most 32 characters. Store/TestFlight/sideload detection is | |
| * automatic; this only adds the lane the host itself knows about. | |
| */ | |
| environment?: string | |
| } | |
| const withBluetoothSdk: ConfigPlugin<BluetoothSdkPluginProps> = (config, props) => { | |
| // Apply Android configurations | |
| config = withAndroidConfiguration(config, props) | |
| // Apply iOS configurations | |
| config = withIosConfiguration(config, props) | |
| return config | |
| } | |
| export default withBluetoothSdk | |