Skip to content

Commit ca6b90a

Browse files
committed
📝 removed headers from visualizer helper
1 parent 8652c6a commit ca6b90a

File tree

7 files changed

+21
-114
lines changed

7 files changed

+21
-114
lines changed

build.gradle.kts

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,26 @@ plugins {
2828
allprojects {
2929
apply(plugin = rootProject.libs.plugins.spotless.get().pluginId)
3030
configure<SpotlessExtension> {
31-
kotlin {
32-
ktfmt(libs.versions.ktfmt.get()).kotlinlangStyle()
33-
target("src/**/*.kt")
34-
targetExclude("${layout.buildDirectory}/**/*.kt")
35-
licenseHeaderFile(rootProject.file("spotless/copyright.txt"))
36-
}
37-
kotlinGradle {
38-
ktfmt(libs.versions.ktfmt.get()).kotlinlangStyle()
39-
target("*.kts")
40-
targetExclude("${layout.buildDirectory}/**/*.kts")
41-
licenseHeaderFile(rootProject.file("spotless/copyright.txt"), "(^(?![\\/ ]\\*).*$)")
42-
toggleOffOn()
43-
}
44-
format("xml") {
45-
target("src/**/*.xml")
46-
targetExclude("**/build/", ".idea/")
47-
trimTrailingWhitespace()
48-
endWithNewline()
31+
if (project.path != ":visualizer-helper") {
32+
kotlin {
33+
ktfmt(libs.versions.ktfmt.get()).kotlinlangStyle()
34+
target("src/**/*.kt")
35+
targetExclude("${layout.buildDirectory}/**/*.kt")
36+
licenseHeaderFile(rootProject.file("spotless/copyright.txt"))
37+
}
38+
kotlinGradle {
39+
ktfmt(libs.versions.ktfmt.get()).kotlinlangStyle()
40+
target("*.kts")
41+
targetExclude("${layout.buildDirectory}/**/*.kts")
42+
licenseHeaderFile(rootProject.file("spotless/copyright.txt"), "(^(?![\\/ ]\\*).*$)")
43+
toggleOffOn()
44+
}
45+
format("xml") {
46+
target("src/**/*.xml")
47+
targetExclude("**/build/", ".idea/")
48+
trimTrailingWhitespace()
49+
endWithNewline()
50+
}
4951
}
5052
}
5153
}

visualizer-helper/build.gradle.kts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright (C) 2026 Shubham Gorai
3-
*
4-
* This program is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
*/
171
plugins {
182
alias(libs.plugins.android.library)
193
alias(libs.plugins.jetbrains.kotlin.android)

visualizer-helper/src/androidTest/java/io/gitlab/bpavuk/viz/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright (C) 2026 Shubham Gorai
3-
*
4-
* This program is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
*/
171
package io.gitlab.bpavuk.viz
182

193
import androidx.test.ext.junit.runners.AndroidJUnit4

visualizer-helper/src/main/java/io/gitlab/bpavuk/viz/Constants.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright (C) 2026 Shubham Gorai
3-
*
4-
* This program is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
*/
171
package io.gitlab.bpavuk.viz
182

193
const val SUB_BASS = 80 // Hz

visualizer-helper/src/main/java/io/gitlab/bpavuk/viz/Helpers.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright (C) 2026 Shubham Gorai
3-
*
4-
* This program is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
*/
171
package io.gitlab.bpavuk.viz
182

193
fun VisualizerData.bassBucket(): VisualizerData {

visualizer-helper/src/main/java/io/gitlab/bpavuk/viz/rememberVisualizerState.kt

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
/*
2-
* Copyright (C) 2026 Shubham Gorai
3-
*
4-
* This program is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
*/
1+
172
package io.gitlab.bpavuk.viz
183

194
import android.media.audiofx.Visualizer

visualizer-helper/src/test/java/io/gitlab/bpavuk/viz/ExampleUnitTest.kt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
/*
2-
* Copyright (C) 2026 Shubham Gorai
3-
*
4-
* This program is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* This program is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU General Public License
15-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
16-
*/
171
package io.gitlab.bpavuk.viz
182

193
import org.junit.Assert.assertEquals

0 commit comments

Comments
 (0)