feat(build): add copyright license headers to XML files

This commit is contained in:
Harsh Shandilya 2023-07-06 01:43:47 +05:30
parent 1221992d26
commit 9a5a417418
No known key found for this signature in database
14 changed files with 83 additions and 12 deletions

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<resources> <resources>
<string name="app_name">Claw β</string> <string name="app_name">Claw β</string>
</resources> </resources>

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"> xmlns:tools="http://schemas.android.com/tools">

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <!--
~ Copyright © 2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/> <background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<resources> <resources>
<bool name="use_light_status_bar">false</bool> <bool name="use_light_status_bar">false</bool>
</resources> </resources>

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<resources> <resources>
<bool name="use_light_status_bar">true</bool> <bool name="use_light_status_bar">true</bool>
</resources> </resources>

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<resources> <resources>
<string name="app_name">Claw</string> <string name="app_name">Claw</string>
</resources> </resources>

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<resources> <resources>
<style name="Theme.Claw.SplashScreen" parent="Theme.SplashScreen"> <style name="Theme.Claw.SplashScreen" parent="Theme.SplashScreen">

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <!--
~ Copyright © 2022-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<data-extraction-rules> <data-extraction-rules>
<cloud-backup> <cloud-backup>
<include <include

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <!--
~ Copyright © 2022-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<full-backup-content> <full-backup-content>
<include <include
domain="database" domain="database"

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8"?> <!--
~ Copyright © 2022-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<queries> <queries>
<package android:name="dev.msfjarvis.claw.android" /> <package android:name="dev.msfjarvis.claw.android" />

View File

@ -37,10 +37,14 @@ class SpotlessPlugin : Plugin<Project> {
} }
format("xml") { format("xml") {
target("**/*.xml") target("**/*.xml")
targetExclude("**/build/", ".idea/") targetExclude("**/build/", ".idea/", "/spotless/", "**/lint-baseline.xml")
trimTrailingWhitespace() trimTrailingWhitespace()
indentWithSpaces() indentWithSpaces()
endWithNewline() endWithNewline()
licenseHeaderFile(
project.file("spotless/license.xml"),
"<manifest|<resources|<full-backup-content|<data-extraction-rules|<adaptive-icon"
)
} }
} }
} }

View File

@ -1,4 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?> <!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />

View File

@ -1 +1,7 @@
<!--
~ Copyright © 2021-2023 Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->
<manifest /> <manifest />

6
spotless/license.xml Normal file
View File

@ -0,0 +1,6 @@
<!--
~ Copyright © $YEAR Harsh Shandilya.
~ Use of this source code is governed by an MIT-style
~ license that can be found in the LICENSE file or at
~ https://opensource.org/licenses/MIT.
-->