Skip to content

Commit a51c31e

Browse files
khatruong2009Nika HassaniJordan-Nelson
authored
chore(deps): Amplify Android 2.15.0 (#4279)
* chore(deps): Amplify Android 2.15.0 * chore: update Kotlin version --------- Co-authored-by: Nika Hassani <nikaws@amazon.com> Co-authored-by: Jordan Nelson <Jordanryannelson@gmail.com>
1 parent f4faad6 commit a51c31e

File tree

55 files changed

+1257
-1119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1257
-1119
lines changed

.github/workflows/e2e_android.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0
4646
with:
4747
distribution: "corretto" # Amazon Corretto Build of OpenJDK
48-
java-version: "11"
48+
java-version: "17"
4949

5050
- name: Install dependencies
5151
uses: ./.github/composite_actions/install_dependencies

.github/workflows/flutter_android.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ jobs:
3131
exclude:
3232
- channel: ${{ (github.event_name == 'pull_request') && 'beta' || 'NONE' }}
3333
steps:
34+
- name: Setup Java
35+
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0
36+
with:
37+
distribution: "corretto" # Amazon Corretto Build of OpenJDK
38+
java-version: "17"
39+
3440
- name: Git Checkout
3541
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0
3642

canaries/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ android {
3030
ndkVersion flutter.ndkVersion
3131

3232
compileOptions {
33-
sourceCompatibility JavaVersion.VERSION_1_8
34-
targetCompatibility JavaVersion.VERSION_1_8
33+
sourceCompatibility JavaVersion.VERSION_17
34+
targetCompatibility JavaVersion.VERSION_17
3535
}
3636

3737
kotlinOptions {
38-
jvmTarget = '1.8'
38+
jvmTarget = '17'
3939
}
4040

4141
sourceSets {

packages/amplify/amplify_flutter/example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/amplify_datastore/android/build.gradle

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group 'com.amazonaws.amplify.amplify_datastore'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.7.10'
5+
ext.kotlin_version = '1.9.10'
66
repositories {
77
mavenLocal()
88
google()
@@ -32,7 +32,7 @@ apply plugin: 'kotlin-android'
3232
apply plugin: 'org.jlleitschuh.gradle.ktlint'
3333

3434
android {
35-
compileSdkVersion 33
35+
compileSdk 33
3636

3737
sourceSets {
3838
main.java.srcDirs += 'src/main/kotlin'
@@ -54,11 +54,14 @@ android {
5454
htmlReport false
5555
}
5656
compileOptions {
57-
// Support for Java 8 features
58-
coreLibraryDesugaringEnabled true
59-
sourceCompatibility JavaVersion.VERSION_1_8
60-
targetCompatibility JavaVersion.VERSION_1_8
57+
sourceCompatibility JavaVersion.VERSION_17
58+
targetCompatibility JavaVersion.VERSION_17
6159
}
60+
61+
kotlinOptions {
62+
jvmTarget = '17'
63+
}
64+
6265
testOptions {
6366
unitTests {
6467
includeAndroidResources = true
@@ -69,13 +72,10 @@ android {
6972
}
7073

7174
dependencies {
72-
// Support for Java 8 features
73-
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
74-
75-
implementation 'com.amplifyframework:aws-auth-cognito:2.13.0'
76-
implementation "com.amplifyframework:aws-api:2.13.0"
77-
implementation "com.amplifyframework:aws-datastore:2.13.0"
78-
implementation "com.amplifyframework:aws-api-appsync:2.13.0"
75+
implementation 'com.amplifyframework:aws-auth-cognito:2.15.0'
76+
implementation "com.amplifyframework:aws-api:2.15.0"
77+
implementation "com.amplifyframework:aws-datastore:2.15.0"
78+
implementation "com.amplifyframework:aws-api-appsync:2.15.0"
7979
implementation 'com.google.code.gson:gson:2.10.1'
8080
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1'
8181

@@ -88,7 +88,7 @@ dependencies {
8888

8989
// Tests must be updated if bumped
9090
//noinspection GradleDependency
91-
testImplementation 'org.robolectric:robolectric:4.3.1'
91+
testImplementation 'org.robolectric:robolectric:4.12.1'
9292
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
9393
testImplementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.4'
9494
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.12.4'

packages/amplify_datastore/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
36
zipStoreBase=GRADLE_USER_HOME
47
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip

0 commit comments

Comments
 (0)