From 70b8e495e8cff3abddfada39ebd0b8041e06eea2 Mon Sep 17 00:00:00 2001 From: Pratham Date: Sat, 19 Sep 2020 00:09:12 +0530 Subject: [PATCH] Made Build Code more modular --- app/build.gradle | 29 +++++++++++++++-------------- build.gradle | 9 ++++++++- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d15b6202f..5b980d7ce 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -84,36 +84,37 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.legacy:legacy-support-v4:1.0.0' - def lifecycle_version = "2.2.0" + //androidx implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version" + implementation 'androidx.core:core-ktx:1.5.0-alpha02' + implementation 'androidx.paging:paging-runtime:2.1.2' + implementation 'androidx.constraintlayout:constraintlayout:2.0.1' + implementation 'androidx.preference:preference:1.1.1' + implementation 'androidx.cardview:cardview:1.0.0' + implementation 'androidx.recyclerview:recyclerview:1.1.0' + implementation 'androidx.appcompat:appcompat:1.2.0' + implementation 'com.google.android.material:material:1.2.1' - def room_version = "2.2.5" + //database implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" - implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'com.google.android.material:material:1.2.1' - implementation 'androidx.cardview:cardview:1.0.0' - implementation 'androidx.recyclerview:recyclerview:1.1.0' - def anko_version = '0.10.8' + //anko implementation "org.jetbrains.anko:anko-sdk21:$anko_version" implementation "org.jetbrains.anko:anko-sdk21-listeners:$anko_version" implementation "org.jetbrains.anko:anko-appcompat-v7:$anko_version" implementation "org.jetbrains.anko:anko-design:$anko_version" - def okhttp_version = '4.8.1' + //networking implementation "com.squareup.okhttp3:okhttp:$okhttp_version" implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttp_version" + implementation 'org.jsoup:jsoup:1.13.1' - def glide_version = '4.11.0' + //image loading implementation "com.github.bumptech.glide:glide:$glide_version" kapt "com.github.bumptech.glide:compiler:$glide_version" - implementation 'androidx.core:core-ktx:1.5.0-alpha02' - implementation 'androidx.paging:paging-runtime:2.1.2' - implementation 'androidx.constraintlayout:constraintlayout:2.0.1' - implementation 'androidx.preference:preference:1.1.1' - implementation 'org.jsoup:jsoup:1.13.1' + //3rd party implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' implementation 'com.github.Tunous:SwipeActionView:1.3.1' implementation 'com.bignerdranch.android:expandablerecyclerview:3.0.0-RC1' diff --git a/build.gradle b/build.gradle index 80137f4d8..6d8e52eba 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,14 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.4.10' + ext{ + kotlin_version = '1.4.10' + lifecycle_version = "2.2.0" + room_version = "2.2.5" + anko_version = '0.10.8' + okhttp_version = '4.8.1' + glide_version = '4.11.0' + } repositories { google()