From ba83266c30f1ec861d27007f631e3d91a622d273 Mon Sep 17 00:00:00 2001 From: kari-ts Date: Wed, 20 Mar 2024 12:19:12 -0700 Subject: [PATCH] android: add ktfmt to gradle Updates tailscale/corp#18202 Signed-off-by: kari-ts --- android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 5743d64..0240870 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,11 +5,15 @@ buildscript { repositories { google() mavenCentral() + maven { + url = uri("https://plugins.gradle.org/m2/") + } } dependencies { classpath "com.android.tools.build:gradle:8.1.4" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version" + classpath("com.ncorti.ktfmt.gradle:plugin:0.17.0") } } @@ -24,6 +28,7 @@ repositories { apply plugin: 'kotlin-android' apply plugin: 'com.android.application' apply plugin: 'org.jetbrains.kotlin.plugin.serialization' +apply plugin: 'com.ncorti.ktfmt.gradle' android { ndkVersion "23.1.7779620"