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

184 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-11-30 02:06:16 +01:00
apply plugin: 'kotlin-android-extensions'
2018-12-12 22:02:14 +01:00
apply plugin: 'kotlin-kapt'
2020-01-05 17:14:41 +01:00
apply plugin: "ru.cleverpumpkin.proguard-dictionaries-generator"
2020-07-24 20:28:15 +02:00
apply plugin: "androidx.navigation.safeargs.kotlin"
2020-01-05 17:14:41 +01:00
proguardDictionaries {
dictionaryNames = [
"build/class-dictionary",
"build/package-dictionary",
"build/obfuscation-dictionary"
]
}
2018-07-27 15:07:33 +02:00
android {
2019-12-30 05:14:04 +01:00
compileSdkVersion 29
buildToolsVersion = '29.0.3'
2018-07-27 15:07:33 +02:00
defaultConfig {
minSdkVersion 21
2020-01-29 18:25:43 +01:00
targetSdkVersion 29
2018-07-27 15:07:33 +02:00
2020-01-29 18:25:43 +01:00
renderscriptTargetApi 29 //must match target sdk and build tools
2018-07-27 15:07:33 +02:00
vectorDrawables.useSupportLibrary = true
applicationId "code.name.monkey.retromusic"
2020-07-14 22:19:12 +02:00
versionCode 10438
versionName '3.5.650' + "_" + getDate()
2018-07-27 15:07:33 +02:00
multiDexEnabled true
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 {
2020-08-19 16:00:45 +02:00
Properties properties = getProperties('/Users/h4h13/Documents/Github/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 {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.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
2018-07-27 15:07:33 +02:00
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
2020-01-29 18:25:43 +01:00
exclude 'META-INF/java.properties'
2018-07-27 15:07:33 +02:00
}
lintOptions {
disable 'MissingTranslation'
disable 'InvalidPackage'
abortOnError false
}
compileOptions {
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'
}
2019-03-04 04:55:09 +01:00
androidExtensions {
experimental = true
}
2019-09-04 21:30:24 +02:00
kapt {
generateStubs = true
}
2018-07-27 15:07:33 +02:00
}
def getProperties(String fileName) {
2018-07-29 19:17:52 +02:00
final Properties properties = new Properties()
2018-07-27 15:07:33 +02:00
def file = file(fileName)
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-08-19 16:00:45 +02:00
new Date().format('MMddyyyy')
2018-07-27 15:07:33 +02:00
}
2018-09-09 21:44:46 +02:00
2018-07-27 15:07:33 +02:00
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
2019-09-29 20:58:10 +02:00
implementation project(':appthemehelper')
implementation 'androidx.multidex:multidex:2.0.1'
2019-12-26 15:35:21 +01:00
2019-03-25 13:43:43 +01:00
implementation "androidx.gridlayout:gridlayout:1.0.0"
implementation "androidx.cardview:cardview:1.0.0"
2020-04-15 10:49:28 +02:00
implementation "androidx.viewpager2:viewpager2:1.1.0-alpha01"
2020-08-14 10:34:03 +02:00
implementation 'androidx.appcompat:appcompat:1.2.0'
2019-06-06 15:36:51 +02:00
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.preference:preference-ktx:1.1.1'
2020-07-24 20:28:15 +02:00
implementation 'androidx.core:core-ktx:1.3.1'
2020-07-04 19:35:36 +02:00
implementation 'androidx.fragment:fragment-ktx:1.2.5'
implementation 'androidx.palette:palette-ktx:1.0.0'
2020-08-19 16:00:45 +02:00
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8'
2020-02-01 18:53:26 +01:00
implementation 'androidx.recyclerview:recyclerview:1.1.0'
2019-06-05 10:17:45 +02:00
2020-08-19 16:00:45 +02:00
implementation 'com.google.android.material:material:1.3.0-alpha01'
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"
2020-05-24 20:04:50 +02:00
def material_dialog_version = "0.9.6.0"
2019-12-26 15:35:21 +01:00
implementation "com.afollestad.material-dialogs:core:$material_dialog_version"
2020-05-24 20:04:50 +02:00
implementation "com.afollestad.material-dialogs:commons:$material_dialog_version"
2018-07-27 15:07:33 +02:00
implementation 'com.afollestad:material-cab:0.1.12'
2019-06-05 10:17:45 +02:00
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.github.bumptech.glide:okhttp3-integration:1.5.0'
2020-01-28 18:47:48 +01:00
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
2019-06-05 10:17:45 +02:00
2018-07-27 15:07:33 +02:00
implementation('com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.11.0@aar') {
transitive = true
}
2019-06-05 10:17:45 +02:00
2020-07-19 23:00:30 +02:00
def kotlin_coroutines_version = "1.3.8"
2019-03-04 04:55:09 +01:00
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
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
2019-03-25 13:43:43 +01:00
implementation 'org.eclipse.mylyn.github:org.eclipse.egit.github.core:3.4.0.201406110918-r'
2019-06-05 10:17:45 +02:00
implementation 'com.github.ksoichiro:android-observablescrollview:1.6.0'
2019-09-22 20:56:40 +02:00
implementation 'com.github.kabouzeid:recyclerview-fastscroll:1.9-kmod'
2019-09-02 16:52:47 +02:00
2019-06-05 10:17:45 +02:00
implementation 'com.github.AdrienPoupa:jaudiotagger:2.2.3'
2019-09-01 15:32:36 +02:00
implementation 'com.anjlab.android.iab.v3:library:1.1.0'
implementation 'com.r0adkll:slidableactivity:2.1.0'
2019-07-31 18:42:19 +02:00
implementation 'com.heinrichreimersoftware:material-intro:1.6'
2020-01-17 18:19:06 +01:00
implementation 'me.zhanghai.android.fastscroll:library:1.1.0'
2019-07-31 18:42:19 +02:00
2020-04-25 17:59:52 +02:00
def lifecycle_version = "2.2.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
2020-04-26 18:49:46 +02:00
2020-08-19 16:00:45 +02:00
implementation 'com.google.android.play:core:1.8.0'
2020-05-03 21:24:11 +02:00
implementation 'me.jorgecastillo:androidcolorx:0.2.0'
2020-05-21 00:53:09 +02:00
implementation 'com.github.dhaval2404:imagepicker:1.7.1'
2020-07-20 21:05:48 +02:00
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"
2020-07-24 20:28:15 +02:00
def nav_version = "2.3.0"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
2020-08-19 16:00:45 +02:00
def room_version = "2.2.5"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
2019-10-24 22:08:09 +02:00
}