Skip to content

Commit f9ac383

Browse files
Merge pull request #85 from Android-PowerUser/Test
Test
2 parents e7297cf + c1b3196 commit f9ac383

4 files changed

Lines changed: 15 additions & 23 deletions

File tree

.github/workflows/manual.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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: |

app/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningViewModel.kt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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

app/src/main/res/xml/data_extraction_rules.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,8 @@
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>

0 commit comments

Comments
 (0)