Skip to content

Commit

Permalink
Update to targetSdkVersion 29
Browse files Browse the repository at this point in the history
  • Loading branch information
cketti committed Sep 19, 2020
1 parent d85b50b commit fc45e05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ buildscript {
ext {
buildConfig = [
'compileSdk': 29,
'targetSdk': 28,
'targetSdk': 29,
'minSdk': 21,
'buildTools': '29.0.3',
'robolectricSdk': 28
'robolectricSdk': 29
]

versions = [
Expand Down

0 comments on commit fc45e05

Please sign in to comment.