Skip to content

Commit b7fddf0

Browse files
Placed back to bootom FAB on chat screen to topbar, Locked screen orientation to portrait, Updated libs, Improved UI for chat screen
1 parent 01ae35d commit b7fddf0

File tree

11 files changed

+349
-80
lines changed

11 files changed

+349
-80
lines changed

.idea/deploymentTargetSelector.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/other.xml

Lines changed: 263 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ android {
5151

5252
dependencies {
5353

54-
implementation("androidx.core:core-ktx:1.12.0")
54+
implementation("androidx.core:core-ktx:1.13.1")
5555
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
5656
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2")
57-
implementation("androidx.activity:activity-compose:1.8.2")
57+
implementation("androidx.activity:activity-compose:1.9.0")
5858
implementation("androidx.navigation:navigation-compose:2.7.6")
5959

60-
implementation(platform("androidx.compose:compose-bom:2023.08.00"))
60+
implementation(platform("androidx.compose:compose-bom:2024.06.00"))
6161
implementation("androidx.compose.ui:ui")
6262
implementation("androidx.compose.ui:ui-graphics")
6363
implementation("androidx.compose.ui:ui-tooling-preview")
@@ -76,7 +76,7 @@ dependencies {
7676
debugImplementation("androidx.compose.ui:ui-test-manifest")
7777

7878
implementation("io.coil-kt:coil-compose:2.5.0")
79-
implementation("com.google.ai.client.generativeai:generativeai:0.1.2")
79+
implementation("com.google.ai.client.generativeai:generativeai:0.8.0")
8080

8181
implementation("com.github.jeziellago:compose-markdown:0.3.7") // Markdown Text
8282
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<activity
2323
android:name=".MainActivity"
2424
android:exported="true"
25+
android:screenOrientation="portrait"
2526
android:theme="@style/Theme.AskGemini">
2627
<intent-filter>
2728
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/harsh/askgemini/MainActivity.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,11 @@ import androidx.compose.ui.graphics.Color
1515
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
1616
import com.google.accompanist.systemuicontroller.rememberSystemUiController
1717
import com.harsh.askgemini.navigation.WindowNavigation
18-
import com.harsh.askgemini.notification.NotificationAlarmScheduler
19-
import com.harsh.askgemini.notification.ReminderItem
2018
import com.harsh.askgemini.ui.splash.SplashViewModel
2119
import com.harsh.askgemini.ui.theme.AskGeminiTheme
22-
import java.util.Calendar
2320

2421
class MainActivity : ComponentActivity() {
2522

26-
private val notificationAlarmScheduler by lazy {
27-
NotificationAlarmScheduler(this)
28-
}
29-
3023
override fun onCreate(savedInstanceState: Bundle?) {
3124
super.onCreate(savedInstanceState)
3225

@@ -43,15 +36,6 @@ class MainActivity : ComponentActivity() {
4336

4437
systemUiController.setSystemBarsColor(color = Color.LightGray)
4538

46-
val reminderItem = ReminderItem(
47-
time = Calendar.getInstance().apply {
48-
set(Calendar.HOUR_OF_DAY, 10)
49-
set(Calendar.MINUTE, 0)
50-
}.timeInMillis,
51-
id = 0
52-
)
53-
notificationAlarmScheduler.schedule(reminderItem)
54-
5539
// A surface container using the 'background' color from the theme
5640
Surface(
5741
modifier = Modifier.fillMaxSize(),

0 commit comments

Comments
 (0)