Skip to content

Commit

Permalink
Update AGP to Version 8.7.1 (#280)
Browse files Browse the repository at this point in the history
* Upgrade AGP to version 8.7.1 using migration assistant and update Kotlin version to fix build errors.

* Explicitly declare java toolchain version for Java 17.

* Add to CHANGELOG.
  • Loading branch information
sshropshire authored Oct 31, 2024
1 parent f152ce3 commit 3407956
Show file tree
Hide file tree
Showing 13 changed files with 53 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# PayPal Android SDK Release Notes

# unreleased
* Gradle
* Update Kotlin version to `1.9.24`
* Update Android Gradle Plugin (AGP) to version `8.7.1`
* Explicitly declare Java 17 version as the target JVM toolchain

## 1.7.1 (2024-10-29)
* Gradle
* Update Android Gradle Plugin (AGP) to version `8.5.2`
Expand Down
5 changes: 5 additions & 0 deletions CardPayments/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {

android {
namespace 'com.paypal.android.cardpayments'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
compileSdk modules.androidCompileSdk
Expand Down
5 changes: 5 additions & 0 deletions CorePayments/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ plugins {

android {
namespace 'com.paypal.android.corepayments'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
compileSdk modules.androidCompileSdk
Expand Down
7 changes: 6 additions & 1 deletion Demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ def paypalProperties = loadPropertiesFromFile("paypal.properties")

android {
namespace 'com.paypal.android'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
applicationId "com.paypal.android"
Expand All @@ -32,7 +37,7 @@ android {

composeOptions {
// Ref: https://developer.android.com/jetpack/androidx/releases/compose-kotlin#pre-release_kotlin_compatibility
kotlinCompilerExtensionVersion "1.4.7"
kotlinCompilerExtensionVersion "1.5.14"
}

buildTypes {
Expand Down
5 changes: 5 additions & 0 deletions FraudProtection/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins {

android {
namespace 'com.paypal.android.fraudprotection'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
compileSdk modules.androidCompileSdk
Expand Down
5 changes: 5 additions & 0 deletions PayPalNativePayments/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins {

android {
namespace 'com.paypal.android.paypalnativepayments'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
// TODO: revert once Native XO supports minSdk 21
Expand Down
5 changes: 5 additions & 0 deletions PayPalWebPayments/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins {

android {
namespace 'com.paypal.android.paypalwebpayments'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
compileSdk modules.androidCompileSdk
Expand Down
5 changes: 5 additions & 0 deletions PaymentButtons/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins {

android {
namespace 'com.paypal.android.ui'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
compileSdk modules.androidCompileSdk
Expand Down
5 changes: 5 additions & 0 deletions Venmo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ plugins {

android {
namespace 'com.paypal.android.venmo'
java {
toolchain {
languageVersion = modules.kotlinToolchainLanguageVersion
}
}

defaultConfig {
compileSdk modules.androidCompileSdk
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ buildscript {
"androidCompileSdk": 35,
"sourceCompatibility": JavaVersion.VERSION_1_8,
"targetCompatibility": JavaVersion.VERSION_1_8,
"kotlinJvmTarget": JavaVersion.VERSION_1_8.toString()
"kotlinJvmTarget": JavaVersion.VERSION_1_8.toString(),
"kotlinToolchainLanguageVersion": JavaLanguageVersion.of(17)
]
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
androidGradlePlugin = "8.5.2"
androidGradlePlugin = "8.7.1"
androidxAppcompat = "1.3.1"
androidxComposeBom = "2023.05.01"
androidxCoreKtx = "1.6.0"
Expand All @@ -25,7 +25,7 @@ hiltVersion = "2.51.1"
json = "20220320"
jsonAssert = "1.4.0"
junit = "4.13.2"
kotlinVersion = "1.8.21"
kotlinVersion = "1.9.24"
kotlinxAndroidCoroutinesTest = "1.6.1"
kotlinxCoroutinesAndroid = "1.6.1"
lifecycleRuntimeCompose = "2.6.1"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 21 09:49:22 CDT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 3407956

Please sign in to comment.