vipergeng 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/templates/default/swift/WireFrame/VIPERWireFrame.swift +20 -14
- data/lib/vipergen/version.rb +1 -1
- data/lib/vipergen/viperthor.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8712a59a65eb3bc53a16a06e35729bf775537b8c
|
4
|
+
data.tar.gz: 8be01731957e3a53ada63dd6c55a0b63b8719bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4497803ed7c9ff5814874daf923fd3fbf8611ce2e84b0af06b21356297e5bfc0b361d694fd7b099bfd9f076ccb97649a57dee7b721dda64957549392793a0e9
|
7
|
+
data.tar.gz: cd8ad8b3d88d0c252e9da09ac9f8601ad109aeee16f7c7303fe0febdff57d6d9a19b5a5bd9db82d2dc9245140a8797a7fddec5b2a1f90302d542de655d06755c
|
@@ -13,20 +13,26 @@ class VIPERWireFrame: VIPERWireFrameProtocol {
|
|
13
13
|
static func presentVIPERModule(fromView: AnyObject) {
|
14
14
|
|
15
15
|
// Generating module components
|
16
|
-
let
|
17
|
-
let
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
let viewController = mainStoryboard.instantiateViewController(withIdentifier: "VIPERViewController")
|
17
|
+
if let view = viewController as? VIPERViewController {
|
18
|
+
let presenter: VIPERPresenterProtocol & VIPERInteractorOutputProtocol = VIPERPresenter()
|
19
|
+
let interactor: VIPERInteractorInputProtocol = VIPERInteractor()
|
20
|
+
let APIDataManager: VIPERAPIDataManagerInputProtocol = VIPERAPIDataManager()
|
21
|
+
let localDataManager: VIPERLocalDataManagerInputProtocol = VIPERLocalDataManager()
|
22
|
+
let wireFrame: VIPERWireFrameProtocol = VIPERWireFrame()
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
// Connecting
|
25
|
+
view.presenter = presenter
|
26
|
+
presenter.view = view
|
27
|
+
presenter.wireFrame = wireFrame
|
28
|
+
presenter.interactor = interactor
|
29
|
+
interactor.presenter = presenter
|
30
|
+
interactor.APIDataManager = APIDataManager
|
31
|
+
interactor.localDatamanager = localDataManager
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
static var storyboard: UIStoryboard {
|
36
|
+
return UIStoryboard(name: "Main", bundle: Bundle.main)
|
31
37
|
}
|
32
38
|
}
|
data/lib/vipergen/version.rb
CHANGED
data/lib/vipergen/viperthor.rb
CHANGED
@@ -7,9 +7,9 @@ module Vipergen
|
|
7
7
|
# option :language, :required => false, :default => 'swift', :type => :string, :desc => "The language of the generated module (swift, objc)"
|
8
8
|
option :template, :required => false, :default => 'default', :type => :string , :desc => "Template for the generation"
|
9
9
|
option :path, :required => true, :type => :string , :desc => "Path where the output module is going to be saved"
|
10
|
-
option :author, :required => false, :default => '
|
11
|
-
option :company, :required => false, :default => '
|
12
|
-
option :project, :required => false, :default => '
|
10
|
+
option :author, :required => false, :default => 'AuthorXXX', :type => :string , :desc => "Author to be specified on the file's header. Otherwise VIPER will be used"
|
11
|
+
option :company, :required => false, :default => 'CompanyXXX', :type => :string, :desc => "Company to be specified on the file's header. Otherwise Company will be used"
|
12
|
+
option :project, :required => false, :default => 'ProjectXXX', :type => :string, :desc => "Project to be specified on the file's header. Otherwise Project will be used"
|
13
13
|
def generate(name)
|
14
14
|
Vipergen::Generator.generate_viper(options[:template], 'swift', name, options[:path], options[:author], options[:company], options[:project])
|
15
15
|
end
|