From 5fe4942d846ac4a2c9a11cce1a9f894c3347c509 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Fri, 27 Jan 2023 18:13:53 -0700 Subject: [PATCH] Bump AGP --- app/build.gradle | 45 ++++-------------------- app/src/main/AndroidManifest.xml | 3 +- app/src/play/AndroidManifest.xml | 3 +- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 5 files changed, 10 insertions(+), 45 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 6578717..9235e05 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' -apply plugin: 'jacoco' apply plugin: "com.osacky.fladle" def keystoreProperties = new Properties() @@ -18,16 +17,14 @@ try { } android { + packagingOptions { + resources { + excludes += ['META-INF/LICENSE-LGPL-2.1.txt', 'META-INF/LICENSE-LGPL-3.txt', 'META-INF/LICENSE-W3C-TEST', 'META-INF/LICENSE', 'META-INF/DEPENDENCIES'] + } + } configurations.all { resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1' } - packagingOptions { - exclude 'META-INF/LICENSE-LGPL-2.1.txt' - exclude 'META-INF/LICENSE-LGPL-3.txt' - exclude 'META-INF/LICENSE-W3C-TEST' - exclude 'META-INF/LICENSE' - exclude 'META-INF/DEPENDENCIES' - } compileSdkVersion 33 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -74,15 +71,13 @@ android { signingConfig signingConfigs.playRelease } } - dexOptions { - jumboMode true - } testOptions { unitTests { includeAndroidResources = true } execution 'ANDROIDX_TEST_ORCHESTRATOR' } + namespace 'com.wbrawner.simplemarkdown' } dependencies { @@ -132,34 +127,6 @@ android.productFlavors.each { flavor -> } } -jacoco { - toolVersion = '0.8.8' -} - -tasks.withType(Test) { - jacoco.includeNoLocationClasses = true - jacoco.excludes = ['jdk.internal.*'] -} - -task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) { - reports { - xml.enabled = true - html.enabled = true - } - - def fileFilter = [ '**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*' ] - def javaDebugTree = fileTree(dir: "$project.buildDir/intermediates/javac/debug/compileDebugJavaWithJavac/classes", excludes: fileFilter) - def kotlinDebugTree = fileTree(dir: "$project.buildDir/tmp/kotlin-classes/debug", excludes: fileFilter) - def mainSrc = "$project.projectDir/src/main/java" - - sourceDirectories.setFrom(files([mainSrc])) - classDirectories.setFrom(files([javaDebugTree, kotlinDebugTree])) - executionData.setFrom(fileTree(dir: project.buildDir, includes: [ - 'jacoco/testDebugUnitTest.exec', - 'outputs/code-coverage/connected/*coverage.ec' - ])) -} - fladle { variant = 'playDebug' useOrchestrator = true diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 09b99cc..c5c0835 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools"> diff --git a/app/src/play/AndroidManifest.xml b/app/src/play/AndroidManifest.xml index a93ad18..a6fcd8f 100644 --- a/app/src/play/AndroidManifest.xml +++ b/app/src/play/AndroidManifest.xml @@ -1,6 +1,5 @@ - + diff --git a/build.gradle b/build.gradle index 9f1208b..9f1a30f 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { maven {url 'https://plugins.gradle.org/m2/' } } dependencies { - classpath 'com.android.tools.build:gradle:7.3.1' + classpath 'com.android.tools.build:gradle:7.4.0' classpath 'com.google.gms:google-services:4.3.14' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f080157..2862839 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-rc-1-all.zip