ktlint
compose-samples
Our great sponsors
ktlint | compose-samples | |
---|---|---|
7 | 101 | |
5,994 | 18,713 | |
1.0% | 1.8% | |
9.6 | 9.0 | |
2 days ago | 3 days ago | |
Kotlin | Kotlin | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ktlint
-
Setting up linting/formatting for an Android project
In my experience, I have faced these issues while trying to keep the code style consistent across the team - 1. ktlint and "Reformat Code" in Android Studio produce different outputs. This causes issues as most developers find it easier to use "Reformat Code" in AS but if you have a ktlint check on CI, the checks sometimes fail. 2. Different AS versions produce different `codeStyles.xml` file. Sometimes, on updating AS, it automatically adds new rules to the `codeStyles.xml` file. These rules might not be compatible with ktlint and might only work on specific AS versions.
-
Modern Android Development in 2023
Ktlint
-
Three features in Android Studio that maybe you've missed
Not even an Android Studio-specific feature, but rather a feature of the underlying IntelliJ. Just select Code > Analyze code > Silent code cleanup and your entire project will be cleaned up using the default linter (this can be combined awesomely with Ktlint).
-
Ask HN: What is a modern Java environment?
Ktlint + Detekt: Kotlin linting/static analysis (https://ktlint.github.io, https://detekt.github.io/detekt)
-
Adding Klint to my Android apps
Refs. Klint Page Klint Github
-
Supercharge your Kotlin Project
Linting is the process of analyzing code for potential errors and one of the ways we can do that in Kotlin is using Ktlint. As per the documentation:
compose-samples
-
Jetpack Compose Mastery Part 2: Advanced Tools and Resources for Mastering Compose UI
The official documentation provides a comprehensive guide on the basics of Jetpack Compose, components, layouts, theming, and more advanced topics.
- Jetpack Compose UI App Development Toolkit
-
How the new Threads app is made
Apparently Jetpack Compose is an Android copy of SwiftUI?
https://developer.android.com/jetpack/compose
Only two HN threads with comments: https://hn.algolia.com/?q=jetpack+compose
-
Adaptive layouts in jetpack compose
If you want to take a look at code, we have the Jetnews sample app that support different screen sizes. And Jetcaster also implements features such as table top mode.
-
Customizable calendar for Jetpack Compose with option to add app specific dates etc.
check this out : https://github.com/android/compose-samples/tree/main/Crane
-
Seeking Guidance: How should I learn Android Dev
So I would say that instead if learning everything from Android SDK, you should just set a goal to create some app. Learn about Activities, their lifecycle, layouts (or Compose if you want to be more up to date). Try to implement your app based on this. Then improve your app using Fragments and their lifecycle. If you truly want to understand Views, which are essentially the building blocks of Android UI then I would recommend implementing your own custom View, which will have completely custom look - it is cool thing to try and you will learn how it all works inside.
-
New App structure/template to follow?
The compose samples by Google are a good reference to look into: https://github.com/android/compose-samples
-
Let's create notification reminder app in Jetpack Compose.
Basic understanding of Jetpack Compose.
-
Architecture Help
The compose-samples repo has a comprehensive list of samples ranging from low to complex projects which might be worth a look.
-
Android development beginner.
For instance, there is a link to this repository, that contains all sorts of samples, that are up to date and ready to use. That's cutting edge, which is a recommended start.
What are some alternatives?
detekt - Static code analysis for Kotlin
MPAndroidChart - A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
sonarlint-intellij - SonarLint for IntelliJ
filament - Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
ktfmt-gradle - A Gradle plugin to apply ktfmt to your builds, and reformat you Kotlin source code like a glimpse 🧹🐘
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
dokka - API documentation engine for Kotlin
MVICore - MVI framework with events, time-travel, and more
ktlint-gradle - A ktlint gradle plugin
android-mvvm-dagger-rxjava-retrofit - A sample project which demostrate use of MVVM and Dagger 2 with RxJava2 along with Retrofit
CrunchyCalendar — awesome calendar widget for android apps - A beautiful material calendar with endless scroll, range selection and a lot more!
Decompose - Kotlin Multiplatform lifecycle-aware business logic components (aka BLoCs) with routing (navigation) and pluggable UI (Jetpack Compose, SwiftUI, JS React, etc.)