Merge pull request #981 from jas14/monochromatic-icon

Add monochrome launcher icon
This commit is contained in:
Alexander Bakker 2022-09-14 17:33:53 +02:00 committed by GitHub
commit e19ceb0761
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 24 additions and 4 deletions

View file

@ -19,12 +19,12 @@ def fileProviderAuthority = "${packageName}.fileprovider"
def fileProviderAuthorityDebug = "${packageName}.debug.fileprovider"
android {
compileSdkVersion 31
compileSdkVersion 33
defaultConfig {
applicationId "${packageName}"
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 33
versionCode 51
versionName "2.0.3"
multiDexEnabled true
@ -186,7 +186,7 @@ dependencies {
testImplementation "com.google.guava:guava:${guavaVersion}-jre"
testImplementation "junit:junit:${junitVersion}"
testImplementation "org.json:json:20220320"
testImplementation 'org.robolectric:robolectric:4.8'
testImplementation 'org.robolectric:robolectric:4.8.2'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
}

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome" />
</adaptive-icon>

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_debug_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_monochrome" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -7,6 +7,7 @@ import static org.junit.Assert.assertTrue;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.preference.PreferenceManager;
import androidx.test.core.app.ApplicationProvider;
@ -14,9 +15,11 @@ import androidx.test.core.app.ApplicationProvider;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import java.util.Date;
@Config(sdk = { Build.VERSION_CODES.S_V2 })
@RunWith(RobolectricTestRunner.class)
public class PreferencesTest {
@Test

View file

@ -7,6 +7,7 @@ import static org.junit.Assert.assertTrue;
import android.graphics.Rect;
import android.media.Image;
import android.os.Build;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@ -18,6 +19,7 @@ import com.beemdevelopment.aegis.util.IOUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import java.io.IOException;
import java.io.InputStream;
@ -25,6 +27,7 @@ import java.nio.ByteBuffer;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.zip.GZIPInputStream;
@Config(sdk = { Build.VERSION_CODES.S_V2 })
@RunWith(RobolectricTestRunner.class)
public class QrCodeAnalyzerTest {
private static final String _expectedUri = "otpauth://totp/neo4j:Charlotte?secret=B33WS2ALPT34K4BNY24AYROE4M&issuer=neo4j&algorithm=SHA1&digits=6&period=30";

View file

@ -33,7 +33,7 @@ import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
@Config(sdk = { Build.VERSION_CODES.P })
@Config(sdk = { Build.VERSION_CODES.S_V2 })
@RunWith(RobolectricTestRunner.class)
public class DatabaseImporterTest {
private List<VaultEntry> _vectors;