From 9e52079a8aa7ee1e6992aaf41f6fbe0231e0cd05 Mon Sep 17 00:00:00 2001 From: Vehovec Date: Thu, 5 Oct 2023 16:27:35 +0200 Subject: [PATCH] chore: add ktlint --- android/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 0e8fa47d5..7ea3b6a7b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,19 +2,25 @@ buildscript { ext { kotlinVersion = '1.7.21' androidToolsVersion = '7.4.2' + ktlintVersion = '11.6.0' } repositories { google() mavenCentral() + maven { + url "https://plugins.gradle.org/m2/" + } } dependencies { classpath "com.android.tools.build:gradle:$androidToolsVersion" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" + classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktlintVersion" } } apply plugin: 'com.android.library' apply plugin: 'kotlin-android' +apply plugin: 'org.jlleitschuh.gradle.ktlint' repositories { mavenLocal()