Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate project to Jetpack Compose #27

Merged
merged 9 commits into from
Nov 28, 2021
Merged

Conversation

haroldadmin
Copy link
Owner

@haroldadmin haroldadmin commented Nov 27, 2021

This PR migrates WhatTheStack to use Jetpack Compose, Android's new declarative UI toolkit.

  • Migrate the library module to Compose
  • Migrate the sample app to Compose
  • Use accompanist SystemUI Controller and Insets module to handle immersive mode

I've maintained feature parity with the existing stable version of the library, but will
release this as a new major release after it's been tested through a few pre-release builds.

@haroldadmin haroldadmin added the enhancement New feature or request label Nov 27, 2021
Copy link
Contributor

@msfjarvis msfjarvis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work! I've left some minor cleanup related comments but none are a blocker.

what-the-stack/build.gradle Outdated Show resolved Hide resolved
gradle/libs.versions.toml Outdated Show resolved Hide resolved
import androidx.compose.ui.text.style.TextAlign

@Composable
internal fun OutlinedIconButton(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file name is IconOutlinedButton, you should probably rename it to match the function.

@haroldadmin haroldadmin merged commit 5f9b660 into master Nov 28, 2021
@haroldadmin haroldadmin deleted the features/jetpack-compose branch November 28, 2021 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants