mirror of
https://github.com/yogeshpaliyal/KeyPass.git
synced 2026-01-04 09:39:56 -06:00
68 lines
1.7 KiB
Groovy
68 lines
1.7 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
buildscript {
|
|
|
|
ext{
|
|
kotlin_version = "1.5.31"
|
|
lifecycle_version = "2.3.1"
|
|
room_version = "2.3.0"
|
|
navigation_version = '2.3.5'
|
|
ext.hilt_version = '2.38.1'
|
|
|
|
}
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.0.2'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath 'com.google.gms:google-services:4.3.10'
|
|
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
|
|
|
|
|
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
plugins {
|
|
id 'com.diffplug.spotless' version '5.10.2'
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
|
|
maven { url "https://jitpack.io" }
|
|
}
|
|
}
|
|
|
|
/*task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}*/
|
|
|
|
|
|
|
|
subprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
|
|
apply plugin: 'com.diffplug.spotless'
|
|
spotless {
|
|
kotlin {
|
|
target '**/*.kt'
|
|
targetExclude("$buildDir/**/*.kt")
|
|
targetExclude('bin/**/*.kt')
|
|
|
|
java.util.HashMap<String, String> map = new HashMap<>();
|
|
map.put("disabled_rules","no-wildcard-imports")
|
|
ktlint("0.40.0").userData(map)
|
|
// licenseHeaderFile rootProject.file('spotless/copyright.kt')
|
|
}
|
|
}
|
|
} |