Skip to content

Commit

Permalink
Missing imports (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadwhy authored Jun 1, 2024
1 parent ce7ae28 commit 74cab22
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/src/fdroid/java/ani/dantotsu/others/AppUpdater.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
package ani.dantotsu.others

import androidx.fragment.app.FragmentActivity
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.text.SimpleDateFormat
import java.util.Locale

object AppUpdater {
suspend fun check(activity: FragmentActivity, post: Boolean = false) {
//no-op
// no-op
}

@Serializable
Expand All @@ -28,5 +32,9 @@ object AppUpdater {
fun timeStamp(): Long {
return dateFormat.parse(createdAt)!!.time
}

companion object {
private val dateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.getDefault())
}
}
}
}

0 comments on commit 74cab22

Please sign in to comment.