markusfisch / ShaderEditor

Android app to create GLSL shaders and use them as live wallpaper
https://play.google.com/store/apps/details?id=de.markusfisch.android.shadereditor
MIT License
924 stars 137 forks source link

Refactor Gradle Build Files to Kotlin DSL #197

Closed AntonPieper closed 3 months ago

AntonPieper commented 3 months ago

This pull request refactors the Gradle build files from Groovy to Kotlin DSL, aligning with modern Android build practices.

Key Benefits

  1. Readability and Maintainability

    • Kotlin DSL’s static typing provides better compile-time checks and reduces errors.
    • The syntax is cleaner and more concise, making the build scripts easier to manage.
  2. Improved IDE Support

    • Enhanced features like auto-completion and error checking improve the development experience in IntelliJ IDEA and Android Studio.
  3. Future-Proofing

    • Adopting Kotlin DSL aligns with the latest development practices, ensuring long-term compatibility with new tools and features.
markusfisch commented 3 months ago

Well, it feels a little weird to use Kotlin just for the build script, and generally I'm less enthusiastic about the possible benefits, but here you go 😉