Skip to content

Commit

Permalink
Removed notification module
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshPanchal18 committed Jun 22, 2024
1 parent 689cbdf commit 70ce0c5
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 149 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name=".notification.MyApplication"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
Expand All @@ -30,7 +31,6 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--<receiver android:name=".notification.AlarmReceiver" />-->
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ import com.google.accompanist.permissions.ExperimentalPermissionsApi
import com.google.accompanist.permissions.isGranted
import com.google.accompanist.permissions.rememberPermissionState
import com.harsh.askgemini.R
import com.harsh.askgemini.navigation.WindowNavigationItem
import com.harsh.askgemini.ui.DotLoadingAnimation
import com.harsh.askgemini.ui.ErrorLayout
import com.harsh.askgemini.ui.SuccessLayout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ class SummarizeViewModel(private val generativeModel: GenerativeModel) : ViewMod
_uiState.value = SummarizeUiState.Error(errorMessage = e.localizedMessage ?: "")
}
}
}
}*/

fun summarizeForNotification(inputText: String): String? {
/*fun summarizeForNotification(inputText: String): String? {
var facts: String? = null
viewModelScope.launch {
try {
val response = generativeModel.generateContent(inputText)
response.text?.let { outputText ->
_uiState.value = SummarizeUiState.Success(outputText = outputText)
outputText
//_uiState.value = SummarizeUiState.Success(outputText = outputText)
facts = outputText
}
} catch (e: Exception) {
_uiState.value = SummarizeUiState.Error(errorMessage = e.localizedMessage ?: "")
//_uiState.value = SummarizeUiState.Error(errorMessage = e.localizedMessage ?: "")
facts = e.localizedMessage
}
}
return null
return facts
}*/

suspend fun summarizeStreaming(inputText: String) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

38 changes: 0 additions & 38 deletions app/src/main/java/com/harsh/askgemini/notification/Notifier.kt

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 70ce0c5

Please sign in to comment.