Skip to content

Conversation

jan-meli
Copy link
Contributor

This commit updates the project to target Android API 34 and makes the necessary changes to Gradle configuration and dependencies.

Key changes:

  • Updated targetSdkVersion and compileSdkVersion to 34.
  • Updated buildToolsVersion to 34.0.0.
  • Updated gradleBuildToolsVersion to 8.1.4.
  • Updated gradleWrapperVersion to 8.1.1 and Gradle distribution URL to gradle-8.0-bin.zip.
  • Updated Kotlin version to 2.0.0.
  • Updated Material Design version to 1.10.0.
  • Updated various AndroidX library versions (ConstraintLayout, Core KTX, Fragment KTX, Lifecycle, AppCompat).
  • Updated Gson to 2.10.1 and OkHttp to 4.12.0.
  • Updated nativesdk to version 5.1.0.
  • Updated Android Gradle Plugin versions in build.gradle.
  • Added namespace and buildFeatures { buildConfig = true } in app/build.gradle.
  • Removed package attribute from app/src/main/AndroidManifest.xml as it's now inferred from namespace.
  • Updated color resource used for error feedback in LaunchScannerActivity and PaymentLauncherActivity to android.R.color.holo_red_dark.
  • Updated gradle/android-base.gradle:
    • Changed compileSdkVersion to compileSdk.
    • Changed minSdkVersion to minSdk.
    • Changed targetSdkVersion to targetSdk.
    • Changed testInstrumentationRunner to androidx.test.runner.AndroidJUnitRunner.
    • Changed lintOptions to lint.
  • Removed compileOptions for Java 1.8 compatibility from gradle/android-app.gradle as it's default in newer AGP.

Pull Request

Ticket

SMARTI-xxx

Description

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update.

Checklist

  • I added changes made to CHANGELOG.md
  • I have validated and corrected code quality comments.
  • I selected the correct milestone.
  • I selected myself as PR owner.
  • Verify that you are merged with the latest in master
  • I have validated the pull request name format ([SMARTI-XXXX] Jira ticket title).
  • I tested my changes using the DemoApp.

Screenshots (if applies)

Before After
N/A N/A
-- --

This commit updates the project to target Android API 34 and makes the necessary changes to Gradle configuration and dependencies.

Key changes:
- Updated `targetSdkVersion` and `compileSdkVersion` to 34.
- Updated `buildToolsVersion` to 34.0.0.
- Updated `gradleBuildToolsVersion` to 8.1.4.
- Updated `gradleWrapperVersion` to 8.1.1 and Gradle distribution URL to `gradle-8.0-bin.zip`.
- Updated Kotlin version to 2.0.0.
- Updated Material Design version to 1.10.0.
- Updated various AndroidX library versions (ConstraintLayout, Core KTX, Fragment KTX, Lifecycle, AppCompat).
- Updated Gson to 2.10.1 and OkHttp to 4.12.0.
- Updated `nativesdk` to version 5.1.0.
- Updated Android Gradle Plugin versions in `build.gradle`.
- Added `namespace` and `buildFeatures { buildConfig = true }` in `app/build.gradle`.
- Removed `package` attribute from `app/src/main/AndroidManifest.xml` as it's now inferred from `namespace`.
- Updated color resource used for error feedback in `LaunchScannerActivity` and `PaymentLauncherActivity` to `android.R.color.holo_red_dark`.
- Updated `gradle/android-base.gradle`:
    - Changed `compileSdkVersion` to `compileSdk`.
    - Changed `minSdkVersion` to `minSdk`.
    - Changed `targetSdkVersion` to `targetSdk`.
    - Changed `testInstrumentationRunner` to `androidx.test.runner.AndroidJUnitRunner`.
    - Changed `lintOptions` to `lint`.
- Removed `compileOptions` for Java 1.8 compatibility from `gradle/android-app.gradle` as it's default in newer AGP.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant