@mentra/crust 3.3.0-dev.333 → 3.3.0-dev.338

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.
@@ -84,6 +84,7 @@ android {
84
84
  dependencies {
85
85
  testImplementation 'junit:junit:4.13.2'
86
86
 
87
+ implementation 'com.facebook.react:react-android'
87
88
  // Mapbox Navigation SDK v3 (replaces Google Navigation SDK).
88
89
  // Drives headless turn-by-turn nav in NavigationManager.kt: route
89
90
  // progress, off-route + automatic rerouting, enhanced (map-matched)
@@ -5,6 +5,12 @@
5
5
  <uses-permission android:name="${applicationId}.permission.CRUST_NOTIFICATION_BRIDGE" />
6
6
 
7
7
  <application>
8
+ <meta-data
9
+ android:name="com.mentra.bluetoothsdk.RUNTIME_RECOVERY_SERVICE"
10
+ android:value="com.mentra.crust.services.RuntimeRecoveryService" />
11
+ <service
12
+ android:name="com.mentra.crust.services.RuntimeRecoveryService"
13
+ android:exported="false" />
8
14
  <service
9
15
  android:name="com.mentra.crust.services.NotificationListenerServiceImpl"
10
16
  android:label="@string/mentra_crust_notification_listener_label"
@@ -0,0 +1,12 @@
1
+ package com.mentra.crust.services
2
+
3
+ import android.content.Intent
4
+ import com.facebook.react.HeadlessJsTaskService
5
+ import com.facebook.react.bridge.Arguments
6
+ import com.facebook.react.jstasks.HeadlessJsTaskConfig
7
+
8
+ /** Boots the normal app runtime while the Bluetooth foreground service keeps it alive. */
9
+ class RuntimeRecoveryService : HeadlessJsTaskService() {
10
+ override fun getTaskConfig(intent: Intent?): HeadlessJsTaskConfig =
11
+ HeadlessJsTaskConfig("MentraRuntimeRecovery", Arguments.createMap(), 120_000L, true)
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mentra/crust",
3
- "version": "3.3.0-dev.333",
3
+ "version": "3.3.0-dev.338",
4
4
  "description": "Mentra Native Module",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "license": "Apache-2.0",
36
36
  "homepage": "https://github.com/Mentra-Community/MentraOS/tree/dev/mobile/modules/crust#readme",
37
37
  "dependencies": {
38
- "@mentra/jspolyfill": "3.3.0-dev.333"
38
+ "@mentra/jspolyfill": "3.3.0-dev.338"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@expo/config-plugins": ">=8.0.0",