Skip to content

Commit

Permalink
Remove threentenabp-extensions (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikc5000 committed Jul 30, 2020
1 parent 11f0dd1 commit 267c0cb
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 908 deletions.
2 changes: 0 additions & 2 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ object Versions {
const val atomicfu = "0.14.2"
const val androidxTest = "1.2.0"
const val googleTruth = "1.0.1"
const val threetenabp = "1.2.4"
const val kotlinpoet = "1.6.0"
const val androidDesugarJdkLibs = "1.0.9"
}
Expand All @@ -27,7 +26,6 @@ object Libs {
}

const val googleTruth = "com.google.truth:truth:${Versions.googleTruth}"
const val threetenabp = "com.jakewharton.threetenabp:threetenabp:${Versions.threetenabp}"
const val kotlinpoet = "com.squareup:kotlinpoet:${Versions.kotlinpoet}"
const val androidDesugarJdkLibs = "com.android.tools:desugar_jdk_libs:${Versions.androidDesugarJdkLibs}"
}
7 changes: 7 additions & 0 deletions docs/advanced/custom-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ IslandTime.initialize {
dateTimeTextProvider = MyDateTimeTextProvider
timeZoneTextProvider = MyTimeZoneTextProvider
}
```

Island Time can only be initialized once. Subsequent attempts to initialize it will throw an exception. This is intended to alert you to potentially undesirable behavior as a result of late initialization or attempts to use different providers in different places. In a test environment though, this can sometimes be problematic, so you may explciitly restore Island Time to an unitialized state using the `reset()` function:

```kotlin
IslandTime.reset()
// It's now safe to initialize Island Time again
```
45 changes: 0 additions & 45 deletions docs/extensions/threetenabp.md

This file was deleted.

10 changes: 2 additions & 8 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Island Time requires Java 8 or above.

### Android

Island Time requires a minimum compile SDK of API 15 or later and Java 8 support should be [turned on](https://developer.android.com/studio/write/java8-support).
Island Time requires Android Gradle Plugin 4.0 or later and a minimum compile SDK of API 15.

## Gradle Setup

Expand Down Expand Up @@ -61,9 +61,7 @@ Extensions are also available for [serialization](extensions/serialization.md) a

### Android

#### Android Studio 4.0 or later

Make sure that [core library desugaring](https://developer.android.com/studio/preview/features#j8-desugar) is enabled.
You'll need to turn on [core library desugaring](https://developer.android.com/studio/preview/features#j8-desugar) if it isn't enabled already.

=== "Groovy"
```groovy
Expand Down Expand Up @@ -109,10 +107,6 @@ Make sure that [core library desugaring](https://developer.android.com/studio/pr
}
```

#### Android Studio 3.6 or earlier

You'll need to add an additional dependency on the ThreeTen Android Backport. You can find details [here](extensions/threetenabp.md).

### Snapshot builds

Development snapshot builds are available in the Sonatype OSS Snapshot Repository. To use one, you'll need to add that repository to your project's Gradle script:
Expand Down
34 changes: 0 additions & 34 deletions extensions/threetenabp/build.gradle.kts

This file was deleted.

5 changes: 0 additions & 5 deletions extensions/threetenabp/gradle.properties

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions extensions/threetenabp/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

0 comments on commit 267c0cb

Please sign in to comment.