Skip to content

Commit 99dd45f

Browse files
committed
Demo Version
1 parent e334e7d commit 99dd45f

File tree

124 files changed

+2089
-517
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+2089
-517
lines changed

Icon

Whitespace-only changes.

LGHTSG/LGHTSG.xcodeproj/project.pbxproj

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
F0F6B166299139D900F8835D /* AccountSettingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0F6B164299139D900F8835D /* AccountSettingViewController.swift */; };
6868
F0F6B167299139D900F8835D /* MyPageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0F6B165299139D900F8835D /* MyPageViewController.swift */; };
6969
F0F6B16A29913ADB00F8835D /* UserApiModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F0F6B16929913ADB00F8835D /* UserApiModel.swift */; };
70+
F51C6FF529991E8800048DEE /* RankViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F51C6FF429991E8800048DEE /* RankViewController.swift */; };
71+
F51C6FF729991EA600048DEE /* RankViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F51C6FF629991EA600048DEE /* RankViewCell.swift */; };
72+
F51C6FF92999207000048DEE /* RankingModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F51C6FF82999207000048DEE /* RankingModel.swift */; };
73+
F51C6FFC299A55A300048DEE /* MarqueeLabel in Frameworks */ = {isa = PBXBuildFile; productRef = F51C6FFB299A55A300048DEE /* MarqueeLabel */; };
7074
F5DAEC00298AD1FA0098A11A /* login.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5DAEBFF298AD1FA0098A11A /* login.swift */; };
7175
F5DAEC02298AD2050098A11A /* email.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5DAEC01298AD2050098A11A /* email.swift */; };
7276
F5DAEC04298AD20E0098A11A /* join.swift in Sources */ = {isa = PBXBuildFile; fileRef = F5DAEC03298AD20E0098A11A /* join.swift */; };
@@ -159,6 +163,9 @@
159163
F0F6B164299139D900F8835D /* AccountSettingViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AccountSettingViewController.swift; sourceTree = "<group>"; };
160164
F0F6B165299139D900F8835D /* MyPageViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MyPageViewController.swift; sourceTree = "<group>"; };
161165
F0F6B16929913ADB00F8835D /* UserApiModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UserApiModel.swift; sourceTree = "<group>"; };
166+
F51C6FF429991E8800048DEE /* RankViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RankViewController.swift; sourceTree = "<group>"; };
167+
F51C6FF629991EA600048DEE /* RankViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RankViewCell.swift; sourceTree = "<group>"; };
168+
F51C6FF82999207000048DEE /* RankingModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RankingModel.swift; sourceTree = "<group>"; };
162169
F5DAEBFF298AD1FA0098A11A /* login.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = login.swift; sourceTree = "<group>"; };
163170
F5DAEC01298AD2050098A11A /* email.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = email.swift; sourceTree = "<group>"; };
164171
F5DAEC03298AD20E0098A11A /* join.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = join.swift; sourceTree = "<group>"; };
@@ -193,6 +200,7 @@
193200
isa = PBXFrameworksBuildPhase;
194201
buildActionMask = 2147483647;
195202
files = (
203+
F51C6FFC299A55A300048DEE /* MarqueeLabel in Frameworks */,
196204
07120DF3296EDF6E00ABF98F /* Alamofire in Frameworks */,
197205
07120DF6296EDF7A00ABF98F /* SnapKit in Frameworks */,
198206
8E910354CAD5238FB38C267D /* Pods_LGHTSG.framework in Frameworks */,
@@ -285,6 +293,7 @@
285293
F0F6B15D2991310000F8835D /* UserRoeModel.swift */,
286294
078401C1298A486300CDE061 /* EstatePriceModel.swift */,
287295
07F0D8872993D6D300D3C186 /* TopViewModel.swift */,
296+
F51C6FF82999207000048DEE /* RankingModel.swift */,
288297
);
289298
path = ViewModel;
290299
sourceTree = "<group>";
@@ -305,6 +314,7 @@
305314
078401CA298A49D500CDE061 /* EstateDetailCell.swift */,
306315
075BBA39298ACF1D00710F44 /* EstateSaleCell.swift */,
307316
0764F26A298642EF00F446CB /* SearchItemCell.swift */,
317+
F51C6FF629991EA600048DEE /* RankViewCell.swift */,
308318
0764F284298959C600F446CB /* TopViewCell.swift */,
309319
F5DAEC1B298AD2F70098A11A /* LoginView.swift */,
310320
078401D0298A49E200CDE061 /* ChartMarker.swift */,
@@ -337,6 +347,7 @@
337347
078401B3298A484800CDE061 /* HomeViewController.swift */,
338348
078401AE298A484800CDE061 /* MainTabController.swift */,
339349
078401B0298A484800CDE061 /* StockChartViewController.swift */,
350+
F51C6FF429991E8800048DEE /* RankViewController.swift */,
340351
);
341352
path = Controller;
342353
sourceTree = "<group>";
@@ -486,6 +497,7 @@
486497
packageProductDependencies = (
487498
07120DF2296EDF6E00ABF98F /* Alamofire */,
488499
07120DF5296EDF7A00ABF98F /* SnapKit */,
500+
F51C6FFB299A55A300048DEE /* MarqueeLabel */,
489501
);
490502
productName = LGHTSG;
491503
productReference = 071E053D296BB7B50020282F /* LGHTSG.app */;
@@ -518,6 +530,7 @@
518530
packageReferences = (
519531
07120DF1296EDF6E00ABF98F /* XCRemoteSwiftPackageReference "Alamofire" */,
520532
07120DF4296EDF7A00ABF98F /* XCRemoteSwiftPackageReference "SnapKit" */,
533+
F51C6FFA299A55A300048DEE /* XCRemoteSwiftPackageReference "MarqueeLabel" */,
521534
);
522535
productRefGroup = 071E053E296BB7B50020282F /* Products */;
523536
projectDirPath = "";
@@ -620,6 +633,7 @@
620633
F5DAEC04298AD20E0098A11A /* join.swift in Sources */,
621634
078401DD298A49E300CDE061 /* StockDateSegmentControl.swift in Sources */,
622635
F5DAEC00298AD1FA0098A11A /* login.swift in Sources */,
636+
F51C6FF529991E8800048DEE /* RankViewController.swift in Sources */,
623637
F5DAEC06298AD2180098A11A /* changePw.swift in Sources */,
624638
078401BD298A484800CDE061 /* ExploreViewController.swift in Sources */,
625639
F5DAEC3B298AD46B0098A11A /* CheckPageServiceController.swift in Sources */,
@@ -636,10 +650,12 @@
636650
F5DAEC14298AD2A30098A11A /* CheckAgreeView.swift in Sources */,
637651
F5DAEC20298AD31E0098A11A /* FindPwView.swift in Sources */,
638652
F5DAEC1C298AD2F70098A11A /* LoginView.swift in Sources */,
653+
F51C6FF729991EA600048DEE /* RankViewCell.swift in Sources */,
639654
075BBA3A298ACF1D00710F44 /* EstateSaleCell.swift in Sources */,
640655
075BBA30298A78FC00710F44 /* EstateController.swift in Sources */,
641656
07F0D88C2995F3AA00D3C186 /* PasswordApiModel.swift in Sources */,
642657
F5DAEC0A298AD23D0098A11A /* LoginResultModel.swift in Sources */,
658+
F51C6FF92999207000048DEE /* RankingModel.swift in Sources */,
643659
F5DAEC1E298AD3080098A11A /* StartView.swift in Sources */,
644660
078401E7298A4B2D00CDE061 /* TableCellModel.swift in Sources */,
645661
078401E9298A4C2600CDE061 /* TopViewController.swift in Sources */,
@@ -797,21 +813,22 @@
797813
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
798814
CODE_SIGN_STYLE = Automatic;
799815
CURRENT_PROJECT_VERSION = 1;
800-
DEVELOPMENT_TEAM = 9KQS6UJ9YX;
816+
DEVELOPMENT_TEAM = NG2NLR2Z86;
801817
GENERATE_INFOPLIST_FILE = YES;
802818
INFOPLIST_FILE = LGHTSG/Info.plist;
803819
INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "위치 정보 제공을 허용합니까?";
804820
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
805-
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
821+
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen.storyboard;
806822
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
807823
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
824+
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
808825
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
809826
LD_RUNPATH_SEARCH_PATHS = (
810827
"$(inherited)",
811828
"@executable_path/Frameworks",
812829
);
813830
MARKETING_VERSION = 1.0;
814-
PRODUCT_BUNDLE_IDENTIFIER = com.kry.LGHTSG;
831+
PRODUCT_BUNDLE_IDENTIFIER = com.sunho11.LGHTSG;
815832
PRODUCT_NAME = "$(TARGET_NAME)";
816833
SWIFT_EMIT_LOC_STRINGS = YES;
817834
SWIFT_VERSION = 5.0;
@@ -827,21 +844,22 @@
827844
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
828845
CODE_SIGN_STYLE = Automatic;
829846
CURRENT_PROJECT_VERSION = 1;
830-
DEVELOPMENT_TEAM = 9KQS6UJ9YX;
847+
DEVELOPMENT_TEAM = NG2NLR2Z86;
831848
GENERATE_INFOPLIST_FILE = YES;
832849
INFOPLIST_FILE = LGHTSG/Info.plist;
833850
INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "위치 정보 제공을 허용합니까?";
834851
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
835-
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
852+
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen.storyboard;
836853
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
837854
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
855+
INFOPLIST_KEY_UIUserInterfaceStyle = Light;
838856
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
839857
LD_RUNPATH_SEARCH_PATHS = (
840858
"$(inherited)",
841859
"@executable_path/Frameworks",
842860
);
843861
MARKETING_VERSION = 1.0;
844-
PRODUCT_BUNDLE_IDENTIFIER = com.kry.LGHTSG;
862+
PRODUCT_BUNDLE_IDENTIFIER = com.sunho11.LGHTSG;
845863
PRODUCT_NAME = "$(TARGET_NAME)";
846864
SWIFT_EMIT_LOC_STRINGS = YES;
847865
SWIFT_VERSION = 5.0;
@@ -889,6 +907,14 @@
889907
kind = branch;
890908
};
891909
};
910+
F51C6FFA299A55A300048DEE /* XCRemoteSwiftPackageReference "MarqueeLabel" */ = {
911+
isa = XCRemoteSwiftPackageReference;
912+
repositoryURL = "https://github.com/cbpowell/MarqueeLabel";
913+
requirement = {
914+
kind = upToNextMajorVersion;
915+
minimumVersion = 4.0.0;
916+
};
917+
};
892918
/* End XCRemoteSwiftPackageReference section */
893919

894920
/* Begin XCSwiftPackageProductDependency section */
@@ -902,6 +928,11 @@
902928
package = 07120DF4296EDF7A00ABF98F /* XCRemoteSwiftPackageReference "SnapKit" */;
903929
productName = SnapKit;
904930
};
931+
F51C6FFB299A55A300048DEE /* MarqueeLabel */ = {
932+
isa = XCSwiftPackageProductDependency;
933+
package = F51C6FFA299A55A300048DEE /* XCRemoteSwiftPackageReference "MarqueeLabel" */;
934+
productName = MarqueeLabel;
935+
};
905936
/* End XCSwiftPackageProductDependency section */
906937
};
907938
rootObject = 071E0535296BB7B50020282F /* Project object */;

LGHTSG/LGHTSG.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LGHTSG/LGHTSG/App/AppDelegate.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414

1515
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1616

17+
sleep(1)
18+
1719
NMFAuthManager.shared().clientId = "t1d90xy372"
1820
if #available(iOS 15, *) {
1921
let appearance = UINavigationBarAppearance()
@@ -37,6 +39,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3739
// Use this method to select a configuration to create the new scene with.
3840
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
3941
}
42+
43+
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
44+
45+
// 세로방향 고정
46+
return UIInterfaceOrientationMask.portrait
47+
}
4048

4149
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
4250
// Called when the user discards a scene session.

LGHTSG/LGHTSG/App/SceneDelegate.swift

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77

88
import UIKit
9+
import Alamofire
910

1011
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
1112

@@ -16,17 +17,43 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
1617
guard let windowscene = (scene as? UIWindowScene) else { return }
1718
window = UIWindow(windowScene: windowscene)
1819
window?.backgroundColor = .systemBackground
19-
20-
// var jwt : String = UserDefaults.standard.string(forKey: "savedToken") ?? ""
21-
// if jwt != "" {
22-
// print(jwt)
23-
// window?.rootViewController = MainTabController()
24-
// }
25-
// else{
26-
window?.rootViewController = ViewController()
27-
// }
28-
//window?.rootViewController = UINavigationController(rootViewController: MainTabController())
29-
20+
//window?.rootViewController = ViewController()
21+
22+
// MARK: 회원가입 체크 초기화
23+
UserDefaults.standard.set(false, forKey: "allcheck")
24+
UserDefaults.standard.set(false, forKey: "check1")
25+
UserDefaults.standard.set(false, forKey: "check2")
26+
UserDefaults.standard.set(false, forKey: "check3")
27+
28+
29+
30+
// MARK: 자동로그인을 위한 코드
31+
var loginSuccess : Bool = UserDefaults.standard.bool(forKey: "loginSuccess") ?? false
32+
33+
print("자동로그인 \(loginSuccess)")
34+
35+
if loginSuccess == true {
36+
// MARK: 마지막 로그인 기록
37+
let email = UserDefaults.standard.string(forKey: "email")
38+
let password = UserDefaults.standard.string(forKey: "password")
39+
40+
let bodyData : Parameters = [
41+
"email" : email,
42+
"password" : password
43+
]
44+
45+
LoginApiModel().requestLoginDataModel(bodyData: bodyData){
46+
data in
47+
print(data.accessToken)
48+
print("자동로그인 성공")
49+
UserDefaults.standard.set(data.accessToken, forKey: "savedToken")
50+
self.window?.rootViewController = MainTabController()
51+
}
52+
}
53+
else if loginSuccess == false {
54+
window?.rootViewController = ViewController()
55+
}
56+
3057
window?.tintColor = .label
3158
window?.makeKeyAndVisible()
3259
}
2.2 KB
Loading
2.18 KB
Loading
34.8 KB
Loading
2.39 KB
Loading
2.56 KB
Loading

0 commit comments

Comments
 (0)