From 1fbc418a0501f475af8f7bea351e8cc5b955cd6e Mon Sep 17 00:00:00 2001 From: Martin Zeitler Date: Fri, 8 Sep 2023 02:17:19 +0200 Subject: [PATCH] deprecated methods removed. --- build.gradle | 10 +++++----- library/build.gradle | 19 +++++++++++-------- mobile/build.gradle | 15 +++++++++------ 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/build.gradle b/build.gradle index a60130dc..c2387c0a 100644 --- a/build.gradle +++ b/build.gradle @@ -2,12 +2,12 @@ buildscript { ext { agp_version = '8.1.1' - kotlin_version = '1.9.0' - material_version = '1.9.0' + kotlin_version = '1.9.10' + material_design_version = '1.9.0' appcompat_version = '1.6.1' annotation_version = '1.6.0' fragment_version = '1.6.1' - nav_version = '2.7.1' + nav_version = '2.7.2' room_version = '2.5.2' flexbox_version = '3.0.0' splash_version = '1.0.1' @@ -39,8 +39,8 @@ plugins { /** Version Settings, loaded from file `version.properties` */ def version = new Properties() version.load(new FileInputStream(rootProject.file('version.properties'))) -project.ext.set('version_code', new Integer(version['versionCode'])) -project.ext.set('version_name', version['versionName']) +project.ext.set('versionCode', new Integer(version['versionCode'])) +project.ext.set('versionName', version['versionName']) /* JitPack: use tag as versionName. */ if (System.env.JITPACK) { diff --git a/library/build.gradle b/library/build.gradle index ad20bae1..4f01f1e1 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -3,6 +3,10 @@ plugins { id 'maven-publish' } +base { + archivesName = 'androidx_github_' + rootProject.ext.get('versionName') +} + android { namespace 'io.syslogic.github.api' buildToolsVersion = '34.0.0' @@ -10,7 +14,6 @@ android { defaultConfig { minSdk 22 targetSdk 34 - setProperty("archivesBaseName", "androidx_github_$version_name") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFile "${project.rootDir}/proguard/consumer.pro" javaCompileOptions { @@ -61,12 +64,12 @@ android { dependencies { + // Material Design Components + implementation "com.google.android.material:material:$material_design_version" + // Annotations implementation "androidx.annotation:annotation:$annotation_version" - // Material Design Components - implementation "com.google.android.material:material:$material_version" - // App Compat implementation "androidx.appcompat:appcompat:$appcompat_version" @@ -85,8 +88,8 @@ dependencies { exclude group: "com.google.code.gson", module: "gson" } - testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test.ext:junit:1.1.5' + testImplementation "junit:junit:$junit_version" + androidTestImplementation "androidx.test.ext:junit:$test_junit_version" } tasks.register('javadoc', Javadoc) { @@ -157,7 +160,7 @@ artifacts { } group = 'io.syslogic' -version = rootProject.ext.get('version_name') +version = rootProject.ext.get('versionName') afterEvaluate { publishing { @@ -165,7 +168,7 @@ afterEvaluate { release(MavenPublication) { groupId = group artifactId = 'androidx-github' - version = rootProject.ext.get('version_name') + version = rootProject.ext.get('versionName') from components.getByName('release') pom { name = 'GitHub API Client' diff --git a/mobile/build.gradle b/mobile/build.gradle index 03457bf4..a0db459e 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -4,6 +4,10 @@ plugins { id "androidx.navigation.safeargs" } +base { + archivesName = 'github_client_' + rootProject.ext.get('versionName') +} + android { namespace 'io.syslogic.github' buildToolsVersion = '34.0.0' @@ -13,9 +17,8 @@ android { targetSdk 34 applicationId 'io.syslogic.github' manifestPlaceholders = [ accessToken: "" ] - versionName rootProject.ext.get('version_name') - versionCode rootProject.ext.get('version_code') - setProperty("archivesBaseName", "github_client_$version_name") + versionName rootProject.ext.get('versionName') + versionCode rootProject.ext.get('versionCode') testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testBuildType "debug" multiDexEnabled true @@ -105,12 +108,12 @@ dependencies { api project(path: ':library') + // Material Design Components + implementation "com.google.android.material:material:$material_design_version" + // Annotations implementation "androidx.annotation:annotation:$annotation_version" - // Material Design Components - implementation "com.google.android.material:material:$material_version" - // Flexbox Layout implementation "com.google.android.flexbox:flexbox:$flexbox_version"