Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
93 changes: 93 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# MacOS
.DS_Store

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control

Pods/

# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
28 changes: 28 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
excluded:
- ListingsUITests
- Pods

disabled_rules:
- trailing_newline

opt_in_rules:
- force_unwrapping

line_length: 150
identifier_name:
excluded:
- id

custom_rules:
injector_import:
name: "Injector Access Violation"
included: ".*.swift"
regex: "(import Swinject)"
message: "Are you sure you need direct access to injection? This is usually needed at the app-delegate level and in factories or providers for property injection."
severity: error
viewmodel_uikit_import:
name: "ViewModel UIKit Access Violation"
included: ".*ViewModel.swift"
regex: "(import UIKit)"
message: "Are you adding styling or decorative logic that may better live in the view & view-controller? ViewModel's are generally UIKit agnostic."
severity: error
2 changes: 2 additions & 0 deletions Copy/ProductsCopy.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
products_list_title,Products,Produits
product_item_unknown_price,unknown,inconnue
31 changes: 31 additions & 0 deletions Listings.postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"info": {
"_postman_id": "e00aff53-c7a6-4962-abb2-4d0062cce51e",
"name": "Listings",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "products",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": ""
}
},
"response": []
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "6W9hcvwRvyyZgPu9Odq7ko8DSY8Nfm",
"type": "string"
}
]
},
"protocolProfileBehavior": {}
}
926 changes: 926 additions & 0 deletions Listings.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
98 changes: 98 additions & 0 deletions Listings.xcodeproj/xcshareddata/xcschemes/Listings.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1150"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E4795224A6B7CD00673396"
BuildableName = "Listings.app"
BlueprintName = "Listings"
ReferencedContainer = "container:Listings.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E4796824A6B7D000673396"
BuildableName = "ListingsTests.xctest"
BlueprintName = "ListingsTests"
ReferencedContainer = "container:Listings.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E4797324A6B7D000673396"
BuildableName = "ListingsUITests.xctest"
BlueprintName = "ListingsUITests"
ReferencedContainer = "container:Listings.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E4795224A6B7CD00673396"
BuildableName = "Listings.app"
BlueprintName = "Listings"
ReferencedContainer = "container:Listings.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E4795224A6B7CD00673396"
BuildableName = "Listings.app"
BlueprintName = "Listings"
ReferencedContainer = "container:Listings.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
10 changes: 10 additions & 0 deletions Listings.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Listings.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
20 changes: 20 additions & 0 deletions Listings/AppCoordinator.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AppCoordinator.swift
// Listings
//
// Created by Steven Wu on 2020-06-27.
// Copyright © 2020 Steven Wu. All rights reserved.
//

import Foundation
import RxSwift

enum AppState {
case tour
case auth
case main
}

final class AppCoordinator {
let appState = BehaviorSubject(value: AppState.main)
}
39 changes: 39 additions & 0 deletions Listings/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//
// AppDelegate.swift
// Listings
//
// Created by Steven Wu on 2020-06-26.
// Copyright © 2020 Steven Wu. All rights reserved.
//

import UIKit
import SwiftyBeaver

@UIApplicationMain
final class AppDelegate: UIResponder { }

extension AppDelegate: UIApplicationDelegate {

func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
}

// MARK: UISceneSession Lifecycle

func application(_ application: UIApplication,
configurationForConnecting connectingSceneSession: UISceneSession,
options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}

func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running,
// this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}

}
15 changes: 15 additions & 0 deletions Listings/AppSecrets.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// AppSecrets.swift
// Listings
//
// Created by Steven Wu on 2020-06-27.
// Copyright © 2020 Steven Wu. All rights reserved.
//

import Foundation

struct AppSecrets {
// TODO: SW - improve obfuscation here, using git --skip-worktree for now
static let bearerToken = ""
static let businessId = ""
}
Loading