Skip to content

Commit

Permalink
Fix ios kmp resource issue
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Aug 20, 2024
1 parent 27442fd commit 51c71aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app-ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/zsh;
shellScript = "cd ${SRCROOT}/../..\n./gradlew assembleSharedXCFramework --no-configuration-cache\n";
shellScript = "cd ${SRCROOT}/../..\n./gradlew embedAndSignAppleFrameworkForXcode --no-configuration-cache\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -315,6 +315,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"Preview Content\"";
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "DroidKaigi2024App-Info.plist";
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
Expand Down Expand Up @@ -354,6 +355,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = "\"Preview Content\"";
ENABLE_PREVIEWS = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = "DroidKaigi2024App-Info.plist";
"INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package io.github.droidkaigi.confsched.ui

import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.Density
import io.github.droidkaigi.confsched.compose.ComposeEffectErrorHandler
import io.github.droidkaigi.confsched.compose.LocalComposeEffectErrorHandler
import io.github.droidkaigi.confsched.compose.compositionLocalProviderWithReturnValue
Expand All @@ -11,7 +14,10 @@ fun <T> providePresenterDefaults(
userMessageStateHolder: UserMessageStateHolder = rememberUserMessageStateHolder(),
block: @Composable (UserMessageStateHolder) -> T,
): T {
val composeResourceErrorMessages = composeResourceErrorMessages()
var composeResourceErrorMessages: List<ComposeResourceErrorMessage> = listOf()
CompositionLocalProvider(LocalDensity provides Density(1F)) {
composeResourceErrorMessages = composeResourceErrorMessages()
}
val handler = remember(userMessageStateHolder) {
object : ComposeEffectErrorHandler {
override suspend fun emit(throwable: Throwable) {
Expand Down

0 comments on commit 51c71aa

Please sign in to comment.