Skip to content

Commit

Permalink
Gradle optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Jul 31, 2023
1 parent 076d224 commit 57e4121
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 48 deletions.
86 changes: 44 additions & 42 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'

id 'kotlin-kapt'
id 'kotlin-parcelize'

id 'com.google.devtools.ksp'
id 'dagger.hilt.android.plugin'
id 'androidx.navigation.safeargs.kotlin'
Expand Down Expand Up @@ -55,46 +57,46 @@ android {
}

dependencies {
implementation "dev.rikka.shizuku:api:13.1.4"
implementation "dev.rikka.shizuku:provider:13.1.4"

implementation 'io.github.inflationx:viewpump:2.0.3'

implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation "com.squareup.okhttp3:okhttp:4.10.0"

implementation 'com.github.bumptech.glide:glide:4.14.2'
ksp 'com.github.bumptech.glide:ksp:4.14.2'

implementation "androidx.room:room-runtime:2.5.2"
implementation "androidx.room:room-ktx:2.5.2"
ksp "androidx.room:room-compiler:2.5.2"

implementation "com.google.dagger:hilt-android:2.45"
kapt "com.google.dagger:hilt-compiler:2.45"
implementation 'androidx.hilt:hilt-navigation-fragment:1.0.0'

implementation "androidx.core:core-ktx:1.10.1"
implementation "androidx.collection:collection-ktx:1.2.0"
implementation "androidx.fragment:fragment-ktx:1.6.1"
implementation "androidx.preference:preference-ktx:1.2.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"

implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation "androidx.recyclerview:recyclerview:1.3.1"

implementation "androidx.navigation:navigation-runtime-ktx:2.6.0"
implementation 'androidx.navigation:navigation-fragment-ktx:2.6.0'
implementation 'androidx.navigation:navigation-ui-ktx:2.6.0'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation "dev.rikka.shizuku:api:$shizuku_version"
implementation "dev.rikka.shizuku:provider:$shizuku_version"

implementation "io.github.inflationx:viewpump:$viewpump_version"

implementation "com.google.code.gson:gson:$gson_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"

implementation "com.github.bumptech.glide:glide:$glide_version"
ksp "com.github.bumptech.glide:ksp:$glide_version"

implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
ksp "androidx.room:room-compiler:$room_version"

implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-compiler:$hilt_version"
implementation "androidx.hilt:hilt-navigation-fragment:$hilt_navigation_version"

implementation "androidx.core:core-ktx:$androidx_core_version"
implementation "androidx.collection:collection-ktx:$androidx_collection_version"
implementation "androidx.fragment:fragment-ktx:$androidx_fragment_version"
implementation "androidx.preference:preference-ktx:$androidx_preference_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$androidx_lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$androidx_lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$androidx_lifecycle_version"

implementation "androidx.appcompat:appcompat:$androidx_appcompat_version"
implementation "androidx.constraintlayout:constraintlayout:$androidx_constraint_version"
implementation "androidx.recyclerview:recyclerview:$androidx_recycler_version"

implementation "com.google.android.material:material:$material_version"

implementation "androidx.navigation:navigation-runtime-ktx:$navigation_version"
implementation "androidx.navigation:navigation-fragment-ktx:$navigation_version"
implementation "androidx.navigation:navigation-ui-ktx:$navigation_version"

testImplementation "junit:junit:$junit_version"
androidTestImplementation "androidx.test.ext:junit:$androidx_junit_version"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidx_espresso_version"
}
46 changes: 40 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,50 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
agp_version = '8.1.0'
kotlin_version = '1.8.21'
ksp_version = '1.8.22-1.0.11'

shizuku_version = '13.1.4'
viewpump_version = '2.0.3'
gson_version = '2.10.1'
retrofit_version = '2.9.0'
okhttp_version = '4.10.0'
glide_version = '4.14.2'
room_version = '2.5.2'
hilt_version = '2.45'
hilt_navigation_version = '1.0.0'

androidx_core_version = '1.10.1'
androidx_collection_version = '1.2.0'
androidx_fragment_version = '1.6.1'
androidx_preference_version = '1.2.0'
androidx_lifecycle_version = '2.6.1'
androidx_appcompat_version = '1.6.1'
androidx_constraint_version = '2.1.4'
androidx_recycler_version = '1.3.1'

material_version = '1.9.0'

navigation_version = '2.6.0'

junit_version = '4.13.2'
androidx_junit_version = '1.1.5'
androidx_espresso_version = '3.5.1'
}

dependencies {
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.45'
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.6.0"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
}
}

plugins {
id 'com.android.application' version '8.1.0' apply false
id 'com.android.library' version '8.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
id 'com.google.devtools.ksp' version '1.8.22-1.0.11' apply false
id 'com.android.application' version "$agp_version" apply false
id 'com.android.library' version "$agp_version" apply false
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false

id 'com.google.devtools.ksp' version "$ksp_version" apply false
id 'com.google.dagger.hilt.android' version "$hilt_version" apply false
}

tasks.register('clean', Delete) {
Expand Down

0 comments on commit 57e4121

Please sign in to comment.