Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ dependencies {
implementation(libs.hilt.navigation.compose)
ksp(libs.hilt.compiler)

// WorkManager + Hilt Worker
implementation(libs.work.runtime)
implementation(libs.hilt.work)
ksp(libs.hilt.work.compiler)

// Room
implementation(libs.room.runtime)
implementation(libs.room.ktx)
ksp(libs.room.compiler)

// ML Kit GenAI (Gemini Nano on-device)
implementation(libs.mlkit.genai.prompt)

// Navigation
implementation(libs.navigation.compose)

Expand Down
9 changes: 9 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<!-- Allow ML Kit GenAI on older minSdk (feature requires Android 14+ at runtime) -->
<uses-sdk tools:overrideLibrary="
com.google.mlkit.genai.prompt,
com.google.mlkit.genai.common,
com.google.android.gms.common" />

<!-- Required permissions for crash log reading -->
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission
Expand All @@ -18,6 +24,9 @@
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="QueryAllPackagesPermission" />

<!-- For AI model download progress notifications (Android 13+) -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application
android:name=".StackLensApp"
android:allowBackup="true"
Expand Down
Loading
Loading