Skip to content

Commit

Permalink
Переезд на Github
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKrupov committed Jan 31, 2019
1 parent 9e99c93 commit 19f1912
Show file tree
Hide file tree
Showing 130 changed files with 3,469 additions and 71 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/Pods/
/Templates/
/Weather.xcodeproj/xcuserdata/
/Weather.xcworkspace/xcuserdata/
/R.generated.swift
54 changes: 54 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
included:
- Weather

excluded:
- Pods

disabled_rules:
- force_cast
- object_literal
- syntactic_sugar

opt_in_rules:
- empty_count
- conditional_returns_on_newline
- explicit_init
- closure_spacing
- overridden_super_call
- redundant_nil_coalescing
- private_outlet
- nimble_operator
- attributes
- joined_default_parameter
- operator_usage_whitespace
- first_where
- sorted_imports
- object_literal
- number_separator
- prohibited_super_call
- fatal_error_message
- vertical_parameter_alignment_on_call
- let_var_whitespace
- unneeded_parentheses_in_closure_argument
- extension_access_modifier
- pattern_matching_keywords
- multiline_parameters
- switch_case_on_newline

identifier_name:
excluded:
- id
allowed_symbols:
- _
line_length: 144
type_name:
max_length:
warning: 50
error: 60

number_separator:
minimum_length: 5

nesting:
type_level:
warning: 2
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gem 'cocoapods', '~> 1.5.3'
gem 'generamba', github: 'strongself/Generamba', :branch => 'develop'
94 changes: 94 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
GIT
remote: https://github.com/strongself/Generamba
revision: 4c450efc3ea63dd34fa04206194813dbb021441e
branch: develop
specs:
generamba (1.4.1)
cocoapods-core (= 1.5.3)
git (= 1.2.9.1)
liquid (= 4.0.0)
terminal-table (= 1.4.5)
thor (= 0.19.1)
xcodeproj (= 1.6.0)

GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.0)
activesupport (4.2.11)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
atomos (0.1.3)
claide (1.0.2)
cocoapods (1.5.3)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.5.3)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-stats (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.3.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (~> 2.0.1)
gh_inspector (~> 1.0)
molinillo (~> 0.6.5)
nap (~> 1.0)
ruby-macho (~> 1.1)
xcodeproj (>= 1.5.7, < 2.0)
cocoapods-core (1.5.3)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.2)
cocoapods-downloader (1.2.2)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.0)
cocoapods-stats (1.1.0)
cocoapods-trunk (1.3.1)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.1.0)
colored2 (3.1.2)
concurrent-ruby (1.1.4)
escape (0.0.4)
fourflusher (2.0.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
git (1.2.9.1)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
liquid (4.0.0)
minitest (5.11.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
netrc (0.11.0)
ruby-macho (1.3.1)
terminal-table (1.4.5)
thor (0.19.1)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (1.6.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.6)

PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.5.3)
generamba!

BUNDLED WITH
1.17.3
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Sergey Krupov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 22 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

platform :ios, '9.0'

target 'Weather' do

use_frameworks!

pod 'RxSwift', '~> 4.4.0'
pod 'RxCocoa', '~> 4.4.0'
pod 'RxDataSources', '~> 3.1.0'
pod 'R.swift', '~> 5.0.0'
pod 'Swinject', '~> 2.5.0'
pod 'SwinjectStoryboard', '~> 2.1.0'
pod 'Alamofire', '~> 4.8.1'
pod 'SwiftLint'

target 'WeatherTests' do
inherit! :search_paths
# Pods for testing
end

end
60 changes: 60 additions & 0 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
PODS:
- Alamofire (4.8.1)
- Differentiator (3.1.0)
- R.swift (5.0.2):
- R.swift.Library (~> 5.0.0)
- R.swift.Library (5.0.0)
- RxAtomic (4.4.0)
- RxCocoa (4.4.0):
- RxSwift (~> 4.0)
- RxDataSources (3.1.0):
- Differentiator (~> 3.0)
- RxCocoa (~> 4.0)
- RxSwift (~> 4.0)
- RxSwift (4.4.0):
- RxAtomic (~> 4.4)
- SwiftLint (0.30.1)
- Swinject (2.5.0)
- SwinjectStoryboard (2.1.0):
- Swinject (~> 2.5)

DEPENDENCIES:
- Alamofire (~> 4.8.1)
- R.swift (~> 5.0.0)
- RxCocoa (~> 4.4.0)
- RxDataSources (~> 3.1.0)
- RxSwift (~> 4.4.0)
- SwiftLint
- Swinject (~> 2.5.0)
- SwinjectStoryboard (~> 2.1.0)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Alamofire
- Differentiator
- R.swift
- R.swift.Library
- RxAtomic
- RxCocoa
- RxDataSources
- RxSwift
- SwiftLint
- Swinject
- SwinjectStoryboard

SPEC CHECKSUMS:
Alamofire: 16ce2c353fb72865124ddae8a57c5942388f4f11
Differentiator: be49ca3408f0ecfc761e4c7763d20c62be01b9ad
R.swift: 81455d81467763cbd3f4d79d938d05f4ac4c0228
R.swift.Library: 0bf390e729bc10bb2c9e4fb78bd043164a7be4ff
RxAtomic: eacf60db868c96bfd63320e28619fe29c179656f
RxCocoa: df63ebf7b9a70d6b4eeea407ed5dd4efc8979749
RxDataSources: a843bad90c29817f5923ec8163f4af2de084ceb3
RxSwift: 5976ecd04fc2fefd648827c23de5e11157faa973
SwiftLint: a54bf1fe12b55c68560eb2a7689dfc81458508f7
Swinject: 82cdb851f63f91bba974e3eca1d69780f2f7677e
SwinjectStoryboard: 688f096033103e66ffcf6ca678211acd7d7be505

PODFILE CHECKSUM: e07856620ae84e1db1a6b49e1cbfbe41a53da4cf

COCOAPODS: 1.5.3
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Weather
Тестовое приложение, показывающее прогноз погоды
25 changes: 25 additions & 0 deletions Rambafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
### Headers settings
company: Home

### Xcode project settings
project_name: Weather
xcodeproj_path: Weather.xcodeproj

### Code generation settings section
# The main project target name
project_target: Weather

# The file path for new modules
project_file_path: Weather/Modules

# The Xcode group path to new modules
project_group_path: Weather/Modules

### Templates
templates:
- {name: rviper_controller}
- {name: mvvm_controller}
- {name: swifty_viper}

templates:
- {name: viperSwift, local: 'viperSwift'}
38 changes: 38 additions & 0 deletions RxViper/Code/Assembly/assemblycontainer.swift.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// {{ prefix }}{{ module_info.name }}{{ module_info.file_name }}
// {{ module_info.project_name }}
//
// Created by {{ developer.name }} on {{ date }}.
// Copyright © {{ year }} {{ developer.company }}. All rights reserved.
//

import Swinject
import SwinjectStoryboard

final class {{ module_info.name }}AssemblyContainer: Assembly {

func assemble(container: Container) {
container.register({{ module_info.name }}InteractorProtocol.self) { resolver in
let interactor = {{ module_info.name }}Interactor()
return interactor
}

container.register({{ module_info.name }}RouterProtocol.self) { (resolver, viewController: {{ module_info.name }}ViewController) in
let router = {{ module_info.name }}Router()
return router
}

container.register({{ module_info.name }}Presenter.self) { (resolver, viewController: {{ module_info.name }}ViewController) in
let presenter = {{ module_info.name }}Presenter()
presenter.view = viewController
presenter.interactor = resolver.resolve({{ module_info.name }}InteractorProtocol.self)
presenter.router = resolver.resolve({{ module_info.name }}RouterProtocol.self, argument: viewController)
return presenter
}

container.storyboardInitCompleted({{ module_info.name }}ViewController.self) { resolver, viewController in
let presenter = resolver.resolve({{ module_info.name }}Presenter.self, argument: viewController)!
viewController.setPresenter(presenter)
}
}
}
17 changes: 17 additions & 0 deletions RxViper/Code/Interactor/interactor.swift.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// {{ prefix }}{{ module_info.name }}{{ module_info.file_name }}
// {{ module_info.project_name }}
//
// Created by {{ developer.name }} on {{ date }}.
// Copyright © {{ year }} {{ developer.company }}. All rights reserved.
//

import RxCocoa
import RxSwift

final class {{ module_info.name }}Interactor: {{ module_info.name }}InteractorProtocol {

// MARK: - Dependencies

// MARK: - {{ module_info.name }}InteractorProtocol
}
14 changes: 14 additions & 0 deletions RxViper/Code/Interactor/interactor_protocol.swift.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// {{ prefix }}{{ module_info.name }}{{ module_info.file_name }}
// {{ module_info.project_name }}
//
// Created by {{ developer.name }} on {{ date }}.
// Copyright © {{ year }} {{ developer.company }}. All rights reserved.
//

import RxCocoa
import RxSwift

protocol {{ module_info.name }}InteractorProtocol: class {

}
11 changes: 11 additions & 0 deletions RxViper/Code/Presenter/module_input.swift.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//
// {{ module_info.name }}{{ module_info.file_name }}
// {{ module_info.project_name }}
//
// Created by {{ developer.name }} on {{ date }}.
// Copyright © {{ year }} {{ developer.company }}. All rights reserved.
//

protocol {{ module_info.name }}ModuleInput: class {

}
Loading

0 comments on commit 19f1912

Please sign in to comment.