Skip to content

Commit

Permalink
refactor: Bump AGP from 7.1.3 to 8.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
abubkr-hago committed Aug 17, 2024
1 parent 8cf87b3 commit c70eb11
Show file tree
Hide file tree
Showing 12 changed files with 87 additions and 51 deletions.
11 changes: 6 additions & 5 deletions bolts-tasks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ java {

javadoc.options.addStringOption('Xdoclint:none', '-quiet')

task sourcesJar(type: Jar) {
tasks.register('sourcesJar', Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allJava
}

task javadocJar(type: Jar, dependsOn: javadoc) {
tasks.register('javadocJar', Jar) {
dependsOn javadoc
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
Expand All @@ -39,7 +40,7 @@ afterEvaluate {
publishing {
publications {
boltsPublication(MavenPublication) {
from components.java
from components.findByName('java')
}
}
}
Expand All @@ -55,8 +56,8 @@ jacocoTestReport {
group = "Reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
xml.enabled true
html.enabled true
xml { enabled true }
html { enabled true }
}
}

Expand Down
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
classpath 'com.android.tools.build:gradle:8.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jacoco:org.jacoco.core:$jacocoVersion"
classpath "com.dicedmelon.gradle:jacoco-android:0.1.5"
classpath "io.freefair.gradle:android-gradle-plugins:4.2.0-m1"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotlessVersion"
}
Expand Down
9 changes: 7 additions & 2 deletions coroutines/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.coroutines'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -37,6 +38,10 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
buildConfig true
}
}

ext {
Expand All @@ -54,7 +59,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions facebook/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.facebook'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -32,6 +33,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
buildConfig true
}
}

dependencies {
Expand All @@ -48,7 +53,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions fcm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.fcm'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -33,6 +34,9 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
buildConfig true
}
}

dependencies {
Expand All @@ -44,7 +48,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions google/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.google'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -37,6 +38,10 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
buildConfig true
}
}

dependencies {
Expand All @@ -51,7 +56,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version = 4.3.0
android.enableJetifier = true
android.useAndroidX = true
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Apr 16 09:27:50 CEST 2022
#Thu Aug 15 20:11:31 GST 2024
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
9 changes: 7 additions & 2 deletions ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.ktx'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -38,6 +39,10 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
buildConfig true
}
}

dependencies {
Expand All @@ -49,7 +54,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down
54 changes: 28 additions & 26 deletions parse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand All @@ -15,6 +16,18 @@ android {
testOptions {
unitTests {
includeAndroidResources = true

all {
// Configure JaCoCo options
jacoco {
includeNoLocationClasses = true
excludes.add("jdk.internal.*")
}
// Configure test logging
testLogging {
events("failed")
}
}
}
}

Expand All @@ -25,20 +38,24 @@ android {
buildTypes {
debug {
testCoverageEnabled = true
buildConfigField("String","PARSE_VERSION","\"${version}\"")
buildConfigField("String", "PARSE_VERSION", "\"${version}\"")
}
release {
minifyEnabled false
testCoverageEnabled = false
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
buildConfigField("String","PARSE_VERSION","\"${version}\"")
buildConfigField("String", "PARSE_VERSION", "\"${version}\"")
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
buildConfig true
}
}

ext {
Expand All @@ -65,38 +82,23 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
}

//endregion

//region Code Coverage

apply plugin: "com.dicedmelon.gradle.jacoco-android"

jacoco {
toolVersion = rootProject.ext.jacocoVersion
}

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
testLogging {
events "failed"
tasks.withType(JacocoReport).configureEach {
jacoco.toolVersion = rootProject.ext.jacocoVersion
reports {
csv.required.set(false)
html.required.set(true)
xml.required.set(true)
}
}

tasks.withType(Test) {
tasks.withType(Test).configureEach {
useJUnitPlatform()
}

jacocoAndroidUnitTestReport {
csv.enabled false
html.enabled true
xml.enabled true
}

//endregion
9 changes: 7 additions & 2 deletions rxjava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ apply plugin: "io.freefair.android-sources-jar"


android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.rxjava'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -38,6 +39,10 @@ android {
kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
buildConfig true
}
}

dependencies {
Expand All @@ -50,7 +55,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions twitter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ apply plugin: "io.freefair.android-javadoc-jar"
apply plugin: "io.freefair.android-sources-jar"

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.parse.twitter'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
Expand Down Expand Up @@ -32,6 +33,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

buildFeatures {
buildConfig true
}
}

dependencies {
Expand All @@ -48,7 +53,7 @@ afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
from components.findByName('release')
}
}
}
Expand Down

0 comments on commit c70eb11

Please sign in to comment.