iosgen 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator.xcodeproj/project.pbxproj +501 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator.xcodeproj/xcuserdata/fran_dev.xcuserdatad/xcschemes/iOSCleanArchitectureGenerator.xcscheme +110 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator.xcodeproj/xcuserdata/fran_dev.xcuserdatad/xcschemes/xcschememanagement.plist +27 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/AppDelegate.h +17 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/AppDelegate.m +45 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Base.lproj/LaunchScreen.xib +41 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Base.lproj/Main.storyboard +25 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Images.xcassets/AppIcon.appiconset/Contents.json +68 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Info.plist +47 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Interactors/FJBNotificationsApiInteractor.h +9 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Interactors/FJBNotificationsApiInteractor.m +15 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Interactors/FJBNotificationsApiInteractorProtocol.h +9 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewController.h +15 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewController.m +27 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewControllers/FJBNotificationsViewController.h +8 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewControllers/FJBNotificationsViewController.m +31 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewModels/FJBNotificationsViewModel.h +9 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewModels/FJBNotificationsViewModel.m +18 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/ViewModels/FJBNotificationsViewModelProtocol.h +17 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/main.m +16 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGeneratorTests/Info.plist +24 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGeneratorTests/Interactors/FJBNotificationsApiInteractorTests.m +40 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGeneratorTests/ViewModels/FJBNotificationsViewModelTests.m +50 -0
- data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGeneratorTests/iOSCleanArchitectureGeneratorTests.m +40 -0
- data/README.md +37 -20
- data/bin/iosgen +1 -1
- data/iosgen.gemspec +1 -1
- data/lib/ios_gen/generator/base_generator.rb +21 -9
- data/lib/ios_gen/generator/objc/action_formatter.rb +15 -2
- data/lib/ios_gen/generator/objc/interactor_formatter.rb +16 -11
- data/lib/ios_gen/generator/objc/objc_formatter.rb +4 -0
- data/lib/ios_gen/generator/objc/view_model_formatter.rb +18 -10
- data/lib/ios_gen/generator/objc/xctestcase_formatter.rb +45 -0
- data/lib/ios_gen/ios_gen_thor.rb +2 -1
- data/spec/ios_gen/generator/base_generator_spec.rb +38 -3
- data/spec/ios_gen/generator/objc/action_formatter_spec.rb +16 -1
- data/spec/ios_gen/generator/objc/interactor_formatter_spec.rb +1 -1
- data/spec/ios_gen/generator/objc/objc_formatter_spec.rb +0 -1
- data/spec/ios_gen/generator/objc/view_model_formatter_spec.rb +0 -1
- data/spec/ios_gen/generator/objc/xctestcase_formatter_spec.rb +91 -0
- data/templates/objc/Interactor.h.erb +1 -1
- data/templates/objc/InteractorProtocol.h.erb +2 -0
- data/templates/objc/ViewModel.h.erb +1 -1
- data/templates/objc/ViewModelProtocol.h.erb +1 -0
- data/templates/objc/XCTestCase.m.erb +32 -0
- metadata +31 -2
@@ -0,0 +1,110 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Scheme
|
3
|
+
LastUpgradeVersion = "0610"
|
4
|
+
version = "1.3">
|
5
|
+
<BuildAction
|
6
|
+
parallelizeBuildables = "YES"
|
7
|
+
buildImplicitDependencies = "YES">
|
8
|
+
<BuildActionEntries>
|
9
|
+
<BuildActionEntry
|
10
|
+
buildForTesting = "YES"
|
11
|
+
buildForRunning = "YES"
|
12
|
+
buildForProfiling = "YES"
|
13
|
+
buildForArchiving = "YES"
|
14
|
+
buildForAnalyzing = "YES">
|
15
|
+
<BuildableReference
|
16
|
+
BuildableIdentifier = "primary"
|
17
|
+
BlueprintIdentifier = "FFC017711A5158CE008C4129"
|
18
|
+
BuildableName = "iOSCleanArchitectureGenerator.app"
|
19
|
+
BlueprintName = "iOSCleanArchitectureGenerator"
|
20
|
+
ReferencedContainer = "container:iOSCleanArchitectureGenerator.xcodeproj">
|
21
|
+
</BuildableReference>
|
22
|
+
</BuildActionEntry>
|
23
|
+
<BuildActionEntry
|
24
|
+
buildForTesting = "YES"
|
25
|
+
buildForRunning = "YES"
|
26
|
+
buildForProfiling = "NO"
|
27
|
+
buildForArchiving = "NO"
|
28
|
+
buildForAnalyzing = "YES">
|
29
|
+
<BuildableReference
|
30
|
+
BuildableIdentifier = "primary"
|
31
|
+
BlueprintIdentifier = "FFC0178A1A5158CE008C4129"
|
32
|
+
BuildableName = "iOSCleanArchitectureGeneratorTests.xctest"
|
33
|
+
BlueprintName = "iOSCleanArchitectureGeneratorTests"
|
34
|
+
ReferencedContainer = "container:iOSCleanArchitectureGenerator.xcodeproj">
|
35
|
+
</BuildableReference>
|
36
|
+
</BuildActionEntry>
|
37
|
+
</BuildActionEntries>
|
38
|
+
</BuildAction>
|
39
|
+
<TestAction
|
40
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
41
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
42
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
43
|
+
buildConfiguration = "Debug">
|
44
|
+
<Testables>
|
45
|
+
<TestableReference
|
46
|
+
skipped = "NO">
|
47
|
+
<BuildableReference
|
48
|
+
BuildableIdentifier = "primary"
|
49
|
+
BlueprintIdentifier = "FFC0178A1A5158CE008C4129"
|
50
|
+
BuildableName = "iOSCleanArchitectureGeneratorTests.xctest"
|
51
|
+
BlueprintName = "iOSCleanArchitectureGeneratorTests"
|
52
|
+
ReferencedContainer = "container:iOSCleanArchitectureGenerator.xcodeproj">
|
53
|
+
</BuildableReference>
|
54
|
+
</TestableReference>
|
55
|
+
</Testables>
|
56
|
+
<MacroExpansion>
|
57
|
+
<BuildableReference
|
58
|
+
BuildableIdentifier = "primary"
|
59
|
+
BlueprintIdentifier = "FFC017711A5158CE008C4129"
|
60
|
+
BuildableName = "iOSCleanArchitectureGenerator.app"
|
61
|
+
BlueprintName = "iOSCleanArchitectureGenerator"
|
62
|
+
ReferencedContainer = "container:iOSCleanArchitectureGenerator.xcodeproj">
|
63
|
+
</BuildableReference>
|
64
|
+
</MacroExpansion>
|
65
|
+
</TestAction>
|
66
|
+
<LaunchAction
|
67
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
68
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
69
|
+
launchStyle = "0"
|
70
|
+
useCustomWorkingDirectory = "NO"
|
71
|
+
buildConfiguration = "Debug"
|
72
|
+
ignoresPersistentStateOnLaunch = "NO"
|
73
|
+
debugDocumentVersioning = "YES"
|
74
|
+
allowLocationSimulation = "YES">
|
75
|
+
<BuildableProductRunnable>
|
76
|
+
<BuildableReference
|
77
|
+
BuildableIdentifier = "primary"
|
78
|
+
BlueprintIdentifier = "FFC017711A5158CE008C4129"
|
79
|
+
BuildableName = "iOSCleanArchitectureGenerator.app"
|
80
|
+
BlueprintName = "iOSCleanArchitectureGenerator"
|
81
|
+
ReferencedContainer = "container:iOSCleanArchitectureGenerator.xcodeproj">
|
82
|
+
</BuildableReference>
|
83
|
+
</BuildableProductRunnable>
|
84
|
+
<AdditionalOptions>
|
85
|
+
</AdditionalOptions>
|
86
|
+
</LaunchAction>
|
87
|
+
<ProfileAction
|
88
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
89
|
+
savedToolIdentifier = ""
|
90
|
+
useCustomWorkingDirectory = "NO"
|
91
|
+
buildConfiguration = "Release"
|
92
|
+
debugDocumentVersioning = "YES">
|
93
|
+
<BuildableProductRunnable>
|
94
|
+
<BuildableReference
|
95
|
+
BuildableIdentifier = "primary"
|
96
|
+
BlueprintIdentifier = "FFC017711A5158CE008C4129"
|
97
|
+
BuildableName = "iOSCleanArchitectureGenerator.app"
|
98
|
+
BlueprintName = "iOSCleanArchitectureGenerator"
|
99
|
+
ReferencedContainer = "container:iOSCleanArchitectureGenerator.xcodeproj">
|
100
|
+
</BuildableReference>
|
101
|
+
</BuildableProductRunnable>
|
102
|
+
</ProfileAction>
|
103
|
+
<AnalyzeAction
|
104
|
+
buildConfiguration = "Debug">
|
105
|
+
</AnalyzeAction>
|
106
|
+
<ArchiveAction
|
107
|
+
buildConfiguration = "Release"
|
108
|
+
revealArchiveInOrganizer = "YES">
|
109
|
+
</ArchiveAction>
|
110
|
+
</Scheme>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>SchemeUserState</key>
|
6
|
+
<dict>
|
7
|
+
<key>iOSCleanArchitectureGenerator.xcscheme</key>
|
8
|
+
<dict>
|
9
|
+
<key>orderHint</key>
|
10
|
+
<integer>0</integer>
|
11
|
+
</dict>
|
12
|
+
</dict>
|
13
|
+
<key>SuppressBuildableAutocreation</key>
|
14
|
+
<dict>
|
15
|
+
<key>FFC017711A5158CE008C4129</key>
|
16
|
+
<dict>
|
17
|
+
<key>primary</key>
|
18
|
+
<true/>
|
19
|
+
</dict>
|
20
|
+
<key>FFC0178A1A5158CE008C4129</key>
|
21
|
+
<dict>
|
22
|
+
<key>primary</key>
|
23
|
+
<true/>
|
24
|
+
</dict>
|
25
|
+
</dict>
|
26
|
+
</dict>
|
27
|
+
</plist>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//
|
2
|
+
// AppDelegate.h
|
3
|
+
// iOSCleanArchitectureGenerator
|
4
|
+
//
|
5
|
+
// Created by Francisco J. Belchi on 29/12/14.
|
6
|
+
// Copyright (c) 2014 fjbelchi. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
|
12
|
+
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
14
|
+
|
15
|
+
|
16
|
+
@end
|
17
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
//
|
2
|
+
// AppDelegate.m
|
3
|
+
// iOSCleanArchitectureGenerator
|
4
|
+
//
|
5
|
+
// Created by Francisco J. Belchi on 29/12/14.
|
6
|
+
// Copyright (c) 2014 fjbelchi. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "AppDelegate.h"
|
10
|
+
|
11
|
+
@interface AppDelegate ()
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation AppDelegate
|
16
|
+
|
17
|
+
|
18
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
19
|
+
// Override point for customization after application launch.
|
20
|
+
return YES;
|
21
|
+
}
|
22
|
+
|
23
|
+
- (void)applicationWillResignActive:(UIApplication *)application {
|
24
|
+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
25
|
+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
26
|
+
}
|
27
|
+
|
28
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
29
|
+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
30
|
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
31
|
+
}
|
32
|
+
|
33
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
34
|
+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
35
|
+
}
|
36
|
+
|
37
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
38
|
+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
39
|
+
}
|
40
|
+
|
41
|
+
- (void)applicationWillTerminate:(UIApplication *)application {
|
42
|
+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
43
|
+
}
|
44
|
+
|
45
|
+
@end
|
data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Base.lproj/LaunchScreen.xib
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
|
3
|
+
<dependencies>
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6207"/>
|
5
|
+
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
|
6
|
+
</dependencies>
|
7
|
+
<objects>
|
8
|
+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
9
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
10
|
+
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
11
|
+
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
|
12
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
13
|
+
<subviews>
|
14
|
+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2014 fjbelchi. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
|
15
|
+
<rect key="frame" x="20" y="439" width="441" height="21"/>
|
16
|
+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
17
|
+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
18
|
+
<nil key="highlightedColor"/>
|
19
|
+
</label>
|
20
|
+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="iOSCleanArchitectureGenerator" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
|
21
|
+
<rect key="frame" x="20" y="140" width="441" height="43"/>
|
22
|
+
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
|
23
|
+
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
24
|
+
<nil key="highlightedColor"/>
|
25
|
+
</label>
|
26
|
+
</subviews>
|
27
|
+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
28
|
+
<constraints>
|
29
|
+
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
|
30
|
+
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
|
31
|
+
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
|
32
|
+
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
|
33
|
+
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
|
34
|
+
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
|
35
|
+
</constraints>
|
36
|
+
<nil key="simulatedStatusBarMetrics"/>
|
37
|
+
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
38
|
+
<point key="canvasLocation" x="548" y="455"/>
|
39
|
+
</view>
|
40
|
+
</objects>
|
41
|
+
</document>
|
data/Demo/iOSCleanArchitectureGenerator/iOSCleanArchitectureGenerator/Base.lproj/Main.storyboard
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
3
|
+
<dependencies>
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
|
5
|
+
</dependencies>
|
6
|
+
<scenes>
|
7
|
+
<!--View Controller-->
|
8
|
+
<scene sceneID="tne-QT-ifu">
|
9
|
+
<objects>
|
10
|
+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
|
11
|
+
<layoutGuides>
|
12
|
+
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
13
|
+
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
14
|
+
</layoutGuides>
|
15
|
+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
16
|
+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
17
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
18
|
+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
19
|
+
</view>
|
20
|
+
</viewController>
|
21
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
22
|
+
</objects>
|
23
|
+
</scene>
|
24
|
+
</scenes>
|
25
|
+
</document>
|
@@ -0,0 +1,68 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"idiom" : "iphone",
|
5
|
+
"size" : "29x29",
|
6
|
+
"scale" : "2x"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"idiom" : "iphone",
|
10
|
+
"size" : "29x29",
|
11
|
+
"scale" : "3x"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"idiom" : "iphone",
|
15
|
+
"size" : "40x40",
|
16
|
+
"scale" : "2x"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"idiom" : "iphone",
|
20
|
+
"size" : "40x40",
|
21
|
+
"scale" : "3x"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"idiom" : "iphone",
|
25
|
+
"size" : "60x60",
|
26
|
+
"scale" : "2x"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"idiom" : "iphone",
|
30
|
+
"size" : "60x60",
|
31
|
+
"scale" : "3x"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"idiom" : "ipad",
|
35
|
+
"size" : "29x29",
|
36
|
+
"scale" : "1x"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"idiom" : "ipad",
|
40
|
+
"size" : "29x29",
|
41
|
+
"scale" : "2x"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"idiom" : "ipad",
|
45
|
+
"size" : "40x40",
|
46
|
+
"scale" : "1x"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"idiom" : "ipad",
|
50
|
+
"size" : "40x40",
|
51
|
+
"scale" : "2x"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"idiom" : "ipad",
|
55
|
+
"size" : "76x76",
|
56
|
+
"scale" : "1x"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"idiom" : "ipad",
|
60
|
+
"size" : "76x76",
|
61
|
+
"scale" : "2x"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
"info" : {
|
65
|
+
"version" : 1,
|
66
|
+
"author" : "xcode"
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
6
|
+
<string>en</string>
|
7
|
+
<key>CFBundleExecutable</key>
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
9
|
+
<key>CFBundleIdentifier</key>
|
10
|
+
<string>com.fjbelchi.$(PRODUCT_NAME:rfc1034identifier)</string>
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
+
<string>6.0</string>
|
13
|
+
<key>CFBundleName</key>
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
15
|
+
<key>CFBundlePackageType</key>
|
16
|
+
<string>APPL</string>
|
17
|
+
<key>CFBundleShortVersionString</key>
|
18
|
+
<string>1.0</string>
|
19
|
+
<key>CFBundleSignature</key>
|
20
|
+
<string>????</string>
|
21
|
+
<key>CFBundleVersion</key>
|
22
|
+
<string>1</string>
|
23
|
+
<key>LSRequiresIPhoneOS</key>
|
24
|
+
<true/>
|
25
|
+
<key>UILaunchStoryboardName</key>
|
26
|
+
<string>LaunchScreen</string>
|
27
|
+
<key>UIMainStoryboardFile</key>
|
28
|
+
<string>Main</string>
|
29
|
+
<key>UIRequiredDeviceCapabilities</key>
|
30
|
+
<array>
|
31
|
+
<string>armv7</string>
|
32
|
+
</array>
|
33
|
+
<key>UISupportedInterfaceOrientations</key>
|
34
|
+
<array>
|
35
|
+
<string>UIInterfaceOrientationPortrait</string>
|
36
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
37
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
38
|
+
</array>
|
39
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
40
|
+
<array>
|
41
|
+
<string>UIInterfaceOrientationPortrait</string>
|
42
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
43
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
44
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
45
|
+
</array>
|
46
|
+
</dict>
|
47
|
+
</plist>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#import "FJBNotificationsApiInteractorProtocol.h"
|
2
|
+
|
3
|
+
@interface FJBNotificationsApiInteractor : NSObject <FJBNotificationsApiInteractorProtocol>
|
4
|
+
|
5
|
+
// -- Actions
|
6
|
+
// Perform API request to mark a notification as read
|
7
|
+
- (void)markNotificationAsRead:(NSString *)notificationId onCompletionBlock:(void(^)())completionBlock;
|
8
|
+
|
9
|
+
@end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#import "FJBNotificationsApiInteractor.h"
|
2
|
+
|
3
|
+
@interface FJBNotificationsApiInteractor ()
|
4
|
+
|
5
|
+
@end
|
6
|
+
|
7
|
+
@implementation FJBNotificationsApiInteractor
|
8
|
+
|
9
|
+
#pragma mark - Actions
|
10
|
+
|
11
|
+
- (void)markNotificationAsRead:(NSString *)notificationId onCompletionBlock:(void(^)())completionBlock
|
12
|
+
{
|
13
|
+
}
|
14
|
+
|
15
|
+
@end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#import <Foundation/Foundation.h>
|
2
|
+
|
3
|
+
@protocol FJBNotificationsApiInteractorProtocol <NSObject>
|
4
|
+
|
5
|
+
// -- Actions
|
6
|
+
// Perform API request to mark a notification as read
|
7
|
+
- (void)markNotificationAsRead:(NSString *)notificationId onCompletionBlock:(void(^)())completionBlock;
|
8
|
+
|
9
|
+
@end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// ViewController.h
|
3
|
+
// iOSCleanArchitectureGenerator
|
4
|
+
//
|
5
|
+
// Created by Francisco J. Belchi on 29/12/14.
|
6
|
+
// Copyright (c) 2014 fjbelchi. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@interface ViewController : UIViewController
|
12
|
+
|
13
|
+
|
14
|
+
@end
|
15
|
+
|