Skip to content

Commit

Permalink
Merge pull request #78 from babybuddy/remove-old-api-endpoints
Browse files Browse the repository at this point in the history
Remove old api endpoints, and fix Date/time can not be in the future
  • Loading branch information
MrApplejuice authored Sep 26, 2024
2 parents d429282 + 69e4c83 commit f62f8d4
Show file tree
Hide file tree
Showing 11 changed files with 185 additions and 450 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.7.7'
implementation 'androidx.navigation:navigation-ui-ktx:2.7.7'
implementation 'androidx.navigation:navigation-fragment-ktx:2.8.0'
implementation 'androidx.navigation:navigation-ui-ktx:2.8.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.concurrent:concurrent-futures:1.2.0'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
package eu.pkgsoftware.babybuddywidgets

import java.text.SimpleDateFormat
import java.util.Locale

object Constants {
@JvmField
val SERVER_DATE_FORMAT = SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss z", Locale.ENGLISH)

enum class FeedingTypeEnum(@JvmField var value: Int, @JvmField var post_name: String) {
BREAST_MILK(0, "breast milk"),
FORMULA(1, "formula"),
Expand Down
Loading

0 comments on commit f62f8d4

Please sign in to comment.