Skip to content

Commit 56e8676

Browse files
committed
Resolve lint issue | Minimize drawables
1 parent c2667c8 commit 56e8676

File tree

8 files changed

+23
-14
lines changed

8 files changed

+23
-14
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ VERSION := $(shell ./get-version.sh)
55
optimize-drawables:
66
@avocado app/src/main/res/drawable/*.xml
77

8-
ktlint:
9-
@ktlint --color
10-
11-
ktlint-format:
12-
@ktlint --format --color
13-
148
clean:
159
@echo "Clean"
1610
@./gradlew clean

app/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ android {
2222
versionCode = project.findProperty("versionCode")!!.toString().toInt()
2323
versionName = version.toString()
2424

25-
// Store bundles as "{versionName}-{buildFlavor}.aab"
25+
// Name created bundles "{versionName}-{buildFlavor}.aab"
2626
setProperty("archivesBaseName", versionName)
2727
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2828
}
@@ -83,9 +83,10 @@ android {
8383
}
8484

8585
hilt {
86-
enableAggregatingTask = true
86+
enableAggregatingTask = true // Fixes warning
8787
}
8888

89+
// Name created apks "{versionName}.apk"
8990
applicationVariants.all {
9091
outputs
9192
.forEach { output ->

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
android:viewportHeight="960">
77
<path
88
android:fillColor="@android:color/white"
9-
android:pathData="M480,760Q546,760 593,713Q640,666 640,600L640,440Q640,374 593,327Q546,280 480,280Q414,280 367,327Q320,374 320,440L320,600Q320,666 367,713Q414,760 480,760ZM400,640L560,640L560,560L400,560L400,640ZM400,480L560,480L560,400L400,400L400,480ZM480,520Q480,520 480,520Q480,520 480,520L480,520Q480,520 480,520Q480,520 480,520Q480,520 480,520Q480,520 480,520L480,520Q480,520 480,520Q480,520 480,520ZM480,840Q415,840 359.5,808Q304,776 272,720L160,720L160,640L244,640Q241,620 240.5,600Q240,580 240,560L160,560L160,480L240,480Q240,460 240.5,440Q241,420 244,400L160,400L160,320L272,320Q286,297 303.5,277Q321,257 344,242L280,176L336,120L422,206Q450,197 479,197Q508,197 536,206L624,120L680,176L614,242Q637,257 655.5,276.5Q674,296 688,320L800,320L800,400L716,400Q719,420 719.5,440Q720,460 720,480L800,480L800,560L720,560Q720,580 719.5,600Q719,620 716,640L800,640L800,720L688,720Q656,776 600.5,808Q545,840 480,840Z" />
9+
android:pathData="M480 760q66 0 113-47t47-113V440q0-66-47-113t-113-47q-66 0-113 47t-47 113v160q0 66 47 113t113 47zm-80-120h160v-80H400v80zm0-160h160v-80H400v80zm80 40zm0 320q-65 0-120.5-32T272 720H160v-80h84q-3-20-3.5-40t-0.5-40h-80v-80h80q0-20 0.5-40t3.5-40h-84v-80h112q14-23 31.5-43t40.5-35l-64-66 56-56 86 86q28-9 57-9t57 9l88-86 56 56-66 66q23 15 41.5 34.5T688 320h112v80h-84q3 20 3.5 40t0.5 40h80v80h-80q0 20-0.5 40t-3.5 40h84v80H688q-32 56-87.5 88T480 840z" />
1010
</vector>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
<path
1313
android:fillColor="#FFFFFF"
1414
android:pathData="M364 311.7c-5.7 1-16.9 4.7-22.5 7.5-23.4 11.8-39.9 33.2-45 58.7-2.7 12.9-1.7 29.7 2.4 42.1 8.8 27 29.8 47.1 57.9 55.3 11 3.2 32.2 3.1 43.5-0.1 22.9-6.5 42.2-22.4 52.7-43.3 10.1-20 11.7-43.7 4.4-65.1-8.9-26.3-32.1-47.2-59.4-53.8-8.1-1.9-26.4-2.6-34-1.3zm32.5 42.8c1.4 1.3 2.5 3.1 2.5 4 0 2.2-27.9 74.8-29.3 76.2-0.7 0.7-2.6 1.5-4.2 1.8-3.6 0.8-7.5-2.3-7.5-5.9 0-4.1 27.8-74.9 30.1-76.9 2.9-2.4 5.5-2.1 8.4 0.8zm-47 12.7c2.5 1.1 4.2 4.8 3.6 7.8-0.1 0.8-4.1 5.4-8.9 10.2l-8.7 8.8 8.8 8.8c6.9 7 8.7 9.3 8.7 11.6 0 4-2.6 6.6-6.5 6.6-2.8 0-4.9-1.6-15.4-12.3-9-9.1-12.1-12.8-12.1-14.7 0-2 3-5.6 12.8-15.3 7.1-7 13.4-12.7 14-12.7 0.6 0 2.3 0.5 3.7 1.2zm76.2 12.1c9.1 9.1 12.3 12.9 12.3 14.7 0 3.6-23.9 28-27.3 28-3.8 0-6.8-3-6.9-6.8-0.1-2.9 1-4.5 8.5-12l8.6-8.7-8.4-8.6c-7-7.1-8.5-9.2-8.5-11.8 0-3.8 3.1-7.1 6.7-7.1 2.1 0 5.3 2.6 15 12.3z" />
15-
</vector>
15+
</vector>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
<path
88
android:fillColor="@android:color/white"
99
android:pathData="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm7 10c0 1.85-0.51 3.65-1.38 5.21l-1.45-1.45c1.29-1.94 1.07-4.58-0.64-6.29-1.95-1.95-5.12-1.95-7.07 0-1.95 1.95-1.95 5.12 0 7.07 1.71 1.71 4.35 1.92 6.29 0.64l1.72 1.72c-1.19 1.42-2.73 2.51-4.47 3.04-4.02-1.25-7-5.42-7-9.94V6.3l7-3.11 7 3.11V11zm-7 4c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z" />
10-
</vector>
10+
</vector>

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ android.useAndroidX=true
77
android.nonTransitiveRClass=true
88
android.uniquePackageNames=true
99
android.nonFinalResIds=false
10-
version=1.4.0
11-
versionCode=44
10+
version=1.4.01
11+
versionCode=45

widget/src/main/kotlin/com/w2sv/widget/model/WidgetTheme.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.w2sv.widget.model
33
import android.annotation.SuppressLint
44
import android.content.Context
55
import androidx.annotation.StyleRes
6+
import androidx.core.content.res.use
67
import com.google.android.material.color.DynamicColors
78
import com.w2sv.androidutils.generic.isNightModeActiveCompat
89
import com.w2sv.widget.R

0 commit comments

Comments
 (0)