Skip to content

Commit

Permalink
do some chores [#85]
Browse files Browse the repository at this point in the history
  • Loading branch information
DokySp committed Oct 11, 2024
1 parent cd66f95 commit c65175d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AppPreferencesSerializer @Inject constructor(): Serializer<AppPreferences>
// You need to check default value of each types from link below
// https://protobuf.dev/programming-guides/proto3/
// e.g. isDebugMode = true
externalCameraIp = AppPolicy.DEFAULT_EXTERNAL_CAMERA_IP
externalCameraIp = AppPolicy.EXTERNAL_CAMERA_DEFAULT_SERVER_URL
build()
}

Expand Down
9 changes: 9 additions & 0 deletions presenter/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@
<string name="app_name">presenter</string>

<string name="home_button_start">시작하기</string>
<string name="select_frame_button_next">&#160;&#160;선택 〉</string>

<string name="select_method_timer_button_icon">🕑</string>
<string name="select_method_timer_button_text">Timer</string>
<string name="select_method_gesture_button_icon">👋</string>
<string name="select_method_gesture_button_text">Gesture</string>
<string name="select_method_gesture_button_toast">준비중입니다.</string>

<string name="camera_exclamation_text">촬영 시 움직이지 마세요</string>
</resources>
7 changes: 3 additions & 4 deletions util/src/main/java/com/foke/together/util/AppPolicy.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,26 @@ package com.foke.together.util
object AppPolicy {
const val isDebugMode = true

const val DEFAULT_EXTERNAL_CAMERA_IP = "192.168.0.71:5000"

// network
const val WEB_SERVER_URL = "https://4cuts.store/"
const val WEB_CONNECT_TIMEOUT = 10L
const val WEB_READ_TIMEOUT = 10L
const val WEB_WRITE_TIMEOUT = 10L
const val WEB_FILE_MAX_CONTENT_LENGTH = 20971520

const val EXTERNAL_CAMERA_DEFAULT_SERVER_URL = "http://192.168.0.71:5000"
const val EXTERNAL_CAMERA_DEFAULT_SERVER_URL = "http://0.0.0.0"
const val EXTERNAL_CAMERA_CONNECT_TIMEOUT = 10L
const val EXTERNAL_CAMERA_READ_TIMEOUT = 10L
const val EXTERNAL_CAMERA_WRITE_TIMEOUT = 10L

// capture settings
const val CAPTURE_INTERVAL = 10000L
const val CAPTURE_COUNT = 4
const val COUNTDOWN_INTERVAL = 10L

// file settings
const val CAPTURED_FOUR_CUT_IMAGE_NAME = "capture"
const val SINGLE_ROW_FINAL_IMAGE_NAME = "final_single_row"
const val TWO_ROW_FINAL_IMAGE_NAME = "final_two_row"

const val DEFAULT_QR_CODE_IMAGE_NAME = "qrcode"
}
1 change: 1 addition & 0 deletions util/src/main/java/com/foke/together/util/TimeUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import java.util.Date
object TimeUtil {
fun getCurrentDisplayTime(): String {
val dateFormat = "yyyy.MM.dd"
// TODO: LocalDate로 변경
val date = Date(System.currentTimeMillis())
val simpleDateFormat = SimpleDateFormat(dateFormat)
val simpleDate: String = simpleDateFormat.format(date)
Expand Down

0 comments on commit c65175d

Please sign in to comment.