[iOS] Removed Welcome and What's New views.

Signed-off-by: vng <viktor.govako@gmail.com>
This commit is contained in:
vng 2021-05-20 23:13:11 +03:00 committed by Roman Tsisyk
parent c2f4c8e581
commit e9724c6544
83 changed files with 0 additions and 666 deletions

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "img_achive_pedestrian.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "img_achive_pedestrian@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x",
"filename" : "img_achive_pedestrian@3x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "img_pedestrian.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "img_pedestrian@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x",
"filename" : "img_pedestrian@3x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View file

@ -1,6 +0,0 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_06 1.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_06 1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_06 1@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_03.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_03@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_03@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_02.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_02@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_02@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_05 1.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_05 1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_05 1@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_04.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_04@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_04@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_48.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_48@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_48@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_01.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_01@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "icons_set_v_52_pic_01@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

View file

@ -1,6 +0,0 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "imgOnboardingDone.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingDone@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingDone@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "imgOnboardingGeoposition.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingGeoposition@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingGeoposition@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "img_onboarding_guide.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "img_onboarding_guide@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "img_onboarding_guide@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "imgOnboardingNotification.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingNotification@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingNotification@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "imgOnboardingOfflineMaps.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingOfflineMaps@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "imgOnboardingOfflineMaps@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View file

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Shape-1.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "Shape@2x-1.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "Shape@3x-1.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 357 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1,26 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Shape.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "Shape@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "Shape@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
},
"properties" : {
"template-rendering-intent" : "template"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"filename" : "img_whatsnew_lp.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "img_whatsnew_lp@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "img_whatsnew_lp@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

View file

@ -1,23 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "img_wnew_newguides.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "img_wnew_newguides@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "img_wnew_newguides@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

View file

@ -498,12 +498,7 @@
99C9642B2428C0F700E41723 /* PlacePageHeaderViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99C964252428C0F700E41723 /* PlacePageHeaderViewController.swift */; };
99C9642C2428C0F700E41723 /* PlacePageHeaderBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99C964262428C0F700E41723 /* PlacePageHeaderBuilder.swift */; };
99C964302428C27A00E41723 /* PlacePageHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99C9642F2428C27A00E41723 /* PlacePageHeaderView.swift */; };
99CB34962369C281001D28AD /* FirstLaunchBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34952369C281001D28AD /* FirstLaunchBuilder.swift */; };
99CB34982369C291001D28AD /* FirstLaunchPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34972369C291001D28AD /* FirstLaunchPresenter.swift */; };
99CB34B02369DF2E001D28AD /* WhatsNewPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34AB2369DF2E001D28AD /* WhatsNewPresenter.swift */; };
99CB34B32369DF2E001D28AD /* WhatsNewBuilder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34AE2369DF2E001D28AD /* WhatsNewBuilder.swift */; };
99CB34B72369E188001D28AD /* WelcomeRouter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34B62369E188001D28AD /* WelcomeRouter.swift */; };
99CB34C3236AEAEA001D28AD /* WhatsNewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34C2236AEAEA001D28AD /* WhatsNewController.swift */; };
99CB34C5236B00FD001D28AD /* WelcomeStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99CB34C4236B00FD001D28AD /* WelcomeStorage.swift */; };
99DEF9D723E420F6006BFD21 /* ElevationProfileDescriptionCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99DEF9D623E420F6006BFD21 /* ElevationProfileDescriptionCell.swift */; };
99E2B0122368A8C700FFABC5 /* MWMCategory+PlacesCountTitle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99E2B0112368A8C700FFABC5 /* MWMCategory+PlacesCountTitle.swift */; };
@ -1322,12 +1317,7 @@
99C964252428C0F700E41723 /* PlacePageHeaderViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlacePageHeaderViewController.swift; sourceTree = "<group>"; };
99C964262428C0F700E41723 /* PlacePageHeaderBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlacePageHeaderBuilder.swift; sourceTree = "<group>"; };
99C9642F2428C27A00E41723 /* PlacePageHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlacePageHeaderView.swift; sourceTree = "<group>"; };
99CB34952369C281001D28AD /* FirstLaunchBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstLaunchBuilder.swift; sourceTree = "<group>"; };
99CB34972369C291001D28AD /* FirstLaunchPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstLaunchPresenter.swift; sourceTree = "<group>"; };
99CB34AB2369DF2E001D28AD /* WhatsNewPresenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WhatsNewPresenter.swift; sourceTree = "<group>"; };
99CB34AE2369DF2E001D28AD /* WhatsNewBuilder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WhatsNewBuilder.swift; sourceTree = "<group>"; };
99CB34B62369E188001D28AD /* WelcomeRouter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeRouter.swift; sourceTree = "<group>"; };
99CB34C2236AEAEA001D28AD /* WhatsNewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WhatsNewController.swift; sourceTree = "<group>"; };
99CB34C4236B00FD001D28AD /* WelcomeStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeStorage.swift; sourceTree = "<group>"; };
99DEF9D623E420F6006BFD21 /* ElevationProfileDescriptionCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ElevationProfileDescriptionCell.swift; sourceTree = "<group>"; };
99E2B0112368A8C700FFABC5 /* MWMCategory+PlacesCountTitle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MWMCategory+PlacesCountTitle.swift"; sourceTree = "<group>"; };
@ -2283,8 +2273,6 @@
children = (
34943BB91E2626B200B14F84 /* WelcomePageController.swift */,
99CB34D1236B0C2A001D28AD /* WelcomeView */,
99CB34AA2369DF23001D28AD /* WhatsNew */,
99E2B01F23698C0900FFABC5 /* FirstLaunch */,
);
path = Welcome;
sourceTree = "<group>";
@ -2900,16 +2888,6 @@
path = PlacePageHeader;
sourceTree = "<group>";
};
99CB34AA2369DF23001D28AD /* WhatsNew */ = {
isa = PBXGroup;
children = (
99CB34AB2369DF2E001D28AD /* WhatsNewPresenter.swift */,
99CB34AE2369DF2E001D28AD /* WhatsNewBuilder.swift */,
99CB34C2236AEAEA001D28AD /* WhatsNewController.swift */,
);
path = WhatsNew;
sourceTree = "<group>";
};
99CB34D1236B0C2A001D28AD /* WelcomeView */ = {
isa = PBXGroup;
children = (
@ -2932,15 +2910,6 @@
path = ElevationProfile;
sourceTree = "<group>";
};
99E2B01F23698C0900FFABC5 /* FirstLaunch */ = {
isa = PBXGroup;
children = (
99CB34952369C281001D28AD /* FirstLaunchBuilder.swift */,
99CB34972369C291001D28AD /* FirstLaunchPresenter.swift */,
);
path = FirstLaunch;
sourceTree = "<group>";
};
99F3EB0423F417BE00C713F8 /* PlacePageManager */ = {
isa = PBXGroup;
children = (
@ -4159,7 +4128,6 @@
F6E2FF451E097BA00083EBEC /* SettingsTableViewLinkCell.swift in Sources */,
34C9BD0A1C6DBCDA000DC38D /* MWMNavigationController.m in Sources */,
F6E2FE311E097BA00083EBEC /* MWMStreetEditorViewController.mm in Sources */,
99CB34B32369DF2E001D28AD /* WhatsNewBuilder.swift in Sources */,
F6E2FE281E097BA00083EBEC /* MWMOpeningHoursSection.mm in Sources */,
3406FA161C6E0C3300E9FAD2 /* MWMMapDownloadDialog.mm in Sources */,
340416481E7BF28E00E2B6D6 /* UIView+Snapshot.swift in Sources */,
@ -4209,7 +4177,6 @@
349A13831DEC138C00C7DB60 /* MWMMobileInternetAlert.m in Sources */,
6741A9EC1BF340DE002C974C /* MWMCircularProgress.m in Sources */,
993DF11923F6BDB100AC231A /* UITextFieldRenderer.swift in Sources */,
99CB34C3236AEAEA001D28AD /* WhatsNewController.swift in Sources */,
342CC5F21C2D7730005F3FE5 /* MWMAuthorizationLoginViewController.mm in Sources */,
340475591E081A4600C92850 /* WebViewController.m in Sources */,
3404F4992028A20D0090E401 /* BMCCategoryCell.swift in Sources */,
@ -4296,7 +4263,6 @@
F6E2FE131E097BA00083EBEC /* MWMOpeningHoursTimeSelectorTableViewCell.mm in Sources */,
F626D52F1C3E83F800C17D15 /* MWMTableViewCell.m in Sources */,
34AB66591FC5AA330078E451 /* TransportTransitFlowLayout.swift in Sources */,
99CB34962369C281001D28AD /* FirstLaunchBuilder.swift in Sources */,
3486B5191E27AD3B0069C126 /* MWMFrameworkListener.mm in Sources */,
3404756B1E081A4600C92850 /* MWMSearch+CoreSpotlight.mm in Sources */,
CD9AD96C2281B56900EC174A /* CPViewPortState.swift in Sources */,
@ -4405,7 +4371,6 @@
34B924431DC8A29C0008D971 /* MWMMailViewController.m in Sources */,
340475651E081A4600C92850 /* MWMRouter.mm in Sources */,
47E3C72F2111F472008B3B27 /* CoverVerticalModalTransitioning.swift in Sources */,
99CB34B02369DF2E001D28AD /* WhatsNewPresenter.swift in Sources */,
34E776101F14B165003040B3 /* VisibleArea.swift in Sources */,
995F1613244F0AA50060631D /* BottomMenuLayersCell.swift in Sources */,
993DF10723F6BDB100AC231A /* UIColor+image.swift in Sources */,
@ -4418,7 +4383,6 @@
34AB66261FC5AA330078E451 /* RouteManagerDimView.swift in Sources */,
993F5514237C622700545511 /* DeepLinkStrategyFactory.swift in Sources */,
6741AA2B1BF340DE002C974C /* CircleView.m in Sources */,
99CB34982369C291001D28AD /* FirstLaunchPresenter.swift in Sources */,
4788739220EE326500F6826B /* VerticallyAlignedButton.swift in Sources */,
3444DFDE1F18A5AF00E73099 /* SideButtonsArea.swift in Sources */,
CDCA278622451F5000167D87 /* RouteInfo.swift in Sources */,

View file

@ -1,40 +0,0 @@
class FirstLaunchBuilder {
static var configs:[FirstLaunchPresenter.FirstLaunchConfig] {
return [
FirstLaunchPresenter.FirstLaunchConfig(image: UIImage(named: "img_onboarding_dreamnplan"),
title: "new_onboarding_step2_header",
text: "new_onboarding_step2_message",
buttonNextTitle: "new_onboarding_button",
isCloseButtonHidden: true,
requestPermission: .nothing),
FirstLaunchPresenter.FirstLaunchConfig(image: UIImage(named: "img_onboarding_offlinemaps"),
title: "new_onboarding_step3_header",
text: "new_onboarding_step3_message",
buttonNextTitle: "new_onboarding_button",
isCloseButtonHidden: true,
requestPermission: .nothing),
FirstLaunchPresenter.FirstLaunchConfig(image: UIImage(named: "img_onboarding_sharebookmarks"),
title: "new_onboarding_step4_header",
text: "new_onboarding_step4_message",
buttonNextTitle: "new_onboarding_button_2",
isCloseButtonHidden: true,
requestPermission: .location),
]
}
static func build(delegate: WelcomeViewDelegate) -> [UIViewController] {
return FirstLaunchBuilder.configs.map { (config) -> UIViewController in
let sb = UIStoryboard.instance(.welcome)
let vc = sb.instantiateViewController(ofType: WelcomeViewController.self);
let router = WelcomeRouter(viewController: vc,
delegate: delegate)
let presenter = FirstLaunchPresenter(viewController: vc,
router: router,
config: config)
vc.presenter = presenter
return vc
}
}
}

View file

@ -1,53 +0,0 @@
protocol IFirstLaunchPresenter: IWelcomePresenter {
}
class FirstLaunchPresenter {
enum Permission {
case location
case nothing
}
struct FirstLaunchConfig: IWelcomeConfig{
var image: UIImage?
var title: String
var text: String
var buttonNextTitle: String
var isCloseButtonHidden: Bool
let requestPermission: Permission
}
private weak var viewController: IWelcomeView?
private let router: WelcomeRouter
private let config: FirstLaunchConfig
init(viewController: IWelcomeView,
router: WelcomeRouter,
config: FirstLaunchConfig) {
self.viewController = viewController
self.router = router
self.config = config
}
}
extension FirstLaunchPresenter: IFirstLaunchPresenter {
func configure() {
viewController?.configure(config: config)
}
func onAppear() {
switch config.requestPermission {
case .location:
LocationManager.start()
case .nothing:
break
}
}
func onNext() {
router.onNext()
}
func onClose() {
router.onClose()
}
}

View file

@ -48,17 +48,6 @@ final class WelcomePageController: UIPageViewController {
vc.parentController = parent
var controllersToShow: [UIViewController] = []
if FirstSession.isFirstSession() {
controllersToShow.append(contentsOf: FirstLaunchBuilder.build(delegate: vc))
} else {
NSLog("deeplinking: whats new check")
if (WelcomeStorage.shouldShowWhatsNew && !DeepLinkHandler.shared.isLaunchedByDeeplink) {
controllersToShow.append(contentsOf: WhatsNewBuilder.build(delegate: vc))
}
}
WelcomeStorage.shouldShowWhatsNew = false
vc.controllers = controllersToShow
return vc
}

View file

@ -6,15 +6,6 @@ class WelcomeStorage {
static let acceptTimeKey = "TermsOfUseController_acceptTime"
}
static var shouldShowWhatsNew: Bool {
get {
return !UserDefaults.standard.bool(forKey: WhatsNewController.key)
}
set {
UserDefaults.standard.set(!newValue, forKey: WhatsNewController.key)
}
}
static var privacyPolicyLink: String {
get {
return UserDefaults.standard.string(forKey: UserDefaultsKeys.ppLinkKey) ?? ""

View file

@ -1,32 +0,0 @@
class WhatsNewBuilder {
static var configs:[WhatsNewPresenter.WhatsNewConfig] {
return [
WhatsNewPresenter.WhatsNewConfig(image: UIImage(named: "img_whatsnew_lp"),
title: "whatsnew_lp_title",
text: "whatsnew_lp_message",
buttonNextTitle: "whatsnew_trial_cta",
isCloseButtonHidden: false,
action: {
}),
WhatsNewPresenter.WhatsNewConfig(image: UIImage(named: "img_whatsnew_lp"),
title: "whatsnew_lp_title",
text: "whatsnew_lp_message",
buttonNextTitle: "done")
]
}
static func build(delegate: WelcomeViewDelegate) -> [UIViewController] {
return WhatsNewBuilder.configs.map { (config) -> UIViewController in
let sb = UIStoryboard.instance(.welcome)
let vc = sb.instantiateViewController(ofType: WelcomeViewController.self);
let router = WelcomeRouter(viewController: vc, delegate: delegate)
let presenter = WhatsNewPresenter(view: vc,
router: router,
config: config)
vc.presenter = presenter
return vc
}
}
}

View file

@ -1,3 +0,0 @@
class WhatsNewController: WelcomeViewController {
class var key: String { return WhatsNewBuilder.configs.reduce("\(self)", { return "\($0)_\($1.title)" }) }
}

View file

@ -1,44 +0,0 @@
protocol IWhatsNewPresenter: IWelcomePresenter {
}
class WhatsNewPresenter {
struct WhatsNewConfig: IWelcomeConfig{
var image: UIImage?
var title: String
var text: String
var buttonNextTitle: String = "new_onboarding_button"
var isCloseButtonHidden: Bool = true
var action: (()->())? = nil
}
private weak var view: IWelcomeView?
private let router: WelcomeRouter
private let config: WhatsNewConfig
init(view: IWelcomeView, router: WelcomeRouter, config: WhatsNewConfig) {
self.view = view
self.router = router
self.config = config
}
}
extension WhatsNewPresenter: IWhatsNewPresenter {
func configure() {
view?.configure(config: config)
}
func onAppear() {
}
func onNext() {
if let action = config.action {
action()
}
router.onNext()
}
func onClose() {
router.onClose()
}
}