Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/save link #192

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root = true
charset = utf-8
indent_size = 2
indent_style = space
max_line_length = 150
max_line_length = 200
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ interface SecurityDataStore {
@SetValue(KEY_MARKET_UPDATE)
suspend fun setMarketUpdate(boolean: Boolean)

@GetValue(TOOLTIP)
fun flowTooltip(): Flow<String>

@SetValue(TOOLTIP)
suspend fun setTooltip(boolean: String)

@GetValue(RECENT_LINK)
fun flowRecentLink(): Flow<String>

@SetValue(RECENT_LINK)
suspend fun setRecentLink(link: String)

@ClearValues
suspend fun clearAll()

Expand All @@ -61,5 +73,7 @@ interface SecurityDataStore {
const val KEY_FCM_ALLOWED = "key-fcm-allowed"
const val KEY_POPUP_VISIBILITY = "key-popup-dialog"
const val KEY_MARKET_UPDATE = "key-market-update"
const val TOOLTIP = "tooltip"
const val RECENT_LINK = "recent_link"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.annotation.SuppressLint
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import androidx.core.content.ContextCompat
import designsystem.components.button.state.LinkMindButtonState
Expand Down Expand Up @@ -58,6 +59,14 @@ class LinkMindBlockButton @JvmOverloads constructor(
}
}

fun showLoadingUsingSaveLink(loadingText: String = "์ €์žฅ ์ค‘...") {
binding.apply {
progressBar.visibility = View.VISIBLE
tvBtn.text = loadingText
state = LinkMindButtonState.DISABLE
}
}

init {
val inflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater
binding = ButtonBlockLinkmindBinding.inflate(inflater, this, true)
Expand Down
13 changes: 13 additions & 0 deletions core/designsystem/src/main/res/drawable/ic_read.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M15,13L11,17L9,15M19,9H16.2C15.08,9 14.52,9 14.092,8.782C13.715,8.59 13.41,8.284 13.218,7.908C13,7.48 13,6.92 13,5.8V3M19,17.8V9.325C19,8.836 19,8.592 18.944,8.362C18.895,8.157 18.815,7.962 18.705,7.783C18.581,7.582 18.409,7.409 18.063,7.063L14.938,3.937C14.592,3.591 14.419,3.418 14.217,3.295C14.038,3.185 13.843,3.104 13.639,3.055C13.409,3 13.164,3 12.675,3H8.2C7.08,3 6.52,3 6.092,3.218C5.715,3.41 5.41,3.716 5.218,4.092C5,4.52 5,5.08 5,6.2V17.8C5,18.92 5,19.48 5.218,19.908C5.41,20.284 5.715,20.59 6.092,20.782C6.52,21 7.08,21 8.2,21H15.8C16.92,21 17.48,21 17.908,20.782C18.284,20.59 18.59,20.284 18.782,19.908C19,19.48 19,18.92 19,17.8Z"
android:strokeLineJoin="round"
android:strokeWidth="2"
android:fillColor="#00000000"
android:strokeColor="#CCCCCC"
android:strokeLineCap="round"/>
</vector>
13 changes: 13 additions & 0 deletions core/designsystem/src/main/res/drawable/ic_read_check.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M15,13L11,17L9,15M19,9H16.2C15.08,9 14.52,9 14.092,8.782C13.715,8.59 13.41,8.284 13.218,7.908C13,7.48 13,6.92 13,5.8V3M19,17.8V9.325C19,8.836 19,8.592 18.944,8.362C18.895,8.157 18.815,7.962 18.705,7.783C18.581,7.582 18.409,7.409 18.063,7.063L14.938,3.937C14.592,3.591 14.419,3.418 14.217,3.295C14.038,3.185 13.843,3.104 13.639,3.055C13.409,3 13.164,3 12.675,3H8.2C7.08,3 6.52,3 6.092,3.218C5.715,3.41 5.41,3.716 5.218,4.092C5,4.52 5,5.08 5,6.2V17.8C5,18.92 5,19.48 5.218,19.908C5.41,20.284 5.715,20.59 6.092,20.782C6.52,21 7.08,21 8.2,21H15.8C16.92,21 17.48,21 17.908,20.782C18.284,20.59 18.59,20.284 18.782,19.908C19,19.48 19,18.92 19,17.8Z"
android:strokeLineJoin="round"
android:strokeWidth="2"
android:fillColor="#00000000"
android:strokeColor="#F05A39"
android:strokeLineCap="round"/>
</vector>
9 changes: 9 additions & 0 deletions core/designsystem/src/main/res/drawable/ic_share.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M18,15V18H6V15H4V18C4,19.1 4.9,20 6,20H18C19.1,20 20,19.1 20,18V15H18ZM7,9L8.41,10.41L11,7.83V16H13V7.83L15.59,10.41L17,9L12,4L7,9Z"
android:fillColor="#4C4C4C"/>
</vector>
15 changes: 15 additions & 0 deletions core/designsystem/src/main/res/drawable/tool_tip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="150dp"
android:height="44dp"
android:viewportWidth="150"
android:viewportHeight="44">
<path
android:pathData="M8.5,0L133.5,0A8,8 0,0 1,141.5 8L141.5,36A8,8 0,0 1,133.5 44L8.5,44A8,8 0,0 1,0.5 36L0.5,8A8,8 0,0 1,8.5 0z"
android:fillColor="#191919"/>
<path
android:pathData="M11.53,10.48H16.22V17.15H11.53V10.48ZM15.52,11.08H12.24V16.55H15.52V11.08ZM18.29,9.41H19.02V13.67H20.81V14.3H19.02V19.84H18.29V9.41ZM21.88,10.5H27.69V11.13H25.13V12.75C25.13,14.55 26.56,16.34 28,16.97L27.58,17.56C26.39,16.98 25.25,15.74 24.77,14.24C24.3,15.81 23.16,17.21 22,17.81L21.58,17.24C22.97,16.54 24.4,14.56 24.4,12.75V11.13H21.88V10.5ZM29.28,9.41H30V19.84H29.28V9.41ZM32.55,10.2H37.25V14.73H32.55V10.2ZM36.55,10.79H33.24V14.13H36.55V10.79ZM39.36,9.41H40.09V12.21H41.69V12.83H40.09V15.59H39.36V9.41ZM33.4,16.18H40.09V19.85H39.36V16.77H33.4V16.18ZM47.23,10.12C49.39,10.12 50.98,11.25 50.98,12.94C50.98,14.64 49.39,15.76 47.23,15.76C45.09,15.76 43.49,14.64 43.49,12.94C43.49,11.25 45.09,10.12 47.23,10.12ZM47.23,10.72C45.49,10.72 44.17,11.64 44.17,12.94C44.17,14.26 45.49,15.17 47.23,15.17C48.97,15.17 50.28,14.26 50.28,12.94C50.28,11.64 48.97,10.72 47.23,10.72ZM42.53,17.78H51.97V18.4H42.53V17.78ZM53.02,17.87H57.36V15.76H54.23V12.65H60.53V10.82H54.21V10.22H61.25V13.24H54.95V15.15H61.49V15.76H58.08V17.87H62.46V18.48H53.02V17.87ZM74.04,9.4H74.76V19.85H74.04V13.88H71.61V13.28H74.04V9.4ZM66.56,10.5H72.18V11.12H69.72V12.66C69.72,14.37 71.11,16.25 72.52,16.94L72.08,17.52C70.94,16.92 69.85,15.62 69.37,14.15C68.91,15.71 67.8,17.1 66.63,17.74L66.2,17.15C67.6,16.46 69,14.49 69,12.66V11.12H66.56V10.5ZM77.01,10.22H82.57V10.83H80.16V11.43C80.16,12.84 81.27,14.08 82.74,14.6L82.39,15.16C81.21,14.74 80.25,13.88 79.82,12.78C79.39,14.03 78.38,15 77.14,15.46L76.76,14.88C78.26,14.34 79.44,13 79.44,11.44V10.83H77.01V10.22ZM84.07,9.41H84.8V12.17H86.41V12.78H84.8V15.74H84.07V9.41ZM81.51,16.06C83.62,16.06 84.9,16.73 84.9,17.92C84.9,19.12 83.62,19.8 81.51,19.8C79.41,19.8 78.14,19.12 78.14,17.92C78.14,16.73 79.41,16.06 81.51,16.06ZM81.51,16.65C79.88,16.65 78.84,17.14 78.84,17.92C78.84,18.72 79.88,19.23 81.51,19.23C83.16,19.23 84.19,18.72 84.19,17.92C84.19,17.14 83.16,16.65 81.51,16.65ZM94.56,9.42H95.29V12.94H96.9V13.56H95.29V17.25H94.56V9.42ZM87.28,10.76H90.01V9.42H90.74V10.76H93.45V11.36H87.28V10.76ZM90.37,12.02C91.83,12.02 92.83,12.76 92.83,13.94C92.83,15.1 91.83,15.84 90.37,15.84C88.89,15.84 87.91,15.1 87.91,13.94C87.91,12.76 88.89,12.02 90.37,12.02ZM90.37,12.6C89.3,12.6 88.59,13.14 88.59,13.94C88.59,14.73 89.3,15.27 90.37,15.27C91.42,15.27 92.13,14.73 92.13,13.94C92.13,13.14 91.42,12.6 90.37,12.6ZM88.9,16.61H89.61V18.98H95.8V19.59H88.9V16.61ZM108.25,9.42H108.99V15.87H108.25V9.42ZM101.85,14.52C103.68,14.52 105.1,14.46 106.84,14.19L106.92,14.8C105.15,15.08 103.72,15.14 101.85,15.14H101.03V12.26H105V10.7H101.01V10.1H105.7V12.84H101.74V14.52H101.85ZM105.59,16.1C107.74,16.1 109.06,16.77 109.06,17.94C109.06,19.13 107.74,19.8 105.59,19.8C103.42,19.8 102.11,19.13 102.11,17.94C102.11,16.77 103.42,16.1 105.59,16.1ZM105.59,16.7C103.9,16.7 102.84,17.18 102.84,17.94C102.84,18.74 103.9,19.23 105.59,19.23C107.27,19.23 108.34,18.74 108.34,17.94C108.34,17.18 107.27,16.7 105.59,16.7ZM112.14,10.53H119.16V11.84C119.16,13.38 119.16,14.79 118.75,16.86L118.02,16.79C118.25,15.75 118.36,14.84 118.41,13.98L111.99,14.34L111.87,13.73L118.43,13.43C118.46,12.89 118.46,12.36 118.46,11.84V11.14H112.14V10.53ZM110.99,17.67H120.41V18.29H110.99V17.67ZM121.47,14.33H130.92V14.91H121.47V14.33ZM122.62,15.88H129.71V18H123.36V19.12H130.06V19.7H122.65V17.46H129V16.43H122.62V15.88ZM122.69,9.77H129.68V11.82H123.42V12.87H129.87V13.43H122.71V11.3H128.96V10.32H122.69V9.77ZM33.63,23.42H34.36V26.65H35.98V27.25H34.36V30.36H33.63V23.42ZM26.33,29.41C27.19,29.41 28.19,29.41 29.25,29.38V28.54C28.01,28.45 27.22,27.89 27.22,27C27.22,26.05 28.17,25.46 29.6,25.46C31.04,25.46 31.99,26.05 31.99,27C31.99,27.89 31.19,28.44 29.97,28.54V29.34C30.98,29.29 32,29.21 32.95,29.06L33.01,29.6C30.76,30.01 28.25,30.02 26.44,30.02L26.33,29.41ZM27.61,30.94H34.36V33.84H33.63V31.52H27.61V30.94ZM26.6,24.43H29.25V23.33H29.97V24.43H32.61V25.01H26.6V24.43ZM29.6,25.99C28.58,25.99 27.92,26.39 27.92,27C27.92,27.6 28.58,28.02 29.6,28.02C30.63,28.02 31.3,27.6 31.3,27C31.3,26.39 30.63,25.99 29.6,25.99ZM44.61,23.42H45.34V31.08H44.61V23.42ZM38.77,30.29H39.47V32.98H45.69V33.59H38.77V30.29ZM39.79,24.17C41.32,24.17 42.46,25.21 42.46,26.71C42.46,28.19 41.32,29.23 39.79,29.23C38.26,29.23 37.12,28.19 37.12,26.71C37.12,25.21 38.26,24.17 39.79,24.17ZM39.79,24.8C38.67,24.8 37.83,25.61 37.83,26.71C37.83,27.79 38.67,28.6 39.79,28.6C40.91,28.6 41.77,27.79 41.77,26.71C41.77,25.61 40.91,24.8 39.79,24.8ZM54.57,23.41H55.3V27.79H57.09V28.4H55.3V33.84H54.57V23.41ZM47.29,25.13H50.05V23.52H50.79V25.13H53.48V25.74H47.29V25.13ZM50.43,26.72C51.88,26.72 52.93,27.68 52.93,29.08C52.93,30.47 51.88,31.43 50.43,31.43C48.99,31.43 47.95,30.47 47.95,29.08C47.95,27.68 48.99,26.72 50.43,26.72ZM50.43,27.34C49.39,27.34 48.64,28.08 48.64,29.08C48.64,30.07 49.39,30.82 50.43,30.82C51.47,30.82 52.23,30.07 52.23,29.08C52.23,28.08 51.47,27.34 50.43,27.34ZM65.61,23.4H66.33V33.85H65.61V28.13H63.47V27.52H65.61V23.4ZM59,30.68C60.91,30.68 62.19,30.62 63.74,30.34L63.81,30.95C62.24,31.25 60.93,31.31 59,31.31H58.22V27.35H62.12V25.03H58.19V24.43H62.83V27.96H58.94V30.68H59ZM78.31,23.4H79.04V27.74H80.8V28.36H79.04V33.84H78.31V23.4ZM76.39,24.55C76.39,27.44 74.95,30.12 71.63,31.79L71.22,31.21C73.98,29.84 75.48,27.67 75.66,25.16H71.66V24.55H76.39ZM81.58,31.84H85.92V29.46H82.74V24.17H83.46V26.14H89.12V24.17H89.84V29.46H86.64V31.84H91.02V32.46H81.58V31.84ZM83.46,26.75V28.86H89.12V26.75H83.46ZM96.16,27.24H98.05V23.66H98.74V33.29H98.05V27.85H96.16V27.24ZM94.34,24.43H95.04V26.5C95.04,28.14 95.96,29.94 97.32,30.73L96.88,31.3C95.86,30.68 95.08,29.51 94.7,28.19C94.33,29.63 93.49,30.88 92.44,31.52L91.97,30.98C93.35,30.18 94.34,28.31 94.34,26.51V24.43ZM100.17,23.41H100.87V33.84H100.17V23.41ZM102.55,31.84H104.96V28.9C104.07,28.45 103.51,27.71 103.51,26.76C103.51,25.16 105.07,24.12 107.26,24.12C109.45,24.12 111,25.16 111,26.76C111,27.7 110.46,28.44 109.57,28.9V31.84H112V32.45H102.55V31.84ZM107.26,24.72C105.49,24.72 104.21,25.54 104.21,26.76C104.21,27.97 105.49,28.8 107.26,28.8C109.01,28.8 110.31,27.97 110.31,26.76C110.31,25.54 109.01,24.72 107.26,24.72ZM105.68,31.84H108.85V29.17C108.37,29.3 107.85,29.38 107.26,29.38C106.68,29.38 106.15,29.3 105.68,29.17V31.84ZM114.82,24.34L114.68,31.13H114.01L113.87,24.34H114.82ZM114.35,32.08C114.66,32.08 114.88,32.29 114.88,32.6C114.88,32.92 114.66,33.14 114.35,33.14C114.04,33.14 113.81,32.92 113.81,32.6C113.81,32.29 114.04,32.08 114.35,32.08Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M141.66,16.24C140.33,15.3 138.5,16.24 138.5,17.87V27.13C138.5,28.76 140.33,29.7 141.66,28.76L148.2,24.13C149.32,23.33 149.32,21.67 148.2,20.87L141.66,16.24Z"
android:fillColor="#191919"/>
</vector>
15 changes: 15 additions & 0 deletions core/designsystem/src/main/res/drawable/tooltip_copy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="123dp"
android:height="38dp"
android:viewportWidth="123"
android:viewportHeight="38">
<path
android:pathData="M6,8L117,8A6,6 0,0 1,123 14L123,32A6,6 0,0 1,117 38L6,38A6,6 0,0 1,0 32L0,14A6,6 0,0 1,6 8z"
android:fillColor="#191919"/>
<path
android:pathData="M18.27,17.41H19V23.72H18.27V17.41ZM12.1,24.32H19V27.84H18.27V24.94H12.1V24.32ZM10.88,18.19H16.6V18.8H14.12V19.4C14.12,20.87 15.35,22.14 16.83,22.64L16.46,23.22C15.24,22.79 14.22,21.89 13.77,20.72C13.34,21.98 12.3,22.97 11.07,23.42L10.68,22.86C12.18,22.3 13.37,20.95 13.37,19.4V18.8H10.88V18.19ZM26.51,20.02H28.77V17.41H29.49V23.06H28.77V20.63H26.51V20.02ZM22.94,23.59H23.66V25.01H28.78V23.59H29.49V27.68H22.94V23.59ZM23.66,25.61V27.07H28.78V25.61H23.66ZM21.32,18.1H26.87V18.7H24.47V19.15C24.47,20.57 25.62,21.86 27.08,22.39L26.69,22.97C25.53,22.52 24.57,21.61 24.14,20.48C23.7,21.74 22.67,22.75 21.45,23.23L21.06,22.64C22.54,22.09 23.74,20.71 23.74,19.16V18.7H21.32V18.1ZM34.26,22.88H38.6V21.49H35.53V17.65H36.25V18.94H41.7V17.65H42.43V21.49H39.32V22.88H43.67V23.5H34.26V22.88ZM35.3,24.65H42.49V27.84H41.77V25.25H35.3V24.65ZM36.25,19.52V20.9H41.7V19.52H36.25ZM47.39,18.36H48.09V20.36C48.09,22.19 49.44,24.1 50.84,24.79L50.4,25.37C49.26,24.76 48.21,23.47 47.76,21.97C47.3,23.56 46.23,24.94 45.08,25.58L44.63,25C46.04,24.26 47.39,22.26 47.39,20.36V18.36ZM51.96,17.41H52.69V21.72H54.49V22.34H52.69V27.84H51.96V17.41ZM62.54,17.36H63.27V19.99H64.89V20.62H63.27V23.17H62.54V17.36ZM56.77,23.76H63.27V25.94H57.5V27.12H63.68V27.71H56.81V25.39H62.55V24.32H56.77V23.76ZM55.27,18.42H57.99V17.28H58.73V18.42H61.44V19.01H55.27V18.42ZM58.35,19.56C59.84,19.56 60.81,20.22 60.81,21.28C60.81,22.33 59.84,22.98 58.35,22.98C56.85,22.98 55.89,22.33 55.89,21.28C55.89,20.22 56.85,19.56 58.35,19.56ZM58.35,20.12C57.29,20.12 56.58,20.58 56.58,21.28C56.58,21.97 57.29,22.44 58.35,22.44C59.42,22.44 60.12,21.97 60.12,21.28C60.12,20.58 59.42,20.12 58.35,20.12ZM72.82,17.82H73.58V18.44C73.58,19.99 75.71,21.24 77.39,21.5L77.08,22.08C75.58,21.82 73.86,20.9 73.2,19.57C72.57,20.93 70.84,21.82 69.32,22.08L69.02,21.5C70.72,21.24 72.82,20.03 72.82,18.44V17.82ZM68.49,23.38H77.91V23.99H73.54V27.84H72.82V23.99H68.49V23.38ZM84.45,23.87H85.15V24.52C85.15,25.49 85.69,26.51 86.72,27.07C87.75,26.45 88.33,25.33 88.33,24.52V23.87H89.03V24.52C89.03,25.6 89.89,26.69 91.19,27.14L90.83,27.7C89.78,27.31 89.03,26.56 88.67,25.66C88.37,26.51 87.72,27.36 86.75,27.79C85.74,27.38 85.08,26.59 84.78,25.69C84.42,26.54 83.67,27.31 82.67,27.7L82.29,27.14C83.59,26.66 84.45,25.51 84.45,24.52V23.87ZM89.51,17.42H90.24V23.4H89.51V17.42ZM84.68,18.05C86.24,18.05 87.35,19.03 87.35,20.46C87.35,21.89 86.24,22.85 84.68,22.85C83.12,22.85 82.02,21.89 82.02,20.46C82.02,19.03 83.12,18.05 84.68,18.05ZM84.68,18.67C83.54,18.67 82.73,19.43 82.73,20.46C82.73,21.5 83.54,22.25 84.68,22.25C85.83,22.25 86.65,21.5 86.65,20.46C86.65,19.43 85.83,18.67 84.68,18.67ZM94.97,18.25C96.38,18.25 97.4,19.49 97.51,21.48H100.02V17.4H100.73V27.85H100.02V22.07H97.52C97.45,24.13 96.42,25.45 94.97,25.45C93.47,25.45 92.41,24.04 92.41,21.84C92.41,19.64 93.47,18.25 94.97,18.25ZM94.97,18.89C93.86,18.89 93.09,20.1 93.09,21.84C93.09,23.59 93.86,24.8 94.97,24.8C96.07,24.8 96.84,23.59 96.84,21.84C96.84,20.1 96.07,18.89 94.97,18.89ZM102.72,25.84H105.13V22.9C104.23,22.45 103.68,21.71 103.68,20.76C103.68,19.16 105.24,18.12 107.42,18.12C109.62,18.12 111.17,19.16 111.17,20.76C111.17,21.7 110.63,22.44 109.74,22.9V25.84H112.16V26.45H102.72V25.84ZM107.42,18.72C105.66,18.72 104.38,19.54 104.38,20.76C104.38,21.97 105.66,22.8 107.42,22.8C109.18,22.8 110.47,21.97 110.47,20.76C110.47,19.54 109.18,18.72 107.42,18.72ZM105.85,25.84H109.02V23.17C108.54,23.3 108.01,23.38 107.42,23.38C106.85,23.38 106.32,23.3 105.85,23.17V25.84Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M67.76,7.84C68.7,9.17 67.76,11 66.13,11H56.87C55.24,11 54.3,9.17 55.24,7.84L59.87,1.3C60.67,0.18 62.33,0.18 63.13,1.3L67.76,7.84Z"
android:fillColor="#191919"/>
</vector>
Loading
Loading