Skip to content

Commit

Permalink
Fix moar build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Feb 15, 2024
1 parent 9260b6e commit ce26acd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 122 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {
}

extensions.configure<LibraryExtension> {
defaultConfig {
resourcePrefix = "_telephoto"
}
configureAndroid(this)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ internal fun Project.configureAndroid(commonExtension: CommonExtension <*, *, *,
compileSdk = libs.findVersion("compileSdk").get().toString().toInt()
defaultConfig {
minSdk = libs.findVersion("minSdk").get().toString().toInt()
resourcePrefix = "_telephoto"
}
lint {
abortOnError = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import me.saket.telephoto.sample.R

@Composable
@OptIn(ExperimentalMaterial3Api::class)
fun GalleryScreen(
internal fun GalleryScreen(
key: GalleryScreenKey,
navigator: Navigator,
) {
Expand All @@ -72,8 +72,8 @@ fun GalleryScreen(
@Composable
private fun AlbumGrid(
album: MediaAlbum,
modifier: Modifier = Modifier,
navigator: Navigator
navigator: Navigator,
modifier: Modifier = Modifier
) {
LazyVerticalGrid(
modifier = modifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import me.saket.telephoto.sample.viewer.MediaViewerScreen
import com.slack.circuit.runtime.Screen as CircuitScreenKey

@Composable
fun Navigation(
internal fun Navigation(
initialScreenKey: ScreenKey,
) {
val backstack = rememberSaveableBackStack { push(initialScreenKey) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import me.saket.telephoto.zoomable.rememberZoomableState

@Composable
@OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class)
fun MediaViewerScreen(key: MediaViewerScreenKey) {
internal fun MediaViewerScreen(key: MediaViewerScreenKey) {
Scaffold(
contentWindowInsets = WindowInsets.none,
contentColor = Color.White,
Expand Down Expand Up @@ -90,8 +90,8 @@ private fun CloseNavIconButton() {
@Composable
private fun MediaPage(
model: MediaItem,
modifier: Modifier = Modifier,
isActivePage: Boolean,
modifier: Modifier = Modifier,
) {
val zoomableState = rememberZoomableState()
val flickState = rememberFlickToDismissState(dismissThresholdRatio = 0.05f)
Expand Down
108 changes: 0 additions & 108 deletions sample/src/main/res/drawable/emoji.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ class CoerceInsideTest {
).isEqualTo(Offset(x = 0f, y = 0f))
}

@Test fun `vertical movement when zoomed content is bigger than layout size in height`() {
val layoutSize = Rect(Offset.Zero, Size(1000f, 2000f))
val contentSize = Size(1000f, 3000f)

// todo.
}

@Test fun `2d movement when zoomed content is bigger than layout size in both width and height`() {
val layoutSize = Size(1000f, 2000f)
val contentSize = Size(2000f, 3000f)
Expand Down

0 comments on commit ce26acd

Please sign in to comment.