Skip to content

Commit

Permalink
Remove threetenbp
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfriend committed Dec 19, 2021
1 parent dd8b1fc commit 0775e74
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Expand Up @@ -34,8 +34,6 @@ allprojects {

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
// TODO: AGP 4.0 remove threetenabp in favor of this
// coreLibraryDesugaringEnabled true
allWarningsAsErrors = true
// jvmTarget = JavaVersion.VERSION_11
}
Expand Down
11 changes: 7 additions & 4 deletions bunnies/build.gradle
Expand Up @@ -22,13 +22,16 @@ android {
applicationId "com.fueledbycaffeine.bunnypedia"
minSdkVersion 23
targetSdkVersion 32
versionCode 27
versionName "0.20"
versionCode 28
versionName "0.21"

multiDexEnabled true
}

compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
Expand Down Expand Up @@ -138,14 +141,14 @@ dependencies {
// Logging
implementation 'com.jakewharton.timber:timber:4.7.1'

implementation 'com.jakewharton.threetenabp:threetenabp:1.2.2'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
def ankoVersion = "0.10.8"
implementation "org.jetbrains.anko:anko-commons:$ankoVersion"
implementation "org.jetbrains.anko:anko-sdk23:$ankoVersion"

implementation "com.google.firebase:firebase-crashlytics:18.2.6"

coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
}

def getPassword(String item) {
Expand Down
Expand Up @@ -3,8 +3,8 @@ package com.fueledbycaffeine.bunnypedia.database.model
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.fueledbycaffeine.bunnypedia.R
import org.threeten.bp.Month
import org.threeten.bp.MonthDay
import java.time.Month
import java.time.MonthDay

enum class ZodiacSign(val element: ZodiacElement, val number: Int) {
ARIES(ZodiacElement.FIRE, 1),
Expand Down
Expand Up @@ -6,7 +6,6 @@ import com.fueledbycaffeine.bunnypedia.database.RoomAsset
import com.fueledbycaffeine.bunnypedia.util.CrashlyticsTree
import com.fueledbycaffeine.bunnypedia.util.configureStrictMode
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.jakewharton.threetenabp.AndroidThreeTen
import dagger.android.AndroidInjector
import dagger.android.support.DaggerApplication
import org.jetbrains.anko.defaultSharedPreferences
Expand Down Expand Up @@ -41,8 +40,6 @@ class App : DaggerApplication() {
FirebaseCrashlytics.getInstance()
.setCrashlyticsCollectionEnabled(BuildConfig.DEBUG.not())

AndroidThreeTen.init(this)

this.configureStrictMode()
}

Expand Down
Expand Up @@ -23,9 +23,9 @@ import com.fueledbycaffeine.bunnypedia.ui.EpoxyLayoutContainer
import com.fueledbycaffeine.bunnypedia.ui.GlideApp
import com.google.android.flexbox.FlexboxLayout
import kotlinx.android.synthetic.main.card_hero_details.view.*
import org.threeten.bp.LocalDate
import org.threeten.bp.LocalDateTime
import org.threeten.bp.format.DateTimeFormatter
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter

class CardSectionViewHolder : EpoxyLayoutContainer() {
companion object {
Expand Down

0 comments on commit 0775e74

Please sign in to comment.