Skip to content

Commit

Permalink
Enforce Lint findings (ChuckerTeam#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico authored Apr 4, 2020
1 parent 3a1c8ae commit 41f3c9d
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 12 deletions.
5 changes: 5 additions & 0 deletions library-no-op/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ android {
defaultConfig {
minSdkVersion rootProject.minSdkVersion
}

lintOptions {
warningsAsErrors true
abortOnError true
}
}

task sourcesJar(type: Jar) {
Expand Down
5 changes: 5 additions & 0 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ android {
viewBinding {
enabled = true
}

lintOptions {
warningsAsErrors true
abortOnError true
}
}

dokka {
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/res/menu/chucker_throwable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
android:id="@+id/share_text"
android:icon="@drawable/chucker_ic_share_white"
android:title="@string/chucker_share"
app:showAsAction="always" />
app:showAsAction="ifRoom" />
</menu>
2 changes: 1 addition & 1 deletion library/src/main/res/menu/chucker_throwables_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<item android:title="@string/chucker_clear"
android:id="@+id/clear"
android:icon="@drawable/chucker_ic_delete_white"
app:showAsAction="always" />
app:showAsAction="ifRoom" />
</menu>
6 changes: 3 additions & 3 deletions library/src/main/res/menu/chucker_transaction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
android:title="@string/chucker_encode_url"
android:id="@+id/encode_url"
android:visible="false"
app:showAsAction="always">
app:showAsAction="ifRoom">
</item>
<item
android:icon="@drawable/chucker_ic_share_white"
android:title="@string/chucker_share"
app:showAsAction="always">
app:showAsAction="ifRoom">
<menu>
<group>
<item
Expand All @@ -35,6 +35,6 @@
android:title="@string/chucker_save"
android:id="@+id/save_body"
android:visible="false"
app:showAsAction="always">
app:showAsAction="ifRoom">
</item>
</menu>
2 changes: 1 addition & 1 deletion library/src/main/res/menu/chucker_transactions_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<item android:title="@string/chucker_clear"
android:id="@+id/clear"
android:icon="@drawable/chucker_ic_delete_white"
app:showAsAction="always" />
app:showAsAction="ifRoom" />
</menu>
5 changes: 5 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ android {
storePassword 'android'
}
}

lintOptions {
warningsAsErrors true
abortOnError true
}
}

dependencies {
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
Expand Down
12 changes: 6 additions & 6 deletions sample/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<!--
Palette from
https://material.io/tools/color/#!/?view.left=0&view.right=0&primary.color=01579B&secondary.color=00E676
-->
<color name="primary_color">#01579b</color>
<color name="primary_light_color">#4f83cc</color>
<color name="primary_light_color" tools:ignore="UnusedResources">#4f83cc</color>
<color name="primary_dark_color">#002f6c</color>
<color name="secondary_color">#00e676</color>
<color name="secondary_light_color">#66ffa6</color>
<color name="secondary_dark_color">#00b248</color>
<color name="primary_text_color">#ffffff</color>
<color name="secondary_text_color">#000000</color>
<color name="secondary_light_color" tools:ignore="UnusedResources">#66ffa6</color>
<color name="secondary_dark_color" tools:ignore="UnusedResources">#00b248</color>
<color name="primary_text_color" tools:ignore="UnusedResources">#ffffff</color>
<color name="secondary_text_color" tools:ignore="UnusedResources">#000000</color>
</resources>

0 comments on commit 41f3c9d

Please sign in to comment.