Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZUP - Orlando Amorim #60

Open
wants to merge 83 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
3c38104
Add base project
orlandoamorim Aug 11, 2019
5761101
Add SantanderButton
orlandoamorim Aug 11, 2019
e44ce64
Add SegmentedControl
orlandoamorim Aug 11, 2019
09e9ddd
Add gitignore
orlandoamorim Aug 12, 2019
a9e8909
Remove stored files
orlandoamorim Aug 13, 2019
758ad09
Add missing files
orlandoamorim Aug 13, 2019
b4c1bb1
Update gitignore
orlandoamorim Aug 13, 2019
01a78bc
Add Bundler
orlandoamorim Aug 13, 2019
b0c57c4
Add cocoapods
orlandoamorim Aug 13, 2019
d1e3ba9
Add xcodegen
orlandoamorim Aug 13, 2019
32c1676
Add run script
orlandoamorim Aug 13, 2019
264a8f8
Add Icons
orlandoamorim Aug 13, 2019
ffbdef5
Add fonts
orlandoamorim Aug 13, 2019
769b9b9
Add ViewRow
orlandoamorim Aug 13, 2019
53c2ca6
Fix bundleIdPrefix
orlandoamorim Aug 13, 2019
5f1b8fa
Add FloatLabelTextField
orlandoamorim Aug 13, 2019
70ce30f
Add colors
orlandoamorim Aug 13, 2019
066a90f
Add SectionHeaderFooterRenderable protocol
orlandoamorim Aug 13, 2019
a87a83d
Add string helpers extensions
orlandoamorim Aug 13, 2019
f4804ee
Add UIStackView removeAllArrangedSubviews extension
orlandoamorim Aug 13, 2019
4ff96de
Add Service protocol
orlandoamorim Aug 13, 2019
630cceb
Add showAlert UIViewController extension
orlandoamorim Aug 13, 2019
5c94078
Add FloatField rows
orlandoamorim Aug 13, 2019
956279d
Add custom SegmentedControl
orlandoamorim Aug 13, 2019
616f240
Add SantanderButton
orlandoamorim Aug 13, 2019
eeab1f0
Add CheckmarkButton
orlandoamorim Aug 13, 2019
95821b6
Add SantanderBaseFormViewController
orlandoamorim Aug 13, 2019
4656a90
Add ServerRoutes
orlandoamorim Aug 13, 2019
5c46a99
Add FundsTarget
orlandoamorim Aug 13, 2019
c563cfb
Add ContactTarget
orlandoamorim Aug 13, 2019
382ddb7
Update CheckmarkButton
orlandoamorim Aug 14, 2019
014f9f0
Update _FloatLabelCell
orlandoamorim Aug 14, 2019
bcfd1ea
Add new colors
orlandoamorim Aug 14, 2019
a59cfa9
Add RulePhoneNumber
orlandoamorim Aug 14, 2019
45bb13e
Add SuccessView
orlandoamorim Aug 14, 2019
cde686e
Add Contact Scenes
orlandoamorim Aug 14, 2019
b30f0cc
Add ContainerViewController
orlandoamorim Aug 14, 2019
5dba0b3
Add SantanderTests
orlandoamorim Aug 14, 2019
84d5825
Update JGProgressHUD
orlandoamorim Aug 14, 2019
01135df
Add arrow icon
orlandoamorim Aug 15, 2019
6ec4165
Add DINPro light font
orlandoamorim Aug 15, 2019
6deab9a
Add new colors
orlandoamorim Aug 15, 2019
518c874
Add FundRiskView
orlandoamorim Aug 15, 2019
bb4ba76
Add separator line icon
orlandoamorim Aug 15, 2019
b6c6077
Add new color
orlandoamorim Aug 15, 2019
ef6a61c
Add download icon
orlandoamorim Aug 15, 2019
dbe803f
Add MoreInfoRow
orlandoamorim Aug 15, 2019
cc8d4da
Add DownloadButton
orlandoamorim Aug 15, 2019
ab5cb3a
Add DownloadInfoRow
orlandoamorim Aug 15, 2019
4d38f8f
Add FundsResponse model
orlandoamorim Aug 15, 2019
d497ebc
Add MoreInfoPercentagesView to handler percentages
orlandoamorim Aug 15, 2019
9feba60
Update FundRiskView with Funds.Risk
orlandoamorim Aug 15, 2019
9b71cec
Add Share icon
orlandoamorim Aug 17, 2019
cd5dc57
Add TitleSubtitleRow
orlandoamorim Aug 17, 2019
bab5938
Change model name
orlandoamorim Aug 17, 2019
0b450b4
Update DownloadButton to be UIButton subclass
orlandoamorim Aug 17, 2019
d9d64ea
Update viewForItem constraints and height
orlandoamorim Aug 17, 2019
3549570
Change Model name
orlandoamorim Aug 17, 2019
2b0f93d
Add Investment Scene
orlandoamorim Aug 17, 2019
f710587
Merge branch 'feature/funds/develop'
orlandoamorim Aug 17, 2019
2ae58e8
Add MoyaProvider Extension
orlandoamorim Aug 17, 2019
0c341d6
Update _FloatLabelCell to better the way how to handler phone number …
orlandoamorim Aug 17, 2019
f888f73
Add handler to device rotation
orlandoamorim Aug 17, 2019
7d0b68d
Fix ident spacing
orlandoamorim Aug 17, 2019
1974516
Set keyboardDismissMode to interactive
orlandoamorim Aug 17, 2019
e2f3cb7
Remove RxSwift from project
orlandoamorim Aug 17, 2019
e3df8ef
Update InvestmentDisplayLogic protocol
orlandoamorim Aug 17, 2019
3cb186f
Update Contact Scene PresentationLogic and DisplayLogic protocols
orlandoamorim Aug 19, 2019
4cd3488
Update Investment Scene PresentationLogic and DisplayLogic protocols
orlandoamorim Aug 19, 2019
df5df4b
Make RulePhoneNumber conforms to RuleType
orlandoamorim Aug 19, 2019
2af5f71
Remove isPhone and isEmail from string extension
orlandoamorim Aug 19, 2019
9977400
Fix form rows validations
orlandoamorim Aug 19, 2019
b72595a
Fix SantanderUnitTests target generation
orlandoamorim Aug 19, 2019
f086b96
Add app_pods to SantanderUnitTests target
orlandoamorim Aug 19, 2019
01c4986
Remove unnecessary file
orlandoamorim Aug 19, 2019
2b02f7b
Add StringExtensionsTests
orlandoamorim Aug 19, 2019
4c42c1e
Add more granularity to the test
orlandoamorim Aug 19, 2019
afd7d38
Add README
orlandoamorim Aug 19, 2019
e646a5d
Update ContactDisplayLogic displayError func
orlandoamorim Aug 23, 2019
8b827b9
Add TestData
orlandoamorim Aug 23, 2019
4fdcad3
Add TestError
orlandoamorim Aug 23, 2019
cafdf89
Add interactor tests
orlandoamorim Aug 23, 2019
bc56ea7
Add presenter tests
orlandoamorim Aug 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
*.DS_Store
*.xcuserstate
build/
DerivedData/
*.pbxproj
*.xcworkspace/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
*.moved-aside
*.xccheckout
*.xcscmblueprint
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
timeline.xctimeline
playground.xcworkspace
.build/
Pods/
Carthage/Build
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
Breakpoints_v2.xcbkptlist
*.xcodeproj/*
/Santander/Santander.xcodeproj
3 changes: 3 additions & 0 deletions Santander/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gem 'cocoapods', '~> 1.6.1'
76 changes: 76 additions & 0 deletions Santander/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.0)
activesupport (4.2.11.1)
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.6.2)
activesupport (>= 4.0.2, < 5)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.6.2)
cocoapods-deintegrate (>= 1.0.2, < 2.0)
cocoapods-downloader (>= 1.2.2, < 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.1, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.2.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.6.6)
nap (~> 1.0)
ruby-macho (~> 1.4)
xcodeproj (>= 1.8.1, < 2.0)
cocoapods-core (1.6.2)
activesupport (>= 4.0.2, < 6)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
cocoapods-deintegrate (1.0.4)
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.5)
escape (0.0.4)
fourflusher (2.2.0)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
minitest (5.11.3)
molinillo (0.6.6)
nanaimo (0.2.6)
nap (1.1.0)
netrc (0.11.0)
ruby-macho (1.4.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)
xcodeproj (1.9.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.6.1)

BUNDLED WITH
2.0.2
19 changes: 19 additions & 0 deletions Santander/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
use_frameworks!
inhibit_all_warnings!
platform :ios, '9.0'

def app_pods
pod 'SnapKit'
pod 'Eureka'
pod 'TLCustomMask'
pod 'Moya', '~> 13.0'
pod 'JGProgressHUD', '~> 2.0'
end

target 'Santander' do
app_pods
end

target 'SantanderUnitTests' do
app_pods
end
42 changes: 42 additions & 0 deletions Santander/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
PODS:
- Alamofire (4.8.2)
- Eureka (4.3.1)
- JGProgressHUD (2.0.4)
- Moya (13.0.1):
- Moya/Core (= 13.0.1)
- Moya/Core (13.0.1):
- Alamofire (~> 4.1)
- Result (~> 4.1)
- Result (4.1.0)
- SnapKit (4.2.0)
- TLCustomMask (2.0.0)

DEPENDENCIES:
- Eureka
- JGProgressHUD (~> 2.0)
- Moya (~> 13.0)
- SnapKit
- TLCustomMask

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Alamofire
- Eureka
- JGProgressHUD
- Moya
- Result
- SnapKit
- TLCustomMask

SPEC CHECKSUMS:
Alamofire: ae5c501addb7afdbb13687d7f2f722c78734c2d3
Eureka: 28ea296f06710f6745266b71f17862048941a32d
JGProgressHUD: 62658b14e72cccf179efc7a13bcb54d30b92fc22
Moya: f4a4b80ff2f8a4ffc208dfb31cd91636622fee6e
Result: bd966fac789cc6c1563440b348ab2598cc24d5c7
SnapKit: fe8a619752f3f27075cc9a90244d75c6c3f27e2a
TLCustomMask: 32bcd873851167c2d2a3726b048766b737873710

PODFILE CHECKSUM: 96e7b800b5a7b93d749bdfce5e50a90371f01bdb

COCOAPODS: 1.6.2
37 changes: 37 additions & 0 deletions Santander/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Setup Guide

## Requirements

- iOS 9.0+
- Xcode 10.0+
- Swift 5.0

## Development Dependencies

In order to work in this project, some dependencies are needed and are also described below.

- [bundler](https://bundler.io) - Bundler encapsulates the project environment by locking our ruby dependencies versions.
- [xcodegen](https://github.com/yonaskolb/XcodeGen) - Generates the xcodeproj you'll be working on with the proper folder structure and specs.

## Building Santander

1. Install [Xcode developer tools](https://developer.apple.com/xcode/downloads/) from Apple.
1. Clone the repository:
```shell
git clone [email protected]:orlandoamorim/TesteiOS.git
```
1. Pull in the project dependencies:
### If you're running the project for the first time run this
```shell
sh ./bootstrap.sh --install-bundler
```

### else run this
```shell
sh ./bootstrap.sh
```
1. Open `Santander.xcworkspace` in Xcode.

# Info

- Company: [Zup](https://www.zup.com.br/)
23 changes: 23 additions & 0 deletions Santander/Santander/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// AppDelegate.swift
// Santander
//
// Created by Orlando Amorim on 10/08/19.
// Copyright © 2019 Santander. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.makeKeyAndVisible()
window?.rootViewController = UINavigationController(rootViewController: ContainerViewController())
return true
}
}

50 changes: 50 additions & 0 deletions Santander/Santander/Application/Propeties/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIAppFonts</key>
<array>
<string>DINPro-Medium.otf</string>
<string>DINPro-Regular.otf</string>
<string>DINPro-Light.otf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading