Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): reduce unnecessary Android battery work #24783

Closedjetersen(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/24783/headopened View on GitHub

Showing 35 changed files with 48 additions and 2 deletions (loading 31).

x
0 of 35 viewed, 35 left
10 additions and 0 deletionsapps/mobile/modules/t3-terminal/android/src/main/java/expo/modules/t3terminal/T3TerminalModule.ktModified
View file
@@ -11,6 +11,7 @@
// logs so a stale native binary is distinguishable from a broken key pipeline.
Constants(
"hardwareKeyRevision" to 2,
+ "outputRevision" to 1,
​
View(T3TerminalView::class) {
@@ -18,6 +19,15 @@
view.terminalKey = terminalKey
​
+ AsyncFunction("writeOutput") {
+ view: T3TerminalView,
+ key: String,
+ data: String,
+ reset: Boolean
+ ->
+ view.writeOutput(key, data, reset)
+ }
+​
Prop("initialBuffer") { view: T3TerminalView, initialBuffer: String ->
view.initialBuffer = initialBuffer
22 additions and 0 deletionsapps/mobile/modules/t3-terminal/android/src/main/java/expo/modules/t3terminal/T3TerminalView.ktModified
View file
@@ -379,6 +379,28 @@