-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dialog about failed BLE HID connection (#704)
**Background** Right now we just crash when android close app on BLE crash **Changes** - Show dialog after application restart **Test plan** Phone: Pair Flipper through mobile app and then force close application Flipper: Applications > Bluetooth > Remote Phone: Settings > Connected devices > Pair new device > Control (flipper name) Flipper: Hold back and exit app Phone: Open Flipper app > Get crash
- Loading branch information
Showing
28 changed files
with
641 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
id("flipper.android-compose") | ||
} | ||
|
||
android.namespace = "com.flipperdevices.unhandledexception.api" | ||
|
||
dependencies { | ||
implementation(libs.compose.ui) | ||
} |
9 changes: 9 additions & 0 deletions
9
...on/api/src/main/kotlin/com/flipperdevices/unhandledexception/api/UnhandledExceptionApi.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.flipperdevices.unhandledexception.api | ||
|
||
import kotlinx.coroutines.flow.Flow | ||
|
||
interface UnhandledExceptionApi { | ||
fun initExceptionHandler() | ||
|
||
fun isBleConnectionForbiddenFlow(): Flow<Boolean> | ||
} |
9 changes: 9 additions & 0 deletions
9
.../src/main/kotlin/com/flipperdevices/unhandledexception/api/UnhandledExceptionRenderApi.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.flipperdevices.unhandledexception.api | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
|
||
interface UnhandledExceptionRenderApi { | ||
@Composable | ||
fun ComposableUnhandledExceptionRender(modifier: Modifier) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
plugins { | ||
id("flipper.android-compose") | ||
id("flipper.anvil") | ||
} | ||
|
||
android.namespace = "com.flipperdevices.unhandledexception.impl" | ||
|
||
dependencies { | ||
implementation(projects.components.unhandledexception.api) | ||
|
||
implementation(projects.components.core.di) | ||
implementation(projects.components.core.preference) | ||
implementation(projects.components.core.log) | ||
implementation(projects.components.core.ui.theme) | ||
implementation(projects.components.core.ui.dialog) | ||
|
||
implementation(projects.components.bridge.api) | ||
implementation(projects.components.bridge.service.api) | ||
implementation(projects.components.bottombar.api) | ||
|
||
implementation(libs.compose.ui) | ||
implementation(libs.compose.foundation) | ||
implementation(libs.compose.material) | ||
implementation(libs.compose.tooling) | ||
} |
Oops, something went wrong.