File tree Expand file tree Collapse file tree 7 files changed +21
-114
lines changed
androidTest/java/io/gitlab/bpavuk/viz
main/java/io/gitlab/bpavuk/viz
test/java/io/gitlab/bpavuk/viz Expand file tree Collapse file tree 7 files changed +21
-114
lines changed Original file line number Diff line number Diff line change @@ -28,24 +28,26 @@ plugins {
2828allprojects {
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}
Original file line number Diff line number Diff line change 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- */
171plugins {
182 alias(libs.plugins.android.library)
193 alias(libs.plugins.jetbrains.kotlin.android)
Original file line number Diff line number Diff line change 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- */
171package io.gitlab.bpavuk.viz
182
193import androidx.test.ext.junit.runners.AndroidJUnit4
Original file line number Diff line number Diff line change 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- */
171package io.gitlab.bpavuk.viz
182
193const val SUB_BASS = 80 // Hz
Original file line number Diff line number Diff line change 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- */
171package io.gitlab.bpavuk.viz
182
193fun VisualizerData.bassBucket (): VisualizerData {
Original file line number Diff line number Diff line change 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+
172package io.gitlab.bpavuk.viz
183
194import android.media.audiofx.Visualizer
Original file line number Diff line number Diff line change 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- */
171package io.gitlab.bpavuk.viz
182
193import org.junit.Assert.assertEquals
You can’t perform that action at this time.
0 commit comments