Skip to content

Commit

Permalink
Remove some unused resources (and increase severity of check)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbakker committed Sep 21, 2024
1 parent baa8068 commit 257a40e
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 64 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ android {
lint {
abortOnError true
checkDependencies true
disable 'MissingQuantity', 'MissingTranslation'
}
buildFeatures {
buildConfig true
Expand Down
7 changes: 6 additions & 1 deletion app/lint.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="MissingTranslation" severity="ignore" />
<issue id="MissingQuantity" severity="ignore" />
<issue id="InvalidPackage">
<ignore regexp="X509LDAPCertStoreSpi" />
</issue>
<issue id="NotificationPermission">
<ignore regexp="com.bumptech.glide.request.target.NotificationTarget" />
</issue>
<issue id="ResourceType" severity="Warning" />
<issue id="UnusedResources" severity="error">
<ignore path="res/raw/aboutlibraries.json" />
<ignore regexp="res/mipmap.*/ic_launcher_debug.*.png" />
</issue>
</lint>
5 changes: 0 additions & 5 deletions app/src/main/res/color/dialog_button_color.xml

This file was deleted.

23 changes: 0 additions & 23 deletions app/src/main/res/color/dialog_button_ripple_color.xml

This file was deleted.

10 changes: 0 additions & 10 deletions app/src/main/res/drawable/ic_outline_filter_list_24.xml

This file was deleted.

6 changes: 0 additions & 6 deletions app/src/main/res/drawable/rounded_background.xml

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/res/values-w600dp/dimens.xml

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/main/res/values-w60dp/dimens.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="UnusedResources">
<color name="md_theme_light_primary">#2b5bb5</color>
<color name="md_theme_light_onPrimary">#ffffff</color>
<color name="md_theme_light_primaryContainer">#d9e2ff</color>
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="fab_margin">16dp</dimen>
<dimen name="list_item_height">48dp</dimen>
<dimen name="auth_leader_text_size">46sp</dimen>
</resources>
12 changes: 6 additions & 6 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name" translatable="false">Aegis</string>
<string name="app_name_full" translatable="false">Aegis Authenticator</string>
<string name="org_name_full" translatable="false">Beem Development</string>
Expand Down Expand Up @@ -555,23 +555,23 @@
<string name="pref_account_name_position_end">Next to the issuer</string>
<string name="pref_account_name_position_below">Below the issuer</string>

<plurals name="time_elapsed_seconds">
<plurals name="time_elapsed_seconds" tools:ignore="UnusedResources">
<item quantity="one">%d second ago</item>
<item quantity="other">%d seconds ago</item>
</plurals>
<plurals name="time_elapsed_minutes">
<plurals name="time_elapsed_minutes" tools:ignore="UnusedResources">
<item quantity="one">%d minute ago</item>
<item quantity="other">%d minutes ago</item>
</plurals>
<plurals name="time_elapsed_hours">
<plurals name="time_elapsed_hours" tools:ignore="UnusedResources">
<item quantity="one">%d hour ago</item>
<item quantity="other">%d hours ago</item>
</plurals>
<plurals name="time_elapsed_days">
<plurals name="time_elapsed_days" tools:ignore="UnusedResources">
<item quantity="one">%d day ago</item>
<item quantity="other">%d days ago</item>
</plurals>
<plurals name="time_elapsed_years">
<plurals name="time_elapsed_years" tools:ignore="UnusedResources">
<item quantity="one">%d year ago</item>
<item quantity="other">%d years ago</item>
</plurals>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@

<style name="ThemeOverlay.Aegis.AlertDialog.Warning">
<item name="android:alertDialogIcon">@drawable/ic_outline_warning_24</item>
<item name="materialAlertDialogTitleIconStyle">@style/Widget.Aegis.AlertDialog.Icon.Error</item>
<item name="materialAlertDialogTitleIconStyle">@style/Widget.Aegis.AlertDialog.Icon.Warning</item>
</style>

<style name="Widget.Aegis.AlertDialog.Icon.Error" parent="@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked">
Expand Down

0 comments on commit 257a40e

Please sign in to comment.