-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wrap experimental code in conditional to avoid pushing it to users
constantly uncommenting it and then commenting it out was annoying and error-prone
- Loading branch information
Showing
2 changed files
with
21 additions
and
5 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
14 changes: 14 additions & 0 deletions
14
app/src/main/java/me/arianb/usb_hid_client/ui/utils/Experimental.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,14 @@ | ||
package me.arianb.usb_hid_client.ui.utils | ||
|
||
import androidx.compose.runtime.Composable | ||
import me.arianb.usb_hid_client.BuildConfig | ||
|
||
@Composable | ||
fun Experimental( | ||
content: @Composable () -> Unit | ||
) { | ||
// TODO: add/implement user setting, maybe add red tint or something to differentiate experimental stuff | ||
if (BuildConfig.DEBUG) { | ||
content() | ||
} | ||
} |