Skip to content

Commit

Permalink
chore(deps): Amplify Android 2.15.0 (#4279)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people authored and NikaHsn committed Apr 17, 2024
1 parent f470a6c commit 8d862bb
Show file tree
Hide file tree
Showing 55 changed files with 1,257 additions and 1,119 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0
with:
distribution: "corretto" # Amazon Corretto Build of OpenJDK
java-version: "11"
java-version: "17"

- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/flutter_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
exclude:
- channel: ${{ (github.event_name == 'pull_request') && 'beta' || 'NONE' }}
steps:
- name: Setup Java
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # 3.12.0
with:
distribution: "corretto" # Amazon Corretto Build of OpenJDK
java-version: "17"

- name: Git Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # 3.6.0

Expand Down
6 changes: 3 additions & 3 deletions canaries/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ android {
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}

sourceSets {
Expand Down

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

28 changes: 14 additions & 14 deletions packages/amplify_datastore/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'com.amazonaws.amplify.amplify_datastore'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.7.10'
ext.kotlin_version = '1.9.10'
repositories {
mavenLocal()
google()
Expand Down Expand Up @@ -32,7 +32,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'org.jlleitschuh.gradle.ktlint'

android {
compileSdkVersion 33
compileSdk 33

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -54,11 +54,14 @@ android {
htmlReport false
}
compileOptions {
// Support for Java 8 features
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '17'
}

testOptions {
unitTests {
includeAndroidResources = true
Expand All @@ -69,13 +72,10 @@ android {
}

dependencies {
// Support for Java 8 features
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'

implementation 'com.amplifyframework:aws-auth-cognito:2.13.0'
implementation "com.amplifyframework:aws-api:2.13.0"
implementation "com.amplifyframework:aws-datastore:2.13.0"
implementation "com.amplifyframework:aws-api-appsync:2.13.0"
implementation 'com.amplifyframework:aws-auth-cognito:2.15.0'
implementation "com.amplifyframework:aws-api:2.15.0"
implementation "com.amplifyframework:aws-datastore:2.15.0"
implementation "com.amplifyframework:aws-api-appsync:2.15.0"
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1'

Expand All @@ -88,7 +88,7 @@ dependencies {

// Tests must be updated if bumped
//noinspection GradleDependency
testImplementation 'org.robolectric:robolectric:4.3.1'
testImplementation 'org.robolectric:robolectric:4.12.1'
testImplementation 'com.fasterxml.jackson.core:jackson-core:2.12.4'
testImplementation 'com.fasterxml.jackson.core:jackson-annotations:2.12.4'
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.12.4'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip

0 comments on commit 8d862bb

Please sign in to comment.