├── .circleci └── config.yml ├── .github ├── ISSUE_TEMPLATE └── PULL_REQUEST_TEMPLATE ├── .gitignore ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── SwiftLuhn.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── SwiftLuhn.xcscheme │ └── Target Support Files │ │ ├── Pods-SwiftLuhn_Example │ │ ├── Info.plist │ │ ├── Pods-SwiftLuhn_Example-acknowledgements.markdown │ │ ├── Pods-SwiftLuhn_Example-acknowledgements.plist │ │ ├── Pods-SwiftLuhn_Example-dummy.m │ │ ├── Pods-SwiftLuhn_Example-frameworks.sh │ │ ├── Pods-SwiftLuhn_Example-resources.sh │ │ ├── Pods-SwiftLuhn_Example-umbrella.h │ │ ├── Pods-SwiftLuhn_Example.debug.xcconfig │ │ ├── Pods-SwiftLuhn_Example.modulemap │ │ └── Pods-SwiftLuhn_Example.release.xcconfig │ │ ├── Pods-SwiftLuhn_Tests │ │ ├── Info.plist │ │ ├── Pods-SwiftLuhn_Tests-acknowledgements.markdown │ │ ├── Pods-SwiftLuhn_Tests-acknowledgements.plist │ │ ├── Pods-SwiftLuhn_Tests-dummy.m │ │ ├── Pods-SwiftLuhn_Tests-frameworks.sh │ │ ├── Pods-SwiftLuhn_Tests-resources.sh │ │ ├── Pods-SwiftLuhn_Tests-umbrella.h │ │ ├── Pods-SwiftLuhn_Tests.debug.xcconfig │ │ ├── Pods-SwiftLuhn_Tests.modulemap │ │ └── Pods-SwiftLuhn_Tests.release.xcconfig │ │ └── SwiftLuhn │ │ ├── Info.plist │ │ ├── SwiftLuhn-dummy.m │ │ ├── SwiftLuhn-prefix.pch │ │ ├── SwiftLuhn-umbrella.h │ │ ├── SwiftLuhn.modulemap │ │ └── SwiftLuhn.xcconfig ├── SwiftLuhn.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── SwiftLuhn-Example.xcscheme ├── SwiftLuhn.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── SwiftLuhn │ ├── AppDelegate.swift │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── Main.storyboard │ └── ViewController.swift └── Tests │ ├── CardTypeTest.swift │ ├── Info.plist │ ├── TestCreditCardNumbers.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── SwiftLuhn.podspec └── SwiftLuhn ├── Assets └── .gitkeep └── Classes ├── .gitkeep ├── String+SwiftLuhn.swift └── SwiftLuhn.swift /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | macos: 5 | xcode: 9.4.1 6 | steps: 7 | - checkout 8 | - run: 9 | name: Run tests 10 | command: xcodebuild test -destination "platform=iOS Simulator,name=iPhone 7" -workspace Example/SwiftLuhn.xcworkspace -scheme SwiftLuhn-Example | xcpretty 11 | - run: 12 | name: Verify valid podspec 13 | command: pod lib lint --swift-version=4.0 14 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE: -------------------------------------------------------------------------------- 1 | ### What did you do? 2 | 3 | Please replace this with what you did. 4 | 5 | ### What did you expect to happen? 6 | 7 | Please replace this with what you expected to happen. 8 | 9 | ### What actually happened instead? 10 | 11 | Please replace this with what happened instead. 12 | 13 | ### Environment 14 | 15 | List the software versions you're using: 16 | 17 | - Xcode Version: *?.? (????)* (Open Xcode; In menubar: Xcode > About Xcode) 18 | - Swift Version: *?.?* (Open Xcode Preferences; Components > Toolchains. If none, use `Xcode Default`.) 19 | 20 | Please also mention which package manager you used and its version. Delete the 21 | other package managers in this list: 22 | 23 | - Cocoapods: *?.?.?* (Use `pod --version` in Terminal) 24 | - Carthage: *?.?* (Use `carthage version` in Terminal) 25 | - Swift Package Manager *?.?.? (swiftpm-???)* (Use `swift build --version` in Terminal) 26 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE: -------------------------------------------------------------------------------- 1 | The PR should summarize what was changed and why. Here are some questions to 2 | help you if you're not sure: 3 | 4 | - What behavior was changed? 5 | - What code was refactored / updated to support this change? 6 | - What issues are related to this PR? Or why was this change introduced? 7 | 8 | Checklist - While not every PR needs it, new features should consider this list: 9 | 10 | - [ ] Does this have tests? 11 | - [ ] Does this have documentation? 12 | - [ ] Does this break the public API (Requires major version bump)? 13 | - [ ] Is this a new feature (Requires minor version bump)? -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | platform :ios, '8.3' 4 | target 'SwiftLuhn_Example' do 5 | pod 'SwiftLuhn', :path => '../' 6 | 7 | target 'SwiftLuhn_Tests' do 8 | inherit! :search_paths 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SwiftLuhn (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - SwiftLuhn (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SwiftLuhn: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SwiftLuhn: 4281267581a5cdab5333ee67128c27fe41c901f9 13 | 14 | PODFILE CHECKSUM: 4252bf77c5c9b4aaeb2bc96a075c9e702b75d0d9 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SwiftLuhn.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SwiftLuhn", 3 | "version": "1.0.0", 4 | "summary": "SwiftLuhn is a port of the Luhn algorithm, used for validating debit/credit card details.", 5 | "description": "This is a port of the Luhn Algorithm, generally used for validating debit/credit card details, to Swift.\n\nObjective-C port can be found at [https://github.com/MaxKramer/ObjectiveLuhn](https://github.com/MaxKramer/ObjectiveLuhn).", 6 | "homepage": "https://github.com/MaxKramer/SwiftLuhn", 7 | "license": "MIT", 8 | "authors": { 9 | "Max Kramer": "max@maxkramer.co" 10 | }, 11 | "source": { 12 | "git": "https://github.com/maxkramer/SwiftLuhn.git", 13 | "tag": "1.0.0" 14 | }, 15 | "social_media_url": "https://twitter.com/uint_max", 16 | "platforms": { 17 | "ios": "8.0" 18 | }, 19 | "requires_arc": true, 20 | "source_files": "SwiftLuhn/Classes/**/*", 21 | "swift_version": "4.0" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SwiftLuhn (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - SwiftLuhn (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SwiftLuhn: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SwiftLuhn: 4281267581a5cdab5333ee67128c27fe41c901f9 13 | 14 | PODFILE CHECKSUM: 4252bf77c5c9b4aaeb2bc96a075c9e702b75d0d9 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 22E2873F155F72C3E225163F2C45265B /* SwiftLuhn-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B03162408AB8821109300018C35FF43D /* SwiftLuhn-dummy.m */; }; 11 | 26B538F7FAD1CDA0B44A5F99413762A7 /* Pods-SwiftLuhn_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6AB4E6BA96FBD1F71871478E9E1B5BD7 /* Pods-SwiftLuhn_Tests-dummy.m */; }; 12 | 3F29A7F8F78CEA1E16DADA7D5B3CA5A7 /* Pods-SwiftLuhn_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C1C9B56A27AD5BDFA1DE631EC24F22A /* Pods-SwiftLuhn_Example-dummy.m */; }; 13 | 6F10EFF427816EC0FD6300A415E74E7A /* Pods-SwiftLuhn_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F535B5EA1E9D3B74B75CD1CDDB4BFB0 /* Pods-SwiftLuhn_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 7293541665D6DAB456A58BA4953A6DAF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 15 | 8192BDE3213BB9E4C4CC7779844A069F /* SwiftLuhn.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56CCD22648AEB2C6BC9B7D41645F6B3B /* SwiftLuhn.swift */; }; 16 | 9C7AB5B35BC432FFE3DA089073AFE63F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 17 | CB42F3360177E3FCD5AB22C2F44FBCF6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 18 | E0B3EB5262C6F8F1AB75842A0793BE59 /* SwiftLuhn-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E05FA245C2878B0901EC8DE6AEDF7A7C /* SwiftLuhn-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | E36C475D9CFAAD3BB0B2763B895CB0A0 /* Pods-SwiftLuhn_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B66C4FB20CAD2F6D629FD2D09AF15869 /* Pods-SwiftLuhn_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | FA5A9A395A92ACAC18F13C768FFB032C /* String+SwiftLuhn.swift in Sources */ = {isa = PBXBuildFile; fileRef = B8D1A9D837D5095B0241143B073B04E0 /* String+SwiftLuhn.swift */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 16BBDB0CA905F203B47B9A080C585EE1 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = FD216F00596C45B2B49C1B59E717145C; 29 | remoteInfo = SwiftLuhn; 30 | }; 31 | 941FBB706B9A134259B3E4CFD589BCF1 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 675C6CC36AC897463CF2D78599612217; 36 | remoteInfo = "Pods-SwiftLuhn_Example"; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 0C141DEC1591E0D0962C82E48D920126 /* Pods-SwiftLuhn_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwiftLuhn_Tests.debug.xcconfig"; sourceTree = ""; }; 42 | 198DE2F513FBA55FA5C23DCECA7F2EBA /* Pods_SwiftLuhn_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftLuhn_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 204CD85D754C6093F47BFC8C97D321C6 /* Pods-SwiftLuhn_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwiftLuhn_Example-resources.sh"; sourceTree = ""; }; 44 | 26612FDA601602D5B3AA7BC3614A57BA /* SwiftLuhn-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SwiftLuhn-prefix.pch"; sourceTree = ""; }; 45 | 29A428A69D0F7195673C6A9147249D12 /* Pods_SwiftLuhn_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftLuhn_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 4128DC70CEE877C2C39986682964D300 /* Pods-SwiftLuhn_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SwiftLuhn_Tests-acknowledgements.plist"; sourceTree = ""; }; 47 | 42AA43B00F663E4D705F307491788668 /* Pods-SwiftLuhn_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-SwiftLuhn_Example.modulemap"; sourceTree = ""; }; 48 | 463BFD3A207FE3D1582BB8B374D2C796 /* Pods-SwiftLuhn_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SwiftLuhn_Tests-acknowledgements.markdown"; sourceTree = ""; }; 49 | 4F535B5EA1E9D3B74B75CD1CDDB4BFB0 /* Pods-SwiftLuhn_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwiftLuhn_Example-umbrella.h"; sourceTree = ""; }; 50 | 559C9FC633499ABA1FEE12A5BEAA0C51 /* SwiftLuhn.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = SwiftLuhn.modulemap; sourceTree = ""; }; 51 | 56CCD22648AEB2C6BC9B7D41645F6B3B /* SwiftLuhn.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SwiftLuhn.swift; path = SwiftLuhn/Classes/SwiftLuhn.swift; sourceTree = ""; }; 52 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 53 | 5C1C9B56A27AD5BDFA1DE631EC24F22A /* Pods-SwiftLuhn_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwiftLuhn_Example-dummy.m"; sourceTree = ""; }; 54 | 6097B071594CE185D1F4819DFC405770 /* Pods-SwiftLuhn_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SwiftLuhn_Example-acknowledgements.plist"; sourceTree = ""; }; 55 | 6AB4E6BA96FBD1F71871478E9E1B5BD7 /* Pods-SwiftLuhn_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SwiftLuhn_Tests-dummy.m"; sourceTree = ""; }; 56 | 7E628199A0333A7D82C66DB2C418562C /* Pods-SwiftLuhn_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwiftLuhn_Example.debug.xcconfig"; sourceTree = ""; }; 57 | 830A303EAF03D8D5DE5BEAE152380090 /* Pods-SwiftLuhn_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwiftLuhn_Example-frameworks.sh"; sourceTree = ""; }; 58 | 8BD4CE381879A6580776F04D9FDF2382 /* Pods-SwiftLuhn_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwiftLuhn_Tests-resources.sh"; sourceTree = ""; }; 59 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 60 | AA96A365515C1590A153121259E130D7 /* Pods-SwiftLuhn_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwiftLuhn_Example.release.xcconfig"; sourceTree = ""; }; 61 | AA97903A1CA4320966B789B443CB842C /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | AB82082A144AAE54D60BC6AA53075706 /* SwiftLuhn.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SwiftLuhn.xcconfig; sourceTree = ""; }; 63 | B03162408AB8821109300018C35FF43D /* SwiftLuhn-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SwiftLuhn-dummy.m"; sourceTree = ""; }; 64 | B0F8D4F2CE89DA3BCCB44E2F05C97B87 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 65 | B5513591820750C416B674EB68212FA2 /* Pods-SwiftLuhn_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SwiftLuhn_Tests-frameworks.sh"; sourceTree = ""; }; 66 | B62707046109C81867034985742DAAA0 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 67 | B66C4FB20CAD2F6D629FD2D09AF15869 /* Pods-SwiftLuhn_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SwiftLuhn_Tests-umbrella.h"; sourceTree = ""; }; 68 | B6EB4086CCE0F15D12E79D29E3334FB2 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | B8D1A9D837D5095B0241143B073B04E0 /* String+SwiftLuhn.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = "String+SwiftLuhn.swift"; path = "SwiftLuhn/Classes/String+SwiftLuhn.swift"; sourceTree = ""; }; 70 | C549D11540023C192B5F5C264CDB7E12 /* Pods-SwiftLuhn_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-SwiftLuhn_Tests.modulemap"; sourceTree = ""; }; 71 | CD3923616C90E58403C08FEA2F9AD881 /* Pods-SwiftLuhn_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SwiftLuhn_Example-acknowledgements.markdown"; sourceTree = ""; }; 72 | D65B25B26C32EEAEEA6F1E578AC53F28 /* SwiftLuhn.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftLuhn.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | DE25910B1B3310003223AAA5B9476979 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 74 | E05FA245C2878B0901EC8DE6AEDF7A7C /* SwiftLuhn-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SwiftLuhn-umbrella.h"; sourceTree = ""; }; 75 | FB0A7A5CA98B9623E7C900EEE68FC1D1 /* SwiftLuhn.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; path = SwiftLuhn.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 76 | FD1F678AA4B3015CF8C56068DD564BB4 /* Pods-SwiftLuhn_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SwiftLuhn_Tests.release.xcconfig"; sourceTree = ""; }; 77 | /* End PBXFileReference section */ 78 | 79 | /* Begin PBXFrameworksBuildPhase section */ 80 | 82E2E3FAEB83C9C08A2A6CF80CC40D9B /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | 7293541665D6DAB456A58BA4953A6DAF /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 9BE23832F29208DD460EAD2D7843A36D /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | 9C7AB5B35BC432FFE3DA089073AFE63F /* Foundation.framework in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | C160D65A3855DCCE86373D886FA08628 /* Frameworks */ = { 97 | isa = PBXFrameworksBuildPhase; 98 | buildActionMask = 2147483647; 99 | files = ( 100 | CB42F3360177E3FCD5AB22C2F44FBCF6 /* Foundation.framework in Frameworks */, 101 | ); 102 | runOnlyForDeploymentPostprocessing = 0; 103 | }; 104 | /* End PBXFrameworksBuildPhase section */ 105 | 106 | /* Begin PBXGroup section */ 107 | 30C0B05E890BFDE65848FC4C9F7C9646 /* Products */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 29A428A69D0F7195673C6A9147249D12 /* Pods_SwiftLuhn_Example.framework */, 111 | 198DE2F513FBA55FA5C23DCECA7F2EBA /* Pods_SwiftLuhn_Tests.framework */, 112 | D65B25B26C32EEAEEA6F1E578AC53F28 /* SwiftLuhn.framework */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 51E5488EABCFFF226E6CDC1182D96F49 /* Pods-SwiftLuhn_Tests */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | DE25910B1B3310003223AAA5B9476979 /* Info.plist */, 121 | C549D11540023C192B5F5C264CDB7E12 /* Pods-SwiftLuhn_Tests.modulemap */, 122 | 463BFD3A207FE3D1582BB8B374D2C796 /* Pods-SwiftLuhn_Tests-acknowledgements.markdown */, 123 | 4128DC70CEE877C2C39986682964D300 /* Pods-SwiftLuhn_Tests-acknowledgements.plist */, 124 | 6AB4E6BA96FBD1F71871478E9E1B5BD7 /* Pods-SwiftLuhn_Tests-dummy.m */, 125 | B5513591820750C416B674EB68212FA2 /* Pods-SwiftLuhn_Tests-frameworks.sh */, 126 | 8BD4CE381879A6580776F04D9FDF2382 /* Pods-SwiftLuhn_Tests-resources.sh */, 127 | B66C4FB20CAD2F6D629FD2D09AF15869 /* Pods-SwiftLuhn_Tests-umbrella.h */, 128 | 0C141DEC1591E0D0962C82E48D920126 /* Pods-SwiftLuhn_Tests.debug.xcconfig */, 129 | FD1F678AA4B3015CF8C56068DD564BB4 /* Pods-SwiftLuhn_Tests.release.xcconfig */, 130 | ); 131 | name = "Pods-SwiftLuhn_Tests"; 132 | path = "Target Support Files/Pods-SwiftLuhn_Tests"; 133 | sourceTree = ""; 134 | }; 135 | 551D1FE90400AA5D661ED092A4281D92 /* Pod */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | B0F8D4F2CE89DA3BCCB44E2F05C97B87 /* LICENSE */, 139 | B62707046109C81867034985742DAAA0 /* README.md */, 140 | FB0A7A5CA98B9623E7C900EEE68FC1D1 /* SwiftLuhn.podspec */, 141 | ); 142 | name = Pod; 143 | sourceTree = ""; 144 | }; 145 | 5E0D919E635D23B70123790B8308F8EF /* iOS */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */, 149 | ); 150 | name = iOS; 151 | sourceTree = ""; 152 | }; 153 | 6B2D5A5A8F6997890D9E36E282067E28 /* Pods-SwiftLuhn_Example */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | AA97903A1CA4320966B789B443CB842C /* Info.plist */, 157 | 42AA43B00F663E4D705F307491788668 /* Pods-SwiftLuhn_Example.modulemap */, 158 | CD3923616C90E58403C08FEA2F9AD881 /* Pods-SwiftLuhn_Example-acknowledgements.markdown */, 159 | 6097B071594CE185D1F4819DFC405770 /* Pods-SwiftLuhn_Example-acknowledgements.plist */, 160 | 5C1C9B56A27AD5BDFA1DE631EC24F22A /* Pods-SwiftLuhn_Example-dummy.m */, 161 | 830A303EAF03D8D5DE5BEAE152380090 /* Pods-SwiftLuhn_Example-frameworks.sh */, 162 | 204CD85D754C6093F47BFC8C97D321C6 /* Pods-SwiftLuhn_Example-resources.sh */, 163 | 4F535B5EA1E9D3B74B75CD1CDDB4BFB0 /* Pods-SwiftLuhn_Example-umbrella.h */, 164 | 7E628199A0333A7D82C66DB2C418562C /* Pods-SwiftLuhn_Example.debug.xcconfig */, 165 | AA96A365515C1590A153121259E130D7 /* Pods-SwiftLuhn_Example.release.xcconfig */, 166 | ); 167 | name = "Pods-SwiftLuhn_Example"; 168 | path = "Target Support Files/Pods-SwiftLuhn_Example"; 169 | sourceTree = ""; 170 | }; 171 | 7DB346D0F39D3F0E887471402A8071AB = { 172 | isa = PBXGroup; 173 | children = ( 174 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 175 | F4785627AF54F8A36A778BCBB0F03575 /* Development Pods */, 176 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 177 | 30C0B05E890BFDE65848FC4C9F7C9646 /* Products */, 178 | 9E2CA16678D43AE17B4C23C85564D53E /* Targets Support Files */, 179 | ); 180 | sourceTree = ""; 181 | }; 182 | 9E2CA16678D43AE17B4C23C85564D53E /* Targets Support Files */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 6B2D5A5A8F6997890D9E36E282067E28 /* Pods-SwiftLuhn_Example */, 186 | 51E5488EABCFFF226E6CDC1182D96F49 /* Pods-SwiftLuhn_Tests */, 187 | ); 188 | name = "Targets Support Files"; 189 | sourceTree = ""; 190 | }; 191 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | 5E0D919E635D23B70123790B8308F8EF /* iOS */, 195 | ); 196 | name = Frameworks; 197 | sourceTree = ""; 198 | }; 199 | C1C52981D0B0D2940596DEC3818D1B91 /* Support Files */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | B6EB4086CCE0F15D12E79D29E3334FB2 /* Info.plist */, 203 | 559C9FC633499ABA1FEE12A5BEAA0C51 /* SwiftLuhn.modulemap */, 204 | AB82082A144AAE54D60BC6AA53075706 /* SwiftLuhn.xcconfig */, 205 | B03162408AB8821109300018C35FF43D /* SwiftLuhn-dummy.m */, 206 | 26612FDA601602D5B3AA7BC3614A57BA /* SwiftLuhn-prefix.pch */, 207 | E05FA245C2878B0901EC8DE6AEDF7A7C /* SwiftLuhn-umbrella.h */, 208 | ); 209 | name = "Support Files"; 210 | path = "Example/Pods/Target Support Files/SwiftLuhn"; 211 | sourceTree = ""; 212 | }; 213 | F14627541F6D19677D9FEC203A0D3849 /* SwiftLuhn */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | B8D1A9D837D5095B0241143B073B04E0 /* String+SwiftLuhn.swift */, 217 | 56CCD22648AEB2C6BC9B7D41645F6B3B /* SwiftLuhn.swift */, 218 | 551D1FE90400AA5D661ED092A4281D92 /* Pod */, 219 | C1C52981D0B0D2940596DEC3818D1B91 /* Support Files */, 220 | ); 221 | name = SwiftLuhn; 222 | path = ../..; 223 | sourceTree = ""; 224 | }; 225 | F4785627AF54F8A36A778BCBB0F03575 /* Development Pods */ = { 226 | isa = PBXGroup; 227 | children = ( 228 | F14627541F6D19677D9FEC203A0D3849 /* SwiftLuhn */, 229 | ); 230 | name = "Development Pods"; 231 | sourceTree = ""; 232 | }; 233 | /* End PBXGroup section */ 234 | 235 | /* Begin PBXHeadersBuildPhase section */ 236 | BDDB063EE6422164E4DDE73B53B7B530 /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | E0B3EB5262C6F8F1AB75842A0793BE59 /* SwiftLuhn-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | C05450B2F5638647510E134634D7CCCA /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | E36C475D9CFAAD3BB0B2763B895CB0A0 /* Pods-SwiftLuhn_Tests-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | FCAC26DCA0AEF4C7E22BBBFB664801F4 /* Headers */ = { 253 | isa = PBXHeadersBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | 6F10EFF427816EC0FD6300A415E74E7A /* Pods-SwiftLuhn_Example-umbrella.h in Headers */, 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | /* End PBXHeadersBuildPhase section */ 261 | 262 | /* Begin PBXNativeTarget section */ 263 | 675C6CC36AC897463CF2D78599612217 /* Pods-SwiftLuhn_Example */ = { 264 | isa = PBXNativeTarget; 265 | buildConfigurationList = 853C23891713E10EF79A8C5078C9DEC7 /* Build configuration list for PBXNativeTarget "Pods-SwiftLuhn_Example" */; 266 | buildPhases = ( 267 | BD81C6C310B3898E5E48835DEEBCAA96 /* Sources */, 268 | 82E2E3FAEB83C9C08A2A6CF80CC40D9B /* Frameworks */, 269 | FCAC26DCA0AEF4C7E22BBBFB664801F4 /* Headers */, 270 | ); 271 | buildRules = ( 272 | ); 273 | dependencies = ( 274 | 4400C4345A90EB963CCE1968330A5BB0 /* PBXTargetDependency */, 275 | ); 276 | name = "Pods-SwiftLuhn_Example"; 277 | productName = "Pods-SwiftLuhn_Example"; 278 | productReference = 29A428A69D0F7195673C6A9147249D12 /* Pods_SwiftLuhn_Example.framework */; 279 | productType = "com.apple.product-type.framework"; 280 | }; 281 | 9994EBD246A7D35863682997C6151013 /* Pods-SwiftLuhn_Tests */ = { 282 | isa = PBXNativeTarget; 283 | buildConfigurationList = B9B086E13683BE8F3819A25555F3873F /* Build configuration list for PBXNativeTarget "Pods-SwiftLuhn_Tests" */; 284 | buildPhases = ( 285 | 81C789184C1DC12348E9907B61E5A4BB /* Sources */, 286 | 9BE23832F29208DD460EAD2D7843A36D /* Frameworks */, 287 | C05450B2F5638647510E134634D7CCCA /* Headers */, 288 | ); 289 | buildRules = ( 290 | ); 291 | dependencies = ( 292 | D1532120B0106FCA3651187B95CDD848 /* PBXTargetDependency */, 293 | ); 294 | name = "Pods-SwiftLuhn_Tests"; 295 | productName = "Pods-SwiftLuhn_Tests"; 296 | productReference = 198DE2F513FBA55FA5C23DCECA7F2EBA /* Pods_SwiftLuhn_Tests.framework */; 297 | productType = "com.apple.product-type.framework"; 298 | }; 299 | FD216F00596C45B2B49C1B59E717145C /* SwiftLuhn */ = { 300 | isa = PBXNativeTarget; 301 | buildConfigurationList = AAC1F6863E4C22C6112EF7BC2903DBFC /* Build configuration list for PBXNativeTarget "SwiftLuhn" */; 302 | buildPhases = ( 303 | 276DD12427C2688F1E241C35CEE185DD /* Sources */, 304 | C160D65A3855DCCE86373D886FA08628 /* Frameworks */, 305 | BDDB063EE6422164E4DDE73B53B7B530 /* Headers */, 306 | ); 307 | buildRules = ( 308 | ); 309 | dependencies = ( 310 | ); 311 | name = SwiftLuhn; 312 | productName = SwiftLuhn; 313 | productReference = D65B25B26C32EEAEEA6F1E578AC53F28 /* SwiftLuhn.framework */; 314 | productType = "com.apple.product-type.framework"; 315 | }; 316 | /* End PBXNativeTarget section */ 317 | 318 | /* Begin PBXProject section */ 319 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 320 | isa = PBXProject; 321 | attributes = { 322 | LastSwiftUpdateCheck = 0930; 323 | LastUpgradeCheck = 0940; 324 | TargetAttributes = { 325 | FD216F00596C45B2B49C1B59E717145C = { 326 | LastSwiftMigration = 1010; 327 | }; 328 | }; 329 | }; 330 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 331 | compatibilityVersion = "Xcode 3.2"; 332 | developmentRegion = English; 333 | hasScannedForEncodings = 0; 334 | knownRegions = ( 335 | en, 336 | ); 337 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 338 | productRefGroup = 30C0B05E890BFDE65848FC4C9F7C9646 /* Products */; 339 | projectDirPath = ""; 340 | projectRoot = ""; 341 | targets = ( 342 | 675C6CC36AC897463CF2D78599612217 /* Pods-SwiftLuhn_Example */, 343 | 9994EBD246A7D35863682997C6151013 /* Pods-SwiftLuhn_Tests */, 344 | FD216F00596C45B2B49C1B59E717145C /* SwiftLuhn */, 345 | ); 346 | }; 347 | /* End PBXProject section */ 348 | 349 | /* Begin PBXSourcesBuildPhase section */ 350 | 276DD12427C2688F1E241C35CEE185DD /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | FA5A9A395A92ACAC18F13C768FFB032C /* String+SwiftLuhn.swift in Sources */, 355 | 22E2873F155F72C3E225163F2C45265B /* SwiftLuhn-dummy.m in Sources */, 356 | 8192BDE3213BB9E4C4CC7779844A069F /* SwiftLuhn.swift in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | 81C789184C1DC12348E9907B61E5A4BB /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 26B538F7FAD1CDA0B44A5F99413762A7 /* Pods-SwiftLuhn_Tests-dummy.m in Sources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | BD81C6C310B3898E5E48835DEEBCAA96 /* Sources */ = { 369 | isa = PBXSourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | 3F29A7F8F78CEA1E16DADA7D5B3CA5A7 /* Pods-SwiftLuhn_Example-dummy.m in Sources */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | /* End PBXSourcesBuildPhase section */ 377 | 378 | /* Begin PBXTargetDependency section */ 379 | 4400C4345A90EB963CCE1968330A5BB0 /* PBXTargetDependency */ = { 380 | isa = PBXTargetDependency; 381 | name = SwiftLuhn; 382 | target = FD216F00596C45B2B49C1B59E717145C /* SwiftLuhn */; 383 | targetProxy = 16BBDB0CA905F203B47B9A080C585EE1 /* PBXContainerItemProxy */; 384 | }; 385 | D1532120B0106FCA3651187B95CDD848 /* PBXTargetDependency */ = { 386 | isa = PBXTargetDependency; 387 | name = "Pods-SwiftLuhn_Example"; 388 | target = 675C6CC36AC897463CF2D78599612217 /* Pods-SwiftLuhn_Example */; 389 | targetProxy = 941FBB706B9A134259B3E4CFD589BCF1 /* PBXContainerItemProxy */; 390 | }; 391 | /* End PBXTargetDependency section */ 392 | 393 | /* Begin XCBuildConfiguration section */ 394 | 749A3DA13FAAB86966885BC47FD3F100 /* Debug */ = { 395 | isa = XCBuildConfiguration; 396 | baseConfigurationReference = 0C141DEC1591E0D0962C82E48D920126 /* Pods-SwiftLuhn_Tests.debug.xcconfig */; 397 | buildSettings = { 398 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 399 | CODE_SIGN_IDENTITY = ""; 400 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 401 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 402 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 403 | CURRENT_PROJECT_VERSION = 1; 404 | DEFINES_MODULE = YES; 405 | DYLIB_COMPATIBILITY_VERSION = 1; 406 | DYLIB_CURRENT_VERSION = 1; 407 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 408 | INFOPLIST_FILE = "Target Support Files/Pods-SwiftLuhn_Tests/Info.plist"; 409 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 410 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 411 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 412 | MACH_O_TYPE = staticlib; 413 | MODULEMAP_FILE = "Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.modulemap"; 414 | OTHER_LDFLAGS = ""; 415 | OTHER_LIBTOOLFLAGS = ""; 416 | PODS_ROOT = "$(SRCROOT)"; 417 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 418 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 419 | SDKROOT = iphoneos; 420 | SKIP_INSTALL = YES; 421 | TARGETED_DEVICE_FAMILY = "1,2"; 422 | VERSIONING_SYSTEM = "apple-generic"; 423 | VERSION_INFO_PREFIX = ""; 424 | }; 425 | name = Debug; 426 | }; 427 | 82AA6015BFD2E4BE82664612D02F8B75 /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = FD1F678AA4B3015CF8C56068DD564BB4 /* Pods-SwiftLuhn_Tests.release.xcconfig */; 430 | buildSettings = { 431 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 432 | CODE_SIGN_IDENTITY = ""; 433 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 435 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 436 | CURRENT_PROJECT_VERSION = 1; 437 | DEFINES_MODULE = YES; 438 | DYLIB_COMPATIBILITY_VERSION = 1; 439 | DYLIB_CURRENT_VERSION = 1; 440 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 441 | INFOPLIST_FILE = "Target Support Files/Pods-SwiftLuhn_Tests/Info.plist"; 442 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 443 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 444 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 445 | MACH_O_TYPE = staticlib; 446 | MODULEMAP_FILE = "Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.modulemap"; 447 | OTHER_LDFLAGS = ""; 448 | OTHER_LIBTOOLFLAGS = ""; 449 | PODS_ROOT = "$(SRCROOT)"; 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 451 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 452 | SDKROOT = iphoneos; 453 | SKIP_INSTALL = YES; 454 | TARGETED_DEVICE_FAMILY = "1,2"; 455 | VALIDATE_PRODUCT = YES; 456 | VERSIONING_SYSTEM = "apple-generic"; 457 | VERSION_INFO_PREFIX = ""; 458 | }; 459 | name = Release; 460 | }; 461 | B9671808EC31CB0E79AEBDACC79A6D97 /* Debug */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 7E628199A0333A7D82C66DB2C418562C /* Pods-SwiftLuhn_Example.debug.xcconfig */; 464 | buildSettings = { 465 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 466 | CODE_SIGN_IDENTITY = ""; 467 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 468 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 469 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 470 | CURRENT_PROJECT_VERSION = 1; 471 | DEFINES_MODULE = YES; 472 | DYLIB_COMPATIBILITY_VERSION = 1; 473 | DYLIB_CURRENT_VERSION = 1; 474 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 475 | INFOPLIST_FILE = "Target Support Files/Pods-SwiftLuhn_Example/Info.plist"; 476 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 477 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 478 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 479 | MACH_O_TYPE = staticlib; 480 | MODULEMAP_FILE = "Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.modulemap"; 481 | OTHER_LDFLAGS = ""; 482 | OTHER_LIBTOOLFLAGS = ""; 483 | PODS_ROOT = "$(SRCROOT)"; 484 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 485 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 486 | SDKROOT = iphoneos; 487 | SKIP_INSTALL = YES; 488 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 490 | TARGETED_DEVICE_FAMILY = "1,2"; 491 | VERSIONING_SYSTEM = "apple-generic"; 492 | VERSION_INFO_PREFIX = ""; 493 | }; 494 | name = Debug; 495 | }; 496 | C7BE62186E17127FF3B5B27A193214BD /* Debug */ = { 497 | isa = XCBuildConfiguration; 498 | buildSettings = { 499 | ALWAYS_SEARCH_USER_PATHS = NO; 500 | CLANG_ANALYZER_NONNULL = YES; 501 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 503 | CLANG_CXX_LIBRARY = "libc++"; 504 | CLANG_ENABLE_MODULES = YES; 505 | CLANG_ENABLE_OBJC_ARC = YES; 506 | CLANG_ENABLE_OBJC_WEAK = YES; 507 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 508 | CLANG_WARN_BOOL_CONVERSION = YES; 509 | CLANG_WARN_COMMA = YES; 510 | CLANG_WARN_CONSTANT_CONVERSION = YES; 511 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 512 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 513 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 514 | CLANG_WARN_EMPTY_BODY = YES; 515 | CLANG_WARN_ENUM_CONVERSION = YES; 516 | CLANG_WARN_INFINITE_RECURSION = YES; 517 | CLANG_WARN_INT_CONVERSION = YES; 518 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 519 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 520 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 521 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 522 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 523 | CLANG_WARN_STRICT_PROTOTYPES = YES; 524 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 525 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 526 | CLANG_WARN_UNREACHABLE_CODE = YES; 527 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 528 | CODE_SIGNING_ALLOWED = NO; 529 | CODE_SIGNING_REQUIRED = NO; 530 | COPY_PHASE_STRIP = NO; 531 | DEBUG_INFORMATION_FORMAT = dwarf; 532 | ENABLE_STRICT_OBJC_MSGSEND = YES; 533 | ENABLE_TESTABILITY = YES; 534 | GCC_C_LANGUAGE_STANDARD = gnu11; 535 | GCC_DYNAMIC_NO_PIC = NO; 536 | GCC_NO_COMMON_BLOCKS = YES; 537 | GCC_OPTIMIZATION_LEVEL = 0; 538 | GCC_PREPROCESSOR_DEFINITIONS = ( 539 | "POD_CONFIGURATION_DEBUG=1", 540 | "DEBUG=1", 541 | "$(inherited)", 542 | ); 543 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 544 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 545 | GCC_WARN_UNDECLARED_SELECTOR = YES; 546 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 547 | GCC_WARN_UNUSED_FUNCTION = YES; 548 | GCC_WARN_UNUSED_VARIABLE = YES; 549 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 550 | MTL_ENABLE_DEBUG_INFO = YES; 551 | ONLY_ACTIVE_ARCH = YES; 552 | PRODUCT_NAME = "$(TARGET_NAME)"; 553 | STRIP_INSTALLED_PRODUCT = NO; 554 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 555 | SYMROOT = "${SRCROOT}/../build"; 556 | }; 557 | name = Debug; 558 | }; 559 | D077E5AF30E3A09910AC48CA760A1280 /* Release */ = { 560 | isa = XCBuildConfiguration; 561 | buildSettings = { 562 | ALWAYS_SEARCH_USER_PATHS = NO; 563 | CLANG_ANALYZER_NONNULL = YES; 564 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 565 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 566 | CLANG_CXX_LIBRARY = "libc++"; 567 | CLANG_ENABLE_MODULES = YES; 568 | CLANG_ENABLE_OBJC_ARC = YES; 569 | CLANG_ENABLE_OBJC_WEAK = YES; 570 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 571 | CLANG_WARN_BOOL_CONVERSION = YES; 572 | CLANG_WARN_COMMA = YES; 573 | CLANG_WARN_CONSTANT_CONVERSION = YES; 574 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 575 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 576 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 577 | CLANG_WARN_EMPTY_BODY = YES; 578 | CLANG_WARN_ENUM_CONVERSION = YES; 579 | CLANG_WARN_INFINITE_RECURSION = YES; 580 | CLANG_WARN_INT_CONVERSION = YES; 581 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 582 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 583 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 584 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 585 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 586 | CLANG_WARN_STRICT_PROTOTYPES = YES; 587 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 588 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 589 | CLANG_WARN_UNREACHABLE_CODE = YES; 590 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 591 | CODE_SIGNING_ALLOWED = NO; 592 | CODE_SIGNING_REQUIRED = NO; 593 | COPY_PHASE_STRIP = NO; 594 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 595 | ENABLE_NS_ASSERTIONS = NO; 596 | ENABLE_STRICT_OBJC_MSGSEND = YES; 597 | GCC_C_LANGUAGE_STANDARD = gnu11; 598 | GCC_NO_COMMON_BLOCKS = YES; 599 | GCC_PREPROCESSOR_DEFINITIONS = ( 600 | "POD_CONFIGURATION_RELEASE=1", 601 | "$(inherited)", 602 | ); 603 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 604 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 605 | GCC_WARN_UNDECLARED_SELECTOR = YES; 606 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 607 | GCC_WARN_UNUSED_FUNCTION = YES; 608 | GCC_WARN_UNUSED_VARIABLE = YES; 609 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 610 | MTL_ENABLE_DEBUG_INFO = NO; 611 | PRODUCT_NAME = "$(TARGET_NAME)"; 612 | STRIP_INSTALLED_PRODUCT = NO; 613 | SWIFT_COMPILATION_MODE = wholemodule; 614 | SYMROOT = "${SRCROOT}/../build"; 615 | }; 616 | name = Release; 617 | }; 618 | E296458D17185B37EAE3F240B3E2880C /* Release */ = { 619 | isa = XCBuildConfiguration; 620 | baseConfigurationReference = AA96A365515C1590A153121259E130D7 /* Pods-SwiftLuhn_Example.release.xcconfig */; 621 | buildSettings = { 622 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 623 | CODE_SIGN_IDENTITY = ""; 624 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 625 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 626 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 627 | CURRENT_PROJECT_VERSION = 1; 628 | DEFINES_MODULE = YES; 629 | DYLIB_COMPATIBILITY_VERSION = 1; 630 | DYLIB_CURRENT_VERSION = 1; 631 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 632 | INFOPLIST_FILE = "Target Support Files/Pods-SwiftLuhn_Example/Info.plist"; 633 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 634 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 635 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 636 | MACH_O_TYPE = staticlib; 637 | MODULEMAP_FILE = "Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.modulemap"; 638 | OTHER_LDFLAGS = ""; 639 | OTHER_LIBTOOLFLAGS = ""; 640 | PODS_ROOT = "$(SRCROOT)"; 641 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 642 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 643 | SDKROOT = iphoneos; 644 | SKIP_INSTALL = YES; 645 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 646 | TARGETED_DEVICE_FAMILY = "1,2"; 647 | VALIDATE_PRODUCT = YES; 648 | VERSIONING_SYSTEM = "apple-generic"; 649 | VERSION_INFO_PREFIX = ""; 650 | }; 651 | name = Release; 652 | }; 653 | E553A515CC8B00D4CE43CB85F31BF810 /* Release */ = { 654 | isa = XCBuildConfiguration; 655 | baseConfigurationReference = AB82082A144AAE54D60BC6AA53075706 /* SwiftLuhn.xcconfig */; 656 | buildSettings = { 657 | CODE_SIGN_IDENTITY = ""; 658 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 659 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 660 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 661 | CURRENT_PROJECT_VERSION = 1; 662 | DEFINES_MODULE = YES; 663 | DYLIB_COMPATIBILITY_VERSION = 1; 664 | DYLIB_CURRENT_VERSION = 1; 665 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 666 | GCC_PREFIX_HEADER = "Target Support Files/SwiftLuhn/SwiftLuhn-prefix.pch"; 667 | INFOPLIST_FILE = "Target Support Files/SwiftLuhn/Info.plist"; 668 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 669 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 670 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 671 | MODULEMAP_FILE = "Target Support Files/SwiftLuhn/SwiftLuhn.modulemap"; 672 | PRODUCT_MODULE_NAME = SwiftLuhn; 673 | PRODUCT_NAME = SwiftLuhn; 674 | SDKROOT = iphoneos; 675 | SKIP_INSTALL = YES; 676 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 677 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 678 | SWIFT_VERSION = 4.2; 679 | TARGETED_DEVICE_FAMILY = "1,2"; 680 | VALIDATE_PRODUCT = YES; 681 | VERSIONING_SYSTEM = "apple-generic"; 682 | VERSION_INFO_PREFIX = ""; 683 | }; 684 | name = Release; 685 | }; 686 | F8B686EC869AC9DC0E18CDCA299E23E9 /* Debug */ = { 687 | isa = XCBuildConfiguration; 688 | baseConfigurationReference = AB82082A144AAE54D60BC6AA53075706 /* SwiftLuhn.xcconfig */; 689 | buildSettings = { 690 | CODE_SIGN_IDENTITY = ""; 691 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 692 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 693 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 694 | CURRENT_PROJECT_VERSION = 1; 695 | DEFINES_MODULE = YES; 696 | DYLIB_COMPATIBILITY_VERSION = 1; 697 | DYLIB_CURRENT_VERSION = 1; 698 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 699 | GCC_PREFIX_HEADER = "Target Support Files/SwiftLuhn/SwiftLuhn-prefix.pch"; 700 | INFOPLIST_FILE = "Target Support Files/SwiftLuhn/Info.plist"; 701 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 702 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 703 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 704 | MODULEMAP_FILE = "Target Support Files/SwiftLuhn/SwiftLuhn.modulemap"; 705 | PRODUCT_MODULE_NAME = SwiftLuhn; 706 | PRODUCT_NAME = SwiftLuhn; 707 | SDKROOT = iphoneos; 708 | SKIP_INSTALL = YES; 709 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 710 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 711 | SWIFT_VERSION = 4.2; 712 | TARGETED_DEVICE_FAMILY = "1,2"; 713 | VERSIONING_SYSTEM = "apple-generic"; 714 | VERSION_INFO_PREFIX = ""; 715 | }; 716 | name = Debug; 717 | }; 718 | /* End XCBuildConfiguration section */ 719 | 720 | /* Begin XCConfigurationList section */ 721 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | C7BE62186E17127FF3B5B27A193214BD /* Debug */, 725 | D077E5AF30E3A09910AC48CA760A1280 /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | 853C23891713E10EF79A8C5078C9DEC7 /* Build configuration list for PBXNativeTarget "Pods-SwiftLuhn_Example" */ = { 731 | isa = XCConfigurationList; 732 | buildConfigurations = ( 733 | B9671808EC31CB0E79AEBDACC79A6D97 /* Debug */, 734 | E296458D17185B37EAE3F240B3E2880C /* Release */, 735 | ); 736 | defaultConfigurationIsVisible = 0; 737 | defaultConfigurationName = Release; 738 | }; 739 | AAC1F6863E4C22C6112EF7BC2903DBFC /* Build configuration list for PBXNativeTarget "SwiftLuhn" */ = { 740 | isa = XCConfigurationList; 741 | buildConfigurations = ( 742 | F8B686EC869AC9DC0E18CDCA299E23E9 /* Debug */, 743 | E553A515CC8B00D4CE43CB85F31BF810 /* Release */, 744 | ); 745 | defaultConfigurationIsVisible = 0; 746 | defaultConfigurationName = Release; 747 | }; 748 | B9B086E13683BE8F3819A25555F3873F /* Build configuration list for PBXNativeTarget "Pods-SwiftLuhn_Tests" */ = { 749 | isa = XCConfigurationList; 750 | buildConfigurations = ( 751 | 749A3DA13FAAB86966885BC47FD3F100 /* Debug */, 752 | 82AA6015BFD2E4BE82664612D02F8B75 /* Release */, 753 | ); 754 | defaultConfigurationIsVisible = 0; 755 | defaultConfigurationName = Release; 756 | }; 757 | /* End XCConfigurationList section */ 758 | }; 759 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 760 | } 761 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/SwiftLuhn.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SwiftLuhn 5 | 6 | Copyright (c) 2016 Max Kramer 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 Max Kramer <max@maxkramer.co> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | SwiftLuhn 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SwiftLuhn_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SwiftLuhn_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/SwiftLuhn/SwiftLuhn.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/SwiftLuhn/SwiftLuhn.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SwiftLuhn_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SwiftLuhn_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn/SwiftLuhn.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "SwiftLuhn" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SwiftLuhn_Example { 2 | umbrella header "Pods-SwiftLuhn_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn/SwiftLuhn.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "SwiftLuhn" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SwiftLuhn_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SwiftLuhn_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SwiftLuhn_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SwiftLuhn_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn/SwiftLuhn.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SwiftLuhn_Tests { 2 | umbrella header "Pods-SwiftLuhn_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn/SwiftLuhn.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SwiftLuhn/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SwiftLuhn/SwiftLuhn-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SwiftLuhn : NSObject 3 | @end 4 | @implementation PodsDummy_SwiftLuhn 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SwiftLuhn/SwiftLuhn-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SwiftLuhn/SwiftLuhn-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double SwiftLuhnVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char SwiftLuhnVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SwiftLuhn/SwiftLuhn.modulemap: -------------------------------------------------------------------------------- 1 | framework module SwiftLuhn { 2 | umbrella header "SwiftLuhn-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SwiftLuhn/SwiftLuhn.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/SwiftLuhn 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/SwiftLuhn.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 44E4CDCF060D148312B7A33B /* Pods_SwiftLuhn_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5B96891BB859C116842802B3 /* Pods_SwiftLuhn_Example.framework */; }; 11 | 501D07711E144680000E09A5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 501D07701E144680000E09A5 /* Main.storyboard */; }; 12 | 501D07771E1446E1000E09A5 /* TestCreditCardNumbers.plist in Resources */ = {isa = PBXBuildFile; fileRef = 501D07761E1446E1000E09A5 /* TestCreditCardNumbers.plist */; }; 13 | 50CFCCA9213B026400265043 /* CardTypeTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50CFCCA8213B026400265043 /* CardTypeTest.swift */; }; 14 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 15 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 16 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 17 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 18 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 19 | D5CA21EAF7A8B37C946EBF18 /* Pods_SwiftLuhn_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 926EBA6BF9ED85F9CDDF492E /* Pods_SwiftLuhn_Tests.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 28 | remoteInfo = SwiftLuhn; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0DF7860DB58A2EC870C366EC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 34 | 501D07701E144680000E09A5 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 35 | 501D07761E1446E1000E09A5 /* TestCreditCardNumbers.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = TestCreditCardNumbers.plist; sourceTree = ""; }; 36 | 50CFCCA8213B026400265043 /* CardTypeTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardTypeTest.swift; sourceTree = ""; }; 37 | 5B96891BB859C116842802B3 /* Pods_SwiftLuhn_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftLuhn_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 607FACD01AFB9204008FA782 /* SwiftLuhn_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftLuhn_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 43 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 44 | 607FACE51AFB9204008FA782 /* SwiftLuhn_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SwiftLuhn_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 47 | 8AD47538614B334D166DC901 /* Pods-SwiftLuhn_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftLuhn_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.release.xcconfig"; sourceTree = ""; }; 48 | 926EBA6BF9ED85F9CDDF492E /* Pods_SwiftLuhn_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftLuhn_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | A2BCD9AE2D95C7DCB60CB392 /* Pods-SwiftLuhn_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftLuhn_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.release.xcconfig"; sourceTree = ""; }; 50 | AA640ED277322E98AADE4DB9 /* Pods-SwiftLuhn_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftLuhn_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftLuhn_Tests/Pods-SwiftLuhn_Tests.debug.xcconfig"; sourceTree = ""; }; 51 | B2FBF89F16A4DC0F2751FEC7 /* Pods-SwiftLuhn_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftLuhn_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example.debug.xcconfig"; sourceTree = ""; }; 52 | B90E7FE8BD11978D5BB1B434 /* SwiftLuhn.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SwiftLuhn.podspec; path = ../SwiftLuhn.podspec; sourceTree = ""; }; 53 | CC106E6E669DC2ACEADFF7AC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | 44E4CDCF060D148312B7A33B /* Pods_SwiftLuhn_Example.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | D5CA21EAF7A8B37C946EBF18 /* Pods_SwiftLuhn_Tests.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 607FACC71AFB9204008FA782 = { 77 | isa = PBXGroup; 78 | children = ( 79 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 80 | 607FACD21AFB9204008FA782 /* Example for SwiftLuhn */, 81 | 607FACE81AFB9204008FA782 /* Tests */, 82 | 607FACD11AFB9204008FA782 /* Products */, 83 | D664B09D31ABA5C5BAD68DCB /* Pods */, 84 | A296E7E967BDBD98043DF35B /* Frameworks */, 85 | ); 86 | sourceTree = ""; 87 | }; 88 | 607FACD11AFB9204008FA782 /* Products */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 607FACD01AFB9204008FA782 /* SwiftLuhn_Example.app */, 92 | 607FACE51AFB9204008FA782 /* SwiftLuhn_Tests.xctest */, 93 | ); 94 | name = Products; 95 | sourceTree = ""; 96 | }; 97 | 607FACD21AFB9204008FA782 /* Example for SwiftLuhn */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 101 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 102 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 103 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 104 | 501D07701E144680000E09A5 /* Main.storyboard */, 105 | 607FACD31AFB9204008FA782 /* Supporting Files */, 106 | ); 107 | name = "Example for SwiftLuhn"; 108 | path = SwiftLuhn; 109 | sourceTree = ""; 110 | }; 111 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | 607FACD41AFB9204008FA782 /* Info.plist */, 115 | ); 116 | name = "Supporting Files"; 117 | sourceTree = ""; 118 | }; 119 | 607FACE81AFB9204008FA782 /* Tests */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 123 | 50CFCCA8213B026400265043 /* CardTypeTest.swift */, 124 | 607FACE91AFB9204008FA782 /* Supporting Files */, 125 | ); 126 | path = Tests; 127 | sourceTree = ""; 128 | }; 129 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 501D07761E1446E1000E09A5 /* TestCreditCardNumbers.plist */, 133 | 607FACEA1AFB9204008FA782 /* Info.plist */, 134 | ); 135 | name = "Supporting Files"; 136 | sourceTree = ""; 137 | }; 138 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | B90E7FE8BD11978D5BB1B434 /* SwiftLuhn.podspec */, 142 | 0DF7860DB58A2EC870C366EC /* README.md */, 143 | CC106E6E669DC2ACEADFF7AC /* LICENSE */, 144 | ); 145 | name = "Podspec Metadata"; 146 | sourceTree = ""; 147 | }; 148 | A296E7E967BDBD98043DF35B /* Frameworks */ = { 149 | isa = PBXGroup; 150 | children = ( 151 | 5B96891BB859C116842802B3 /* Pods_SwiftLuhn_Example.framework */, 152 | 926EBA6BF9ED85F9CDDF492E /* Pods_SwiftLuhn_Tests.framework */, 153 | ); 154 | name = Frameworks; 155 | sourceTree = ""; 156 | }; 157 | D664B09D31ABA5C5BAD68DCB /* Pods */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | B2FBF89F16A4DC0F2751FEC7 /* Pods-SwiftLuhn_Example.debug.xcconfig */, 161 | A2BCD9AE2D95C7DCB60CB392 /* Pods-SwiftLuhn_Example.release.xcconfig */, 162 | AA640ED277322E98AADE4DB9 /* Pods-SwiftLuhn_Tests.debug.xcconfig */, 163 | 8AD47538614B334D166DC901 /* Pods-SwiftLuhn_Tests.release.xcconfig */, 164 | ); 165 | name = Pods; 166 | sourceTree = ""; 167 | }; 168 | /* End PBXGroup section */ 169 | 170 | /* Begin PBXNativeTarget section */ 171 | 607FACCF1AFB9204008FA782 /* SwiftLuhn_Example */ = { 172 | isa = PBXNativeTarget; 173 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SwiftLuhn_Example" */; 174 | buildPhases = ( 175 | E8E81E7C5A9F874182E5FF04 /* [CP] Check Pods Manifest.lock */, 176 | 607FACCC1AFB9204008FA782 /* Sources */, 177 | 607FACCD1AFB9204008FA782 /* Frameworks */, 178 | 607FACCE1AFB9204008FA782 /* Resources */, 179 | 710B2CA48E125E0C3D61F25F /* [CP] Embed Pods Frameworks */, 180 | ); 181 | buildRules = ( 182 | ); 183 | dependencies = ( 184 | ); 185 | name = SwiftLuhn_Example; 186 | productName = SwiftLuhn; 187 | productReference = 607FACD01AFB9204008FA782 /* SwiftLuhn_Example.app */; 188 | productType = "com.apple.product-type.application"; 189 | }; 190 | 607FACE41AFB9204008FA782 /* SwiftLuhn_Tests */ = { 191 | isa = PBXNativeTarget; 192 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SwiftLuhn_Tests" */; 193 | buildPhases = ( 194 | 5B052D9C7E24EA239B85D0CC /* [CP] Check Pods Manifest.lock */, 195 | 607FACE11AFB9204008FA782 /* Sources */, 196 | 607FACE21AFB9204008FA782 /* Frameworks */, 197 | 607FACE31AFB9204008FA782 /* Resources */, 198 | ); 199 | buildRules = ( 200 | ); 201 | dependencies = ( 202 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 203 | ); 204 | name = SwiftLuhn_Tests; 205 | productName = Tests; 206 | productReference = 607FACE51AFB9204008FA782 /* SwiftLuhn_Tests.xctest */; 207 | productType = "com.apple.product-type.bundle.unit-test"; 208 | }; 209 | /* End PBXNativeTarget section */ 210 | 211 | /* Begin PBXProject section */ 212 | 607FACC81AFB9204008FA782 /* Project object */ = { 213 | isa = PBXProject; 214 | attributes = { 215 | LastSwiftUpdateCheck = 0720; 216 | LastUpgradeCheck = 0940; 217 | ORGANIZATIONNAME = CocoaPods; 218 | TargetAttributes = { 219 | 607FACCF1AFB9204008FA782 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | LastSwiftMigration = 0940; 222 | }; 223 | 607FACE41AFB9204008FA782 = { 224 | CreatedOnToolsVersion = 6.3.1; 225 | LastSwiftMigration = 0940; 226 | TestTargetID = 607FACCF1AFB9204008FA782; 227 | }; 228 | }; 229 | }; 230 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SwiftLuhn" */; 231 | compatibilityVersion = "Xcode 3.2"; 232 | developmentRegion = English; 233 | hasScannedForEncodings = 0; 234 | knownRegions = ( 235 | en, 236 | Base, 237 | ); 238 | mainGroup = 607FACC71AFB9204008FA782; 239 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 240 | projectDirPath = ""; 241 | projectRoot = ""; 242 | targets = ( 243 | 607FACCF1AFB9204008FA782 /* SwiftLuhn_Example */, 244 | 607FACE41AFB9204008FA782 /* SwiftLuhn_Tests */, 245 | ); 246 | }; 247 | /* End PBXProject section */ 248 | 249 | /* Begin PBXResourcesBuildPhase section */ 250 | 607FACCE1AFB9204008FA782 /* Resources */ = { 251 | isa = PBXResourcesBuildPhase; 252 | buildActionMask = 2147483647; 253 | files = ( 254 | 501D07711E144680000E09A5 /* Main.storyboard in Resources */, 255 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 256 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | 607FACE31AFB9204008FA782 /* Resources */ = { 261 | isa = PBXResourcesBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | 501D07771E1446E1000E09A5 /* TestCreditCardNumbers.plist in Resources */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | /* End PBXResourcesBuildPhase section */ 269 | 270 | /* Begin PBXShellScriptBuildPhase section */ 271 | 5B052D9C7E24EA239B85D0CC /* [CP] Check Pods Manifest.lock */ = { 272 | isa = PBXShellScriptBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | inputPaths = ( 277 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 278 | "${PODS_ROOT}/Manifest.lock", 279 | ); 280 | name = "[CP] Check Pods Manifest.lock"; 281 | outputPaths = ( 282 | "$(DERIVED_FILE_DIR)/Pods-SwiftLuhn_Tests-checkManifestLockResult.txt", 283 | ); 284 | runOnlyForDeploymentPostprocessing = 0; 285 | shellPath = /bin/sh; 286 | 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"; 287 | showEnvVarsInLog = 0; 288 | }; 289 | 710B2CA48E125E0C3D61F25F /* [CP] Embed Pods Frameworks */ = { 290 | isa = PBXShellScriptBuildPhase; 291 | buildActionMask = 2147483647; 292 | files = ( 293 | ); 294 | inputPaths = ( 295 | "${SRCROOT}/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-frameworks.sh", 296 | "${BUILT_PRODUCTS_DIR}/SwiftLuhn/SwiftLuhn.framework", 297 | ); 298 | name = "[CP] Embed Pods Frameworks"; 299 | outputPaths = ( 300 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftLuhn.framework", 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | shellPath = /bin/sh; 304 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SwiftLuhn_Example/Pods-SwiftLuhn_Example-frameworks.sh\"\n"; 305 | showEnvVarsInLog = 0; 306 | }; 307 | E8E81E7C5A9F874182E5FF04 /* [CP] Check Pods Manifest.lock */ = { 308 | isa = PBXShellScriptBuildPhase; 309 | buildActionMask = 2147483647; 310 | files = ( 311 | ); 312 | inputPaths = ( 313 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 314 | "${PODS_ROOT}/Manifest.lock", 315 | ); 316 | name = "[CP] Check Pods Manifest.lock"; 317 | outputPaths = ( 318 | "$(DERIVED_FILE_DIR)/Pods-SwiftLuhn_Example-checkManifestLockResult.txt", 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | shellPath = /bin/sh; 322 | 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"; 323 | showEnvVarsInLog = 0; 324 | }; 325 | /* End PBXShellScriptBuildPhase section */ 326 | 327 | /* Begin PBXSourcesBuildPhase section */ 328 | 607FACCC1AFB9204008FA782 /* Sources */ = { 329 | isa = PBXSourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 333 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 334 | ); 335 | runOnlyForDeploymentPostprocessing = 0; 336 | }; 337 | 607FACE11AFB9204008FA782 /* Sources */ = { 338 | isa = PBXSourcesBuildPhase; 339 | buildActionMask = 2147483647; 340 | files = ( 341 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 342 | 50CFCCA9213B026400265043 /* CardTypeTest.swift in Sources */, 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | /* End PBXSourcesBuildPhase section */ 347 | 348 | /* Begin PBXTargetDependency section */ 349 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 350 | isa = PBXTargetDependency; 351 | target = 607FACCF1AFB9204008FA782 /* SwiftLuhn_Example */; 352 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 353 | }; 354 | /* End PBXTargetDependency section */ 355 | 356 | /* Begin PBXVariantGroup section */ 357 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 358 | isa = PBXVariantGroup; 359 | children = ( 360 | 607FACDF1AFB9204008FA782 /* Base */, 361 | ); 362 | name = LaunchScreen.xib; 363 | sourceTree = ""; 364 | }; 365 | /* End PBXVariantGroup section */ 366 | 367 | /* Begin XCBuildConfiguration section */ 368 | 607FACED1AFB9204008FA782 /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | ALWAYS_SEARCH_USER_PATHS = NO; 372 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 373 | CLANG_CXX_LIBRARY = "libc++"; 374 | CLANG_ENABLE_MODULES = YES; 375 | CLANG_ENABLE_OBJC_ARC = YES; 376 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 377 | CLANG_WARN_BOOL_CONVERSION = YES; 378 | CLANG_WARN_COMMA = YES; 379 | CLANG_WARN_CONSTANT_CONVERSION = YES; 380 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 381 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 382 | CLANG_WARN_EMPTY_BODY = YES; 383 | CLANG_WARN_ENUM_CONVERSION = YES; 384 | CLANG_WARN_INFINITE_RECURSION = YES; 385 | CLANG_WARN_INT_CONVERSION = YES; 386 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 388 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 389 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 390 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 391 | CLANG_WARN_STRICT_PROTOTYPES = YES; 392 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 393 | CLANG_WARN_UNREACHABLE_CODE = YES; 394 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 395 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 396 | COPY_PHASE_STRIP = NO; 397 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 398 | ENABLE_STRICT_OBJC_MSGSEND = YES; 399 | ENABLE_TESTABILITY = YES; 400 | GCC_C_LANGUAGE_STANDARD = gnu99; 401 | GCC_DYNAMIC_NO_PIC = NO; 402 | GCC_NO_COMMON_BLOCKS = YES; 403 | GCC_OPTIMIZATION_LEVEL = 0; 404 | GCC_PREPROCESSOR_DEFINITIONS = ( 405 | "DEBUG=1", 406 | "$(inherited)", 407 | ); 408 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 409 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 410 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 411 | GCC_WARN_UNDECLARED_SELECTOR = YES; 412 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 413 | GCC_WARN_UNUSED_FUNCTION = YES; 414 | GCC_WARN_UNUSED_VARIABLE = YES; 415 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 416 | MTL_ENABLE_DEBUG_INFO = YES; 417 | ONLY_ACTIVE_ARCH = YES; 418 | SDKROOT = iphoneos; 419 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 420 | }; 421 | name = Debug; 422 | }; 423 | 607FACEE1AFB9204008FA782 /* Release */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | ALWAYS_SEARCH_USER_PATHS = NO; 427 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 428 | CLANG_CXX_LIBRARY = "libc++"; 429 | CLANG_ENABLE_MODULES = YES; 430 | CLANG_ENABLE_OBJC_ARC = YES; 431 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 432 | CLANG_WARN_BOOL_CONVERSION = YES; 433 | CLANG_WARN_COMMA = YES; 434 | CLANG_WARN_CONSTANT_CONVERSION = YES; 435 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 436 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 437 | CLANG_WARN_EMPTY_BODY = YES; 438 | CLANG_WARN_ENUM_CONVERSION = YES; 439 | CLANG_WARN_INFINITE_RECURSION = YES; 440 | CLANG_WARN_INT_CONVERSION = YES; 441 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 442 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 443 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 444 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 445 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 446 | CLANG_WARN_STRICT_PROTOTYPES = YES; 447 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 448 | CLANG_WARN_UNREACHABLE_CODE = YES; 449 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 450 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 451 | COPY_PHASE_STRIP = NO; 452 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 453 | ENABLE_NS_ASSERTIONS = NO; 454 | ENABLE_STRICT_OBJC_MSGSEND = YES; 455 | GCC_C_LANGUAGE_STANDARD = gnu99; 456 | GCC_NO_COMMON_BLOCKS = YES; 457 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 458 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 459 | GCC_WARN_UNDECLARED_SELECTOR = YES; 460 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 461 | GCC_WARN_UNUSED_FUNCTION = YES; 462 | GCC_WARN_UNUSED_VARIABLE = YES; 463 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 464 | MTL_ENABLE_DEBUG_INFO = NO; 465 | SDKROOT = iphoneos; 466 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 467 | VALIDATE_PRODUCT = YES; 468 | }; 469 | name = Release; 470 | }; 471 | 607FACF01AFB9204008FA782 /* Debug */ = { 472 | isa = XCBuildConfiguration; 473 | baseConfigurationReference = B2FBF89F16A4DC0F2751FEC7 /* Pods-SwiftLuhn_Example.debug.xcconfig */; 474 | buildSettings = { 475 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 476 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 477 | INFOPLIST_FILE = SwiftLuhn/Info.plist; 478 | MODULE_NAME = ExampleApp; 479 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 480 | PRODUCT_NAME = "$(TARGET_NAME)"; 481 | SWIFT_VERSION = 4.0; 482 | }; 483 | name = Debug; 484 | }; 485 | 607FACF11AFB9204008FA782 /* Release */ = { 486 | isa = XCBuildConfiguration; 487 | baseConfigurationReference = A2BCD9AE2D95C7DCB60CB392 /* Pods-SwiftLuhn_Example.release.xcconfig */; 488 | buildSettings = { 489 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | INFOPLIST_FILE = SwiftLuhn/Info.plist; 492 | MODULE_NAME = ExampleApp; 493 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | SWIFT_VERSION = 4.0; 496 | }; 497 | name = Release; 498 | }; 499 | 607FACF31AFB9204008FA782 /* Debug */ = { 500 | isa = XCBuildConfiguration; 501 | baseConfigurationReference = AA640ED277322E98AADE4DB9 /* Pods-SwiftLuhn_Tests.debug.xcconfig */; 502 | buildSettings = { 503 | GCC_PREPROCESSOR_DEFINITIONS = ( 504 | "DEBUG=1", 505 | "$(inherited)", 506 | ); 507 | INFOPLIST_FILE = Tests/Info.plist; 508 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | SWIFT_VERSION = 4.0; 511 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftLuhn_Example.app/SwiftLuhn_Example"; 512 | }; 513 | name = Debug; 514 | }; 515 | 607FACF41AFB9204008FA782 /* Release */ = { 516 | isa = XCBuildConfiguration; 517 | baseConfigurationReference = 8AD47538614B334D166DC901 /* Pods-SwiftLuhn_Tests.release.xcconfig */; 518 | buildSettings = { 519 | INFOPLIST_FILE = Tests/Info.plist; 520 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 521 | PRODUCT_NAME = "$(TARGET_NAME)"; 522 | SWIFT_VERSION = 4.0; 523 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SwiftLuhn_Example.app/SwiftLuhn_Example"; 524 | }; 525 | name = Release; 526 | }; 527 | /* End XCBuildConfiguration section */ 528 | 529 | /* Begin XCConfigurationList section */ 530 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SwiftLuhn" */ = { 531 | isa = XCConfigurationList; 532 | buildConfigurations = ( 533 | 607FACED1AFB9204008FA782 /* Debug */, 534 | 607FACEE1AFB9204008FA782 /* Release */, 535 | ); 536 | defaultConfigurationIsVisible = 0; 537 | defaultConfigurationName = Release; 538 | }; 539 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SwiftLuhn_Example" */ = { 540 | isa = XCConfigurationList; 541 | buildConfigurations = ( 542 | 607FACF01AFB9204008FA782 /* Debug */, 543 | 607FACF11AFB9204008FA782 /* Release */, 544 | ); 545 | defaultConfigurationIsVisible = 0; 546 | defaultConfigurationName = Release; 547 | }; 548 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SwiftLuhn_Tests" */ = { 549 | isa = XCConfigurationList; 550 | buildConfigurations = ( 551 | 607FACF31AFB9204008FA782 /* Debug */, 552 | 607FACF41AFB9204008FA782 /* Release */, 553 | ); 554 | defaultConfigurationIsVisible = 0; 555 | defaultConfigurationName = Release; 556 | }; 557 | /* End XCConfigurationList section */ 558 | }; 559 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 560 | } 561 | -------------------------------------------------------------------------------- /Example/SwiftLuhn.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SwiftLuhn.xcodeproj/xcshareddata/xcschemes/SwiftLuhn-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/SwiftLuhn.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SwiftLuhn.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/SwiftLuhn/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SwiftLuhn 4 | // 5 | // Created by Max Kramer on 12/28/2016. 6 | // Copyright (c) 2016 Max Kramer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // 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. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/SwiftLuhn/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/SwiftLuhn/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /Example/SwiftLuhn/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/SwiftLuhn/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Example/SwiftLuhn/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SwiftLuhn 4 | // 5 | // Created by Max Kramer on 03/29/2016. 6 | // Copyright (c) 2016 Max Kramer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SwiftLuhn 11 | 12 | class ViewController: UIViewController, UITextFieldDelegate { 13 | 14 | @IBOutlet weak var cardTextField: UITextField! 15 | @IBOutlet weak var validityLabel: UILabel! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | cardTextField.text = "378282246310005" 21 | updateLabel(cardTextField.text!.isValidCardNumber()) 22 | // Do any additional setup after loading the view, typically from a nib. 23 | } 24 | 25 | func updateLabel(_ isValid: Bool) { 26 | if isValid { 27 | validityLabel.text = "VALID" 28 | validityLabel.textColor = UIColor.green 29 | } 30 | else { 31 | validityLabel.text = "INVALID" 32 | validityLabel.textColor = UIColor.red 33 | } 34 | } 35 | 36 | func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { 37 | 38 | let text = (textField.text ?? "") as NSString 39 | 40 | let updatedString = text.replacingCharacters(in: range, with: string) 41 | 42 | let isValid = updatedString.isValidCardNumber() 43 | updateLabel(isValid) 44 | return true 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /Example/Tests/CardTypeTest.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CardTypeTest.swift 3 | // SwiftLuhn_Tests 4 | // 5 | // Created by Max Kramer on 01/09/2018. 6 | // Copyright © 2018 CocoaPods. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | import SwiftLuhn 11 | 12 | class CardTypeTest: XCTestCase { 13 | func testStringValueShouldReturnCorrectValue() { 14 | let mapping = [ 15 | SwiftLuhn.CardType.amex: "American Express", 16 | SwiftLuhn.CardType.visa: "Visa", 17 | SwiftLuhn.CardType.mastercard: "Mastercard", 18 | SwiftLuhn.CardType.discover: "Discover", 19 | SwiftLuhn.CardType.dinersClub: "Diner's Club", 20 | SwiftLuhn.CardType.jcb: "JCB", 21 | SwiftLuhn.CardType.maestro: "Maestro", 22 | SwiftLuhn.CardType.rupay: "Rupay", 23 | SwiftLuhn.CardType.mir: "Mir" 24 | ] 25 | 26 | mapping.forEach { key, value in 27 | let result = key.stringValue() 28 | XCTAssertEqual(result, value) 29 | } 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/TestCreditCardNumbers.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | valid 6 | 7 | 8 | number 9 | 378282246310005 10 | type 11 | american express 12 | 13 | 14 | number 15 | 371449635398431 16 | type 17 | american express 18 | 19 | 20 | number 21 | 378734493671000 22 | type 23 | american express 24 | 25 | 26 | number 27 | 378734493671000 28 | type 29 | american express 30 | 31 | 32 | number 33 | 30569309025904 34 | type 35 | diner's club 36 | 37 | 38 | number 39 | 38520000023237 40 | type 41 | diner's club 42 | 43 | 44 | number 45 | 6011111111111117 46 | type 47 | discover 48 | 49 | 50 | number 51 | 6011000990139424 52 | type 53 | discover 54 | 55 | 56 | number 57 | 3530111333300000 58 | type 59 | jcb 60 | 61 | 62 | number 63 | 3566002020360505 64 | type 65 | jcb 66 | 67 | 68 | number 69 | 5555555555554444 70 | type 71 | mastercard 72 | 73 | 74 | number 75 | 5105105105105100 76 | type 77 | mastercard 78 | 79 | 80 | number 81 | 4111111111111111 82 | type 83 | visa 84 | 85 | 86 | number 87 | 4012888888881881 88 | type 89 | visa 90 | 91 | 92 | number 93 | 4222222222222 94 | type 95 | visa 96 | 97 | 98 | number 99 | 2226350138938173 100 | type 101 | mastercard 102 | 103 | 104 | number 105 | 2239468684686098 106 | type 107 | mastercard 108 | 109 | 110 | invalid 111 | 112 | hello 113 | testing-124024-11 114 | p3wn3r4 115 | l333t-h4x0r 116 | 1234567812345678 117 | 49927398717 118 | 33036103566 119 | 32129486301 120 | 32882469031 121 | 33841333111 122 | 30086326829 123 | 41609d620055 124 | 43717494988 125 | 60131753761 126 | 62752137389 127 | 51837652542 128 | 53372289611 129 | 51484050781 130 | 93392751739 131 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import SwiftLuhn 4 | 5 | let CardNumbersFileName = "TestCreditCardNumbers" 6 | 7 | class Tests: XCTestCase { 8 | 9 | struct Card { 10 | let number: String 11 | let type: String 12 | } 13 | 14 | var validCards: [Card]! 15 | var invalidCards: [Card]! 16 | 17 | override func setUp() { 18 | super.setUp() 19 | 20 | let plistPath = Bundle(for: type(of: self)).path(forResource: CardNumbersFileName, ofType: "plist") 21 | XCTAssertNotNil(plistPath) // throw an assertion rather than using guard 22 | 23 | let plistData = try? Data(contentsOf: URL(fileURLWithPath: plistPath!)) 24 | XCTAssertNotNil(plistData) 25 | 26 | let plist = try? PropertyListSerialization.propertyList(from: plistData!, options: PropertyListSerialization.MutabilityOptions(), format: nil) as! [String: AnyObject] 27 | XCTAssertNotNil(plist) 28 | 29 | let validCardNumbers = plist!["valid"] as! [[String: String]] 30 | validCards = validCardNumbers.map { 31 | return Card(number: $0["number"]!, type: $0["type"]!) 32 | } 33 | 34 | let invalidCardNumbers = plist!["invalid"] as! [String] 35 | invalidCards = invalidCardNumbers.map { 36 | return Card(number: $0, type: "Invalid") 37 | } 38 | } 39 | 40 | func testFormattedCardNumber() { 41 | // should only be numbers 0-9 42 | // no white space or new lines 43 | 44 | func containsOnlyLettersAndNumbers(_ cardNumber: String) -> Bool { 45 | let numbersRegex = "[0-9]" 46 | let replacedNumbers = cardNumber.replacingOccurrences(of: numbersRegex, with: "", options: .regularExpression, range: nil) 47 | 48 | return replacedNumbers.count == 0 49 | } 50 | 51 | func containsNoWhitespaceOrNewlines(_ cardNumber: String) -> Bool { 52 | let withProhibitedContents = " \n \n " + cardNumber + " \n \n " 53 | let formattedContents = withProhibitedContents.formattedCardNumber() 54 | 55 | return formattedContents.count == cardNumber.count 56 | } 57 | 58 | let incorrectlyFormattedNumbers = [ 59 | "378-28-22-46-31-00-05", 60 | "\n371-449635398431\n", 61 | "37ajf8f7df3d f44eeee936..a>71000", 62 | "-\n-3787344 Tcx)_936710<@00", 63 | "<-\n 3056 93 09025904->" 64 | ] 65 | 66 | incorrectlyFormattedNumbers.forEach { 67 | let formattedEquivalent = $0.formattedCardNumber() 68 | XCTAssertTrue(containsOnlyLettersAndNumbers(formattedEquivalent)) 69 | XCTAssertTrue(containsNoWhitespaceOrNewlines(formattedEquivalent)) 70 | XCTAssertTrue(formattedEquivalent.isValidCardNumber()) 71 | } 72 | } 73 | 74 | func testValidCardNumbersAreValid() { 75 | validCards.forEach { 76 | XCTAssertTrue($0.number.isValidCardNumber()) 77 | XCTAssertEqual($0.number.cardType(), SwiftLuhn.CardType(string: $0.type)) 78 | } 79 | } 80 | 81 | func testInvalidCardsAreInvalid() { 82 | invalidCards.forEach { 83 | XCTAssertFalse($0.number.isValidCardNumber()) 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 Max Kramer <542953+maxkramer@users.noreply.github.com> 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SwiftLuhn 2 | [![Swift](https://img.shields.io/badge/Swift-4.0-orange.svg?style=flat)](https://swift.org) 3 | [![CircleCI](https://circleci.com/gh/maxkramer/SwiftLuhn.svg?style=svg)](https://circleci.com/gh/maxkramer/SwiftLuhn) 4 | [![Version](https://img.shields.io/cocoapods/v/SwiftLuhn.svg?style=flat)](http://cocoapods.org/pods/SwiftLuhn) 5 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 6 | [![License](https://img.shields.io/cocoapods/l/SwiftLuhn.svg?style=flat)](http://cocoapods.org/pods/SwiftLuhn) 7 | [![Platform](https://img.shields.io/cocoapods/p/SwiftLuhn.svg?style=flat)](http://cocoapods.org/pods/SwiftLuhn) 8 | 9 | ## Warning! This repository is no longer maintained. 10 | 11 | This is a port of the Luhn Algorithm, generally used for validating debit/credit card details, written in Swift. 12 | 13 | SwiftLuhn's HEAD is written in Swift 4. If your project doesn't support Swift 4 yet, please use the [0.2.1 tag](https://github.com/MaxKramer/SwiftLuhn/releases/tag/0.2.1). 14 | 15 | Objective-C port can be found at [https://github.com/MaxKramer/ObjectiveLuhn](https://github.com/MaxKramer/ObjectiveLuhn). 16 | 17 | ## Usage 18 | 19 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 20 | 21 | ## Installation 22 | 23 | SwiftLuhn is available through [CocoaPods](http://cocoapods.org) or Carthage (with or without using our pre-built binary). 24 | 25 | To install it, simply add the following line to your Podfile: 26 | 27 | ```ruby 28 | pod "SwiftLuhn" # use '0.2.1' for Swift 3.X 29 | ``` 30 | 31 | Or alternatively the following line to your Cartfile: 32 | 33 | ```swift 34 | github "MaxKramer/SwiftLuhn" 35 | ``` 36 | 37 | ## Usage 38 | 39 | ### Validation 40 | 41 | 42 | Call the class method which will throws an exception `SwiftLuhn.CardError` if the card is invalid. 43 | 44 | ```swift 45 | let cardNumber = "378282246310005" 46 | do { 47 | try SwiftLuhn.performLuhnAlgorithm(with: cardNumber) 48 | // process payment 49 | } 50 | catch { 51 | // invalid, alert user 52 | } 53 | ``` 54 | 55 | Alternatively, you can use the `String` category: 56 | 57 | ```swift 58 | let isValid = cardNumber.isValidCardNumber() 59 | ``` 60 | 61 | ### Card Types 62 | 63 | You can also get the type of the card being used which will be one of: 64 | 65 | |Card Type| 66 | |-------------| 67 | |American Express| 68 | |Visa| 69 | |Mastercard| 70 | |Discover| 71 | |Diner's Club| 72 | |JCB| 73 | 74 | ```swift 75 | do { 76 | let cardType = try SwiftLuhn.cardType(of: cardNumber) 77 | } 78 | catch { 79 | // card is invalid 80 | } 81 | ``` 82 | 83 | ## Unit Tests 84 | 85 | To run the unit test suite, please open the example project and hit CMD + U. 86 | 87 | ## Sources 88 | 89 | |Name|Website|Reason| 90 | |:---|:------|:-----| 91 | |Paypal|[http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm](http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm)|List of valid credit card numbers for the unit tests| 92 | 93 | ## License 94 | 95 | SwiftLuhn is available under the MIT license. See the LICENSE file for more info. 96 | 97 | -------------------------------------------------------------------------------- /SwiftLuhn.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SwiftLuhn.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'SwiftLuhn' 11 | s.version = '1.0.0' 12 | s.summary = 'SwiftLuhn is a port of the Luhn algorithm, used for validating debit/credit card details.' 13 | s.description = <<-DESC 14 | This is a port of the Luhn Algorithm, generally used for validating debit/credit card details, to Swift. 15 | 16 | Objective-C port can be found at [https://github.com/MaxKramer/ObjectiveLuhn](https://github.com/MaxKramer/ObjectiveLuhn). 17 | DESC 18 | s.homepage = 'https://github.com/MaxKramer/SwiftLuhn' 19 | s.license = 'MIT' 20 | s.author = { 'Max Kramer' => 'max@maxkramer.co' } 21 | s.source = { :git => 'https://github.com/maxkramer/SwiftLuhn.git', :tag => s.version.to_s } 22 | s.social_media_url = 'https://twitter.com/uint_max' 23 | s.platform = :ios, '8.0' 24 | s.requires_arc = true 25 | s.source_files = 'SwiftLuhn/Classes/**/*' 26 | s.swift_version = '4.0' 27 | end 28 | -------------------------------------------------------------------------------- /SwiftLuhn/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxkramer/SwiftLuhn/926a4c3b8202572026bce570453dfd5b7f7ff462/SwiftLuhn/Assets/.gitkeep -------------------------------------------------------------------------------- /SwiftLuhn/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxkramer/SwiftLuhn/926a4c3b8202572026bce570453dfd5b7f7ff462/SwiftLuhn/Classes/.gitkeep -------------------------------------------------------------------------------- /SwiftLuhn/Classes/String+SwiftLuhn.swift: -------------------------------------------------------------------------------- 1 | // 2 | // String+SwiftLuhn.swift 3 | // Example Project 4 | // 5 | // Created by Max Kramer on 29/03/2016. 6 | // Copyright © 2016 Max Kramer. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public extension String { 12 | public func isValidCardNumber() -> Bool { 13 | do { 14 | try SwiftLuhn.performLuhnAlgorithm(with: self) 15 | return true 16 | } 17 | catch { 18 | return false 19 | } 20 | } 21 | 22 | public func cardType() -> SwiftLuhn.CardType? { 23 | let cardType = try? SwiftLuhn.cardType(for: self) 24 | return cardType 25 | } 26 | public func suggestedCardType() -> SwiftLuhn.CardType? { 27 | let cardType = try? SwiftLuhn.cardType(for: self, suggest: true) 28 | return cardType 29 | } 30 | 31 | public func formattedCardNumber() -> String { 32 | let numbersOnlyEquivalent = replacingOccurrences(of: "[^0-9]", with: "", options: .regularExpression, range: nil) 33 | return numbersOnlyEquivalent.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /SwiftLuhn/Classes/SwiftLuhn.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ObjectiveLuhn.swift 3 | // Example Project 4 | // 5 | // Created by Max Kramer on 29/03/2016. 6 | // Copyright © 2016 Max Kramer. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | open class SwiftLuhn { 12 | public enum CardType: Int { 13 | case amex = 0 14 | case visa 15 | case mastercard 16 | case discover 17 | case dinersClub 18 | case jcb 19 | case maestro 20 | case rupay 21 | case mir 22 | } 23 | 24 | public enum CardError: Error { 25 | case unsupported 26 | case invalid 27 | } 28 | 29 | fileprivate class func regularExpression(for cardType: CardType) -> String { 30 | switch cardType { 31 | case .amex: 32 | return "^3[47][0-9]{5,}$" 33 | case .dinersClub: 34 | return "^3(?:0[0-5]|[68][0-9])[0-9]{4,}$" 35 | case .discover: 36 | return "^6(?:011|5[0-9]{2})[0-9]{3,}$" 37 | case .jcb: 38 | return "^(?:2131|1800|35[0-9]{3})[0-9]{3,}$" 39 | case .mastercard: 40 | return "^5[1-5][0-9]{5,}|222[1-9][0-9]{3,}|22[3-9][0-9]{4,}|2[3-6][0-9]{5,}|27[01][0-9]{4,}|2720[0-9]{3,}$" 41 | case .visa: 42 | return "^4[0-9]{6,}$" 43 | case .maestro: 44 | return "^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$" 45 | case .rupay: 46 | return "^6[0-9]{15}$" 47 | case .mir: 48 | return "^220[0-9]{13}$" 49 | } 50 | } 51 | 52 | fileprivate class func suggestionRegularExpression(for cardType: CardType) -> String { 53 | switch cardType { 54 | case .amex: 55 | return "^3[47][0-9]+$" 56 | case .dinersClub: 57 | return "^3(?:0[0-5]|[68][0-9])[0-9]+$" 58 | case .discover: 59 | return "^6(?:011|5[0-9]{2})[0-9]+$" 60 | case .jcb: 61 | return "^(?:2131|1800|35[0-9]{3})[0-9]+$" 62 | case .mastercard: 63 | return "^5[1-5][0-9]{5,}|222[1-9][0-9]{3,}|22[3-9][0-9]{4,}|2[3-6][0-9]{5,}|27[01][0-9]{4,}|2720[0-9]{3,}$" 64 | case .visa: 65 | return "^4[0-9]+$" 66 | case .maestro: 67 | return "^(5018|5020|5038|6304|6759|6761|6763)[0-9]+$" 68 | case .rupay: 69 | return "^6[0-9]+$" 70 | case .mir: 71 | return "^220[0-9]+$" 72 | } 73 | } 74 | 75 | class func performLuhnAlgorithm(with cardNumber: String) throws { 76 | 77 | let formattedCardNumber = cardNumber.formattedCardNumber() 78 | 79 | guard formattedCardNumber.count >= 9 else { 80 | throw CardError.invalid 81 | } 82 | 83 | let originalCheckDigit = formattedCardNumber.last! 84 | let characters = formattedCardNumber.dropLast().reversed() 85 | 86 | var digitSum = 0 87 | 88 | for (idx, character) in characters.enumerated() { 89 | let value = Int(String(character)) ?? 0 90 | if idx % 2 == 0 { 91 | var product = value * 2 92 | 93 | if product > 9 { 94 | product = product - 9 95 | } 96 | 97 | digitSum = digitSum + product 98 | } 99 | else { 100 | digitSum = digitSum + value 101 | } 102 | } 103 | 104 | digitSum = digitSum * 9 105 | 106 | let computedCheckDigit = digitSum % 10 107 | 108 | let originalCheckDigitInt = Int(String(originalCheckDigit)) 109 | let valid = originalCheckDigitInt == computedCheckDigit 110 | 111 | if valid == false { 112 | throw CardError.invalid 113 | } 114 | } 115 | 116 | class func cardType(for cardNumber: String, suggest: Bool = false) throws -> CardType { 117 | var foundCardType: CardType? 118 | 119 | for i in CardType.amex.rawValue...CardType.jcb.rawValue { 120 | let cardType = CardType(rawValue: i)! 121 | let regex = suggest ? suggestionRegularExpression(for: cardType) : regularExpression(for: cardType) 122 | 123 | let predicate = NSPredicate(format: "SELF MATCHES %@", regex) 124 | 125 | if predicate.evaluate(with: cardNumber) == true { 126 | foundCardType = cardType 127 | break 128 | } 129 | } 130 | 131 | if foundCardType == nil { 132 | throw CardError.invalid 133 | } 134 | 135 | return foundCardType! 136 | } 137 | } 138 | 139 | public extension SwiftLuhn.CardType { 140 | func stringValue() -> String { 141 | switch self { 142 | case .amex: 143 | return "American Express" 144 | case .visa: 145 | return "Visa" 146 | case .mastercard: 147 | return "Mastercard" 148 | case .discover: 149 | return "Discover" 150 | case .dinersClub: 151 | return "Diner's Club" 152 | case .jcb: 153 | return "JCB" 154 | case .maestro: 155 | return "Maestro" 156 | case .rupay: 157 | return "Rupay" 158 | case .mir: 159 | return "Mir" 160 | } 161 | } 162 | 163 | init?(string: String) { 164 | switch string.lowercased() { 165 | case "american express": 166 | self.init(rawValue: 0) 167 | case "visa": 168 | self.init(rawValue: 1) 169 | case "mastercard": 170 | self.init(rawValue: 2) 171 | case "discover": 172 | self.init(rawValue: 3) 173 | case "diner's club": 174 | self.init(rawValue: 4) 175 | case "jcb": 176 | self.init(rawValue: 5) 177 | case "maestro": 178 | self.init(rawValue: 6) 179 | case "rupay": 180 | self.init(rawValue: 7) 181 | case "mir": 182 | self.init(rawValue: 8) 183 | default: 184 | return nil 185 | } 186 | } 187 | } 188 | --------------------------------------------------------------------------------