File tree Expand file tree Collapse file tree
kotlin/com/google/ai/sample/feature/multimodal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,27 +144,27 @@ jobs:
144144 - name : Grant execute permission for gradlew
145145 run : chmod +x gradlew
146146
147- - name : Build app module (debug )
147+ - name : Build app module (release )
148148 if : env.BUILD_APP == 'true'
149- run : ./gradlew :app:assembleDebug
149+ run : ./gradlew :app:assembleRelease
150150
151- - name : Build humanoperator module (debug )
151+ - name : Build humanoperator module (release )
152152 if : env.BUILD_HUMANOPERATOR == 'true'
153- run : ./gradlew :humanoperator:assembleDebug
153+ run : ./gradlew :humanoperator:assembleRelease
154154
155155 - name : Upload app APK
156156 if : env.BUILD_APP == 'true'
157157 uses : actions/upload-artifact@v4
158158 with :
159- name : app-debug
160- path : app/build/outputs/apk/debug /app-debug .apk
159+ name : app-release-unsigned
160+ path : app/build/outputs/apk/release /app-release-unsigned .apk
161161
162162 - name : Upload humanoperator APK
163163 if : env.BUILD_HUMANOPERATOR == 'true'
164164 uses : actions/upload-artifact@v4
165165 with :
166- name : humanoperator-debug
167- path : humanoperator/build/outputs/apk/debug /humanoperator-debug .apk
166+ name : humanoperator-release-unsigned
167+ path : humanoperator/build/outputs/apk/release /humanoperator-release-unsigned .apk
168168
169169 - name : Build summary
170170 run : |
Original file line number Diff line number Diff line change @@ -35,8 +35,15 @@ android {
3535 }
3636
3737 buildTypes {
38+ getByName(" debug" ) {
39+ isDebuggable = true
40+ }
41+ getByName(" release" ) {
42+ isDebuggable = false
43+ }
3844 create(" samples" ) {
3945 initWith(getByName(" debug" ))
46+ isDebuggable = false
4047 }
4148 }
4249
Original file line number Diff line number Diff line change @@ -134,7 +134,6 @@ class PhotoReasoningViewModel(
134134
135135 // Keep track of the current user input
136136 private var currentUserInput: String = " "
137- private var latestUserTaskInput: String = " "
138137
139138 // Observable state for the input field to persist across configuration changes
140139 private val _userInput = MutableStateFlow (" " )
@@ -791,10 +790,6 @@ class PhotoReasoningViewModel(
791790 imageUrisForChat : List <String >? = null
792791 ) {
793792 val currentModel = com.google.ai.sample.GenerativeAiViewModelFactory .getCurrentModel()
794- if (userInput.isNotBlank() && screenInfoForPrompt.isNullOrBlank()) {
795- latestUserTaskInput = userInput.trim()
796- }
797-
798793 clearStaleErrorState()
799794 stopExecutionFlag.set(false )
800795
@@ -2167,12 +2162,6 @@ class PhotoReasoningViewModel(
21672162 }
21682163
21692164 private fun createGenericScreenshotPrompt (): String {
2170- val latestTask = latestUserTaskInput.trim()
2171- if (latestTask.isNotBlank()) {
2172- latestUserTaskInput = " "
2173- return latestTask
2174- }
2175-
21762165 return " "
21772166 }
21782167
Original file line number Diff line number Diff line change 2121<data-extraction-rules >
2222 <cloud-backup >
2323 <include domain =" sharedpref" path =" ." />
24- <exclude domain =" file" path =" no_backup/" />
25- <exclude domain =" database" path =" ." />
2624 </cloud-backup >
2725 <device-transfer >
2826 <include domain =" sharedpref" path =" ." />
29- <exclude domain =" file" path =" no_backup/" />
30- <exclude domain =" database" path =" ." />
3127 </device-transfer >
3228</data-extraction-rules >
You can’t perform that action at this time.
0 commit comments