Added Android icon.

This commit is contained in:
casey langen 2020-04-11 18:36:06 -07:00
parent 100ec3549a
commit 279825e51e
11 changed files with 25 additions and 20 deletions

Binary file not shown.

View File

@ -9,7 +9,7 @@ apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
apply plugin: 'com.google.firebase.crashlytics'
android {
compileSdkVersion 28
@ -33,6 +33,9 @@ android {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
manifestPlaceholders = [crashlyticsCollectionEnabled:"true"]
firebaseCrashlytics {
mappingFileUploadEnabled false
}
}
debug {
@ -58,8 +61,9 @@ dependencies {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.google.firebase:firebase-analytics:17.2.3'
implementation 'com.google.firebase:firebase-core:17.2.3'
implementation 'com.google.firebase:firebase-analytics:17.3.0'
implementation 'com.google.firebase:firebase-core:17.3.0'
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta04'
implementation(name:'android-taskrunner-0.5', ext:'aar')
implementation(name:'exoplayer-extension-flac-release-v2', ext:'aar')
@ -67,8 +71,8 @@ dependencies {
implementation 'org.slf4j:slf4j-android:1.7.21'
implementation "androidx.room:room-runtime:2.2.4"
kapt "androidx.room:room-compiler:2.2.4"
implementation "androidx.room:room-runtime:2.2.5"
kapt "androidx.room:room-compiler:2.2.5"
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
@ -86,8 +90,8 @@ dependencies {
implementation 'io.reactivex.rxjava2:rxjava:2.2.16'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
implementation 'com.google.android.exoplayer:exoplayer:2.11.3'
implementation 'com.google.android.exoplayer:extension-okhttp:2.11.2'
implementation 'com.google.android.exoplayer:exoplayer:2.11.4'
implementation 'com.google.android.exoplayer:extension-okhttp:2.11.4'
implementation 'com.simplecityapps:recyclerview-fastscroll:2.0.0'
implementation 'com.github.wooplr:Spotlight:1.3'
implementation 'me.zhanghai.android.materialprogressbar:library:1.6.1'
@ -97,8 +101,6 @@ dependencies {
implementation 'com.google.android.material:material:1.2.0-alpha05'
implementation 'androidx.media:media:1.1.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
testImplementation 'junit:junit:4.12'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

View File

@ -13,7 +13,7 @@
<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher_square"
android:label="@string/app_name"
android:name=".Application"
android:usesCleartextTraffic="true"

View File

@ -1,7 +1,6 @@
package io.casey.musikcube.remote
import android.content.Context
import com.crashlytics.android.Crashlytics
import io.casey.musikcube.remote.injection.AppComponent
import io.casey.musikcube.remote.injection.AppModule
import io.casey.musikcube.remote.injection.DaggerAppComponent
@ -10,7 +9,6 @@ import io.casey.musikcube.remote.service.gapless.GaplessHeaderService
import io.casey.musikcube.remote.service.playback.impl.streaming.db.OfflineDb
import io.casey.musikcube.remote.ui.settings.constants.Prefs
import io.casey.musikcube.remote.ui.shared.extension.getString
import io.fabric.sdk.android.Fabric
import java.util.*
import javax.inject.Inject
@ -23,10 +21,6 @@ class Application : android.app.Application() {
super.onCreate()
if (!BuildConfig.DEBUG) {
Fabric.with(this, Crashlytics())
}
val prefs = getSharedPreferences(Prefs.NAME, Context.MODE_PRIVATE)
deviceId = prefs.getString(Prefs.Key.DEVICE_ID) ?: ""
if (deviceId.isBlank()) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -1,17 +1,16 @@
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.3.61'
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.1'
classpath 'com.android.tools.build:gradle:3.6.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.3'
classpath 'io.fabric.tools:gradle:1.31.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta04'
}
}