hands_on_kotlin
detekt
Our great sponsors
hands_on_kotlin | detekt | |
---|---|---|
5 | 5 | |
48 | 6,020 | |
- | 1.1% | |
0.0 | 9.8 | |
almost 2 years ago | 7 days ago | |
Kotlin | Kotlin | |
- | 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.
hands_on_kotlin
-
Supercharge your Kotlin Project
Finally, we apply this configuration to all our subprojects by adding the below inside our project-level build.gradle
-
Google SignIn Compose
We can now access the methods for signing in with Google. Let’s create a class (GoogleApiContract) that is responsible for calling the google APIs
-
Testing in Compose
In our previous articles, we managed to create our TodoApp. Now, let's write some tests.
-
Using Room in Jetpack Compose
TodoItem (Our entity class)
-
Using State in Jetpack Compose
Source code.
detekt
-
HRV-Mart
In protection rules, I added build workflow in Require status checks to pass before merging. This is to ensure that before merging code in master branch, build should run successfully. I also added Jacoco Code Coverage to make sure that enough unit tests are available in project and Detekt to make sure that code in project is readable. I added them in build configuration. Even if one of them gives error, build will fail. Whenever, someone push code in pull request, build action will run and check if build is running successfully or not.
-
Modern Android Development in 2023
Detekt
- Change aware code analysis tools?
-
Supercharge your Kotlin Project
ext { // https://github.com/detekt/detekt/releases detektVersion = "1.17.0" } dependencies { classpath 'com.android.tools.build:gradle:7.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32" ## DETEKT DEPENDENCY classpath "io.gitlab.arturbosch.detekt:detekt-gradle- plugin:$detektVersion" }
-
Android Style Guide
I haven't looked through it completely, but have you considered adhering to detekt and ktlint as well?
What are some alternatives?
android-developer-roadmap - 🗺 The Android Developer Roadmap offers comprehensive learning paths to help you understand Android ecosystems.
ktlint - An anti-bikeshedding Kotlin linter with built-in formatter
ktlint-gradle - A ktlint gradle plugin
sonarlint-intellij - SonarLint for IntelliJ
ktfmt-gradle - A Gradle plugin to apply ktfmt to your builds, and reformat you Kotlin source code like a glimpse 🧹🐘
nowinandroid - A fully functional Android app built entirely with Kotlin and Jetpack Compose
dokka - API documentation engine for Kotlin
keplin - Secure Kotlin scripting and binary lambda-scripts
KotlinW - A small wrapper for the Kotlin compiler that can be used to execute .kts scripts
jtransc - Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.
kotlin-android-template - Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = ❤️