Skip to content

Commit c690280

Browse files
authored
Merge pull request #1266 from wakmusic/1264-remove-easter-egg
2 parents a2b9ca0 + e024cf3 commit c690280

File tree

3 files changed

+0
-99
lines changed

3 files changed

+0
-99
lines changed

Projects/App/Sources/Application/AppDelegate.swift

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,6 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
5757
}
5858

5959
extension AppDelegate {
60-
func application(
61-
_ application: UIApplication,
62-
didReceiveRemoteNotification userInfo: [AnyHashable: Any]
63-
) {
64-
// If you are receiving a notification message while your app is in the background,
65-
// this callback will not be fired till the user taps on the notification launching the application.
66-
67-
// With swizzling disabled you must let Messaging know about the message, for Analytics
68-
Messaging.messaging().appDidReceiveMessage(userInfo)
69-
70-
// Print full message.
71-
LogManager.printDebug("🔔:: \(userInfo)")
72-
}
73-
7460
/// [START receive_message]
7561
func application(
7662
_ application: UIApplication,

Projects/Features/ArtistFeature/Resources/Artist.storyboard

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@
6767
</collectionViewCell>
6868
</cells>
6969
</collectionView>
70-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="C0Y-l0-5hD">
71-
<rect key="frame" x="333" y="59" width="40" height="40"/>
72-
<constraints>
73-
<constraint firstAttribute="height" constant="40" id="81B-uC-Z7e"/>
74-
<constraint firstAttribute="width" constant="40" id="eyc-7O-f4h"/>
75-
</constraints>
76-
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
77-
<state key="normal" title="Button"/>
78-
<buttonConfiguration key="configuration" style="plain"/>
79-
</button>
8070
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nKI-M3-PEL" customClass="NVActivityIndicatorView" customModule="NVActivityIndicatorView">
8171
<rect key="frame" x="181.66666666666666" y="411" width="30" height="30"/>
8272
<constraints>
@@ -91,10 +81,8 @@
9181
<constraint firstItem="vDu-zF-Fre" firstAttribute="bottom" secondItem="fkE-Zx-Mb6" secondAttribute="bottom" id="2U1-Bg-TdX"/>
9282
<constraint firstItem="vDu-zF-Fre" firstAttribute="trailing" secondItem="fkE-Zx-Mb6" secondAttribute="trailing" id="4CI-0P-BNL"/>
9383
<constraint firstItem="fkE-Zx-Mb6" firstAttribute="top" secondItem="5EZ-qb-Rvc" secondAttribute="top" id="Afs-H6-ZxN"/>
94-
<constraint firstItem="vDu-zF-Fre" firstAttribute="trailing" secondItem="C0Y-l0-5hD" secondAttribute="trailing" constant="20" id="Jih-WE-Knh"/>
9584
<constraint firstItem="nKI-M3-PEL" firstAttribute="centerX" secondItem="5EZ-qb-Rvc" secondAttribute="centerX" id="Jk1-Hm-JCZ"/>
9685
<constraint firstItem="nKI-M3-PEL" firstAttribute="centerY" secondItem="5EZ-qb-Rvc" secondAttribute="centerY" id="h5A-Xk-4FS"/>
97-
<constraint firstItem="C0Y-l0-5hD" firstAttribute="top" secondItem="vDu-zF-Fre" secondAttribute="top" id="kDO-DH-JXt"/>
9886
<constraint firstItem="fkE-Zx-Mb6" firstAttribute="leading" secondItem="vDu-zF-Fre" secondAttribute="leading" id="s29-DB-PNi"/>
9987
</constraints>
10088
</view>
@@ -103,7 +91,6 @@
10391
<connections>
10492
<outlet property="activityIndicator" destination="nKI-M3-PEL" id="Ug9-hb-UEy"/>
10593
<outlet property="collectionView" destination="fkE-Zx-Mb6" id="qrS-zx-gK3"/>
106-
<outlet property="easterEggButton" destination="C0Y-l0-5hD" id="RKf-eI-Qte"/>
10794
</connections>
10895
</viewController>
10996
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>

Projects/Features/ArtistFeature/Sources/ViewControllers/ArtistViewController.swift

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import ArtistFeatureInterface
22
import BaseFeature
33
import DesignSystem
4-
import KeychainModule
54
import Localization
65
import LogManager
76
import NeedleFoundation
@@ -21,7 +20,6 @@ public final class ArtistViewController:
2120

2221
@IBOutlet weak var collectionView: UICollectionView!
2322
@IBOutlet weak var activityIndicator: NVActivityIndicatorView!
24-
@IBOutlet weak var easterEggButton: UIButton!
2523
private let retryWarningView = WMRetryWarningView(
2624
description: LocalizationStrings.unknownErrorWarning,
2725
retryButtonTitle: LocalizationStrings.titleRetry
@@ -79,15 +77,6 @@ public final class ArtistViewController:
7977
.bind(with: self) { owner, _ in
8078
let offsetY: CGFloat = owner.collectionView.contentOffset.y + STATUS_BAR_HEGHIT()
8179
owner.translucentView.alpha = min(max(offsetY / owner.translucentView.frame.height, 0), 1)
82-
owner.easterEggButton.isHidden = owner.collectionView.contentOffset.y > 10
83-
}
84-
.disposed(by: disposeBag)
85-
86-
easterEggButton.rx.tap
87-
.bind(with: self) { owner, _ in
88-
owner.showTextInputAlert { id in
89-
owner.postNotification(id: id ?? "")
90-
}
9180
}
9281
.disposed(by: disposeBag)
9382
}
@@ -228,64 +217,3 @@ extension ArtistViewController: UIGestureRecognizerDelegate {
228217
return false
229218
}
230219
}
231-
232-
#if DEBUG || QA
233-
#warning("🎉:: 디버그용 이스터에그")
234-
private extension ArtistViewController {
235-
func showTextInputAlert(completion: @escaping (String?) -> Void) {
236-
let alertController = UIAlertController(
237-
title: "푸시발송",
238-
message: "songID를 입력하세요.",
239-
preferredStyle: .alert
240-
)
241-
242-
alertController.addTextField { textField in
243-
textField.placeholder = "songID를 입력하세요."
244-
}
245-
246-
let okAction = UIAlertAction(title: "OK", style: .default) { _ in
247-
let textField = alertController.textFields?.first
248-
let inputText = textField?.text
249-
completion(inputText)
250-
}
251-
252-
let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)
253-
alertController.addAction(okAction)
254-
alertController.addAction(cancelAction)
255-
256-
present(alertController, animated: true, completion: nil)
257-
}
258-
259-
func postNotification(id: String) {
260-
let urlString = "U5l/gXs0ZmvBbJC8Lj4REKUhMpiYZByzM3MgyVD4Bk+LR+6IMoZBaEDwQB47DcpH"
261-
guard let url = URL(string: AES256.decrypt(encoded: urlString)) else {
262-
return
263-
}
264-
265-
var request = URLRequest(url: url)
266-
request.httpMethod = "POST"
267-
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
268-
269-
let keychain = KeychainImpl()
270-
request.addValue("bearer \(keychain.load(type: .accessToken))", forHTTPHeaderField: "Authorization")
271-
272-
let parameters: [String: String] = [
273-
"page": "songDetail",
274-
"songId": id
275-
]
276-
277-
if let bodyData = try? JSONSerialization.data(withJSONObject: parameters, options: []) {
278-
request.httpBody = bodyData
279-
}
280-
281-
let task = URLSession.shared.dataTask(with: request) { _, response, error in
282-
if let error = error {
283-
LogManager.printDebug("Error: \(error.localizedDescription)")
284-
return
285-
}
286-
LogManager.printDebug("response: \(String(describing: response))")
287-
}
288-
task.resume()
289-
}
290-
}
291-
#endif

0 commit comments

Comments
 (0)