Skip to content

Commit

Permalink
Remove useless functions in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
darkokoa committed Apr 19, 2024
1 parent 5af942d commit cc6bc62
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,3 @@ class AppActivity : ComponentActivity() {
}
}
}

internal actual fun openUrl(url: String?) {
val uri = url?.let { Uri.parse(it) } ?: return
val intent = Intent().apply {
action = Intent.ACTION_VIEW
data = uri
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
}
AndroidApp.INSTANCE.startActivity(intent)
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,3 @@ internal fun App() = AppTheme {
}
}
}

internal expect fun openUrl(url: String?)
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ internal fun AppTheme(
LocalThemeIsDark provides isDarkState
) {
val isDark by isDarkState
SystemAppearance(!isDark)
MaterialTheme(
colorScheme = if (isDark) DarkColorScheme else LightColorScheme,
typography = AppTypography,
Expand All @@ -71,6 +70,3 @@ internal fun AppTheme(
)
}
}

@Composable
internal expect fun SystemAppearance(isDark: Boolean)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit cc6bc62

Please sign in to comment.