File tree Expand file tree Collapse file tree
samples/CameraAccessAndroid
app/src/main/java/com/dynamicdevices/visionclaw Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 gradle assembleDebug --no-daemon --stacktrace
4747 env :
4848 GITHUB_TOKEN : ${{ secrets.GH_PACKAGES_READ_TOKEN || secrets.GITHUB_TOKEN }}
49+ GRADLE_OPTS : -Xmx3072m -XX:MaxMetaspaceSize=512m
4950
5051 - name : Upload APK artifact
5152 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -250,7 +250,12 @@ class GeminiLiveService {
250250 GeminiFunctionCall (
251251 id = c.optString(" id" , " " ),
252252 name = c.optString(" name" , " " ),
253- args = c.optJSONObject(" args" )?.keySet()?.associateWith { c.opt(it) } ? : emptyMap()
253+ args = c.optJSONObject(" args" )?.let { argsObj ->
254+ val keys = mutableListOf<String >()
255+ val iter = argsObj.keys()
256+ while (iter.hasNext()) keys.add(iter.next())
257+ keys.associateWith { argsObj.opt(it) }
258+ } ? : emptyMap()
254259 )
255260 }
256261 onToolCall?.invoke(GeminiToolCall (list))
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ package com.dynamicdevices.visionclaw.ui
22
33import androidx.compose.runtime.Composable
44import androidx.navigation.NavHostController
5+ import com.dynamicdevices.visionclaw.ui.screens.HomeScreen
6+ import com.dynamicdevices.visionclaw.ui.screens.SettingsScreen
7+ import com.dynamicdevices.visionclaw.ui.screens.StreamScreen
58import androidx.navigation.compose.NavHost
69import androidx.navigation.compose.composable
710import androidx.navigation.compose.rememberNavController
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ import androidx.compose.ui.Modifier
2020import androidx.compose.ui.text.input.KeyboardType
2121import androidx.compose.foundation.layout.fillMaxWidth
2222import androidx.compose.ui.unit.dp
23+ import androidx.compose.material3.ExperimentalMaterial3Api
2324import com.dynamicdevices.visionclaw.gemini.GeminiConfig
2425import com.dynamicdevices.visionclaw.settings.SettingsProvider
2526
27+ @OptIn(ExperimentalMaterial3Api ::class )
2628@Composable
2729fun SettingsScreen (onBack : () -> Unit ) {
2830 var apiKey by rememberSaveable { mutableStateOf(SettingsProvider .geminiApiKey) }
Original file line number Diff line number Diff line change 1- org.gradle.jvmArgs =-Xmx2048m -Dfile.encoding =UTF-8
1+ org.gradle.jvmargs =-Xmx3072m -Dfile.encoding =UTF-8
22android.useAndroidX =true
33kotlin.code.style =official
44android.nonTransitiveRClass =true
Original file line number Diff line number Diff line change 11[versions ]
22agp = " 8.7.2"
3- kotlin = " 1.9.22 "
3+ kotlin = " 2.1.0 "
44coreKtx = " 1.12.0"
55lifecycleRuntimeKtx = " 2.7.0"
66activityCompose = " 1.8.2"
You can’t perform that action at this time.
0 commit comments