2018-07-27 18:37:33 +05:30
|
|
|
apply plugin: 'com.android.application'
|
2018-11-28 13:18:19 +05:30
|
|
|
apply plugin: 'kotlin-android'
|
2020-07-24 23:58:15 +05:30
|
|
|
apply plugin: "androidx.navigation.safeargs.kotlin"
|
2021-09-09 00:00:20 +05:30
|
|
|
apply plugin: 'kotlin-parcelize'
|
2023-03-06 13:53:54 +05:30
|
|
|
apply plugin: 'com.google.devtools.ksp'
|
2020-01-05 21:44:41 +05:30
|
|
|
|
2018-07-27 18:37:33 +05:30
|
|
|
android {
|
2023-03-06 12:11:20 +05:30
|
|
|
compileSdk 33
|
2022-07-22 15:05:42 +08:00
|
|
|
namespace "code.name.monkey.retromusic"
|
2020-02-26 22:19:24 +05:30
|
|
|
|
2018-07-27 18:37:33 +05:30
|
|
|
defaultConfig {
|
2021-12-11 01:21:51 +05:30
|
|
|
minSdk 21
|
2023-03-14 12:47:50 +05:30
|
|
|
targetSdk 33
|
2018-07-27 18:37:33 +05:30
|
|
|
|
|
|
|
vectorDrawables.useSupportLibrary = true
|
|
|
|
|
2022-07-22 15:05:42 +08:00
|
|
|
applicationId namespace
|
2023-04-02 10:10:27 +05:30
|
|
|
versionCode 10603
|
2023-03-29 21:50:44 +05:30
|
|
|
versionName '6.1.0'
|
2018-07-27 18:37:33 +05:30
|
|
|
|
2018-12-09 12:08:34 +05:30
|
|
|
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
2022-07-22 15:27:00 +08:00
|
|
|
def signingProperties = getProperties('retro.properties')
|
|
|
|
def releaseSigning
|
|
|
|
if (signingProperties != null) {
|
|
|
|
releaseSigning = signingConfigs.create("release") {
|
|
|
|
storeFile file(getProperty(signingProperties, 'storeFile'))
|
|
|
|
keyAlias getProperty(signingProperties, 'keyAlias')
|
|
|
|
storePassword getProperty(signingProperties, 'storePassword')
|
|
|
|
keyPassword getProperty(signingProperties, 'keyPassword')
|
2018-08-30 14:59:30 +05:30
|
|
|
}
|
2022-07-22 15:27:00 +08:00
|
|
|
} else {
|
|
|
|
releaseSigning = signingConfigs.debug
|
2018-08-30 14:59:30 +05:30
|
|
|
}
|
2018-07-27 18:37:33 +05:30
|
|
|
buildTypes {
|
|
|
|
release {
|
2021-12-11 01:21:51 +05:30
|
|
|
shrinkResources true
|
2021-09-18 14:10:22 +05:30
|
|
|
minifyEnabled true
|
2021-12-20 16:03:02 +05:30
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
2022-07-22 15:27:00 +08:00
|
|
|
signingConfig releaseSigning
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
|
|
|
debug {
|
2022-07-22 15:27:00 +08:00
|
|
|
signingConfig releaseSigning
|
2018-07-27 18:37:33 +05:30
|
|
|
applicationIdSuffix '.debug'
|
2019-07-31 10:52:09 +05:30
|
|
|
versionNameSuffix ' DEBUG'
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
|
|
|
}
|
2023-03-09 12:08:26 +05:30
|
|
|
flavorDimensions = ["version"]
|
2022-06-14 23:05:59 +05:30
|
|
|
productFlavors {
|
|
|
|
normal {
|
|
|
|
dimension "version"
|
|
|
|
}
|
|
|
|
fdroid {
|
|
|
|
dimension "version"
|
|
|
|
}
|
|
|
|
}
|
2018-08-30 14:59:30 +05:30
|
|
|
|
2022-07-22 15:27:00 +08:00
|
|
|
buildFeatures {
|
2021-09-09 00:00:20 +05:30
|
|
|
viewBinding true
|
|
|
|
}
|
2018-07-27 18:37:33 +05:30
|
|
|
packagingOptions {
|
2022-01-27 13:19:39 +05:30
|
|
|
resources {
|
|
|
|
excludes += ['META-INF/LICENSE', 'META-INF/NOTICE', 'META-INF/java.properties']
|
|
|
|
}
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
2022-01-27 13:19:39 +05:30
|
|
|
lint {
|
2022-07-24 10:19:31 +08:00
|
|
|
abortOnError true
|
2022-06-21 23:13:54 +05:30
|
|
|
warning 'ImpliedQuantity', 'Instantiatable', 'MissingQuantity', 'MissingTranslation'
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
|
|
|
compileOptions {
|
2020-05-23 14:57:55 +05:30
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
2022-07-24 09:59:02 +08:00
|
|
|
dependenciesInfo {
|
|
|
|
includeInApk = false
|
|
|
|
includeInBundle = false
|
|
|
|
}
|
2023-03-06 12:11:20 +05:30
|
|
|
configurations.configureEach {
|
2018-07-27 18:37:33 +05:30
|
|
|
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
def getProperties(String fileName) {
|
2022-07-22 15:27:00 +08:00
|
|
|
Properties properties = new Properties()
|
2021-09-09 00:00:20 +05:30
|
|
|
def file = rootProject.file(fileName)
|
2018-07-27 18:37:33 +05:30
|
|
|
if (file.exists()) {
|
|
|
|
file.withInputStream { stream -> properties.load(stream) }
|
2022-07-22 15:27:00 +08:00
|
|
|
} else {
|
|
|
|
properties = null
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
|
|
|
return properties
|
|
|
|
}
|
|
|
|
|
|
|
|
static def getProperty(Properties properties, String name) {
|
2022-07-22 15:27:00 +08:00
|
|
|
return properties?.getProperty(name) ?: "$name missing"
|
2018-07-27 18:37:33 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-09-30 00:28:10 +05:30
|
|
|
implementation project(':appthemehelper')
|
2019-03-25 18:13:43 +05:30
|
|
|
implementation "androidx.gridlayout:gridlayout:1.0.0"
|
2022-05-30 13:56:43 +05:30
|
|
|
|
2022-01-13 17:45:41 +05:30
|
|
|
implementation "androidx.appcompat:appcompat:$appcompat_version"
|
2023-03-06 12:11:20 +05:30
|
|
|
implementation 'androidx.annotation:annotation:1.6.0'
|
2022-05-26 20:16:44 +05:30
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2023-03-10 16:04:28 +05:30
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.3.0'
|
2021-12-18 11:58:25 +05:30
|
|
|
implementation "androidx.preference:preference-ktx:$preference_version"
|
2022-06-19 10:38:33 +05:30
|
|
|
implementation "androidx.core:core-ktx:$core_version"
|
2020-05-23 14:57:55 +05:30
|
|
|
implementation 'androidx.palette:palette-ktx:1.0.0'
|
|
|
|
|
2022-08-06 11:23:40 +05:30
|
|
|
implementation 'androidx.mediarouter:mediarouter:1.3.1'
|
2022-06-14 23:05:59 +05:30
|
|
|
//Cast Dependencies
|
2023-03-29 21:26:14 +05:30
|
|
|
normalImplementation 'com.google.android.gms:play-services-cast-framework:21.3.0'
|
2021-09-09 00:00:20 +05:30
|
|
|
//WebServer by NanoHttpd
|
2022-06-14 23:05:59 +05:30
|
|
|
normalImplementation "org.nanohttpd:nanohttpd:2.3.1"
|
2021-09-09 00:00:20 +05:30
|
|
|
|
2021-12-18 11:58:25 +05:30
|
|
|
implementation "androidx.navigation:navigation-runtime-ktx:$navigation_version"
|
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
|
2020-09-05 23:46:44 +05:30
|
|
|
|
2023-03-29 21:26:14 +05:30
|
|
|
def room_version = '2.5.1'
|
2020-09-05 23:46:44 +05:30
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
|
|
implementation "androidx.room:room-ktx:$room_version"
|
2023-03-06 13:53:54 +05:30
|
|
|
ksp "androidx.room:room-compiler:$room_version"
|
2020-09-05 23:46:44 +05:30
|
|
|
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
|
|
|
|
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
2019-06-05 13:47:45 +05:30
|
|
|
|
2022-08-06 11:23:40 +05:30
|
|
|
implementation "androidx.core:core-splashscreen:1.0.0"
|
2022-05-20 14:32:40 +05:30
|
|
|
|
2023-03-06 12:11:20 +05:30
|
|
|
normalImplementation 'com.google.android.play:feature-delivery:2.0.1'
|
|
|
|
normalImplementation 'com.google.android.play:review:2.0.1'
|
2022-01-31 19:26:30 -05:00
|
|
|
|
2021-12-18 11:58:25 +05:30
|
|
|
implementation "com.google.android.material:material:$mdc_version"
|
2019-06-05 13:47:45 +05:30
|
|
|
|
2020-07-14 02:09:47 +05:30
|
|
|
def retrofit_version = '2.9.0'
|
2019-12-26 20:05:21 +05:30
|
|
|
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
|
2022-06-19 10:38:33 +05:30
|
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.9'
|
2019-12-26 20:05:21 +05:30
|
|
|
|
2021-09-09 00:00:20 +05:30
|
|
|
def material_dialog_version = "3.3.0"
|
2019-12-26 20:05:21 +05:30
|
|
|
implementation "com.afollestad.material-dialogs:core:$material_dialog_version"
|
2021-09-09 00:00:20 +05:30
|
|
|
implementation "com.afollestad.material-dialogs:input:$material_dialog_version"
|
|
|
|
implementation "com.afollestad.material-dialogs:color:$material_dialog_version"
|
2021-09-18 15:57:52 +05:30
|
|
|
|
|
|
|
implementation 'com.afollestad:material-cab:2.0.1'
|
2019-06-05 13:47:45 +05:30
|
|
|
|
2022-07-22 14:53:49 +08:00
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
|
2019-10-25 01:38:09 +05:30
|
|
|
|
2023-03-29 21:26:14 +05:30
|
|
|
def koin_version = '3.4.0'
|
2021-09-20 11:59:25 +05:30
|
|
|
implementation "io.insert-koin:koin-core:$koin_version"
|
|
|
|
implementation "io.insert-koin:koin-android:$koin_version"
|
2020-07-24 23:58:15 +05:30
|
|
|
|
2023-03-18 14:28:53 +05:30
|
|
|
def glide_version = '4.15.1'
|
2022-02-10 00:03:38 +05:30
|
|
|
implementation "com.github.bumptech.glide:glide:$glide_version"
|
2023-03-06 13:53:54 +05:30
|
|
|
ksp "com.github.bumptech.glide:ksp:$glide_version"
|
2022-02-10 00:03:38 +05:30
|
|
|
implementation "com.github.bumptech.glide:okhttp3-integration:$glide_version"
|
2020-08-19 19:30:45 +05:30
|
|
|
|
2020-09-05 23:46:44 +05:30
|
|
|
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
|
2020-08-21 18:35:01 +05:30
|
|
|
|
2021-12-21 09:42:02 +05:30
|
|
|
implementation 'com.github.bosphere.android-fadingedgelayout:fadingedgelayout:1.0.0'
|
|
|
|
|
2021-12-23 13:37:26 +05:30
|
|
|
implementation 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:3.0.0-RC3'
|
2021-12-24 16:47:57 +05:30
|
|
|
implementation 'com.github.jetradarmobile:android-snowfall:1.2.1'
|
2021-12-23 13:37:26 +05:30
|
|
|
|
2022-01-14 18:56:57 +05:30
|
|
|
implementation "dev.chrisbanes.insetter:insetter:0.6.1"
|
|
|
|
|
2021-09-20 11:59:25 +05:30
|
|
|
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
|
2021-12-16 10:53:18 +05:30
|
|
|
implementation 'com.github.Adonai:jaudiotagger:2.3.15'
|
2022-06-14 23:05:59 +05:30
|
|
|
normalImplementation 'com.anjlab.android.iab.v3:library:2.0.3'
|
2020-09-05 23:46:44 +05:30
|
|
|
implementation 'com.r0adkll:slidableactivity:2.1.0'
|
2021-09-09 00:00:20 +05:30
|
|
|
implementation 'com.heinrichreimersoftware:material-intro:2.0.0'
|
2021-11-28 13:35:30 +05:30
|
|
|
implementation 'com.github.dhaval2404:imagepicker:2.1'
|
2023-03-06 12:11:20 +05:30
|
|
|
implementation 'me.zhanghai.android.fastscroll:library:1.2.0'
|
2022-05-30 13:56:43 +05:30
|
|
|
implementation 'cat.ereza:customactivityoncrash:2.4.0'
|
2023-03-29 21:26:14 +05:30
|
|
|
implementation 'me.tankery.lib:circularSeekBar:1.4.2'
|
2021-12-12 16:53:58 +05:30
|
|
|
}
|