Commit b2974441 authored by Amit Kumar's avatar Amit Kumar 💻
Browse files

Apply spotless explictly to projects cause we have system source code which may cause error

parent 3079a3e2
Pipeline #125105 failed with stage
in 3 minutes and 1 second
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply from: '../spotless/spotless.gradle'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
......
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply from: '../spotless/spotless.gradle'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
......
......@@ -5,6 +5,7 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-android-extensions'
apply from: '../spotless/spotless.gradle'
// Manifest version information!
def versionMajor = 1
......
......@@ -15,6 +15,8 @@
*/
package foundation.e.blisslauncher.quickstep;
import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SYSTEM_WINDOWS_REASON_RECENTS;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
......@@ -32,8 +34,6 @@ import foundation.e.blisslauncher.quickstep.ActivityControlHelper.ActivityInitLi
import foundation.e.blisslauncher.quickstep.views.RecentsView;
import foundation.e.blisslauncher.quickstep.views.TaskView;
import static com.android.systemui.shared.system.ActivityManagerWrapper.CLOSE_SYSTEM_WINDOWS_REASON_RECENTS;
/**
* Helper class to handle various atomic commands for switching between Overview.
*/
......
......@@ -44,23 +44,3 @@ allprojects {
}
}
}
subprojects {
apply plugin: 'com.diffplug.spotless'
spotless {
java {
target '**/*.java'
importOrder() // standard import order
removeUnusedImports() // removes any unused imports
}
kotlin {
target "**/*.kt"
ktlint()
}
kotlinGradle {
// same as kotlin, but for .gradle.kts files (defaults to '*.gradle.kts')
target '*.gradle.kts', 'additionalScripts/*.gradle.kts'
ktlint()
}
}
}
......@@ -4,6 +4,7 @@ import foundation.e.blisslauncher.buildsrc.Versions
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply from: '../spotless/spotless.gradle'
android {
compileSdkVersion Versions.compile_sdk
......
......@@ -4,6 +4,7 @@ import foundation.e.blisslauncher.buildsrc.Versions
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply from: '../spotless/spotless.gradle'
android {
compileSdkVersion Versions.compile_sdk
......
apply plugin: 'com.diffplug.spotless'
spotless {
java {
target '**/*.java'
importOrder() // standard import order
removeUnusedImports() // removes any unused imports
}
kotlin {
target "**/*.kt"
ktlint()
}
kotlinGradle {
// same as kotlin, but for .gradle.kts files (defaults to '*.gradle.kts')
target '*.gradle.kts', 'additionalScripts/*.gradle.kts'
ktlint()
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment