Skip to content

Commit

Permalink
-Compose v1.7. Bump and Info.plist Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed Oct 23, 2024
1 parent 9713312 commit 9b4af59
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.flexi.app.presentation.ui.screens.detail.common

import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.tween
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
Expand Down Expand Up @@ -287,7 +288,7 @@ class DetailScreen(
.size(25.dp)
.clickable(
interactionSource = MutableInteractionSource(),
indication = rememberRipple(color = Color.Red),
indication = LocalIndication.current,
onClick = {
isFavourite = !isFavourite
}
Expand Down Expand Up @@ -631,7 +632,7 @@ fun ExpandableDescription(description: String) {
modifier = Modifier.padding(top = 6.dp, start = 12.dp)
.clickable(
interactionSource = MutableInteractionSource(),
indication = rememberRipple(color = Color.Transparent),
indication = LocalIndication.current,
enabled = true,
role = Role.Button,
onClick = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class HomeScreen : Screen {
tint = Color.Gray
)
},
colors = TextFieldDefaults.textFieldColors(
colors = TextFieldDefaults.colors(
cursorColor = Color.Black,
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ fun UserDetailsCard(
modifier = Modifier.fillMaxWidth(),
singleLine = true,
textStyle = MaterialTheme.typography.bodyLarge,
colors = TextFieldDefaults.outlinedTextFieldColors(focusedBorderColor = Color.Gray)
colors = TextFieldDefaults.colors()
)
} else {
Text(text = value, style = MaterialTheme.typography.bodySmall)
Expand Down
2 changes: 1 addition & 1 deletion composeApp/src/iosMain/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import org.flexi.app.di.appModule
import org.koin.core.context.startKoin
import platform.UIKit.UIViewController

fun MainViewController(): UIViewController = ComposeUIViewController { App() }
fun MainViewController(): UIViewController = ComposeUIViewController(configure = {enforceStrictPlistSanityCheck = false}) { App() }
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ composeAuth = "2.3.1"
composeAuthUi = "2.3.1"
koinAnnotations = "1.3.1"
kotlin = "2.0.0"
compose = "1.6.11"
compose = "1.7.0"
agp = "8.2.2"
androidx-activityCompose = "1.9.3"
androidx-uiTest = "1.7.4"
Expand Down
2 changes: 2 additions & 0 deletions iosApp/iosApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@
"$(SRCROOT)/../composeApp/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = iosApp/Info.plist;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -330,6 +331,7 @@
"$(SRCROOT)/../composeApp/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)",
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = iosApp/Info.plist;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
5 changes: 5 additions & 0 deletions iosApp/iosApp/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>

0 comments on commit 9b4af59

Please sign in to comment.