diff --git a/app/build.gradle b/app/build.gradle
index a13a13503..f504eb7fd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,31 +1,29 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "androidx.navigation.safeargs.kotlin"
+apply plugin: 'kotlin-parcelize'
android {
- compileSdkVersion 29
+ compileSdkVersion 31
buildToolsVersion = '29.0.3'
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
- renderscriptTargetApi 29 //must match target sdk and build tools
+ renderscriptTargetApi 29//must match target sdk and build tools
vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic"
- versionCode 10503
- versionName '4.0.010' + "_" + getDate()
-
- multiDexEnabled true
+ versionCode 10519
+ versionName '5.0.0' + "_" + getDate()
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
}
signingConfigs {
release {
- Properties properties = getProperties('/Users/apple/Documents/Github/music.jks')
+ Properties properties = getProperties('retro.properties')
storeFile file(getProperty(properties, 'storeFile'))
keyAlias getProperty(properties, 'keyAlias')
storePassword getProperty(properties, 'storePassword')
@@ -36,7 +34,6 @@ android {
release {
//debuggable true
minifyEnabled true
- //shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
@@ -46,6 +43,10 @@ android {
}
}
+ buildFeatures{
+ viewBinding true
+ }
+
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
@@ -67,17 +68,11 @@ android {
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
- androidExtensions {
- experimental = true
- }
- kapt {
- generateStubs = true
- }
}
def getProperties(String fileName) {
final Properties properties = new Properties()
- def file = file(fileName)
+ def file = rootProject.file(fileName)
if (file.exists()) {
file.withInputStream { stream -> properties.load(stream) }
}
@@ -95,76 +90,76 @@ static def getDate() {
dependencies {
implementation project(':appthemehelper')
- implementation 'androidx.multidex:multidex:2.0.1'
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.cardview:cardview:1.0.0"
- implementation 'androidx.appcompat:appcompat:1.2.0'
- implementation 'androidx.annotation:annotation:1.1.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- implementation 'androidx.recyclerview:recyclerview:1.1.0'
+ implementation 'androidx.appcompat:appcompat:1.3.1'
+ implementation 'androidx.annotation:annotation:1.2.0'
+ implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
+ implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation 'androidx.preference:preference-ktx:1.1.1'
- implementation 'androidx.core:core-ktx:1.3.2'
- implementation 'androidx.fragment:fragment-ktx:1.2.5'
+ implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.palette:palette-ktx:1.0.0'
- def nav_version = "2.3.2"
+ //Cast Dependencies
+ implementation 'androidx.mediarouter:mediarouter:1.2.5'
+ implementation 'com.google.android.gms:play-services-cast-framework:20.0.0'
+ //WebServer by NanoHttpd
+ implementation "org.nanohttpd:nanohttpd:2.3.1"
+
+ def nav_version = "2.4.0-alpha07"
implementation "androidx.navigation:navigation-runtime-ktx:$nav_version"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
- def room_version = "2.2.5"
+ def room_version = "2.3.0"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
- def lifecycle_version = "2.2.0"
+ def lifecycle_version = "2.3.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation 'com.google.android.play:core-ktx:1.8.1'
- implementation 'com.google.android.material:material:1.3.0-alpha04'
+ implementation 'com.google.android.material:material:1.5.0-alpha03'
def retrofit_version = '2.9.0'
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
- implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
+ implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
- def material_dialog_version = "0.9.6.0"
+ def material_dialog_version = "3.3.0"
implementation "com.afollestad.material-dialogs:core:$material_dialog_version"
- implementation "com.afollestad.material-dialogs:commons:$material_dialog_version"
+ implementation "com.afollestad.material-dialogs:input:$material_dialog_version"
+ implementation "com.afollestad.material-dialogs:color:$material_dialog_version"
+ implementation "com.afollestad.material-dialogs:bottomsheets:$material_dialog_version"
+ //noinspection GradleDependency
implementation 'com.afollestad:material-cab:0.1.12'
- def kotlin_coroutines_version = "1.3.8"
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10"
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
+
+ def kotlin_coroutines_version = "1.5.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
def koin_version = "2.1.5"
implementation "org.koin:koin-core:$koin_version"
- implementation "org.koin:koin-core-ext:$koin_version"
- implementation "org.koin:koin-androidx-scope:$koin_version"
implementation "org.koin:koin-androidx-viewmodel:$koin_version"
- implementation "org.koin:koin-androidx-fragment:$koin_version"
- implementation "org.koin:koin-androidx-ext:$koin_version"
- implementation 'com.github.bumptech.glide:glide:3.8.0'
- implementation 'com.github.bumptech.glide:okhttp3-integration:1.5.0'
+ implementation 'com.github.bumptech.glide:glide:4.12.0'
+ kapt 'com.github.bumptech.glide:compiler:4.12.0'
+ implementation 'com.github.bumptech.glide:okhttp3-integration:4.12.0'
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:3.4.0.201406110918-r'
- implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
- implementation 'com.github.kabouzeid:recyclerview-fastscroll:1.9-kmod'
- implementation 'com.github.AdrienPoupa:jaudiotagger:2.2.3'
+ implementation 'org.bitbucket.ijabz:jaudiotagger:2.2.5'
implementation 'com.anjlab.android.iab.v3:library:1.1.0'
implementation 'com.r0adkll:slidableactivity:2.1.0'
- implementation 'com.heinrichreimersoftware:material-intro:1.6'
+ implementation 'com.heinrichreimersoftware:material-intro:2.0.0'
implementation 'com.github.dhaval2404:imagepicker:1.7.1'
- implementation 'org.jsoup:jsoup:1.11.1'
- implementation 'me.zhanghai.android.fastscroll:library:1.1.0'
- implementation 'me.jorgecastillo:androidcolorx:0.2.0'
- implementation 'org.jsoup:jsoup:1.11.1'
+ implementation 'me.zhanghai.android.fastscroll:library:1.1.7'
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
index c48afcd1b..f5edd6ed0 100644
--- a/app/proguard-rules.pro
+++ b/app/proguard-rules.pro
@@ -23,6 +23,9 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
+-keepnames class **
+-keepnames class ** { *; }
+-keepattributes SourceFile,LineNumberTable
-dontwarn java.lang.invoke.*
-dontwarn **$$Lambda$*
@@ -34,9 +37,10 @@
# Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
--keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
- **[] $VALUES;
- public *;
+-keep public class * extends com.bumptech.glide.module.AppGlideModule
+-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
+ **[] $VALUES;
+ public *;
}
# OkHttp
@@ -47,8 +51,6 @@
#-dontwarn
#-ignorewarnings
--dontshrink
--dontobfuscate
-dontwarn org.jaudiotagger.**
-keep class org.jaudiotagger.** { *; }
@@ -59,4 +61,8 @@
-keepnames class code.name.monkey.retromusic.model.Home
-keep class * extends androidx.fragment.app.Fragment{}
-keepnames class * extends android.os.Parcelable
--keepnames class * extends java.io.Serializable
\ No newline at end of file
+-keepnames class * extends java.io.Serializable
+-keep class code.name.monkey.retromusic.network.model.** { *; }
+-keep class code.name.monkey.retromusic.model.CategoryInfo { *; }
+-keep class com.google.android.material.bottomsheet.** { *; }
+-keep class code.name.monkey.retromusic.Constants { *; }
\ No newline at end of file
diff --git a/app/src/debug/res/values/styles.xml b/app/src/debug/res/values/styles.xml
index dcee15a66..e984e856c 100644
--- a/app/src/debug/res/values/styles.xml
+++ b/app/src/debug/res/values/styles.xml
@@ -6,6 +6,11 @@
*If you face any UI related issues you clear app data and cache, if itsnot working try to - uninstall and install - again.
- \ No newline at end of file +