diff --git a/sample-iOS/Supr-demo/.gitignore b/sample-iOS/Supr-demo/.gitignore new file mode 100644 index 0000000..270d6e4 --- /dev/null +++ b/sample-iOS/Supr-demo/.gitignore @@ -0,0 +1,54 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## Build generated +build/ +DerivedData + +## Various settings +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata + +## Other +*.xccheckout +*.moved-aside +*.xcuserstate +*.xcscmblueprint + +## Obj-C/Swift specific +*.hmap +*.ipa + +# Swift Package Manager +# +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +.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/ + +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. + +#Carthage/Checkouts +#Carthage/Build + +# bundler +vendor +.bundle +.DS_Store diff --git a/sample-iOS/Supr-demo/.swiftlint.yml b/sample-iOS/Supr-demo/.swiftlint.yml new file mode 100644 index 0000000..22bda0a --- /dev/null +++ b/sample-iOS/Supr-demo/.swiftlint.yml @@ -0,0 +1,22 @@ +included: + - Supr-demo +excluded: + - Supr-demoTests +force_cast: warning +shorthand_operator: warning +force_try: + severity: warning +file_length: + warning: 1250 + error: 2500 +type_body_length: + warning: 500 + error: 800 +disabled_rules: + - line_length + - identifier_name + - type_name + - weak_delegate + - nesting + - unused_closure_parameter + - class_delegate_protocol diff --git a/sample-iOS/Supr-demo/Podfile b/sample-iOS/Supr-demo/Podfile new file mode 100644 index 0000000..aa45065 --- /dev/null +++ b/sample-iOS/Supr-demo/Podfile @@ -0,0 +1,13 @@ +# Podfile +use_frameworks! + +target 'Supr-demo' do + pod 'RxSwift', '~> 4.0' + pod 'RxCocoa', '~> 4.0' +end + +# RxTests and RxBlocking make the most sense in the context of unit/integration tests +target 'Supr-demoTests' do + pod 'RxBlocking', '~> 4.0' + pod 'RxTest', '~> 4.0' +end diff --git a/sample-iOS/Supr-demo/Podfile.lock b/sample-iOS/Supr-demo/Podfile.lock new file mode 100644 index 0000000..eeb2e7b --- /dev/null +++ b/sample-iOS/Supr-demo/Podfile.lock @@ -0,0 +1,24 @@ +PODS: + - RxBlocking (4.1.2): + - RxSwift (~> 4.0) + - RxCocoa (4.1.2): + - RxSwift (~> 4.0) + - RxSwift (4.1.2) + - RxTest (4.1.2): + - RxSwift (~> 4.0) + +DEPENDENCIES: + - RxBlocking (~> 4.0) + - RxCocoa (~> 4.0) + - RxSwift (~> 4.0) + - RxTest (~> 4.0) + +SPEC CHECKSUMS: + RxBlocking: f6054985901412fc8c02daa84e92d4ba68c61389 + RxCocoa: d88ba0f1f6abf040011a9eb4b539324fc426843a + RxSwift: e49536837d9901277638493ea537394d4b55f570 + RxTest: e634f15fd2c2cd0e0120132ef7a4f7be69ad0393 + +PODFILE CHECKSUM: a4753f4cbd1e5f3ea066a885129832b921a86495 + +COCOAPODS: 1.4.0 diff --git a/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.pbxproj b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a5ecf06 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.pbxproj @@ -0,0 +1,692 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 48; + objects = { + +/* Begin PBXBuildFile section */ + 0F8A0CEA48C41D9053ED7E07 /* Pods_Supr_demoTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F2082806A2A5D6148EA6B2B6 /* Pods_Supr_demoTests.framework */; }; + 5179085D203ECFAF00461F7F /* UseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5179085C203ECFAF00461F7F /* UseCase.swift */; }; + 5179085F203ED2D900461F7F /* DataResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5179085E203ED2D900461F7F /* DataResult.swift */; }; + 51790861203ED2FB00461F7F /* DataResultState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51790860203ED2FB00461F7F /* DataResultState.swift */; }; + 51790863203ED64800461F7F /* SimpleUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51790862203ED64800461F7F /* SimpleUseCase.swift */; }; + 51790865203EDB0900461F7F /* Scene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51790864203EDB0900461F7F /* Scene.swift */; }; + 51E99629203C690D00C0BE9E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E99628203C690D00C0BE9E /* AppDelegate.swift */; }; + 51E9962B203C690D00C0BE9E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E9962A203C690D00C0BE9E /* ViewController.swift */; }; + 51E9962E203C690D00C0BE9E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51E9962C203C690D00C0BE9E /* Main.storyboard */; }; + 51E99630203C690D00C0BE9E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 51E9962F203C690D00C0BE9E /* Assets.xcassets */; }; + 51E99633203C690D00C0BE9E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 51E99631203C690D00C0BE9E /* LaunchScreen.storyboard */; }; + 51E9963E203C690D00C0BE9E /* Supr_demoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E9963D203C690D00C0BE9E /* Supr_demoTests.swift */; }; + 51E9964E203C738900C0BE9E /* ViewModelEntity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E9964D203C738900C0BE9E /* ViewModelEntity.swift */; }; + 51E99650203C74FD00C0BE9E /* ViewModelEntityState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E9964F203C74FD00C0BE9E /* ViewModelEntityState.swift */; }; + 51E99652203C757800C0BE9E /* Interaction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E99651203C757800C0BE9E /* Interaction.swift */; }; + 51E99654203C75B000C0BE9E /* InteractionType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E99653203C75B000C0BE9E /* InteractionType.swift */; }; + 51E99656203C763E00C0BE9E /* Presenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 51E99655203C763E00C0BE9E /* Presenter.swift */; }; + 5AFD974138EC13DD77685E82 /* Pods_Supr_demo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B94CCD5C6F0DDA21D954B6AE /* Pods_Supr_demo.framework */; }; + A7110767203F100A0005B886 /* ParamUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = A7110766203F100A0005B886 /* ParamUseCase.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 51E9963A203C690D00C0BE9E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 51E9961D203C690D00C0BE9E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 51E99624203C690D00C0BE9E; + remoteInfo = "Supr-demo"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 032BFF61B9D998EFF8D64838 /* Pods-Supr-demo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Supr-demo.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Supr-demo/Pods-Supr-demo.debug.xcconfig"; sourceTree = ""; }; + 3D8749E2D79622C86EB2C313 /* Pods-Supr-demoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Supr-demoTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Supr-demoTests/Pods-Supr-demoTests.release.xcconfig"; sourceTree = ""; }; + 5179085C203ECFAF00461F7F /* UseCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UseCase.swift; sourceTree = ""; }; + 5179085E203ED2D900461F7F /* DataResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataResult.swift; sourceTree = ""; }; + 51790860203ED2FB00461F7F /* DataResultState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataResultState.swift; sourceTree = ""; }; + 51790862203ED64800461F7F /* SimpleUseCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleUseCase.swift; sourceTree = ""; }; + 51790864203EDB0900461F7F /* Scene.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Scene.swift; sourceTree = ""; }; + 51E99625203C690D00C0BE9E /* Supr-demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Supr-demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 51E99628203C690D00C0BE9E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 51E9962A203C690D00C0BE9E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 51E9962D203C690D00C0BE9E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 51E9962F203C690D00C0BE9E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 51E99632203C690D00C0BE9E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 51E99634203C690D00C0BE9E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 51E99639203C690D00C0BE9E /* Supr-demoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Supr-demoTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 51E9963D203C690D00C0BE9E /* Supr_demoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Supr_demoTests.swift; sourceTree = ""; }; + 51E9963F203C690D00C0BE9E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 51E9964D203C738900C0BE9E /* ViewModelEntity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModelEntity.swift; sourceTree = ""; }; + 51E9964F203C74FD00C0BE9E /* ViewModelEntityState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModelEntityState.swift; sourceTree = ""; }; + 51E99651203C757800C0BE9E /* Interaction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Interaction.swift; sourceTree = ""; }; + 51E99653203C75B000C0BE9E /* InteractionType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InteractionType.swift; sourceTree = ""; }; + 51E99655203C763E00C0BE9E /* Presenter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Presenter.swift; sourceTree = ""; }; + A7110766203F100A0005B886 /* ParamUseCase.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParamUseCase.swift; sourceTree = ""; }; + B94CCD5C6F0DDA21D954B6AE /* Pods_Supr_demo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Supr_demo.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BAC710598146EF566879636E /* Pods-Supr-demoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Supr-demoTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Supr-demoTests/Pods-Supr-demoTests.debug.xcconfig"; sourceTree = ""; }; + F2082806A2A5D6148EA6B2B6 /* Pods_Supr_demoTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Supr_demoTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + FBF5D31E3A2137B197EA7939 /* Pods-Supr-demo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Supr-demo.release.xcconfig"; path = "Pods/Target Support Files/Pods-Supr-demo/Pods-Supr-demo.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 51E99622203C690D00C0BE9E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5AFD974138EC13DD77685E82 /* Pods_Supr_demo.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 51E99636203C690D00C0BE9E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 0F8A0CEA48C41D9053ED7E07 /* Pods_Supr_demoTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 51E9961C203C690D00C0BE9E = { + isa = PBXGroup; + children = ( + 51E99627203C690D00C0BE9E /* Supr-demo */, + 51E9963C203C690D00C0BE9E /* Supr-demoTests */, + 51E99626203C690D00C0BE9E /* Products */, + 90C12165DE1BFB9CA2EAD870 /* Pods */, + 786BD1715D7430829424F343 /* Frameworks */, + ); + sourceTree = ""; + }; + 51E99626203C690D00C0BE9E /* Products */ = { + isa = PBXGroup; + children = ( + 51E99625203C690D00C0BE9E /* Supr-demo.app */, + 51E99639203C690D00C0BE9E /* Supr-demoTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 51E99627203C690D00C0BE9E /* Supr-demo */ = { + isa = PBXGroup; + children = ( + 51E99649203C709000C0BE9E /* Supr */, + 51E99628203C690D00C0BE9E /* AppDelegate.swift */, + 51E9962A203C690D00C0BE9E /* ViewController.swift */, + 51E9962C203C690D00C0BE9E /* Main.storyboard */, + 51E9962F203C690D00C0BE9E /* Assets.xcassets */, + 51E99631203C690D00C0BE9E /* LaunchScreen.storyboard */, + 51E99634203C690D00C0BE9E /* Info.plist */, + ); + path = "Supr-demo"; + sourceTree = ""; + }; + 51E9963C203C690D00C0BE9E /* Supr-demoTests */ = { + isa = PBXGroup; + children = ( + 51E9963D203C690D00C0BE9E /* Supr_demoTests.swift */, + 51E9963F203C690D00C0BE9E /* Info.plist */, + ); + path = "Supr-demoTests"; + sourceTree = ""; + }; + 51E99649203C709000C0BE9E /* Supr */ = { + isa = PBXGroup; + children = ( + 51E9964A203C70D300C0BE9E /* Data */, + 51E9964B203C70DD00C0BE9E /* Domain */, + 51E9964C203C70E500C0BE9E /* Presentation */, + ); + path = Supr; + sourceTree = ""; + }; + 51E9964A203C70D300C0BE9E /* Data */ = { + isa = PBXGroup; + children = ( + 5179085E203ED2D900461F7F /* DataResult.swift */, + 51790860203ED2FB00461F7F /* DataResultState.swift */, + ); + path = Data; + sourceTree = ""; + }; + 51E9964B203C70DD00C0BE9E /* Domain */ = { + isa = PBXGroup; + children = ( + 5179085C203ECFAF00461F7F /* UseCase.swift */, + 51790862203ED64800461F7F /* SimpleUseCase.swift */, + A7110766203F100A0005B886 /* ParamUseCase.swift */, + ); + path = Domain; + sourceTree = ""; + }; + 51E9964C203C70E500C0BE9E /* Presentation */ = { + isa = PBXGroup; + children = ( + 51E9964D203C738900C0BE9E /* ViewModelEntity.swift */, + 51E9964F203C74FD00C0BE9E /* ViewModelEntityState.swift */, + 51E99651203C757800C0BE9E /* Interaction.swift */, + 51E99653203C75B000C0BE9E /* InteractionType.swift */, + 51E99655203C763E00C0BE9E /* Presenter.swift */, + 51790864203EDB0900461F7F /* Scene.swift */, + ); + path = Presentation; + sourceTree = ""; + }; + 786BD1715D7430829424F343 /* Frameworks */ = { + isa = PBXGroup; + children = ( + B94CCD5C6F0DDA21D954B6AE /* Pods_Supr_demo.framework */, + F2082806A2A5D6148EA6B2B6 /* Pods_Supr_demoTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 90C12165DE1BFB9CA2EAD870 /* Pods */ = { + isa = PBXGroup; + children = ( + 032BFF61B9D998EFF8D64838 /* Pods-Supr-demo.debug.xcconfig */, + FBF5D31E3A2137B197EA7939 /* Pods-Supr-demo.release.xcconfig */, + BAC710598146EF566879636E /* Pods-Supr-demoTests.debug.xcconfig */, + 3D8749E2D79622C86EB2C313 /* Pods-Supr-demoTests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 51E99624203C690D00C0BE9E /* Supr-demo */ = { + isa = PBXNativeTarget; + buildConfigurationList = 51E99642203C690D00C0BE9E /* Build configuration list for PBXNativeTarget "Supr-demo" */; + buildPhases = ( + 9B6BDE20DFBC6DC609182AFE /* [CP] Check Pods Manifest.lock */, + 51E99621203C690D00C0BE9E /* Sources */, + 51E99622203C690D00C0BE9E /* Frameworks */, + 51E99623203C690D00C0BE9E /* Resources */, + 51E99648203C6BFB00C0BE9E /* ShellScript */, + 2F80238159A02460CAA6C696 /* [CP] Embed Pods Frameworks */, + 2C8652BA7597A1929FFA2F2D /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Supr-demo"; + productName = "Supr-demo"; + productReference = 51E99625203C690D00C0BE9E /* Supr-demo.app */; + productType = "com.apple.product-type.application"; + }; + 51E99638203C690D00C0BE9E /* Supr-demoTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 51E99645203C690D00C0BE9E /* Build configuration list for PBXNativeTarget "Supr-demoTests" */; + buildPhases = ( + CCA08FF92C80FD26368DE210 /* [CP] Check Pods Manifest.lock */, + 51E99635203C690D00C0BE9E /* Sources */, + 51E99636203C690D00C0BE9E /* Frameworks */, + 51E99637203C690D00C0BE9E /* Resources */, + 2B08B3EBF4FAAC90FB8A2690 /* [CP] Embed Pods Frameworks */, + 5EC7E119C7BB784AD613622E /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 51E9963B203C690D00C0BE9E /* PBXTargetDependency */, + ); + name = "Supr-demoTests"; + productName = "Supr-demoTests"; + productReference = 51E99639203C690D00C0BE9E /* Supr-demoTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 51E9961D203C690D00C0BE9E /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0910; + LastUpgradeCheck = 0910; + ORGANIZATIONNAME = Impraise; + TargetAttributes = { + 51E99624203C690D00C0BE9E = { + CreatedOnToolsVersion = 9.1; + ProvisioningStyle = Automatic; + }; + 51E99638203C690D00C0BE9E = { + CreatedOnToolsVersion = 9.1; + ProvisioningStyle = Automatic; + TestTargetID = 51E99624203C690D00C0BE9E; + }; + }; + }; + buildConfigurationList = 51E99620203C690D00C0BE9E /* Build configuration list for PBXProject "Supr-demo" */; + compatibilityVersion = "Xcode 8.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 51E9961C203C690D00C0BE9E; + productRefGroup = 51E99626203C690D00C0BE9E /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 51E99624203C690D00C0BE9E /* Supr-demo */, + 51E99638203C690D00C0BE9E /* Supr-demoTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 51E99623203C690D00C0BE9E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51E99633203C690D00C0BE9E /* LaunchScreen.storyboard in Resources */, + 51E99630203C690D00C0BE9E /* Assets.xcassets in Resources */, + 51E9962E203C690D00C0BE9E /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 51E99637203C690D00C0BE9E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2B08B3EBF4FAAC90FB8A2690 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-Supr-demoTests/Pods-Supr-demoTests-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework", + "${BUILT_PRODUCTS_DIR}/RxBlocking/RxBlocking.framework", + "${BUILT_PRODUCTS_DIR}/RxTest/RxTest.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxBlocking.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxTest.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Supr-demoTests/Pods-Supr-demoTests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 2C8652BA7597A1929FFA2F2D /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Supr-demo/Pods-Supr-demo-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 2F80238159A02460CAA6C696 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${SRCROOT}/Pods/Target Support Files/Pods-Supr-demo/Pods-Supr-demo-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/RxCocoa/RxCocoa.framework", + "${BUILT_PRODUCTS_DIR}/RxSwift/RxSwift.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxCocoa.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RxSwift.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Supr-demo/Pods-Supr-demo-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 51E99648203C6BFB00C0BE9E /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi"; + }; + 5EC7E119C7BB784AD613622E /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "[CP] Copy Pods Resources"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Supr-demoTests/Pods-Supr-demoTests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 9B6BDE20DFBC6DC609182AFE /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Supr-demo-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + CCA08FF92C80FD26368DE210 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Supr-demoTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 51E99621203C690D00C0BE9E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51E99654203C75B000C0BE9E /* InteractionType.swift in Sources */, + A7110767203F100A0005B886 /* ParamUseCase.swift in Sources */, + 51790863203ED64800461F7F /* SimpleUseCase.swift in Sources */, + 51790861203ED2FB00461F7F /* DataResultState.swift in Sources */, + 51790865203EDB0900461F7F /* Scene.swift in Sources */, + 51E99656203C763E00C0BE9E /* Presenter.swift in Sources */, + 51E9964E203C738900C0BE9E /* ViewModelEntity.swift in Sources */, + 51E99652203C757800C0BE9E /* Interaction.swift in Sources */, + 51E9962B203C690D00C0BE9E /* ViewController.swift in Sources */, + 5179085D203ECFAF00461F7F /* UseCase.swift in Sources */, + 51E99629203C690D00C0BE9E /* AppDelegate.swift in Sources */, + 5179085F203ED2D900461F7F /* DataResult.swift in Sources */, + 51E99650203C74FD00C0BE9E /* ViewModelEntityState.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 51E99635203C690D00C0BE9E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 51E9963E203C690D00C0BE9E /* Supr_demoTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 51E9963B203C690D00C0BE9E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 51E99624203C690D00C0BE9E /* Supr-demo */; + targetProxy = 51E9963A203C690D00C0BE9E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 51E9962C203C690D00C0BE9E /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 51E9962D203C690D00C0BE9E /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 51E99631203C690D00C0BE9E /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 51E99632203C690D00C0BE9E /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 51E99640203C690D00C0BE9E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.1; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 51E99641203C690D00C0BE9E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 11.1; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 51E99643203C690D00C0BE9E /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 032BFF61B9D998EFF8D64838 /* Pods-Supr-demo.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = BW3D7H3735; + INFOPLIST_FILE = "Supr-demo/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.impraise.Supr-demo"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 51E99644203C690D00C0BE9E /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FBF5D31E3A2137B197EA7939 /* Pods-Supr-demo.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = BW3D7H3735; + INFOPLIST_FILE = "Supr-demo/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.impraise.Supr-demo"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 51E99646203C690D00C0BE9E /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = BAC710598146EF566879636E /* Pods-Supr-demoTests.debug.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = BW3D7H3735; + INFOPLIST_FILE = "Supr-demoTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.impraise.Supr-demoTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Supr-demo.app/Supr-demo"; + }; + name = Debug; + }; + 51E99647203C690D00C0BE9E /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3D8749E2D79622C86EB2C313 /* Pods-Supr-demoTests.release.xcconfig */; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = BW3D7H3735; + INFOPLIST_FILE = "Supr-demoTests/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.impraise.Supr-demoTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Supr-demo.app/Supr-demo"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 51E99620203C690D00C0BE9E /* Build configuration list for PBXProject "Supr-demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51E99640203C690D00C0BE9E /* Debug */, + 51E99641203C690D00C0BE9E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 51E99642203C690D00C0BE9E /* Build configuration list for PBXNativeTarget "Supr-demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51E99643203C690D00C0BE9E /* Debug */, + 51E99644203C690D00C0BE9E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 51E99645203C690D00C0BE9E /* Build configuration list for PBXNativeTarget "Supr-demoTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 51E99646203C690D00C0BE9E /* Debug */, + 51E99647203C690D00C0BE9E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 51E9961D203C690D00C0BE9E /* Project object */; +} diff --git a/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..e24c73c --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.xcworkspace/xcuserdata/arnaud.xcuserdatad/UserInterfaceState.xcuserstate b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.xcworkspace/xcuserdata/arnaud.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..ad18040 Binary files /dev/null and b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/project.xcworkspace/xcuserdata/arnaud.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/sample-iOS/Supr-demo/Supr-demo.xcodeproj/xcuserdata/arnaud.xcuserdatad/xcschemes/xcschememanagement.plist b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/xcuserdata/arnaud.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..81699b3 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo.xcodeproj/xcuserdata/arnaud.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + Supr-demo.xcscheme + + orderHint + 6 + + + + diff --git a/sample-iOS/Supr-demo/Supr-demo.xcworkspace/contents.xcworkspacedata b/sample-iOS/Supr-demo/Supr-demo.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..4ab5576 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/sample-iOS/Supr-demo/Supr-demo/AppDelegate.swift b/sample-iOS/Supr-demo/Supr-demo/AppDelegate.swift new file mode 100644 index 0000000..c3ac289 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/AppDelegate.swift @@ -0,0 +1,43 @@ +// +// AppDelegate.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // 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. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // 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. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // 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. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Assets.xcassets/AppIcon.appiconset/Contents.json b/sample-iOS/Supr-demo/Supr-demo/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..1d060ed --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,93 @@ +{ + "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" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/sample-iOS/Supr-demo/Supr-demo/Base.lproj/LaunchScreen.storyboard b/sample-iOS/Supr-demo/Supr-demo/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f83f6fd --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample-iOS/Supr-demo/Supr-demo/Base.lproj/Main.storyboard b/sample-iOS/Supr-demo/Supr-demo/Base.lproj/Main.storyboard new file mode 100644 index 0000000..03c13c2 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Base.lproj/Main.storyboard @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample-iOS/Supr-demo/Supr-demo/Info.plist b/sample-iOS/Supr-demo/Supr-demo/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Data/DataResult.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Data/DataResult.swift new file mode 100644 index 0000000..bfdb9c2 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Data/DataResult.swift @@ -0,0 +1,27 @@ +// +// DataResult.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/22/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +class DataResult { + let state: DataResultState + let data: T? + let error: Error? + + init(_ state: DataResultState, data: T? = nil, error: Error? = nil) { + self.state = state + self.data = data + self.error = error + } + + static func success(data: T) -> DataResult { + return DataResult(DataResultState.success, data: data) + } + + static func error(error: Error, data: T?) -> DataResult { + return DataResult(DataResultState.error, data: data, error: error) + } +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Data/DataResultState.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Data/DataResultState.swift new file mode 100644 index 0000000..32681d2 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Data/DataResultState.swift @@ -0,0 +1,12 @@ +// +// DataResultState.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/22/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +enum DataResultState { + case success + case error +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/ParamUseCase.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/ParamUseCase.swift new file mode 100644 index 0000000..23d744b --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/ParamUseCase.swift @@ -0,0 +1,20 @@ +// +// SimpleUseCase.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/22/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +enum Result { + case success(T) + case failure(Error) +} + +protocol ParamUseCase: UseCase { + associatedtype Param + associatedtype Response + typealias ParamUseCaseCallback = (Result) -> Void + var callback: ParamUseCaseCallback? { get set } + func doYourJob(param: Param) +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/SimpleUseCase.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/SimpleUseCase.swift new file mode 100644 index 0000000..5e05d02 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/SimpleUseCase.swift @@ -0,0 +1,11 @@ +// +// SimpleUseCase.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/22/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +protocol SimpleUseCase: UseCase { + func doYourJob() +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/UseCase.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/UseCase.swift new file mode 100644 index 0000000..13d5343 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Domain/UseCase.swift @@ -0,0 +1,13 @@ +// +// UseCase.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/22/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +import RxSwift + +protocol UseCase { + var subscriptions: CompositeDisposable { get set } +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Interaction.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Interaction.swift new file mode 100644 index 0000000..fa00c52 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Interaction.swift @@ -0,0 +1,15 @@ +// +// Interaction.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +class Interaction { + let type: InteractionType + + public init(_ type: InteractionType) { + self.type = type + } +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/InteractionType.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/InteractionType.swift new file mode 100644 index 0000000..07f2617 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/InteractionType.swift @@ -0,0 +1,12 @@ +// +// InteractionType.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +enum InteractionType { + case lifecycle + case action +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Presenter.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Presenter.swift new file mode 100644 index 0000000..80d0c35 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Presenter.swift @@ -0,0 +1,17 @@ +// +// Presenter.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +protocol Presenter { + associatedtype Domain + associatedtype Object + + //TODO ver viewModelSteam: Rx... + var viewModelSteam: Object? { get set } + + func present(_ state: ViewModelEntityState, data: Domain) +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Scene.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Scene.swift new file mode 100644 index 0000000..562b4f3 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/Scene.swift @@ -0,0 +1,26 @@ +// +// Scene.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/22/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +protocol Scene { + associatedtype InteractionType + typealias DisposableUseCase = UseCase & Disposable + var useCases: [DisposableUseCase] { get set } + func onInteraction(interaction: InteractionType) +} + +extension Scene { + func onCleared() { + self.useCases.forEach { (disposable) in + disposable.dispose() + } + } +} + +protocol Disposable { + func dispose() +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/ViewModelEntity.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/ViewModelEntity.swift new file mode 100644 index 0000000..ac3b7f0 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/ViewModelEntity.swift @@ -0,0 +1,19 @@ +// +// ViewModelEntity.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +class ViewModelEntity { + let state: ViewModelEntityState + let data: T + let error: E + + public init(_ state: ViewModelEntityState, data: T, error: E) { + self.state = state + self.data = data + self.error = error + } +} diff --git a/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/ViewModelEntityState.swift b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/ViewModelEntityState.swift new file mode 100644 index 0000000..d531efa --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/Supr/Presentation/ViewModelEntityState.swift @@ -0,0 +1,14 @@ +// +// ViewModelEntityState.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +enum ViewModelEntityState { + case loading + case empty + case success + case error +} diff --git a/sample-iOS/Supr-demo/Supr-demo/ViewController.swift b/sample-iOS/Supr-demo/Supr-demo/ViewController.swift new file mode 100644 index 0000000..63b731d --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demo/ViewController.swift @@ -0,0 +1,22 @@ +// +// ViewController.swift +// Supr-demo +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } +} diff --git a/sample-iOS/Supr-demo/Supr-demoTests/Info.plist b/sample-iOS/Supr-demo/Supr-demoTests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demoTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/sample-iOS/Supr-demo/Supr-demoTests/Supr_demoTests.swift b/sample-iOS/Supr-demo/Supr-demoTests/Supr_demoTests.swift new file mode 100644 index 0000000..a3743e4 --- /dev/null +++ b/sample-iOS/Supr-demo/Supr-demoTests/Supr_demoTests.swift @@ -0,0 +1,36 @@ +// +// Supr_demoTests.swift +// Supr-demoTests +// +// Created by Arnaud Camus on 2/20/18. +// Copyright © 2018 Impraise. All rights reserved. +// + +import XCTest +@testable import Supr_demo + +class Supr_demoTests: XCTestCase { + + override func setUp() { + super.setUp() + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +}