0
0
mirror of https://github.com/MuntashirAkon/Metro.git synced 2024-09-20 12:02:20 +02:00
Metro/app/build.gradle

174 lines
6.6 KiB
Groovy
Raw Normal View History

2018-07-27 15:07:33 +02:00
apply plugin: 'com.android.application'
2018-11-28 08:48:19 +01:00
apply plugin: 'kotlin-android'
2018-12-12 22:02:14 +01:00
apply plugin: 'kotlin-kapt'
2020-07-24 20:28:15 +02:00
apply plugin: "androidx.navigation.safeargs.kotlin"
apply plugin: 'kotlin-parcelize'
2020-01-05 17:14:41 +01:00
2018-07-27 15:07:33 +02:00
android {
compileSdk 31
2018-07-27 15:07:33 +02:00
defaultConfig {
minSdk 21
targetSdk 31
2018-07-27 15:07:33 +02:00
vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic"
2022-01-27 16:46:26 +01:00
versionCode 10564
2022-01-29 18:26:23 +01:00
versionName '5.7.1'
2018-07-27 15:07:33 +02:00
2018-12-09 07:38:34 +01:00
buildConfigField("String", "GOOGLE_PLAY_LICENSING_KEY", "\"${getProperty(getProperties('../public.properties'), 'GOOGLE_PLAY_LICENSE_KEY')}\"")
2018-07-27 15:07:33 +02:00
}
2018-08-30 11:29:30 +02:00
signingConfigs {
release {
Properties properties = getProperties('retro.properties')
2018-08-30 11:29:30 +02:00
storeFile file(getProperty(properties, 'storeFile'))
keyAlias getProperty(properties, 'keyAlias')
storePassword getProperty(properties, 'storePassword')
keyPassword getProperty(properties, 'keyPassword')
}
}
2018-07-27 15:07:33 +02:00
buildTypes {
release {
versionNameSuffix "_" + getDate()
shrinkResources true
minifyEnabled true
2021-12-20 11:33:02 +01:00
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2018-08-30 11:29:30 +02:00
signingConfig signingConfigs.release
2018-07-27 15:07:33 +02:00
}
debug {
applicationIdSuffix '.debug'
2019-07-31 07:22:09 +02:00
versionNameSuffix ' DEBUG'
2018-07-27 15:07:33 +02:00
}
}
2018-08-30 11:29:30 +02:00
buildFeatures{
viewBinding true
}
2018-07-27 15:07:33 +02:00
packagingOptions {
2022-01-27 08:49:39 +01:00
resources {
excludes += ['META-INF/LICENSE', 'META-INF/NOTICE', 'META-INF/java.properties']
}
2018-07-27 15:07:33 +02:00
}
2022-01-27 08:49:39 +01:00
lint {
2018-07-27 15:07:33 +02:00
abortOnError false
2022-01-27 08:49:39 +01:00
disable 'MissingTranslation', 'InvalidPackage'
2018-07-27 15:07:33 +02:00
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
2018-07-27 15:07:33 +02:00
}
2018-08-30 11:29:30 +02:00
2018-07-27 15:07:33 +02:00
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
def getProperties(String fileName) {
2018-07-29 19:17:52 +02:00
final Properties properties = new Properties()
def file = rootProject.file(fileName)
2018-07-27 15:07:33 +02:00
if (file.exists()) {
file.withInputStream { stream -> properties.load(stream) }
}
return properties
}
static def getProperty(Properties properties, String name) {
return properties.getProperty(name) ?: "$name missing"
}
static def getDate() {
2020-09-24 13:00:54 +02:00
new Date().format('MMddyyyyss')
2018-07-27 15:07:33 +02:00
}
dependencies {
2019-09-29 20:58:10 +02:00
implementation project(':appthemehelper')
2019-03-25 13:43:43 +01:00
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.cardview:cardview:1.0.0"
2022-01-13 13:15:41 +01:00
implementation "androidx.appcompat:appcompat:$appcompat_version"
2021-11-08 06:37:41 +01:00
implementation 'androidx.annotation:annotation:1.3.0'
2022-01-15 10:55:25 +01:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
2021-11-30 20:14:40 +01:00
implementation 'androidx.recyclerview:recyclerview:1.3.0-alpha01'
2021-12-18 07:28:25 +01:00
implementation "androidx.preference:preference-ktx:$preference_version"
2021-10-28 13:56:28 +02:00
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.palette:palette-ktx:1.0.0'
//Cast Dependencies
2022-01-27 08:49:39 +01:00
implementation 'androidx.mediarouter:mediarouter:1.2.6'
2022-01-07 17:53:59 +01:00
implementation 'com.google.android.gms:play-services-cast-framework:21.0.1'
//WebServer by NanoHttpd
implementation "org.nanohttpd:nanohttpd:2.3.1"
2021-12-18 07:28:25 +01:00
implementation "androidx.navigation:navigation-runtime-ktx:$navigation_version"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"
2022-01-13 13:15:41 +01:00
def room_version = '2.4.1'
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
2022-01-27 08:49:39 +01:00
def lifecycle_version = "2.5.0-alpha01"
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 10:17:45 +02:00
implementation "androidx.core:core-splashscreen:1.0.0-beta01"
implementation 'com.google.android.play:core-ktx:1.8.1'
2021-12-18 07:28:25 +01:00
implementation "com.google.android.material:material:$mdc_version"
2019-06-05 10:17:45 +02:00
2020-07-13 22:39:47 +02:00
def retrofit_version = '2.9.0'
2019-12-26 15:35:21 +01:00
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
2021-11-27 09:36:49 +01:00
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.3'
2019-12-26 15:35:21 +01:00
def material_dialog_version = "3.3.0"
2019-12-26 15:35:21 +01:00
implementation "com.afollestad.material-dialogs:core:$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"
implementation 'com.afollestad:material-cab:2.0.1'
2019-06-05 10:17:45 +02:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
2021-12-25 16:34:26 +01:00
def kotlin_coroutines_version = '1.6.0'
2019-12-26 15:35:21 +01:00
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutines_version"
2019-10-24 22:08:09 +02:00
2022-01-11 18:15:56 +01:00
def koin_version = '3.1.5'
implementation "io.insert-koin:koin-core:$koin_version"
implementation "io.insert-koin:koin-android:$koin_version"
2020-07-24 20:28:15 +02:00
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'
2020-08-19 16:00:45 +02:00
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
implementation 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:1.0.0'
2020-08-21 15:05:01 +02:00
implementation 'com.github.bosphere.android-fadingedgelayout:fadingedgelayout:1.0.0'
implementation 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:3.0.0-RC3'
2021-12-24 12:17:57 +01:00
implementation 'com.github.jetradarmobile:android-snowfall:1.2.1'
implementation "dev.chrisbanes.insetter:insetter:0.6.1"
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:2.1.5'
2021-12-16 06:23:18 +01:00
implementation 'com.github.Adonai:jaudiotagger:2.3.15'
implementation 'com.anjlab.android.iab.v3:library:2.0.3'
implementation 'com.r0adkll:slidableactivity:2.1.0'
implementation 'com.heinrichreimersoftware:material-intro:2.0.0'
2021-11-28 09:05:30 +01:00
implementation 'com.github.dhaval2404:imagepicker:2.1'
implementation 'me.zhanghai.android.fastscroll:library:1.1.7'
implementation 'cat.ereza:customactivityoncrash:2.3.0'
implementation 'me.tankery.lib:circularSeekBar:1.3.2'
debugImplementation 'com.github.amitshekhariitbhu:Android-Debug-Database:1.0.6'
2021-12-12 12:23:58 +01:00
}