From fc45e059fc1f4314fd594ff7cb199d390274cda6 Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 20 Sep 2020 01:29:50 +0200 Subject: [PATCH] Update to targetSdkVersion 29 --- .github/workflows/android.yml | 4 ++-- .../com/fsck/k9/message/quote/QuoteDateFormatterTest.kt | 8 ++++---- build.gradle | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index c6bd0c91a..6dda57b11 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -8,9 +8,9 @@ jobs: steps: - uses: actions/checkout@v1 - - name: set up JDK 1.8 + - name: set up JDK 11 uses: actions/setup-java@v1 with: - java-version: 8.0.252 + java-version: 11 - name: Build with Gradle run: ./gradlew assembleDebug testDebugUnitTest ktlintCheck diff --git a/app/core/src/test/java/com/fsck/k9/message/quote/QuoteDateFormatterTest.kt b/app/core/src/test/java/com/fsck/k9/message/quote/QuoteDateFormatterTest.kt index 648aab0b1..7c4327e72 100644 --- a/app/core/src/test/java/com/fsck/k9/message/quote/QuoteDateFormatterTest.kt +++ b/app/core/src/test/java/com/fsck/k9/message/quote/QuoteDateFormatterTest.kt @@ -35,7 +35,7 @@ class QuoteDateFormatterTest { val formattedDate = quoteDateFormatter.format("2020-09-19T20:00:00+00:00".toDate()) - assertThat(formattedDate).isEqualTo("September 19, 2020 8:00:00 PM UTC") + assertThat(formattedDate).isEqualTo("September 19, 2020 at 8:00:00 PM UTC") } @Test @@ -45,7 +45,7 @@ class QuoteDateFormatterTest { val formattedDate = quoteDateFormatter.format("2020-09-19T20:00:00+00:00".toDate()) - assertThat(formattedDate).isEqualTo("19. September 2020 20:00:00 UTC") + assertThat(formattedDate).isEqualTo("19. September 2020 um 20:00:00 UTC") } @Test @@ -55,7 +55,7 @@ class QuoteDateFormatterTest { val formattedDate = quoteDateFormatter.format("2020-09-19T20:00:00+00:00".toDate()) - assertThat(formattedDate).isEqualTo("September 19, 2020 10:00:00 PM GMT+02:00") + assertThat(formattedDate).isEqualTo("September 19, 2020 at 10:00:00 PM GMT+02:00") } @Test @@ -65,7 +65,7 @@ class QuoteDateFormatterTest { val formattedDate = quoteDateFormatter.format("2020-09-19T20:00:00+00:00".toDate()) - assertThat(formattedDate).isEqualTo("19. September 2020 22:00:00 GMT+02:00") + assertThat(formattedDate).isEqualTo("19. September 2020 um 22:00:00 GMT+02:00") } private fun String.toDate() = Date(ZonedDateTime.parse(this).toEpochSecond() * 1000L) diff --git a/build.gradle b/build.gradle index 2ba1fddd1..9278e2247 100644 --- a/build.gradle +++ b/build.gradle @@ -2,10 +2,10 @@ buildscript { ext { buildConfig = [ 'compileSdk': 29, - 'targetSdk': 28, + 'targetSdk': 29, 'minSdk': 21, 'buildTools': '29.0.3', - 'robolectricSdk': 28 + 'robolectricSdk': 29 ] versions = [