Skip to content

Commit c1f40d6

Browse files
authored
Merge pull request #29 from GetStream/spotless/licenses
Add a license format for XML
2 parents b010c66 + e8dd0ca commit c1f40d6

File tree

27 files changed

+293
-20
lines changed

27 files changed

+293
-20
lines changed

app/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ dependencies {
4242
implementation project(":avatarview-stream-integration")
4343
}
4444

45-
apply from: "$rootDir/spotless.gradle"

app/src/main/AndroidManifest.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
318
package="io.getstream.avatarviewdemo">
419

app/src/main/res/drawable-v24/ic_launcher_foreground.xml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
117
<vector xmlns:android="http://schemas.android.com/apk/res/android"
218
xmlns:aapt="http://schemas.android.com/aapt"
319
android:width="108dp"

app/src/main/res/drawable/ic_launcher_background.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<vector xmlns:android="http://schemas.android.com/apk/res/android"
318
android:width="108dp"
419
android:height="108dp"

app/src/main/res/layout/activity_main.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<layout xmlns:android="http://schemas.android.com/apk/res/android"
318
xmlns:app="http://schemas.android.com/apk/res-auto"
419
xmlns:tools="http://schemas.android.com/tools">

app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
318
<background android:drawable="@drawable/ic_launcher_background" />
419
<foreground android:drawable="@drawable/ic_launcher_foreground" />

app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
318
<background android:drawable="@drawable/ic_launcher_background" />
419
<foreground android:drawable="@drawable/ic_launcher_foreground" />

app/src/main/res/values-night/themes.xml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
117
<resources xmlns:tools="http://schemas.android.com/tools">
218
<!-- Base application theme. -->
319
<style name="Theme.AvatarViewDemo" parent="Theme.MaterialComponents.DayNight.DarkActionBar">

app/src/main/res/values/colors.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<resources>
318
<color name="background">#212121</color>
419
<color name="blue_200">#005FFF</color>

app/src/main/res/values/strings.xml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
117
<resources>
218
<string name="app_name">AvatarView</string>
319
</resources>

app/src/main/res/values/themes.xml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
117
<resources xmlns:tools="http://schemas.android.com/tools">
218
<!-- Base application theme. -->
319
<style name="Theme.AvatarViewDemo" parent="Theme.MaterialComponents.DayNight.DarkActionBar">

avatarview-coil/build.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ android {
2727
targetSdkVersion Configuration.targetSdk
2828
}
2929

30+
buildFeatures {
31+
buildConfig false
32+
}
33+
3034
compileOptions {
3135
sourceCompatibility JavaVersion.VERSION_1_8
3236
targetCompatibility JavaVersion.VERSION_1_8
@@ -61,5 +65,3 @@ dependencies {
6165
implementation Dependencies.coroutines
6266
implementation Dependencies.okhttp
6367
}
64-
65-
apply from: "$rootDir/spotless.gradle"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<manifest package="io.getstream.avatarview.coil" />

avatarview-glide/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ dependencies {
6262
implementation Dependencies.coroutines
6363
}
6464

65-
apply from: "$rootDir/spotless.gradle"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<manifest package="io.getstream.avatarview.glide" />

avatarview-stream-integration/build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ android {
2929

3030
resourcePrefix 'avatarview'
3131

32+
buildFeatures {
33+
buildConfig false
34+
}
35+
3236
compileOptions {
3337
sourceCompatibility JavaVersion.VERSION_1_8
3438
targetCompatibility JavaVersion.VERSION_1_8
@@ -61,4 +65,3 @@ dependencies {
6165
implementation Dependencies.androidxAppcompat
6266
}
6367

64-
apply from: "$rootDir/spotless.gradle"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<manifest package="io.getstream.avatarview.stream.integration" />

avatarview-stream-integration/src/main/res/values/colors.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<resources>
318
<color name="avatarView_gradient_orange">#FF8A65</color>
419
<color name="avatarView_gradient_green">#81C784</color>

avatarview/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ dependencies {
6262
implementation Dependencies.coroutines
6363
}
6464

65-
apply from: "$rootDir/spotless.gradle"
+15
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<manifest package="io.getstream.avatarview" />

avatarview/src/main/res/values/attrs_avatar_view.xml

+15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2022 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
217
<resources>
318
<declare-styleable name="AvatarView">
419
<!-- AvatarView border color -->

build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ tasks.withType(org.jetbrains.dokka.gradle.DokkaMultiModuleTask).configureEach {
2424
failOnWarning = true
2525
}
2626

27+
subprojects {
28+
apply from: "$rootDir/spotless/spotless.gradle"
29+
}
30+
2731
task clean(type: Delete) {
2832
delete rootProject.buildDir
2933
}
3034

31-
apply from: "${rootDir}/scripts/publish-root.gradle"
35+
apply from: "${rootDir}/scripts/publish-root.gradle"

buildSrc/src/main/kotlin/io/getstream/avatarview/Dependencies.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package io.getstream.avatarview
22

33
object Versions {
4-
internal const val ANDROID_GRADLE_PLUGIN = "7.1.3"
5-
internal const val ANDROID_GRADLE_SPOTLESS = "6.3.0"
4+
internal const val ANDROID_GRADLE_PLUGIN = "7.2.0"
5+
internal const val ANDROID_GRADLE_SPOTLESS = "6.6.1"
66
internal const val GRADLE_NEXUS_PUBLISH_PLUGIN = "1.1.0"
77
internal const val KOTLIN = "1.6.10"
88
internal const val KOTLIN_GRADLE_DOKKA = "1.6.10"

0 commit comments

Comments
 (0)