mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-20 13:59:14 +00:00
Remove some unused resources (and increase severity of check)
This commit is contained in:
parent
baa8068d51
commit
257a40eefa
12 changed files with 14 additions and 64 deletions
|
@ -108,7 +108,6 @@ android {
|
||||||
lint {
|
lint {
|
||||||
abortOnError true
|
abortOnError true
|
||||||
checkDependencies true
|
checkDependencies true
|
||||||
disable 'MissingQuantity', 'MissingTranslation'
|
|
||||||
}
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
buildConfig true
|
buildConfig true
|
||||||
|
|
|
@ -1,10 +1,15 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<lint>
|
<lint>
|
||||||
|
<issue id="MissingTranslation" severity="ignore" />
|
||||||
|
<issue id="MissingQuantity" severity="ignore" />
|
||||||
<issue id="InvalidPackage">
|
<issue id="InvalidPackage">
|
||||||
<ignore regexp="X509LDAPCertStoreSpi" />
|
<ignore regexp="X509LDAPCertStoreSpi" />
|
||||||
</issue>
|
</issue>
|
||||||
<issue id="NotificationPermission">
|
<issue id="NotificationPermission">
|
||||||
<ignore regexp="com.bumptech.glide.request.target.NotificationTarget" />
|
<ignore regexp="com.bumptech.glide.request.target.NotificationTarget" />
|
||||||
</issue>
|
</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>
|
</lint>
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<item android:color="?attr/colorSecondary" android:state_enabled="true"/>
|
|
||||||
<item android:alpha="0.38" android:color="?attr/colorSecondary"/>
|
|
||||||
</selector>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2017 The Android Open Source Project
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
|
|
||||||
<item android:alpha="@dimen/mtrl_low_ripple_pressed_alpha" android:color="?attr/colorSecondary" android:state_pressed="true"/>
|
|
||||||
<item android:alpha="@dimen/mtrl_low_ripple_focused_alpha" android:color="?attr/colorSecondary" android:state_focused="true" android:state_hovered="true"/>
|
|
||||||
<item android:alpha="@dimen/mtrl_low_ripple_focused_alpha" android:color="?attr/colorSecondary" android:state_focused="true"/>
|
|
||||||
<item android:alpha="@dimen/mtrl_low_ripple_hovered_alpha" android:color="?attr/colorSecondary" android:state_hovered="true"/>
|
|
||||||
<item android:alpha="@dimen/mtrl_low_ripple_default_alpha" android:color="?attr/colorSecondary"/>
|
|
||||||
|
|
||||||
</selector>
|
|
|
@ -1,10 +0,0 @@
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="24dp"
|
|
||||||
android:height="24dp"
|
|
||||||
android:tint="?attr/colorControlNormal"
|
|
||||||
android:viewportWidth="960"
|
|
||||||
android:viewportHeight="960">
|
|
||||||
<path
|
|
||||||
android:fillColor="@android:color/white"
|
|
||||||
android:pathData="M400,720L400,640L560,640L560,720L400,720ZM240,520L240,440L720,440L720,520L240,520ZM120,320L120,240L840,240L840,320L120,320Z" />
|
|
||||||
</vector>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<solid android:color="?attr/colorSurfaceContainerLow"/>
|
|
||||||
<corners android:radius="4dp"/>
|
|
||||||
<padding android:left="8dp" android:top="8dp" android:right="8dp" android:bottom="8dp"/>
|
|
||||||
</shape>
|
|
|
@ -1,3 +0,0 @@
|
||||||
<resources>
|
|
||||||
<dimen name="auth_leader_text_size">36sp</dimen>
|
|
||||||
</resources>
|
|
|
@ -1,3 +0,0 @@
|
||||||
<resources>
|
|
||||||
<dimen name="auth_leader_text_size">32sp</dimen>
|
|
||||||
</resources>
|
|
|
@ -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_primary">#2b5bb5</color>
|
||||||
<color name="md_theme_light_onPrimary">#ffffff</color>
|
<color name="md_theme_light_onPrimary">#ffffff</color>
|
||||||
<color name="md_theme_light_primaryContainer">#d9e2ff</color>
|
<color name="md_theme_light_primaryContainer">#d9e2ff</color>
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
<resources>
|
<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="fab_margin">16dp</dimen>
|
||||||
<dimen name="list_item_height">48dp</dimen>
|
<dimen name="list_item_height">48dp</dimen>
|
||||||
<dimen name="auth_leader_text_size">46sp</dimen>
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -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" translatable="false">Aegis</string>
|
||||||
<string name="app_name_full" translatable="false">Aegis Authenticator</string>
|
<string name="app_name_full" translatable="false">Aegis Authenticator</string>
|
||||||
<string name="org_name_full" translatable="false">Beem Development</string>
|
<string name="org_name_full" translatable="false">Beem Development</string>
|
||||||
|
@ -555,23 +555,23 @@
|
||||||
<string name="pref_account_name_position_end">Next to the issuer</string>
|
<string name="pref_account_name_position_end">Next to the issuer</string>
|
||||||
<string name="pref_account_name_position_below">Below 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="one">%d second ago</item>
|
||||||
<item quantity="other">%d seconds ago</item>
|
<item quantity="other">%d seconds ago</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="time_elapsed_minutes">
|
<plurals name="time_elapsed_minutes" tools:ignore="UnusedResources">
|
||||||
<item quantity="one">%d minute ago</item>
|
<item quantity="one">%d minute ago</item>
|
||||||
<item quantity="other">%d minutes ago</item>
|
<item quantity="other">%d minutes ago</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="time_elapsed_hours">
|
<plurals name="time_elapsed_hours" tools:ignore="UnusedResources">
|
||||||
<item quantity="one">%d hour ago</item>
|
<item quantity="one">%d hour ago</item>
|
||||||
<item quantity="other">%d hours ago</item>
|
<item quantity="other">%d hours ago</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="time_elapsed_days">
|
<plurals name="time_elapsed_days" tools:ignore="UnusedResources">
|
||||||
<item quantity="one">%d day ago</item>
|
<item quantity="one">%d day ago</item>
|
||||||
<item quantity="other">%d days ago</item>
|
<item quantity="other">%d days ago</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="time_elapsed_years">
|
<plurals name="time_elapsed_years" tools:ignore="UnusedResources">
|
||||||
<item quantity="one">%d year ago</item>
|
<item quantity="one">%d year ago</item>
|
||||||
<item quantity="other">%d years ago</item>
|
<item quantity="other">%d years ago</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
|
@ -248,7 +248,7 @@
|
||||||
|
|
||||||
<style name="ThemeOverlay.Aegis.AlertDialog.Warning">
|
<style name="ThemeOverlay.Aegis.AlertDialog.Warning">
|
||||||
<item name="android:alertDialogIcon">@drawable/ic_outline_warning_24</item>
|
<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>
|
||||||
|
|
||||||
<style name="Widget.Aegis.AlertDialog.Icon.Error" parent="@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked">
|
<style name="Widget.Aegis.AlertDialog.Icon.Error" parent="@style/MaterialAlertDialog.Material3.Title.Icon.CenterStacked">
|
||||||
|
|
Loading…
Add table
Reference in a new issue