ktlint
timber
ktlint | timber | |
---|---|---|
7 | 9 | |
6,009 | 10,323 | |
0.4% | - | |
9.5 | 4.8 | |
3 days ago | 16 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:
timber
-
Building software for cattle farmers. Part 2. Production errors
To try and fix this problem fast I knew I needed some sort of logging and that is when I discovered Timber and Firebase Crashlynics. I then used THIS video to set both of them up and to create a decent crash reporting system.
-
Modern Android Development in 2023
Timber
-
Do yout stil use Android Timber lib?
Do you still use the Android Timber lib? The only real pro I see is that you don't need to declare the Tag, other than that that "pro" where each call checks if debug or not I wonder why you would like to have that, I mean what I want is all debug-only logs to get stripped out from the code, and instead of calling if(BuildConfig.Debug) on each Timer.xy() call why not create an extra Application class under the debug folder where logs are activated? Just trying to figure out of this lib that actually started like 9 years ago is still needed or not really anymore. https://github.com/JakeWharton/timber
- Advanced custom lint checks
-
Logging best practices?
One of the options could be to setup logging to the file within the app and sync it with backend once necessary or required. This could be achieved by using library, such as Timber and setting up local file. Depending on your constraints, such as file size, you might want to include a file rotation strategy, e.g. start a new file and remove the old one.
-
What are the most common used (3rd party) libraries and frameworks used in Android development?
Timber for logging
-
This video is about Square Logcat open source Library and how it works more efficient than Timber. No hard feelings toward Jake Wharton!
Same as in Timber
- Timber 5.0 is out! Rewritten in Kotlin, binary compatible with 4.x and support for AGP 7.0 lint checks (/r/androiddev)
- Timber 5.0 is out! Rewritten in Kotlin, binary compatible with 4.x and support for AGP 7.0 lint checks
What are some alternatives?
detekt - Static code analysis for Kotlin
puree-android - A log collector for Android
sonarlint-intellij - SonarLint for IntelliJ
ASimpleCache - a simple cache for android and java
ktfmt-gradle - A Gradle plugin to apply ktfmt to your builds, and reformat you Kotlin source code like a glimpse 🧹🐘
RoboGif - A small utility to record Android device screen to a GIF
dokka - API documentation engine for Kotlin
routable-android - Routable, an in-app native URL router, for Android
ktlint-gradle - A ktlint gradle plugin
Byte Buddy - Runtime code generation for the Java virtual machine.
CrunchyCalendar — awesome calendar widget for android apps - A beautiful material calendar with endless scroll, range selection and a lot more!
AndroidProcesses - DEPRECATED