From 4fba3a7140d6aaf2a7fd95933bc5d7484f8edc55 Mon Sep 17 00:00:00 2001 From: Jisu Kim Date: Fri, 15 Nov 2024 00:22:13 +0900 Subject: [PATCH] =?UTF-8?q?[WEAV-122]=20Widget=20Service=20Add,=20Profile?= =?UTF-8?q?=20Widget=20=EC=83=9D=EC=84=B1=20API=20=EC=97=B0=EA=B2=B0,=20?= =?UTF-8?q?=EB=B7=B0=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommonKit/Sources/AppCoordinator.swift | 11 +++++++++ .../pencil 1.imageset/Contents.json | 23 ++++++++++++++++++ .../pencil 1.imageset/pencil.png | Bin 0 -> 296 bytes .../pencil 1.imageset/pencil@2x.png | Bin 0 -> 503 bytes .../pencil 1.imageset/pencil@3x.png | Bin 0 -> 700 bytes .../plus_circle_filled.imageset/Contents.json | 23 ++++++++++++++++++ .../plus_circle_filled.png | Bin 0 -> 392 bytes .../plus_circle_filled@2x.png | Bin 0 -> 673 bytes .../plus_circle_filled@3x.png | Bin 0 -> 980 bytes .../ProfileWidget/ProfileWidgetView.swift | 23 ++++++++++++++++-- .../Home/Sources/HomeMain/HomeMainView.swift | 4 +-- .../Home/Sources/Profile/ProfileIntent.swift | 7 +++++- .../Home/Sources/Profile/ProfileView.swift | 20 ++++++++++----- .../WidgetSelection/WidgetSelectionView.swift | 13 +++++++--- .../WidgetWriting/WidgetWritingIntent.swift | 3 ++- 15 files changed, 112 insertions(+), 15 deletions(-) create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/Contents.json create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil.png create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil@2x.png create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil@3x.png create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/plus_circle_filled.imageset/Contents.json create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/plus_circle_filled.imageset/plus_circle_filled.png create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/plus_circle_filled.imageset/plus_circle_filled@2x.png create mode 100644 Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/plus_circle_filled.imageset/plus_circle_filled@3x.png diff --git a/Projects/Core/CommonKit/Sources/AppCoordinator.swift b/Projects/Core/CommonKit/Sources/AppCoordinator.swift index e192070..986c7b8 100644 --- a/Projects/Core/CommonKit/Sources/AppCoordinator.swift +++ b/Projects/Core/CommonKit/Sources/AppCoordinator.swift @@ -43,6 +43,7 @@ public final class AppCoordinator: ObservableObject { } } } + startRefreshMyUserInfo() } @MainActor @@ -108,4 +109,14 @@ public final class AppCoordinator: ObservableObject { AuthState.change(.login) } } + + // 20초마다 한번씩 refreshMyUserInfo() 를 호출 + private func startRefreshMyUserInfo() { + Task { + while true { + try await Task.sleep(for: .seconds(20)) + try await refreshMyUserInfo() + } + } + } } diff --git a/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/Contents.json b/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/Contents.json new file mode 100644 index 0000000..4c3712f --- /dev/null +++ b/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "pencil.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "pencil@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "pencil@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil.png b/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil.png new file mode 100644 index 0000000000000000000000000000000000000000..63927463fe8fe6695506326b8bf5271c8392bcf0 GIT binary patch literal 296 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@H1|*Mc$*~4foCO|{#S9GG!XV7ZFl&wkP>``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eB{$5WP$B+ufw^P>g9WoGc%m2xFl7&OSSb`KSwt8knK7zm$e_}Z~=)f5V6T+3TJ($ l9n;U|{fB1Xxah#=@3KJUE1UMT9-v1UJYD@<);T3K0RX%oZ?FIW literal 0 HcmV?d00001 diff --git a/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil@2x.png b/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..8e0f95838dcf022b58efa2576f3f29751aafcbfc GIT binary patch literal 503 zcmV6- z1Thdr%NOb_bm1ttRnWii^L615I3kKDqM+coa5FMkmvrMGNu`p`qZc`FH;1fQeFtW-5NqBU!KoXvko+7e9Isr5d|8Q=|@zEm(lJLIeHwezVd~{Ji te5XJXekZdnAoogtpG1oaHX4ma7{6aFTa0yV#)|*|002ovPDHLkV1nNh&+GsI literal 0 HcmV?d00001 diff --git a/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil@3x.png b/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/pencil 1.imageset/pencil@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..fe0651a1d18cc4686bc08b79803c4cb3ae83c8ae GIT binary patch literal 700 zcmV;t0z>_YP)Fx7!|C!a8N7`2;Z(4dP(pz%$-o>c;?u+ygb7W+ z{Ju=QNCu`3I{-U@kBo&2XR1@54L)Fr}2LWx8M7soys>vZ(j ziz+K3v;;D(GMuPNL<|Wfl<^CTn=sR;;BqR_U5v+z)gd-UV z#70EOYDh`~v8{*@BqxE`hzQX!l9WKCA~-F4*N0>!5NUFv=aA;W1KD#Vj8sGyZt&pc z62-$BNfWvvnE24dBZ`wJuhXY0k&0NG@qZ>>COt$(iBBTEF~i6G_Dy`7ct(*lkKnye ip%q0@6h%>#hVTca^Nz10b7&9%0000 z_c*A`)U+^Frn%`f?zg73sWvrn{f|&ET$(Q8?;&1H&qKzfy4G*Hv5@*nS^5(PQ{c|d zOz);oHYVAhJ59T;dq66af=zSdOYN6*oB1*sv$&EU{h?!A$(MdiFLMU8FjgDzN4xRH^#b6pT1|AK~ mM@h}}_hZWJGp6;XVd5LY+dZTzc?xg<0000&|>| z(A^B=+sT>Bo(ZrW9T7)ybVc;yd!6|6P{cySQp8NeG>#C41Tdp7;#3o?%DafS_-`eu z3J*k#5cQ@F*!$0javWiUUc1mOBtg-BBwYt@>gCMwp8SFI9 z*RT4`R-#ciZs-bh`7?zkg)d>Y5Yz=-#`+CinA1uR?!kN>s0&@#rBp~VQvWDnK7p;} zwhrjV{mWW-2=|d0Kw&2K0PZ7qh7_)ALt`7c_oi?k{vd^2oXWE3svP!(9yb`*NZ(UP zl6!-?DcF02?BO>2q0@qAPvpL6?bsBPq=KtV;v%5s8{{RzbVzVjy8=@2ag@-a#kG)vZ;$Yl^9k_yV!76=TXL_*6 z($)}WB`$R;$~>*SP?-uV^rPE@_?qd{*5tksz11vW;pp}kOrd9=R=Q-f00000NkvXX Hu0mjf{tY%8 literal 0 HcmV?d00001 diff --git a/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/plus_circle_filled.imageset/plus_circle_filled@3x.png b/Projects/DesignSystem/DesignCore/Resources/Images/Images.xcassets/plus_circle_filled.imageset/plus_circle_filled@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..569f26a619bc1db2772ca66f80de013b225eb95e GIT binary patch literal 980 zcmV;_11tQAP))!55)KnaJx_XiEqRaEMrhO>%^m1ZgS+@A_@T9JiKZ_k~?Tx1o2u zfAt*xMJRuLqcm)+~0Z*{H9%zN-a`{~M^TA;740hmpg$YzE#!kr>IZ?7A z!j@p3J1qKTkq~OV;2O6OSCbWVLa23vt7vD#Iw2^6OCgbmBCOo#ybx*`?K%vR%+1aV z;c`gi$&58EgfHHp;8+u{NDJYUHz<-DpB7>S|460?N(k0gmn%gPtRUQE&IsWv+-XmQ z@G&eDQJ$a>oP+xq7K-RW6NT7AU_>Df5ZDhM5fg=m&-pH4{v(z;Vce-Z5 zBVvX-2t))SBtZxXg=p=tMUR>7ikF4SH`;pcu!ZLuWh{b6#6;zDjzA=Y^`m<|U`ipT z2+UQEFiMz?5glk%^N6($U^&7uUz8Bv;4jfhUL^$cgpc9Du*e8OKEOYY)kRu}FYu3v zx=0Jb>fuw;b#$Mk~-HUuVXB&4N*Aw&xos* zmFF-vg-FAsN-=n_btr8Y`hTRcknc2>!6`QIeD(|z7NfmM_x!p50000