From e1a6697a31e47ab710df35227b475371fcb9f62f Mon Sep 17 00:00:00 2001 From: Astik Goswami Date: Sun, 11 May 2025 23:39:44 +0530 Subject: [PATCH] updated latest sdk versions with proper gradle file configurations and updated packagelists --- app/build.gradle | 27 ++++++++++++------------ build.gradle | 20 +++++++++--------- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 25 insertions(+), 26 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1de8c5417..a071712bd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.google.firebase.crashlytics' android { compileSdkVersion rootProject.compileSdkVersion - + namespace = "com.naman14.timber" defaultConfig { applicationId "naman14.timber" minSdkVersion rootProject.minSdkVersion @@ -29,37 +29,36 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } - - lintOptions { - disable 'MissingTranslation' - disable 'ExtraTranslation' + lint { + disable 'MissingTranslation', 'ExtraTranslation' } + } repositories { - jcenter() + mavenCentral() } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - implementation "androidx.appcompat:appcompat:1.0.2" - implementation "com.google.android.material:material:1.0.0" + implementation "androidx.appcompat:appcompat:1.7.0" + implementation "com.google.android.material:material:1.12.0" implementation "androidx.cardview:cardview:1.0.0" - implementation "androidx.recyclerview:recyclerview:1.1.0" + implementation "androidx.recyclerview:recyclerview:1.4.0" implementation "androidx.palette:palette:1.0.0" implementation "androidx.percentlayout:percentlayout:1.0.0" implementation 'androidx.multidex:multidex:2.0.1' - implementation "androidx.mediarouter:mediarouter:1.1.0" - implementation 'com.google.android.gms:play-services-cast-framework:16.1.2' + implementation "androidx.mediarouter:mediarouter:1.7.0" + implementation 'com.google.android.gms:play-services-cast-framework:22.0.0' implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4' implementation 'net.steamcrafted:materialiconlib:1.1.4' implementation 'com.squareup.retrofit:retrofit:1.9.0' implementation 'com.squareup.okhttp:okhttp-urlconnection:2.3.0' implementation 'com.squareup.okhttp:okhttp:2.3.0' - implementation 'com.google.code.gson:gson:2.3' + implementation 'com.google.code.gson:gson:2.11.0' implementation 'de.Maxr1998:track-selector-lib:1.2' implementation 'com.afollestad.material-dialogs:core:0.9.0.2' @@ -68,9 +67,9 @@ dependencies { implementation('com.github.naman14:app-theme-engine:0.5.2@aar') { transitive = true } - implementation 'com.google.firebase:firebase-crashlytics:17.2.2' + implementation 'com.google.firebase:firebase-crashlytics:19.4.3' - implementation 'com.anjlab.android.iab.v3:library:1.0.+' + implementation 'com.anjlab.android.iab.v3:library:1.0.45' implementation 'org.nanohttpd:nanohttpd:2.3.1' } diff --git a/build.gradle b/build.gradle index 27c36df54..154041507 100644 --- a/build.gradle +++ b/build.gradle @@ -2,13 +2,13 @@ buildscript { repositories { - jcenter() + mavenCentral() google() } dependencies { - classpath 'com.android.tools.build:gradle:3.3.1' - classpath 'com.google.gms:google-services:4.2.0' - classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0' + classpath 'com.android.tools.build:gradle:8.10.0' // latest stable + classpath 'com.google.gms:google-services:4.4.1' + classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } @@ -16,7 +16,7 @@ buildscript { allprojects { repositories { - jcenter() + mavenCentral() google() maven { url "https://jitpack.io" } } @@ -25,12 +25,12 @@ allprojects { ext { // Sdk and tools minSdkVersion = 16 - targetSdkVersion = 28 - compileSdkVersion = 28 + targetSdkVersion = 34 + compileSdkVersion = 34 // App dependencies - supportLibraryVersion = '27.0.2' - retrofitVersion = '2.3.0' - okHttp3Version = '3.9.0' + appCompatVersion = '1.6.1' + retrofitVersion = '2.9.0' + okHttp3Version = '4.12.0' } diff --git a/gradle.properties b/gradle.properties index 915f0e66f..5a568caea 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,5 +16,5 @@ # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true +android.useAndroidX=true android.enableJetifier=true -android.useAndroidX=true \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index b10568fb2..7d27c4635 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip \ No newline at end of file