diff --git a/.ci/buildkite/pipeline.template.yml b/.ci/buildkite/pipeline.template.yml index e7d0b9e..5ca5f0b 100755 --- a/.ci/buildkite/pipeline.template.yml +++ b/.ci/buildkite/pipeline.template.yml @@ -12,7 +12,7 @@ steps: - type: "waiter" - - name: ":codecov: Send Coverage" + name: ":muscle: Send Coverage" command: .ci/scripts/send-coverage agents: name: "$BUILDKITE_AGENT_META_DATA_NAME" diff --git a/.ci/scripts/send-coverage b/.ci/scripts/send-coverage index 0e7a4f1..f667c54 100755 --- a/.ci/scripts/send-coverage +++ b/.ci/scripts/send-coverage @@ -1,2 +1,4 @@ #!/usr/bin/env bash -bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -D .ci/xcodebuild-data \ No newline at end of file +source /usr/local/opt/chruby/share/chruby/chruby.sh +chruby ruby +bundle exec slather coverage --scheme Money-iOS --buildkite --coveralls --build-directory .ci/xcodebuild-data diff --git a/.jazzy.yaml b/.jazzy.yaml index 1f21354..25c1142 100644 --- a/.jazzy.yaml +++ b/.jazzy.yaml @@ -1,7 +1,7 @@ author_name: Daniel Thorpe author_url: http://danthorpe.me module_name: Money -module_version: 1.6.0 +module_version: 1.6.1 github_url: https://github.com/danthorpe/Money readme: README.md podspec: Money.podspec diff --git a/.slather.yml b/.slather.yml new file mode 100644 index 0000000..db9dc44 --- /dev/null +++ b/.slather.yml @@ -0,0 +1,6 @@ +coverage_service: coveralls +xcodeproj: Money.xcodeproj +build_directory: .ci/xcodebuild-data +ignore: + - Tests/* + - Supporting Files/* \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c7eea5d..4cb74d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.6.1 +1. [[MNY-42](https://github.com/danthorpe/Money/pull/42)]: Removes all the example projects to [danthorpe/Examples](https://github.com/danthorpe/Examples). This is done mostly to avoid an issue where Carthage attempts to build all Xcode projects it can find in a repository. +2. [[MNY-43](https://github.com/danthorpe/Money/pull/43)]: Switch the code coverage reporting tool to [Coveralls](https://coveralls.io/github/danthorpe/Money), and got the coverage back to 100%. + # 1.6.0 1. [[MNY-39](https://github.com/danthorpe/Money/pull/39)]: Updates the spelling of CocoaPods, thanks [https://github.com/ReadmeCritic](@ReadmeCritic)! 2. [[MNY-34](https://github.com/danthorpe/Money/pull/34)]: Refactors `CurrencyType` to remove the formatter property, and include a default `CurrencyStyle`. This update makes it a lot easier to make custom currency types, and overall improves or fixes bugs with the ISO currency types. If you have custom currencies you may need to perform some slight refactoring, but it shouldn’t be too complex. diff --git a/Examples/Custom Money/Custom Money.xcodeproj/project.pbxproj b/Examples/Custom Money/Custom Money.xcodeproj/project.pbxproj deleted file mode 100644 index 405fb66..0000000 --- a/Examples/Custom Money/Custom Money.xcodeproj/project.pbxproj +++ /dev/null @@ -1,375 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 6557F4B31BEACBAB003CD2BF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6557F4B21BEACBAB003CD2BF /* AppDelegate.swift */; }; - 6557F4B51BEACBAB003CD2BF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6557F4B41BEACBAB003CD2BF /* ViewController.swift */; }; - 6557F4B81BEACBAB003CD2BF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6557F4B61BEACBAB003CD2BF /* Main.storyboard */; }; - 6557F4BA1BEACBAB003CD2BF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6557F4B91BEACBAB003CD2BF /* Assets.xcassets */; }; - 6557F4BD1BEACBAB003CD2BF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6557F4BB1BEACBAB003CD2BF /* LaunchScreen.storyboard */; }; - 6557F4C51BEACCA2003CD2BF /* Currencies.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6557F4C41BEACCA2003CD2BF /* Currencies.swift */; }; - CCAD2E0AC5B63470D9132683 /* Pods_Custom_Money.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7C36A00E5A068833F1ABAC8 /* Pods_Custom_Money.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 27DD6DC0FB0700753D5A773C /* Pods-Custom Money.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Custom Money.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.debug.xcconfig"; sourceTree = "<group>"; }; - 6557F4AF1BEACBAB003CD2BF /* Custom Money.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Custom Money.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 6557F4B21BEACBAB003CD2BF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; - 6557F4B41BEACBAB003CD2BF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; }; - 6557F4B71BEACBAB003CD2BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; - 6557F4B91BEACBAB003CD2BF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; - 6557F4BC1BEACBAB003CD2BF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; - 6557F4BE1BEACBAB003CD2BF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; - 6557F4C41BEACCA2003CD2BF /* Currencies.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Currencies.swift; sourceTree = "<group>"; }; - B7C36A00E5A068833F1ABAC8 /* Pods_Custom_Money.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Custom_Money.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - FD1CC1E65FBD4CF149DE88A7 /* Pods-Custom Money.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Custom Money.release.xcconfig"; path = "Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.release.xcconfig"; sourceTree = "<group>"; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 6557F4AC1BEACBAB003CD2BF /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - CCAD2E0AC5B63470D9132683 /* Pods_Custom_Money.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 1772214E578AC43BA791BDDB /* Frameworks */ = { - isa = PBXGroup; - children = ( - B7C36A00E5A068833F1ABAC8 /* Pods_Custom_Money.framework */, - ); - name = Frameworks; - sourceTree = "<group>"; - }; - 6557F4A61BEACBAB003CD2BF = { - isa = PBXGroup; - children = ( - 6557F4B11BEACBAB003CD2BF /* Custom Money */, - 6557F4B01BEACBAB003CD2BF /* Products */, - 9EB48F1098E882560DF9AFF6 /* Pods */, - 1772214E578AC43BA791BDDB /* Frameworks */, - ); - sourceTree = "<group>"; - }; - 6557F4B01BEACBAB003CD2BF /* Products */ = { - isa = PBXGroup; - children = ( - 6557F4AF1BEACBAB003CD2BF /* Custom Money.app */, - ); - name = Products; - sourceTree = "<group>"; - }; - 6557F4B11BEACBAB003CD2BF /* Custom Money */ = { - isa = PBXGroup; - children = ( - 6557F4BE1BEACBAB003CD2BF /* Info.plist */, - 6557F4B21BEACBAB003CD2BF /* AppDelegate.swift */, - 6557F4C41BEACCA2003CD2BF /* Currencies.swift */, - 6557F4B41BEACBAB003CD2BF /* ViewController.swift */, - 6557F4B91BEACBAB003CD2BF /* Assets.xcassets */, - 6557F4BB1BEACBAB003CD2BF /* LaunchScreen.storyboard */, - 6557F4B61BEACBAB003CD2BF /* Main.storyboard */, - ); - path = "Custom Money"; - sourceTree = "<group>"; - }; - 9EB48F1098E882560DF9AFF6 /* Pods */ = { - isa = PBXGroup; - children = ( - 27DD6DC0FB0700753D5A773C /* Pods-Custom Money.debug.xcconfig */, - FD1CC1E65FBD4CF149DE88A7 /* Pods-Custom Money.release.xcconfig */, - ); - name = Pods; - sourceTree = "<group>"; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 6557F4AE1BEACBAB003CD2BF /* Custom Money */ = { - isa = PBXNativeTarget; - buildConfigurationList = 6557F4C11BEACBAB003CD2BF /* Build configuration list for PBXNativeTarget "Custom Money" */; - buildPhases = ( - A29DCC8CFC4FF9494BCBC9E4 /* Check Pods Manifest.lock */, - 6557F4AB1BEACBAB003CD2BF /* Sources */, - 6557F4AC1BEACBAB003CD2BF /* Frameworks */, - 6557F4AD1BEACBAB003CD2BF /* Resources */, - 832DC70C773DE13EEBE861E3 /* Embed Pods Frameworks */, - 141A924FCF80CDB9B7B98D7F /* Copy Pods Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Custom Money"; - productName = "Custom Money"; - productReference = 6557F4AF1BEACBAB003CD2BF /* Custom Money.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 6557F4A71BEACBAB003CD2BF /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0710; - LastUpgradeCheck = 0710; - ORGANIZATIONNAME = "Daniel Thorpe"; - TargetAttributes = { - 6557F4AE1BEACBAB003CD2BF = { - CreatedOnToolsVersion = 7.1; - }; - }; - }; - buildConfigurationList = 6557F4AA1BEACBAB003CD2BF /* Build configuration list for PBXProject "Custom Money" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 6557F4A61BEACBAB003CD2BF; - productRefGroup = 6557F4B01BEACBAB003CD2BF /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 6557F4AE1BEACBAB003CD2BF /* Custom Money */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 6557F4AD1BEACBAB003CD2BF /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6557F4BD1BEACBAB003CD2BF /* LaunchScreen.storyboard in Resources */, - 6557F4BA1BEACBAB003CD2BF /* Assets.xcassets in Resources */, - 6557F4B81BEACBAB003CD2BF /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 141A924FCF80CDB9B7B98D7F /* Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - 832DC70C773DE13EEBE861E3 /* Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; - A29DCC8CFC4FF9494BCBC9E4 /* Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 6557F4AB1BEACBAB003CD2BF /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6557F4C51BEACCA2003CD2BF /* Currencies.swift in Sources */, - 6557F4B51BEACBAB003CD2BF /* ViewController.swift in Sources */, - 6557F4B31BEACBAB003CD2BF /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 6557F4B61BEACBAB003CD2BF /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 6557F4B71BEACBAB003CD2BF /* Base */, - ); - name = Main.storyboard; - sourceTree = "<group>"; - }; - 6557F4BB1BEACBAB003CD2BF /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 6557F4BC1BEACBAB003CD2BF /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = "<group>"; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 6557F4BF1BEACBAB003CD2BF /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 6557F4C01BEACBAB003CD2BF /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 6557F4C21BEACBAB003CD2BF /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 27DD6DC0FB0700753D5A773C /* Pods-Custom Money.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "Custom Money/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "me.danthorpe.Custom-Money"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 6557F4C31BEACBAB003CD2BF /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FD1CC1E65FBD4CF149DE88A7 /* Pods-Custom Money.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - INFOPLIST_FILE = "Custom Money/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = "me.danthorpe.Custom-Money"; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 6557F4AA1BEACBAB003CD2BF /* Build configuration list for PBXProject "Custom Money" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6557F4BF1BEACBAB003CD2BF /* Debug */, - 6557F4C01BEACBAB003CD2BF /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 6557F4C11BEACBAB003CD2BF /* Build configuration list for PBXNativeTarget "Custom Money" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 6557F4C21BEACBAB003CD2BF /* Debug */, - 6557F4C31BEACBAB003CD2BF /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 6557F4A71BEACBAB003CD2BF /* Project object */; -} diff --git a/Examples/Custom Money/Custom Money.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/Custom Money/Custom Money.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index de2c059..0000000 --- a/Examples/Custom Money/Custom Money.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Workspace - version = "1.0"> - <FileRef - location = "self:Custom Money.xcodeproj"> - </FileRef> -</Workspace> diff --git a/Examples/Custom Money/Custom Money.xcworkspace/contents.xcworkspacedata b/Examples/Custom Money/Custom Money.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 8fe652d..0000000 --- a/Examples/Custom Money/Custom Money.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Workspace - version = "1.0"> - <FileRef - location = "group:Custom Money.xcodeproj"> - </FileRef> - <FileRef - location = "group:Pods/Pods.xcodeproj"> - </FileRef> -</Workspace> diff --git a/Examples/Custom Money/Custom Money/AppDelegate.swift b/Examples/Custom Money/Custom Money/AppDelegate.swift deleted file mode 100644 index 6a301a3..0000000 --- a/Examples/Custom Money/Custom Money/AppDelegate.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// Custom Money -// -// Created by Daniel Thorpe on 04/11/2015. -// Copyright © 2015 Daniel Thorpe. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } - - func applicationWillEnterForeground(application: UIApplication) { - // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - func applicationWillTerminate(application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } - - -} - diff --git a/Examples/Custom Money/Custom Money/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/Custom Money/Custom Money/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 36d2c80..0000000 --- a/Examples/Custom Money/Custom Money/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/Custom Money/Custom Money/Base.lproj/LaunchScreen.storyboard b/Examples/Custom Money/Custom Money/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 2e721e1..0000000 --- a/Examples/Custom Money/Custom Money/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM"> - <dependencies> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/> - </dependencies> - <scenes> - <!--View Controller--> - <scene sceneID="EHf-IW-A2E"> - <objects> - <viewController id="01J-lp-oVM" sceneMemberID="viewController"> - <layoutGuides> - <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> - <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> - </layoutGuides> - <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> - <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> - <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> - <animations/> - <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> - </view> - </viewController> - <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> - </objects> - <point key="canvasLocation" x="53" y="375"/> - </scene> - </scenes> -</document> diff --git a/Examples/Custom Money/Custom Money/Base.lproj/Main.storyboard b/Examples/Custom Money/Custom Money/Base.lproj/Main.storyboard deleted file mode 100644 index 3a2a49b..0000000 --- a/Examples/Custom Money/Custom Money/Base.lproj/Main.storyboard +++ /dev/null @@ -1,25 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> - <dependencies> - <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/> - </dependencies> - <scenes> - <!--View Controller--> - <scene sceneID="tne-QT-ifu"> - <objects> - <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController"> - <layoutGuides> - <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> - <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> - </layoutGuides> - <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> - <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> - <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> - <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> - </view> - </viewController> - <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> - </objects> - </scene> - </scenes> -</document> diff --git a/Examples/Custom Money/Custom Money/Currencies.swift b/Examples/Custom Money/Custom Money/Currencies.swift deleted file mode 100644 index 5a504a4..0000000 --- a/Examples/Custom Money/Custom Money/Currencies.swift +++ /dev/null @@ -1,100 +0,0 @@ -// -// Currencies.swift -// Custom Money -// -// Created by Daniel Thorpe on 04/11/2015. -// Copyright © 2015 Daniel Thorpe. All rights reserved. -// - -import Foundation -import Money - -protocol MyCustomCurrencyType: CustomCurrencyType { } - -extension Currency { - - final class Heart: MyCustomCurrencyType { - - static let code: String = "HEARTS" - static let scale: Int = 0 - static let formatter: NSNumberFormatter = { - let fmtr = NSNumberFormatter() - fmtr.numberStyle = .CurrencyStyle - fmtr.maximumFractionDigits = Currency.Heart.scale - fmtr.currencySymbol = "❤️" - fmtr.internationalCurrencySymbol = Currency.Heart.code - let locale = NSLocale.currentLocale() - fmtr.currencyGroupingSeparator = locale.currencyGroupingSeparator - fmtr.currencyDecimalSeparator = locale.currencyDecimalSeparator - return fmtr - }() - } - - final class Bee: MyCustomCurrencyType { - - static let code: String = "BEES" - static let scale: Int = 0 - static let formatter: NSNumberFormatter = { - let fmtr = NSNumberFormatter() - fmtr.numberStyle = .CurrencyStyle - fmtr.maximumFractionDigits = Currency.Bee.scale - fmtr.currencySymbol = "🐝" - fmtr.internationalCurrencySymbol = Currency.Bee.code - let locale = NSLocale.currentLocale() - fmtr.currencyGroupingSeparator = locale.currencyGroupingSeparator - fmtr.currencyDecimalSeparator = locale.currencyDecimalSeparator - return fmtr - }() - } -} - -typealias Hearts = _Money<Currency.Heart> -typealias Bees = _Money<Currency.Bee> - - -/** - This would require the FX module - -class BankRates { - - static func quoteForBase(base: String, counter: String) -> FXQuote { - return FXQuote(rate: sharedInstance.rates[base]![counter]!) - } - - static let sharedInstance = BankRates() - - let rates: [String: [String: BankersDecimal]] - - init() { - rates = [ - "BEES": [ - "BEES": 1.1, - "HEARTS": 0.3 - ], - "HEARTS": [ - "BEES": 7.3859, - "HEARTS": 0.8 - ] - ] - } -} - -class Bank<B: MoneyType, C: MoneyType where - B.Currency: MyCustomCurrencyType, - C.Currency: MyCustomCurrencyType, - B.DecimalStorageType == BankersDecimal.DecimalStorageType, - C.DecimalStorageType == BankersDecimal.DecimalStorageType>: FXLocalProviderType { - - typealias BaseMoney = B - typealias CounterMoney = C - - static func name() -> String { - return "App Bank" - } - - static func quote() -> FXQuote { - return BankRates.quoteForBase(BaseMoney.Currency.code, counter: CounterMoney.Currency.code) - } -} - - -*/ diff --git a/Examples/Custom Money/Custom Money/Info.plist b/Examples/Custom Money/Custom Money/Info.plist deleted file mode 100644 index 40c6215..0000000 --- a/Examples/Custom Money/Custom Money/Info.plist +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>CFBundleDevelopmentRegion</key> - <string>en</string> - <key>CFBundleExecutable</key> - <string>$(EXECUTABLE_NAME)</string> - <key>CFBundleIdentifier</key> - <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundleName</key> - <string>$(PRODUCT_NAME)</string> - <key>CFBundlePackageType</key> - <string>APPL</string> - <key>CFBundleShortVersionString</key> - <string>1.0</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleVersion</key> - <string>1</string> - <key>LSRequiresIPhoneOS</key> - <true/> - <key>UILaunchStoryboardName</key> - <string>LaunchScreen</string> - <key>UIMainStoryboardFile</key> - <string>Main</string> - <key>UIRequiredDeviceCapabilities</key> - <array> - <string>armv7</string> - </array> - <key>UISupportedInterfaceOrientations</key> - <array> - <string>UIInterfaceOrientationPortrait</string> - <string>UIInterfaceOrientationLandscapeLeft</string> - <string>UIInterfaceOrientationLandscapeRight</string> - </array> - <key>UISupportedInterfaceOrientations~ipad</key> - <array> - <string>UIInterfaceOrientationPortrait</string> - <string>UIInterfaceOrientationPortraitUpsideDown</string> - <string>UIInterfaceOrientationLandscapeLeft</string> - <string>UIInterfaceOrientationLandscapeRight</string> - </array> -</dict> -</plist> diff --git a/Examples/Custom Money/Custom Money/ViewController.swift b/Examples/Custom Money/Custom Money/ViewController.swift deleted file mode 100644 index c43a0a7..0000000 --- a/Examples/Custom Money/Custom Money/ViewController.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// ViewController.swift -// Custom Money -// -// Created by Daniel Thorpe on 04/11/2015. -// Copyright © 2015 Daniel Thorpe. All rights reserved. -// - -import UIKit -import Money - -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - - let hearts: Hearts = 8.7 - let bees: Bees = 3.4 - - print("You have \(hearts) and \(bees)") - -/** - This would require importing MoneyFX instead - - let total = Bank<Hearts,Bees>.fx(hearts).counter + bees - print("Exchanging your \(hearts) into \(Currency.Bee.symbol) via the bank gives you \(total) in total.") - -*/ - } -} - diff --git a/Examples/Custom Money/Podfile b/Examples/Custom Money/Podfile deleted file mode 100644 index 8fa7170..0000000 --- a/Examples/Custom Money/Podfile +++ /dev/null @@ -1,6 +0,0 @@ -use_frameworks! - -target 'Custom Money' do - pod 'Money', :path => '../../' -end - diff --git a/Examples/Custom Money/Podfile.lock b/Examples/Custom Money/Podfile.lock deleted file mode 100644 index ee84530..0000000 --- a/Examples/Custom Money/Podfile.lock +++ /dev/null @@ -1,17 +0,0 @@ -PODS: - - Money (1.5.1): - - ValueCoding - - ValueCoding (1.2.0) - -DEPENDENCIES: - - Money (from `../../`) - -EXTERNAL SOURCES: - Money: - :path: "../../" - -SPEC CHECKSUMS: - Money: b3939e8ec686118a6525fe2ff4bed5e55af4a0e1 - ValueCoding: e2f7d8fee288debd762b655a8e0ba933985a6b57 - -COCOAPODS: 0.39.0 diff --git a/Examples/Custom Money/Pods/Local Podspecs/Money.podspec.json b/Examples/Custom Money/Pods/Local Podspecs/Money.podspec.json deleted file mode 100644 index 2c73f8c..0000000 --- a/Examples/Custom Money/Pods/Local Podspecs/Money.podspec.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "Money", - "version": "1.5.1", - "summary": "Swift types for working with Money.", - "description": "Money is a Swift cross platform framework for iOS, watchOS, tvOS and OS X. \n\nIt provides types and functionality to help represent and manipulate money \nand currency related information.", - "homepage": "https://github.com/danthorpe/Money", - "license": "MIT", - "authors": { - "Daniel Thorpe": "@danthorpe" - }, - "source": { - "git": "https://github.com/danthorpe/Money.git", - "tag": "1.5.1" - }, - "module_name": "Money", - "documentation_url": "http://docs.danthorpe.me/money/1.5.1/index.html", - "social_media_url": "https://twitter.com/danthorpe", - "requires_arc": true, - "platforms": { - "ios": "8.0", - "osx": "10.10", - "tvos": "9.0", - "watchos": "2.0" - }, - "source_files": [ - "Money/Shared/*.swift", - "Money/Shared/**/*.swift", - "Money/iOS" - ], - "osx": { - "exclude_files": [ - "Money/iOS" - ] - }, - "watchos": { - "exclude_files": [ - "Money/iOS" - ] - }, - "tvos": { - "exclude_files": [ - "Money/iOS" - ] - }, - "dependencies": { - "ValueCoding": [ - - ] - } -} diff --git a/Examples/Custom Money/Pods/Manifest.lock b/Examples/Custom Money/Pods/Manifest.lock deleted file mode 100644 index ee84530..0000000 --- a/Examples/Custom Money/Pods/Manifest.lock +++ /dev/null @@ -1,17 +0,0 @@ -PODS: - - Money (1.5.1): - - ValueCoding - - ValueCoding (1.2.0) - -DEPENDENCIES: - - Money (from `../../`) - -EXTERNAL SOURCES: - Money: - :path: "../../" - -SPEC CHECKSUMS: - Money: b3939e8ec686118a6525fe2ff4bed5e55af4a0e1 - ValueCoding: e2f7d8fee288debd762b655a8e0ba933985a6b57 - -COCOAPODS: 0.39.0 diff --git a/Examples/Custom Money/Pods/Pods.xcodeproj/project.pbxproj b/Examples/Custom Money/Pods/Pods.xcodeproj/project.pbxproj deleted file mode 100644 index 6df2848..0000000 --- a/Examples/Custom Money/Pods/Pods.xcodeproj/project.pbxproj +++ /dev/null @@ -1,767 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 0BB1D7DC86AF7A27E217FA967D166FDE /* Support.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E845BEE55854CFF558172C1C2537C56 /* Support.swift */; }; - 1B2C5B155FD9576F36DBDD378BF35CA2 /* Locale.swift in Sources */ = {isa = PBXBuildFile; fileRef = 13390C2B50CCFAD30AA3185211BA033F /* Locale.swift */; }; - 1FFC5F9C4DC3AC6A965F4CA02F4EABA7 /* ValueCoding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 16E5D033D4E56FCCDA51AF4B82E8833B /* ValueCoding.swift */; }; - 2B3F00C1A99FA65559FD9D556FD82DEB /* Currency.swift in Sources */ = {isa = PBXBuildFile; fileRef = 410C601B05E31125EBFE771678B9EF52 /* Currency.swift */; }; - 3724442DD3210CD39C0D04ECC00A3D31 /* Autogenerated.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F2AD72B9E4878BB0875BBC705D8EE51 /* Autogenerated.swift */; }; - 56B81E40E7225F8A3CFAAC50B96747E3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B83D9AFDFB742C56E022B4AA0CDC158F /* Foundation.framework */; }; - 6A51C615EBA79FCB378018F0C848F5FE /* ValueCoding-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FD1C6097856C892660CC2D780125AEFB /* ValueCoding-dummy.m */; }; - 75D3B4AE3788BA3D1AE9885E9C9E6E82 /* Pods-Custom Money-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9600516FB0E389F99DD6A409A89CA451 /* Pods-Custom Money-dummy.m */; }; - 78E45678E3EBA8C181CF2CEA04307659 /* Money-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 8689B0915191F6FC3B6A0628A6CB5D71 /* Money-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 97F2C30620812AEEF914A1D4197C4ECE /* Bitcoin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04C4C3723005BF9BD71F48209715A3B5 /* Bitcoin.swift */; }; - A7FE509526C5C34C71DEAA3A1910BED9 /* NSDecimalNumberExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6472CDE547C6BD52B866F28EBA1A77EE /* NSDecimalNumberExtensions.swift */; }; - AB25D7F606B76DF54BB019AD6925B0D6 /* NSDecimalExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = FEC6AB3C9983B456BEC89D265001476D /* NSDecimalExtensions.swift */; }; - AC9FEF5458563CEF3A8F5817E9CE8398 /* Pods-Custom Money-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3D3CEE659D9C1D3DEA521E896D331964 /* Pods-Custom Money-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - BEC37EB752772C5BBF653A4A1D7F0AC4 /* Decimal.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41899C22A0000BC7587BEAC904F5CD95 /* Decimal.swift */; }; - C2BA97C228030775ABC83F6396CABCB1 /* ValueCoding-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C3D2F3409B96C2E5BED5ECF6463637E7 /* ValueCoding-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; - C4E4CE3E880017017A4B48D5CCFC638B /* DecimalNumberType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 490CCA5C7A0E21DE18802A0FC35C4372 /* DecimalNumberType.swift */; }; - CBC69EB44CFE76D9E5041FCF08D0E011 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B83D9AFDFB742C56E022B4AA0CDC158F /* Foundation.framework */; }; - CF6266B34B34933D7C0F69971B53ADDB /* ApplePay.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09A7BDAF606BBEA6690D697164B25D64 /* ApplePay.swift */; }; - E744B80B1F5A07DB3756F4C58926DA27 /* Money-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 6C22C68F5162837507ABB2E5CBA7243A /* Money-dummy.m */; }; - EC27F4A4DE420EC11BBF4E3F873FF55B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B83D9AFDFB742C56E022B4AA0CDC158F /* Foundation.framework */; }; - F2CD323787952EBDAB8D1BFE25A1E901 /* Money.swift in Sources */ = {isa = PBXBuildFile; fileRef = D19D69FDBAF421094211FAC6684DEA4A /* Money.swift */; }; - FA658B0930DC1FD47F6B1E1DE851D06A /* ValueCoding.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF15F79E6A81866AB72533004E067E26 /* ValueCoding.framework */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 7508ABB172281CBD4726F6E5BE2A3967 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 145A9F3DB68CB80ACFF30D6C4E013D46; - remoteInfo = ValueCoding; - }; - 950F7FE10BCA8FFAEC8ED0B3C5E64C47 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5987C803818DB2CBEAB2317CF1754330; - remoteInfo = Money; - }; - D05B804F17E203D12A32956058419ED7 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 145A9F3DB68CB80ACFF30D6C4E013D46; - remoteInfo = ValueCoding; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 04C4C3723005BF9BD71F48209715A3B5 /* Bitcoin.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Bitcoin.swift; sourceTree = "<group>"; }; - 09A7BDAF606BBEA6690D697164B25D64 /* ApplePay.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ApplePay.swift; sourceTree = "<group>"; }; - 0F2AD72B9E4878BB0875BBC705D8EE51 /* Autogenerated.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Autogenerated.swift; sourceTree = "<group>"; }; - 13390C2B50CCFAD30AA3185211BA033F /* Locale.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Locale.swift; sourceTree = "<group>"; }; - 16E5D033D4E56FCCDA51AF4B82E8833B /* ValueCoding.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ValueCoding.swift; path = ValueCoding/ValueCoding.swift; sourceTree = "<group>"; }; - 1C6E95301D4D870CC657C84CF6E99969 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; - 2E845BEE55854CFF558172C1C2537C56 /* Support.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Support.swift; sourceTree = "<group>"; }; - 3946E597A9D0AC3D75CAFD24BDAFD80E /* Money-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Money-prefix.pch"; sourceTree = "<group>"; }; - 3D3CEE659D9C1D3DEA521E896D331964 /* Pods-Custom Money-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Custom Money-umbrella.h"; sourceTree = "<group>"; }; - 410C601B05E31125EBFE771678B9EF52 /* Currency.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Currency.swift; sourceTree = "<group>"; }; - 41899C22A0000BC7587BEAC904F5CD95 /* Decimal.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Decimal.swift; sourceTree = "<group>"; }; - 490CCA5C7A0E21DE18802A0FC35C4372 /* DecimalNumberType.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = DecimalNumberType.swift; sourceTree = "<group>"; }; - 6472CDE547C6BD52B866F28EBA1A77EE /* NSDecimalNumberExtensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NSDecimalNumberExtensions.swift; sourceTree = "<group>"; }; - 6668142B4A7F7A5DE42435220C510B8F /* Money.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Money.xcconfig; sourceTree = "<group>"; }; - 6C22C68F5162837507ABB2E5CBA7243A /* Money-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Money-dummy.m"; sourceTree = "<group>"; }; - 7213835428667BBA6B07743E6F4B8121 /* ValueCoding.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ValueCoding.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 7493F7F104BA60971A5E0230D9A9DAFC /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; - 7C2CCEE8C72DE73CB82FB24576B1832D /* ValueCoding.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ValueCoding.modulemap; sourceTree = "<group>"; }; - 83480F8F94E599798D9FFD36B467F76C /* Money.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = Money.modulemap; sourceTree = "<group>"; }; - 8689B0915191F6FC3B6A0628A6CB5D71 /* Money-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Money-umbrella.h"; sourceTree = "<group>"; }; - 929E2636E2B7609704F1838F5FFEDCD7 /* ValueCoding-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ValueCoding-prefix.pch"; sourceTree = "<group>"; }; - 946FC5A04C491594712C2DB0468A8E59 /* Pods-Custom Money-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Custom Money-frameworks.sh"; sourceTree = "<group>"; }; - 9600516FB0E389F99DD6A409A89CA451 /* Pods-Custom Money-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Custom Money-dummy.m"; sourceTree = "<group>"; }; - 9678D4111A5AF8A6BB307124E11DCA92 /* Pods-Custom Money-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Custom Money-resources.sh"; sourceTree = "<group>"; }; - A2F79DED6A9E3EE0A847EFADEBDEB815 /* Pods_Custom_Money.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Custom_Money.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A6DD5137FE8F22C2424D946F7E8D8D68 /* Pods-Custom Money-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Custom Money-acknowledgements.markdown"; sourceTree = "<group>"; }; - B83D9AFDFB742C56E022B4AA0CDC158F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; - BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; - BF15F79E6A81866AB72533004E067E26 /* ValueCoding.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ValueCoding.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - C3461681C9E35896A154A3D8722352D1 /* Pods-Custom Money-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Custom Money-acknowledgements.plist"; sourceTree = "<group>"; }; - C3D2F3409B96C2E5BED5ECF6463637E7 /* ValueCoding-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ValueCoding-umbrella.h"; sourceTree = "<group>"; }; - C6AD9E331A620215773EDAE3D38920CB /* Pods-Custom Money.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Custom Money.release.xcconfig"; sourceTree = "<group>"; }; - D19D69FDBAF421094211FAC6684DEA4A /* Money.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Money.swift; sourceTree = "<group>"; }; - D3F2B752C29D13FEC643AB1DFAD68B3E /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; - DF6284F39323D79B75BEEB8C366DE87C /* Pods-Custom Money.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Custom Money.debug.xcconfig"; sourceTree = "<group>"; }; - E0F4EC97A30E717F5C269B7994D3F913 /* Money.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Money.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - E49908B24AD506059D7A267BC1530E5C /* ValueCoding.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ValueCoding.xcconfig; sourceTree = "<group>"; }; - F50C4C662DD8A2616FF07C3827D2AAC0 /* Pods-Custom Money.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-Custom Money.modulemap"; sourceTree = "<group>"; }; - FD1C6097856C892660CC2D780125AEFB /* ValueCoding-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ValueCoding-dummy.m"; sourceTree = "<group>"; }; - FEC6AB3C9983B456BEC89D265001476D /* NSDecimalExtensions.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = NSDecimalExtensions.swift; sourceTree = "<group>"; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - B07461545930B9D70B366C22C7AF74E9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - CBC69EB44CFE76D9E5041FCF08D0E011 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C7FFB008B3970BBB283EE396E6F77A54 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 56B81E40E7225F8A3CFAAC50B96747E3 /* Foundation.framework in Frameworks */, - FA658B0930DC1FD47F6B1E1DE851D06A /* ValueCoding.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - E67AD8029B756100E09AD54859700481 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - EC27F4A4DE420EC11BBF4E3F873FF55B /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 073CCC950E85E0E8084055D8C1FDA667 /* iOS */ = { - isa = PBXGroup; - children = ( - B83D9AFDFB742C56E022B4AA0CDC158F /* Foundation.framework */, - ); - name = iOS; - sourceTree = "<group>"; - }; - 149ED7FE9D77119120A399A5DED24BB3 /* Support Files */ = { - isa = PBXGroup; - children = ( - 1C6E95301D4D870CC657C84CF6E99969 /* Info.plist */, - 7C2CCEE8C72DE73CB82FB24576B1832D /* ValueCoding.modulemap */, - E49908B24AD506059D7A267BC1530E5C /* ValueCoding.xcconfig */, - FD1C6097856C892660CC2D780125AEFB /* ValueCoding-dummy.m */, - 929E2636E2B7609704F1838F5FFEDCD7 /* ValueCoding-prefix.pch */, - C3D2F3409B96C2E5BED5ECF6463637E7 /* ValueCoding-umbrella.h */, - ); - name = "Support Files"; - path = "../Target Support Files/ValueCoding"; - sourceTree = "<group>"; - }; - 16515D0AC36B6721CED3473C7CCC3BED /* Products */ = { - isa = PBXGroup; - children = ( - E0F4EC97A30E717F5C269B7994D3F913 /* Money.framework */, - A2F79DED6A9E3EE0A847EFADEBDEB815 /* Pods_Custom_Money.framework */, - 7213835428667BBA6B07743E6F4B8121 /* ValueCoding.framework */, - ); - name = Products; - sourceTree = "<group>"; - }; - 37FC7D49E06169F9EEE81FBA6366BDB9 /* Pods-Custom Money */ = { - isa = PBXGroup; - children = ( - D3F2B752C29D13FEC643AB1DFAD68B3E /* Info.plist */, - F50C4C662DD8A2616FF07C3827D2AAC0 /* Pods-Custom Money.modulemap */, - A6DD5137FE8F22C2424D946F7E8D8D68 /* Pods-Custom Money-acknowledgements.markdown */, - C3461681C9E35896A154A3D8722352D1 /* Pods-Custom Money-acknowledgements.plist */, - 9600516FB0E389F99DD6A409A89CA451 /* Pods-Custom Money-dummy.m */, - 946FC5A04C491594712C2DB0468A8E59 /* Pods-Custom Money-frameworks.sh */, - 9678D4111A5AF8A6BB307124E11DCA92 /* Pods-Custom Money-resources.sh */, - 3D3CEE659D9C1D3DEA521E896D331964 /* Pods-Custom Money-umbrella.h */, - DF6284F39323D79B75BEEB8C366DE87C /* Pods-Custom Money.debug.xcconfig */, - C6AD9E331A620215773EDAE3D38920CB /* Pods-Custom Money.release.xcconfig */, - ); - name = "Pods-Custom Money"; - path = "Target Support Files/Pods-Custom Money"; - sourceTree = "<group>"; - }; - 574599CEBF6435496FDDAB2B29221620 /* FX */ = { - isa = PBXGroup; - children = ( - 04C4C3723005BF9BD71F48209715A3B5 /* Bitcoin.swift */, - ); - path = FX; - sourceTree = "<group>"; - }; - 77E13A9F9549183182D57E4F6BC47B75 /* ValueCoding */ = { - isa = PBXGroup; - children = ( - 16E5D033D4E56FCCDA51AF4B82E8833B /* ValueCoding.swift */, - 149ED7FE9D77119120A399A5DED24BB3 /* Support Files */, - ); - path = ValueCoding; - sourceTree = "<group>"; - }; - 7DB346D0F39D3F0E887471402A8071AB = { - isa = PBXGroup; - children = ( - BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, - CAC5A6648E74B35CD2E9377F99CF2FF6 /* Development Pods */, - C0DC8A3AB5D4AF41984AEF1011AF1A31 /* Frameworks */, - EC230470351D26B1680E4C1C95EFBC63 /* Pods */, - 16515D0AC36B6721CED3473C7CCC3BED /* Products */, - CC000F6A87092A7C760D60A29FA15A12 /* Targets Support Files */, - ); - sourceTree = "<group>"; - }; - 8D59A58B70DAF9946A845D36D06BF1D1 /* Decimal */ = { - isa = PBXGroup; - children = ( - 41899C22A0000BC7587BEAC904F5CD95 /* Decimal.swift */, - 490CCA5C7A0E21DE18802A0FC35C4372 /* DecimalNumberType.swift */, - FEC6AB3C9983B456BEC89D265001476D /* NSDecimalExtensions.swift */, - 6472CDE547C6BD52B866F28EBA1A77EE /* NSDecimalNumberExtensions.swift */, - ); - path = Decimal; - sourceTree = "<group>"; - }; - 8EECE84127C724CBF2DA747FDAD1ECBE /* Money */ = { - isa = PBXGroup; - children = ( - E5498F1F4B28BB7BA4A01D3CA741DBC9 /* Money */, - EAA430956243F34196DE176B903AA873 /* Support Files */, - ); - name = Money; - path = ../../..; - sourceTree = "<group>"; - }; - C0DC8A3AB5D4AF41984AEF1011AF1A31 /* Frameworks */ = { - isa = PBXGroup; - children = ( - BF15F79E6A81866AB72533004E067E26 /* ValueCoding.framework */, - 073CCC950E85E0E8084055D8C1FDA667 /* iOS */, - ); - name = Frameworks; - sourceTree = "<group>"; - }; - C47F2907133A2F3B86AD83E7515FF818 /* iOS */ = { - isa = PBXGroup; - children = ( - 09A7BDAF606BBEA6690D697164B25D64 /* ApplePay.swift */, - ); - path = iOS; - sourceTree = "<group>"; - }; - CAC5A6648E74B35CD2E9377F99CF2FF6 /* Development Pods */ = { - isa = PBXGroup; - children = ( - 8EECE84127C724CBF2DA747FDAD1ECBE /* Money */, - ); - name = "Development Pods"; - sourceTree = "<group>"; - }; - CC000F6A87092A7C760D60A29FA15A12 /* Targets Support Files */ = { - isa = PBXGroup; - children = ( - 37FC7D49E06169F9EEE81FBA6366BDB9 /* Pods-Custom Money */, - ); - name = "Targets Support Files"; - sourceTree = "<group>"; - }; - E5498F1F4B28BB7BA4A01D3CA741DBC9 /* Money */ = { - isa = PBXGroup; - children = ( - C47F2907133A2F3B86AD83E7515FF818 /* iOS */, - FA5FD4F129837372A067F28D04A294A5 /* Shared */, - ); - path = Money; - sourceTree = "<group>"; - }; - EAA430956243F34196DE176B903AA873 /* Support Files */ = { - isa = PBXGroup; - children = ( - 7493F7F104BA60971A5E0230D9A9DAFC /* Info.plist */, - 83480F8F94E599798D9FFD36B467F76C /* Money.modulemap */, - 6668142B4A7F7A5DE42435220C510B8F /* Money.xcconfig */, - 6C22C68F5162837507ABB2E5CBA7243A /* Money-dummy.m */, - 3946E597A9D0AC3D75CAFD24BDAFD80E /* Money-prefix.pch */, - 8689B0915191F6FC3B6A0628A6CB5D71 /* Money-umbrella.h */, - ); - name = "Support Files"; - path = "Examples/Custom Money/Pods/Target Support Files/Money"; - sourceTree = "<group>"; - }; - EC230470351D26B1680E4C1C95EFBC63 /* Pods */ = { - isa = PBXGroup; - children = ( - 77E13A9F9549183182D57E4F6BC47B75 /* ValueCoding */, - ); - name = Pods; - sourceTree = "<group>"; - }; - FA5FD4F129837372A067F28D04A294A5 /* Shared */ = { - isa = PBXGroup; - children = ( - 0F2AD72B9E4878BB0875BBC705D8EE51 /* Autogenerated.swift */, - 410C601B05E31125EBFE771678B9EF52 /* Currency.swift */, - 13390C2B50CCFAD30AA3185211BA033F /* Locale.swift */, - D19D69FDBAF421094211FAC6684DEA4A /* Money.swift */, - 2E845BEE55854CFF558172C1C2537C56 /* Support.swift */, - 8D59A58B70DAF9946A845D36D06BF1D1 /* Decimal */, - 574599CEBF6435496FDDAB2B29221620 /* FX */, - ); - path = Shared; - sourceTree = "<group>"; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 1EC91F506DB615062DB1EE76998157C7 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 78E45678E3EBA8C181CF2CEA04307659 /* Money-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 43B577D3072166715FB1CB9E59538144 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - C2BA97C228030775ABC83F6396CABCB1 /* ValueCoding-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - F51C82D8595D02EC335F42152D005344 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - AC9FEF5458563CEF3A8F5817E9CE8398 /* Pods-Custom Money-umbrella.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 044CBC9CD9F02629B81918713A80D096 /* Pods-Custom Money */ = { - isa = PBXNativeTarget; - buildConfigurationList = 22BF802648EDEEC7EF085E2FD6178B52 /* Build configuration list for PBXNativeTarget "Pods-Custom Money" */; - buildPhases = ( - 87059981AA49FB79C63CE567AC2A0B86 /* Sources */, - B07461545930B9D70B366C22C7AF74E9 /* Frameworks */, - F51C82D8595D02EC335F42152D005344 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - A5A6C9F3A008999255C789724677A538 /* PBXTargetDependency */, - 25B151FF84DE6ADB378010B2D2AA9AEA /* PBXTargetDependency */, - ); - name = "Pods-Custom Money"; - productName = "Pods-Custom Money"; - productReference = A2F79DED6A9E3EE0A847EFADEBDEB815 /* Pods_Custom_Money.framework */; - productType = "com.apple.product-type.framework"; - }; - 145A9F3DB68CB80ACFF30D6C4E013D46 /* ValueCoding */ = { - isa = PBXNativeTarget; - buildConfigurationList = 426921AA4E34588D2124AD73A0FC34FB /* Build configuration list for PBXNativeTarget "ValueCoding" */; - buildPhases = ( - ED8C68CABEAB65613DA353265502E08F /* Sources */, - E67AD8029B756100E09AD54859700481 /* Frameworks */, - 43B577D3072166715FB1CB9E59538144 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = ValueCoding; - productName = ValueCoding; - productReference = 7213835428667BBA6B07743E6F4B8121 /* ValueCoding.framework */; - productType = "com.apple.product-type.framework"; - }; - 5987C803818DB2CBEAB2317CF1754330 /* Money */ = { - isa = PBXNativeTarget; - buildConfigurationList = A25CD3E75B36B6D9EED120659C3F5A64 /* Build configuration list for PBXNativeTarget "Money" */; - buildPhases = ( - C9143C603AA6D78141BC1895733399FC /* Sources */, - C7FFB008B3970BBB283EE396E6F77A54 /* Frameworks */, - 1EC91F506DB615062DB1EE76998157C7 /* Headers */, - ); - buildRules = ( - ); - dependencies = ( - 4EC0085940BE7736C2F28609C830E902 /* PBXTargetDependency */, - ); - name = Money; - productName = Money; - productReference = E0F4EC97A30E717F5C269B7994D3F913 /* Money.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0700; - LastUpgradeCheck = 0700; - }; - buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 7DB346D0F39D3F0E887471402A8071AB; - productRefGroup = 16515D0AC36B6721CED3473C7CCC3BED /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 5987C803818DB2CBEAB2317CF1754330 /* Money */, - 044CBC9CD9F02629B81918713A80D096 /* Pods-Custom Money */, - 145A9F3DB68CB80ACFF30D6C4E013D46 /* ValueCoding */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXSourcesBuildPhase section */ - 87059981AA49FB79C63CE567AC2A0B86 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 75D3B4AE3788BA3D1AE9885E9C9E6E82 /* Pods-Custom Money-dummy.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - C9143C603AA6D78141BC1895733399FC /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - CF6266B34B34933D7C0F69971B53ADDB /* ApplePay.swift in Sources */, - 3724442DD3210CD39C0D04ECC00A3D31 /* Autogenerated.swift in Sources */, - 97F2C30620812AEEF914A1D4197C4ECE /* Bitcoin.swift in Sources */, - 2B3F00C1A99FA65559FD9D556FD82DEB /* Currency.swift in Sources */, - BEC37EB752772C5BBF653A4A1D7F0AC4 /* Decimal.swift in Sources */, - C4E4CE3E880017017A4B48D5CCFC638B /* DecimalNumberType.swift in Sources */, - 1B2C5B155FD9576F36DBDD378BF35CA2 /* Locale.swift in Sources */, - E744B80B1F5A07DB3756F4C58926DA27 /* Money-dummy.m in Sources */, - F2CD323787952EBDAB8D1BFE25A1E901 /* Money.swift in Sources */, - AB25D7F606B76DF54BB019AD6925B0D6 /* NSDecimalExtensions.swift in Sources */, - A7FE509526C5C34C71DEAA3A1910BED9 /* NSDecimalNumberExtensions.swift in Sources */, - 0BB1D7DC86AF7A27E217FA967D166FDE /* Support.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - ED8C68CABEAB65613DA353265502E08F /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 6A51C615EBA79FCB378018F0C848F5FE /* ValueCoding-dummy.m in Sources */, - 1FFC5F9C4DC3AC6A965F4CA02F4EABA7 /* ValueCoding.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 25B151FF84DE6ADB378010B2D2AA9AEA /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = ValueCoding; - target = 145A9F3DB68CB80ACFF30D6C4E013D46 /* ValueCoding */; - targetProxy = D05B804F17E203D12A32956058419ED7 /* PBXContainerItemProxy */; - }; - 4EC0085940BE7736C2F28609C830E902 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = ValueCoding; - target = 145A9F3DB68CB80ACFF30D6C4E013D46 /* ValueCoding */; - targetProxy = 7508ABB172281CBD4726F6E5BE2A3967 /* PBXContainerItemProxy */; - }; - A5A6C9F3A008999255C789724677A538 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Money; - target = 5987C803818DB2CBEAB2317CF1754330 /* Money */; - targetProxy = 950F7FE10BCA8FFAEC8ED0B3C5E64C47 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 36150814459E013DEB9AF9F417320711 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = C6AD9E331A620215773EDAE3D38920CB /* Pods-Custom Money.release.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods-Custom Money/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-Custom Money/Pods-Custom Money.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods_Custom_Money; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 632956B4233A46F42B60E5AA63A45405 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E49908B24AD506059D7A267BC1530E5C /* ValueCoding.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/ValueCoding/ValueCoding-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/ValueCoding/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/ValueCoding/ValueCoding.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = ValueCoding; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 6976B9A4615819C5770AC1883B7E182D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6668142B4A7F7A5DE42435220C510B8F /* Money.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Money/Money-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Money/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Money/Money.modulemap"; - MTL_ENABLE_DEBUG_INFO = NO; - PRODUCT_NAME = Money; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - B85D9C5D956AD770384B10108E777BE1 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 6668142B4A7F7A5DE42435220C510B8F /* Money.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/Money/Money-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/Money/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/Money/Money.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = Money; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - C074F63C9EE7CB4D8C618390A32CEC35 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - ONLY_ACTIVE_ARCH = YES; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - }; - name = Debug; - }; - CE136A56442EE6270BE73E88A2E3CA8F /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = DF6284F39323D79B75BEEB8C366DE87C /* Pods-Custom Money.debug.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - INFOPLIST_FILE = "Target Support Files/Pods-Custom Money/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MACH_O_TYPE = staticlib; - MODULEMAP_FILE = "Target Support Files/Pods-Custom Money/Pods-Custom Money.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - OTHER_LDFLAGS = ""; - OTHER_LIBTOOLFLAGS = ""; - PODS_ROOT = "$(SRCROOT)"; - PRODUCT_NAME = Pods_Custom_Money; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - E43846B588E1892F3093F3B7082B6DFB /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - STRIP_INSTALLED_PRODUCT = NO; - SYMROOT = "${SRCROOT}/../build"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - FCD7832138D70F60F643AAD0265177FD /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = E49908B24AD506059D7A267BC1530E5C /* ValueCoding.xcconfig */; - buildSettings = { - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_PREFIX_HEADER = "Target Support Files/ValueCoding/ValueCoding-prefix.pch"; - INFOPLIST_FILE = "Target Support Files/ValueCoding/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 9.1; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MODULEMAP_FILE = "Target Support Files/ValueCoding/ValueCoding.modulemap"; - MTL_ENABLE_DEBUG_INFO = YES; - PRODUCT_NAME = ValueCoding; - SDKROOT = iphoneos; - SKIP_INSTALL = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 22BF802648EDEEC7EF085E2FD6178B52 /* Build configuration list for PBXNativeTarget "Pods-Custom Money" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - CE136A56442EE6270BE73E88A2E3CA8F /* Debug */, - 36150814459E013DEB9AF9F417320711 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - C074F63C9EE7CB4D8C618390A32CEC35 /* Debug */, - E43846B588E1892F3093F3B7082B6DFB /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 426921AA4E34588D2124AD73A0FC34FB /* Build configuration list for PBXNativeTarget "ValueCoding" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FCD7832138D70F60F643AAD0265177FD /* Debug */, - 632956B4233A46F42B60E5AA63A45405 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - A25CD3E75B36B6D9EED120659C3F5A64 /* Build configuration list for PBXNativeTarget "Money" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - B85D9C5D956AD770384B10108E777BE1 /* Debug */, - 6976B9A4615819C5770AC1883B7E182D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; -} diff --git a/Examples/Custom Money/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Money.xcscheme b/Examples/Custom Money/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Money.xcscheme deleted file mode 100644 index 3a0cc0d..0000000 --- a/Examples/Custom Money/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Money.xcscheme +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Scheme - LastUpgradeVersion = "0700" - version = "1.3"> - <BuildAction - parallelizeBuildables = "YES" - buildImplicitDependencies = "YES"> - <BuildActionEntries> - <BuildActionEntry - buildForAnalyzing = "YES" - buildForTesting = "YES" - buildForRunning = "YES" - buildForProfiling = "YES" - buildForArchiving = "YES"> - <BuildableReference - BuildableIdentifier = 'primary' - BlueprintIdentifier = 'DD7858F72CA9C23DE5830132' - BlueprintName = 'Money' - ReferencedContainer = 'container:Pods.xcodeproj' - BuildableName = 'Money.framework'> - </BuildableReference> - </BuildActionEntry> - </BuildActionEntries> - </BuildAction> - <TestAction - selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" - selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES" - buildConfiguration = "Debug"> - <AdditionalOptions> - </AdditionalOptions> - </TestAction> - <LaunchAction - selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" - selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - launchStyle = "0" - useCustomWorkingDirectory = "NO" - ignoresPersistentStateOnLaunch = "NO" - debugDocumentVersioning = "YES" - debugServiceExtension = "internal" - buildConfiguration = "Debug" - allowLocationSimulation = "YES"> - <AdditionalOptions> - </AdditionalOptions> - </LaunchAction> - <ProfileAction - savedToolIdentifier = "" - useCustomWorkingDirectory = "NO" - debugDocumentVersioning = "YES" - buildConfiguration = "Release" - shouldUseLaunchSchemeArgsEnv = "YES"> - </ProfileAction> - <AnalyzeAction - buildConfiguration = "Debug"> - </AnalyzeAction> - <ArchiveAction - buildConfiguration = "Release" - revealArchiveInOrganizer = "YES"> - </ArchiveAction> -</Scheme> diff --git a/Examples/Custom Money/Pods/Target Support Files/Money/Info.plist b/Examples/Custom Money/Pods/Target Support Files/Money/Info.plist deleted file mode 100644 index 42e2408..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Money/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>CFBundleDevelopmentRegion</key> - <string>en</string> - <key>CFBundleExecutable</key> - <string>${EXECUTABLE_NAME}</string> - <key>CFBundleIdentifier</key> - <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundleName</key> - <string>${PRODUCT_NAME}</string> - <key>CFBundlePackageType</key> - <string>FMWK</string> - <key>CFBundleShortVersionString</key> - <string>1.5.1</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleVersion</key> - <string>${CURRENT_PROJECT_VERSION}</string> - <key>NSPrincipalClass</key> - <string></string> -</dict> -</plist> diff --git a/Examples/Custom Money/Pods/Target Support Files/Money/Money-dummy.m b/Examples/Custom Money/Pods/Target Support Files/Money/Money-dummy.m deleted file mode 100644 index 6edf1dd..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Money/Money-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import <Foundation/Foundation.h> -@interface PodsDummy_Money : NSObject -@end -@implementation PodsDummy_Money -@end diff --git a/Examples/Custom Money/Pods/Target Support Files/Money/Money-prefix.pch b/Examples/Custom Money/Pods/Target Support Files/Money/Money-prefix.pch deleted file mode 100644 index aa992a4..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Money/Money-prefix.pch +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef __OBJC__ -#import <UIKit/UIKit.h> -#endif - diff --git a/Examples/Custom Money/Pods/Target Support Files/Money/Money-umbrella.h b/Examples/Custom Money/Pods/Target Support Files/Money/Money-umbrella.h deleted file mode 100644 index 39c6b56..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Money/Money-umbrella.h +++ /dev/null @@ -1,6 +0,0 @@ -#import <UIKit/UIKit.h> - - -FOUNDATION_EXPORT double MoneyVersionNumber; -FOUNDATION_EXPORT const unsigned char MoneyVersionString[]; - diff --git a/Examples/Custom Money/Pods/Target Support Files/Money/Money.modulemap b/Examples/Custom Money/Pods/Target Support Files/Money/Money.modulemap deleted file mode 100644 index 473121c..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Money/Money.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Money { - umbrella header "Money-umbrella.h" - - export * - module * { export * } -} diff --git a/Examples/Custom Money/Pods/Target Support Files/Money/Money.xcconfig b/Examples/Custom Money/Pods/Target Support Files/Money/Money.xcconfig deleted file mode 100644 index 0bebc3e..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Money/Money.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Money" "${PODS_ROOT}/Headers/Public" -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Info.plist b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Info.plist deleted file mode 100644 index 6974542..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>CFBundleDevelopmentRegion</key> - <string>en</string> - <key>CFBundleExecutable</key> - <string>${EXECUTABLE_NAME}</string> - <key>CFBundleIdentifier</key> - <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundleName</key> - <string>${PRODUCT_NAME}</string> - <key>CFBundlePackageType</key> - <string>FMWK</string> - <key>CFBundleShortVersionString</key> - <string>1.0.0</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleVersion</key> - <string>${CURRENT_PROJECT_VERSION}</string> - <key>NSPrincipalClass</key> - <string></string> -</dict> -</plist> diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-acknowledgements.markdown b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-acknowledgements.markdown deleted file mode 100644 index 702d85f..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-acknowledgements.markdown +++ /dev/null @@ -1,55 +0,0 @@ -# Acknowledgements -This application makes use of the following third party libraries: - -## Money - -The MIT License (MIT) - -Copyright (c) 2015 Daniel Thorpe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - -## ValueCoding - -The MIT License (MIT) - -Copyright (c) 2015 Daniel Thorpe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -Generated by CocoaPods - http://cocoapods.org diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-acknowledgements.plist b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-acknowledgements.plist deleted file mode 100644 index 3086e67..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-acknowledgements.plist +++ /dev/null @@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>PreferenceSpecifiers</key> - <array> - <dict> - <key>FooterText</key> - <string>This application makes use of the following third party libraries:</string> - <key>Title</key> - <string>Acknowledgements</string> - <key>Type</key> - <string>PSGroupSpecifier</string> - </dict> - <dict> - <key>FooterText</key> - <string>The MIT License (MIT) - -Copyright (c) 2015 Daniel Thorpe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -</string> - <key>Title</key> - <string>Money</string> - <key>Type</key> - <string>PSGroupSpecifier</string> - </dict> - <dict> - <key>FooterText</key> - <string>The MIT License (MIT) - -Copyright (c) 2015 Daniel Thorpe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - -</string> - <key>Title</key> - <string>ValueCoding</string> - <key>Type</key> - <string>PSGroupSpecifier</string> - </dict> - <dict> - <key>FooterText</key> - <string>Generated by CocoaPods - http://cocoapods.org</string> - <key>Title</key> - <string></string> - <key>Type</key> - <string>PSGroupSpecifier</string> - </dict> - </array> - <key>StringsTable</key> - <string>Acknowledgements</string> - <key>Title</key> - <string>Acknowledgements</string> -</dict> -</plist> diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-dummy.m b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-dummy.m deleted file mode 100644 index dd1664b..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import <Foundation/Foundation.h> -@interface PodsDummy_Pods_Custom_Money : NSObject -@end -@implementation PodsDummy_Pods_Custom_Money -@end diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-frameworks.sh b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-frameworks.sh deleted file mode 100755 index 5ed60b5..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-frameworks.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/sh -set -e - -echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" -mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" - -install_framework() -{ - if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then - local source="${BUILT_PRODUCTS_DIR}/$1" - elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then - local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" - elif [ -r "$1" ]; then - local source="$1" - fi - - local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - - if [ -L "${source}" ]; then - echo "Symlinked..." - source="$(readlink "${source}")" - fi - - # use filter instead of exclude so missing patterns dont' throw errors - echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" - - local basename - basename="$(basename -s .framework "$1")" - binary="${destination}/${basename}.framework/${basename}" - if ! [ -r "$binary" ]; then - binary="${destination}/${basename}" - fi - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then - strip_invalid_archs "$binary" - fi - - # Resign the code if required by the build settings to avoid unstable apps - code_sign_if_enabled "${destination}/$(basename "$1")" - - # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. - if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then - local swift_runtime_libs - swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) - for lib in $swift_runtime_libs; do - echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" - rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" - code_sign_if_enabled "${destination}/${lib}" - done - fi -} - -# Signs a framework with the provided identity -code_sign_if_enabled() { - if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then - # Use the current code_sign_identitiy - echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" - echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\"" - /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" - fi -} - -# Strip invalid architectures -strip_invalid_archs() { - binary="$1" - # Get architectures for current file - archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" - stripped="" - for arch in $archs; do - if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then - # Strip non-valid architectures in-place - lipo -remove "$arch" -output "$binary" "$binary" || exit 1 - stripped="$stripped $arch" - fi - done - if [[ "$stripped" ]]; then - echo "Stripped $binary of architectures:$stripped" - fi -} - - -if [[ "$CONFIGURATION" == "Debug" ]]; then - install_framework "Pods-Custom Money/Money.framework" - install_framework "Pods-Custom Money/ValueCoding.framework" -fi -if [[ "$CONFIGURATION" == "Release" ]]; then - install_framework "Pods-Custom Money/Money.framework" - install_framework "Pods-Custom Money/ValueCoding.framework" -fi diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-resources.sh b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-resources.sh deleted file mode 100755 index 16774fb..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-resources.sh +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/sh -set -e - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - -RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt -> "$RESOURCES_TO_COPY" - -XCASSET_FILES=() - -realpath() { - DIRECTORY="$(cd "${1%/*}" && pwd)" - FILENAME="${1##*/}" - echo "$DIRECTORY/$FILENAME" -} - -install_resource() -{ - case $1 in - *.storyboard) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.xib) - echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" - ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" - ;; - *.framework) - echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" - ;; - *.xcdatamodel) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" - ;; - *.xcdatamodeld) - echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" - xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" - ;; - *.xcmappingmodel) - echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" - xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" - ;; - *.xcassets) - ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") - XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") - ;; - /*) - echo "$1" - echo "$1" >> "$RESOURCES_TO_COPY" - ;; - *) - echo "${PODS_ROOT}/$1" - echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" - ;; - esac -} - -mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then - mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" - rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi -rm -f "$RESOURCES_TO_COPY" - -if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] -then - case "${TARGETED_DEVICE_FAMILY}" in - 1,2) - TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" - ;; - 1) - TARGET_DEVICE_ARGS="--target-device iphone" - ;; - 2) - TARGET_DEVICE_ARGS="--target-device ipad" - ;; - *) - TARGET_DEVICE_ARGS="--target-device mac" - ;; - esac - - # Find all other xcassets (this unfortunately includes those of path pods and other targets). - OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) - while read line; do - if [[ $line != "`realpath $PODS_ROOT`*" ]]; then - XCASSET_FILES+=("$line") - fi - done <<<"$OTHER_XCASSETS" - - printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" -fi diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-umbrella.h b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-umbrella.h deleted file mode 100644 index 5ce7f5e..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money-umbrella.h +++ /dev/null @@ -1,6 +0,0 @@ -#import <UIKit/UIKit.h> - - -FOUNDATION_EXPORT double Pods_Custom_MoneyVersionNumber; -FOUNDATION_EXPORT const unsigned char Pods_Custom_MoneyVersionString[]; - diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.debug.xcconfig b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.debug.xcconfig deleted file mode 100644 index d5604d6..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.debug.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -EMBEDDED_CONTENT_CONTAINS_SWIFT = YES -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Money.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/ValueCoding.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "Money" -framework "ValueCoding" -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-Custom Money -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.modulemap b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.modulemap deleted file mode 100644 index f1862f0..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Pods_Custom_Money { - umbrella header "Pods-Custom Money-umbrella.h" - - export * - module * { export * } -} diff --git a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.release.xcconfig b/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.release.xcconfig deleted file mode 100644 index d5604d6..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/Pods-Custom Money/Pods-Custom Money.release.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -EMBEDDED_CONTENT_CONTAINS_SWIFT = YES -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' -OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/Money.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/ValueCoding.framework/Headers" -OTHER_LDFLAGS = $(inherited) -framework "Money" -framework "ValueCoding" -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-Custom Money -PODS_ROOT = ${SRCROOT}/Pods \ No newline at end of file diff --git a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/Info.plist b/Examples/Custom Money/Pods/Target Support Files/ValueCoding/Info.plist deleted file mode 100644 index ed58c09..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/Info.plist +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>CFBundleDevelopmentRegion</key> - <string>en</string> - <key>CFBundleExecutable</key> - <string>${EXECUTABLE_NAME}</string> - <key>CFBundleIdentifier</key> - <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string> - <key>CFBundleInfoDictionaryVersion</key> - <string>6.0</string> - <key>CFBundleName</key> - <string>${PRODUCT_NAME}</string> - <key>CFBundlePackageType</key> - <string>FMWK</string> - <key>CFBundleShortVersionString</key> - <string>1.2.0</string> - <key>CFBundleSignature</key> - <string>????</string> - <key>CFBundleVersion</key> - <string>${CURRENT_PROJECT_VERSION}</string> - <key>NSPrincipalClass</key> - <string></string> -</dict> -</plist> diff --git a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-dummy.m b/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-dummy.m deleted file mode 100644 index afec760..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-dummy.m +++ /dev/null @@ -1,5 +0,0 @@ -#import <Foundation/Foundation.h> -@interface PodsDummy_ValueCoding : NSObject -@end -@implementation PodsDummy_ValueCoding -@end diff --git a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-prefix.pch b/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-prefix.pch deleted file mode 100644 index aa992a4..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-prefix.pch +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef __OBJC__ -#import <UIKit/UIKit.h> -#endif - diff --git a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-umbrella.h b/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-umbrella.h deleted file mode 100644 index 1d8ec40..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding-umbrella.h +++ /dev/null @@ -1,6 +0,0 @@ -#import <UIKit/UIKit.h> - - -FOUNDATION_EXPORT double ValueCodingVersionNumber; -FOUNDATION_EXPORT const unsigned char ValueCodingVersionString[]; - diff --git a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding.modulemap b/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding.modulemap deleted file mode 100644 index 8438ca5..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module ValueCoding { - umbrella header "ValueCoding-umbrella.h" - - export * - module * { export * } -} diff --git a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding.xcconfig b/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding.xcconfig deleted file mode 100644 index 417997d..0000000 --- a/Examples/Custom Money/Pods/Target Support Files/ValueCoding/ValueCoding.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 -HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ValueCoding" "${PODS_ROOT}/Headers/Public" -OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" -PODS_ROOT = ${SRCROOT} -SKIP_INSTALL = YES \ No newline at end of file diff --git a/Examples/Custom Money/Pods/ValueCoding/LICENSE b/Examples/Custom Money/Pods/ValueCoding/LICENSE deleted file mode 100644 index 3bd0a95..0000000 --- a/Examples/Custom Money/Pods/ValueCoding/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Daniel Thorpe - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/Examples/Custom Money/Pods/ValueCoding/README.md b/Examples/Custom Money/Pods/ValueCoding/README.md deleted file mode 100644 index e61c69b..0000000 --- a/Examples/Custom Money/Pods/ValueCoding/README.md +++ /dev/null @@ -1,90 +0,0 @@ -![](https://raw.githubusercontent.com/danthorpe/ValueCoding/development/header.png) - -[![Build status](https://badge.buildkite.com/482fd5558d9ccf05b669c55f40450166033522f32314a1bbb2.svg)](https://buildkite.com/blindingskies/valuecoding) -[![codecov.io](http://codecov.io/github/danthorpe/ValueCoding/coverage.svg?branch=development)](http://codecov.io/github/danthorpe/ValueCoding?branch=development) -[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/ValueCoding.svg)](https://img.shields.io/cocoapods/v/ValueCoding.svg) -[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -[![Platform](https://img.shields.io/cocoapods/p/ValueCoding.svg?style=flat)](http://cocoadocs.org/docsets/ValueCoding) - -# ValueCoding - -ValueCoding is a simple pair of protocols to support the coding of Swift value types. - -It works by allowing a value type, which must conform to `ValueCoding` to define via a typealias its *coder*. The coder is another type which implements the `CoderType` protocol. This type will typically be an `NSObject` which implements `NSCoding` and is an adaptor which is responsible for encoding and decoding the properties of the value. - -A minimal example for a simple `struct` is shown below: - -```swift -import ValueCoding - -struct Foo: ValueCoding { - typealias Coder = FooCoder - let bar: String -} - -class FooCoder: NSObject, NSCoding, CodingType { - - enum Keys: String { - case Bar = "bar" - } - - let value: Foo - - required init(_ v: Foo) { - value = v - } - - required init?(coder aDecoder: NSCoder) { - let bar = aDecoder.decodeObjectForKey(Keys.Bar.rawValue) as? String - value = Foo(bar: bar!) - } - - func encodeWithCoder(aCoder: NSCoder) { - aCoder.encodeObject(value.bar, forKey: Keys.Bar.rawValue) - } -} -``` - -If you are converting existing models from classes to values types, the `NSCoding` methods should look familiar, and hopefully you are able to reuse your existing code. - -The framework provides static methods and properties for types which conform to `ValueCoding` with valid coders. Therefore, given a value of `Foo`, you can encode it ready for archiving using `NSKeyedArchiver`. - -```swift -let data = NSKeyedArchiver.archivedDataWithRootObject(foo.encoded) -``` - -and likewise, decoding from unarchiving can be done: - -```swift -if let foo = Foo.decode(NSKeyedUnarchiver.unarchiveObjectWithData(data)) { - // etc, decode returns optionals when working with a single item. -} -``` - -These methods can also be used if composing value types inside other types which require encoding. - -When working with sequences of values, use the `encoded` property on the sequence. - -```swift -let foos = Set(arrayLiteral: Foo(), Foo(), Foo()) -let data = NSKeyedArchiver.archivedDataWithRootObject(foos.encoded) -``` - -When decoding an `NSArray`, perform a conditional cast to `[AnyObject]` before passing it to `decode`. The result will be an `Array<Foo>` which will be empty if the object was not cast successfully. In addition, any members of `[AnyObject]` which did not decode will be filtered from the result. This means that the length of the result will be less than the original encoded array if there was an issue decoding. - -```swift -let foos = Foo.decode(NSKeyedUnarchiver.unarchiveObjectWithData(data) as? [AnyObject]) -``` -### CoderType Examples - -The [Money](https://github.com/danthorpe/Money) framework contains more examples of implementing `ValueCoding`. Including the generic type [`FXTransactionCoder`](https://github.com/danthorpe/Money/blob/development/Money/Shared/FX/FX.swift#L467). - -The [YapDatabaseExtensions](https://github.com/danthorpe/YapDatabaseExtension) framework relies heavily on `ValueCoding`. For more examples of generic where constraints see its [Functional API](https://github.com/danthorpe/YapDatabaseExtensions/tree/development/YapDatabaseExtensions/Shared/Functional). - -### Installation -ValueCoding builds as a cross platform (iOS, OS X, watchOS, tvOS) extension compatible framework. It is also available via CocoaPods - -```ruby -pod 'ValueCoding' -``` - diff --git a/Examples/Custom Money/Pods/ValueCoding/ValueCoding/ValueCoding.swift b/Examples/Custom Money/Pods/ValueCoding/ValueCoding/ValueCoding.swift deleted file mode 100644 index 753d4fa..0000000 --- a/Examples/Custom Money/Pods/ValueCoding/ValueCoding/ValueCoding.swift +++ /dev/null @@ -1,179 +0,0 @@ -// -// ValueCoding.swift -// ValueCoding -// -// Created by Daniel Thorpe on 11/10/2015. -// -// - -import Foundation - -// MARK: - CodingType - -/** -A generic protocol for classes which can -encode/decode value types. -*/ -public protocol CodingType { - - /** - The type of the composed value, ValueType - - Bear in mind that there are no constraints on this - type. However, in reality when working with generic - types which require coding, it will be necessary to - constrain your generic clauses like this: - - ```swift - func foo<T: ValueCoding where T.Coder.ValueType == T>() - ``` - - - see: ValueCoding - */ - typealias ValueType - - /// The value type which is being encoded/decoded - var value: ValueType { get } - - /// Required initializer receiving the wrapped value type. - init(_: ValueType) -} - -// MARK: - ValueCoding - -/** -A generic protocol for value types which require -coding. -*/ -public protocol ValueCoding { - - /** - The Coder which implements CodingType - - - see: CodingType - */ - typealias Coder: CodingType -} - -// MARK: - Protocol Extensions - -extension CodingType where ValueType: ValueCoding, ValueType.Coder == Self { - - internal static func decode(object: AnyObject?) -> ValueType? { - return (object as? Self)?.value - } - - internal static func decode<S: SequenceType where S.Generator.Element: AnyObject>(objects: S?) -> [ValueType] { - return objects?.flatMap(decode) ?? [] - } - - internal static func decode<S: SequenceType where S.Generator.Element: SequenceType, S.Generator.Element.Generator.Element: AnyObject>(objects: S?) -> [[ValueType]] { - return objects?.flatMap(decode) ?? [] - } -} - -extension SequenceType where - Generator.Element: CodingType { - - /// Access the values from a sequence of coders. - public var values: [Generator.Element.ValueType] { - return map { $0.value } - } -} - -/** -Static methods for decoding `AnyObject` to Self, and returning encoded object -of Self. -*/ -extension ValueCoding where Coder: NSCoding, Coder.ValueType == Self { - - /** - Decodes the value from a single decoder, if possible. - For example - - let foo = Foo.decode(decoder.decodeObjectForKey("foo")) - - - parameter object: an optional `AnyObject` which if not nil should - be of `Coder` type. - - returns: an optional `Self` - */ - public static func decode(object: AnyObject?) -> Self? { - return Coder.decode(object) - } - - /** - Decodes the values from a sequence of coders, if possible - For example - - let foos = Foo.decode(decoder.decodeObjectForKey("foos") as? [AnyObject]) - - - parameter objects: a `SequenceType` of `AnyObject`. - - returns: the array of values which were able to be unarchived. - */ - public static func decode<S: SequenceType where S.Generator.Element: AnyObject>(objects: S?) -> [Self] { - return Coder.decode(objects) - } - - /** - Decodes the values from a sequence of sequence of coders, if possible - - - parameter objects: a `SequenceType` of `SequenceType` of `AnyObject`. - - returns: the array of arrays of values which were able to be unarchived. - */ - public static func decode<S: SequenceType where S.Generator.Element: SequenceType, S.Generator.Element.Generator.Element: AnyObject>(objects: S?) -> [[Self]] { - return Coder.decode(objects) - } - - /** - Encodes the value type into its Coder. - - Typically this would be used inside of - `encodeWithCoder:` when the value is composed inside - another `ValueCoding` or `NSCoding` type. For example: - - encoder.encodeObject(foo.encoded, forKey: "foo") - - */ - public var encoded: Coder { - return Coder(self) - } -} - -extension SequenceType where - Generator.Element: ValueCoding, - Generator.Element.Coder: NSCoding, - Generator.Element.Coder.ValueType == Generator.Element { - - /** - Encodes the sequence of value types into an array of coders. - - Typically this would be used inside of - `encodeWithCoder:` when a sequence of values is - composed inside another `ValueCoding` or - `NSCoding` type. For example: - - encoder.encodeObject(foos.encoded, forKey: "foos") - - */ - public var encoded: [Generator.Element.Coder] { - return map { $0.encoded } - } -} - -extension SequenceType where - Generator.Element: SequenceType, - Generator.Element.Generator.Element: ValueCoding, - Generator.Element.Generator.Element.Coder: NSCoding, - Generator.Element.Generator.Element.Coder.ValueType == Generator.Element.Generator.Element { - - /** - Encodes a sequence of sequences of value types into - an array of arrays of coders. - */ - public var encoded: [[Generator.Element.Generator.Element.Coder]] { - return map { $0.encoded } - } -} - - - diff --git a/Gemfile b/Gemfile index 3f17113..ebdb215 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,6 @@ source 'https://rubygems.org' gem 'scan' -gem 'fastlane', '>= 1.35' +gem 'fastlane' gem 'xcpretty' +gem 'slather' diff --git a/Gemfile.lock b/Gemfile.lock index 6bb9da6..25c4838 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,41 +1,38 @@ GEM remote: https://rubygems.org/ specs: - activesupport (4.2.5) + activesupport (4.2.5.2) i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) addressable (2.3.8) - autoparse (0.3.3) - addressable (>= 2.3.1) - extlib (>= 0.9.15) - multi_json (>= 1.0.0) babosa (1.0.2) - cert (1.2.7) - fastlane_core (>= 0.26.4, < 1.0.0) - spaceship (>= 0.15.1, < 1.0.0) + cert (1.4.0) + fastlane_core (>= 0.29.1, < 1.0.0) + spaceship (>= 0.22.0, < 1.0.0) claide (0.9.1) - coderay (1.1.0) + clamp (0.6.5) + coderay (1.1.1) colored (1.2) commander (4.3.5) highline (~> 1.7.2) - credentials_manager (0.13.0) + credentials_manager (0.15.0) colored + commander (>= 4.3.5) highline (>= 1.7.1) security - deliver (1.6.4) + deliver (1.10.3) credentials_manager (>= 0.12.0, < 1.0.0) fastimage (~> 1.6) - fastlane_core (>= 0.26.4, < 1.0.0) + fastlane_core (>= 0.36.4, < 1.0.0) plist (~> 3.1.0) - spaceship (>= 0.15.0, <= 1.0.0) - domain_name (0.5.25) + spaceship (>= 0.19.0, <= 1.0.0) + domain_name (0.5.20160216) unf (>= 0.0.5, < 1.0.0) - dotenv (2.0.2) + dotenv (2.1.0) excon (0.45.4) - extlib (0.9.16) faraday (0.9.2) multipart-post (>= 1.2, < 3) faraday-cookie_jar (0.0.6) @@ -45,35 +42,35 @@ GEM faraday (>= 0.7.4, < 0.10) fastimage (1.6.8) addressable (~> 2.3, >= 2.3.5) - fastlane (1.48.0) + fastlane (1.66.0) addressable (~> 2.3.8) - cert (>= 1.2.7, < 2.0.0) - credentials_manager (>= 0.13.0, < 1.0.0) - deliver (>= 1.6.4, < 2.0.0) - fastlane_core (>= 0.29.1, < 1.0.0) + cert (>= 1.3.0, < 2.0.0) + credentials_manager (>= 0.15.0, < 1.0.0) + deliver (>= 1.10.1, < 2.0.0) + fastlane_core (>= 0.36.8, < 1.0.0) frameit (>= 2.4.1, < 3.0.0) - gym (>= 1.1.6, < 2.0.0) - krausefx-shenzhen (>= 0.14.6) - match (>= 0.1.2, < 1.0.0) - pem (>= 1.1.0, < 2.0.0) - pilot (>= 1.1.0, < 2.0.0) + gym (>= 1.6.1, < 2.0.0) + krausefx-shenzhen (>= 0.14.7) + match (>= 0.3.0, < 1.0.0) + pem (>= 1.2.0, < 2.0.0) + pilot (>= 1.3.0, < 2.0.0) plist (~> 3.1.0) produce (>= 1.1.0, < 2.0.0) - scan (>= 0.3.2, < 1.0.0) - sigh (>= 1.2.1, < 2.0.0) + scan (>= 0.5.0, < 1.0.0) + screengrab (>= 0.2.1, < 1.0.0) + sigh (>= 1.3.1, < 2.0.0) slack-notifier (~> 1.3) - snapshot (>= 1.4.2, < 2.0.0) - spaceship (>= 0.18.0, < 1.0.0) - supply (>= 0.2.2, < 1.0.0) + snapshot (>= 1.7.0, < 2.0.0) + spaceship (>= 0.22.0, < 1.0.0) + supply (>= 0.4.0, < 1.0.0) terminal-notifier (~> 1.6.2) terminal-table (~> 1.4.5) - xcode-install (~> 1.0.1) - xcodeproj (>= 0.20, < 1.0.0) + xcodeproj (>= 0.20, < 2.0.0) xcpretty (>= 0.2.1) - fastlane_core (0.29.1) + fastlane_core (0.37.0) babosa colored - commander (>= 4.3.5) + commander (= 4.3.5) credentials_manager (>= 0.11.0, < 1.0.0) excon (~> 0.45.0) highline (>= 1.7.2) @@ -83,31 +80,31 @@ GEM rubyzip (~> 1.1.6) sentry-raven (~> 0.15) terminal-table (~> 1.4.5) - frameit (2.4.1) + frameit (2.5.1) deliver (> 0.3) fastimage (~> 1.6.3) - fastlane_core (>= 0.16.0, < 1.0.0) + fastlane_core (>= 0.36.1, < 1.0.0) mini_magick (~> 4.0.2) - google-api-client (0.8.6) - activesupport (>= 3.2) + google-api-client (0.9.3) addressable (~> 2.3) - autoparse (~> 0.3) - extlib (~> 0.9) - faraday (~> 0.9) - googleauth (~> 0.3) - launchy (~> 2.4) - multi_json (~> 1.10) - retriable (~> 1.4) - signet (~> 0.6) - googleauth (0.5.0) + googleauth (~> 0.5) + httpclient (~> 2.7) + hurley (~> 0.1) + memoist (~> 0.11) + mime-types (>= 1.6) + representable (~> 2.3.0) + retriable (~> 2.0) + thor (~> 0.19) + googleauth (0.5.1) faraday (~> 0.9) jwt (~> 1.4) logging (~> 2.0) memoist (~> 0.12) multi_json (~> 1.11) + os (~> 0.9) signet (~> 0.7) - gym (1.2.0) - fastlane_core (>= 0.25.0, < 1.0.0) + gym (1.6.1) + fastlane_core (>= 0.36.1, < 1.0.0) plist rubyzip (>= 1.1.7) terminal-table @@ -115,10 +112,12 @@ GEM highline (1.7.8) http-cookie (1.0.2) domain_name (~> 0.5) + httpclient (2.7.1) + hurley (0.2) i18n (0.7.0) json (1.8.3) - jwt (1.5.2) - krausefx-shenzhen (0.14.6) + jwt (1.5.3) + krausefx-shenzhen (0.14.7) commander (~> 4.3) dotenv (>= 0.7) faraday (~> 0.9) @@ -130,74 +129,87 @@ GEM rubyzip (~> 1.1) security (~> 0.1.3) terminal-table (~> 1.4.5) - launchy (2.4.3) - addressable (~> 2.3) little-plugger (1.1.4) logging (2.0.0) little-plugger (~> 1.1) multi_json (~> 1.10) - match (0.1.2) - cert (>= 1.2.7, < 2.0.0) + match (0.3.0) + cert (>= 1.2.8, < 2.0.0) credentials_manager (>= 0.13.0, < 1.0.0) - fastlane_core (>= 0.29.1, < 1.0.0) + fastlane_core (>= 0.36.1, < 1.0.0) security - sigh (>= 1.2.1, < 2.0.0) - spaceship (>= 0.16.0, < 1.0.0) + sigh (>= 1.2.2, < 2.0.0) + spaceship (>= 0.18.1, < 1.0.0) memoist (0.14.0) method_source (0.8.2) + mime-types (3.0) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0221) mini_magick (4.0.4) - minitest (5.8.3) + mini_portile2 (2.0.0) + minitest (5.8.4) multi_json (1.11.2) multi_xml (0.5.5) multipart-post (2.0.0) net-sftp (2.1.2) net-ssh (>= 2.6.5) - net-ssh (3.0.1) - pem (1.1.0) - fastlane_core (>= 0.26.4, < 1.0.0) - spaceship (>= 0.12.0, < 1.0.0) - pilot (1.2.0) + net-ssh (3.0.2) + nokogiri (1.6.7.2) + mini_portile2 (~> 2.0.0.rc2) + os (0.9.6) + pem (1.3.0) + fastlane_core (>= 0.36.1, < 1.0.0) + spaceship (>= 0.22.0, < 1.0.0) + pilot (1.4.1) credentials_manager (>= 0.3.0) - fastlane_core (>= 0.16.1, < 1.0.0) - spaceship (>= 0.16.0, < 1.0.0) + fastlane_core (>= 0.36.5, < 1.0.0) + spaceship (>= 0.20.0, < 1.0.0) terminal-table (~> 1.4.5) plist (3.1.0) - produce (1.1.0) - fastlane_core (>= 0.26.6, < 1.0.0) - spaceship (>= 0.12.0) + produce (1.1.1) + fastlane_core (>= 0.30.0, < 1.0.0) + spaceship (>= 0.16.0) pry (0.10.3) coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) - retriable (1.4.1) + representable (2.3.0) + uber (~> 0.0.7) + retriable (2.1.0) rouge (1.10.1) rubyzip (1.1.7) - scan (0.3.2) - fastlane_core (>= 0.26.6, < 1.0.0) + scan (0.5.2) + fastlane_core (>= 0.36.1, < 1.0.0) slack-notifier (~> 1.3) terminal-table xcpretty (>= 0.2.1) xcpretty-travis-formatter (>= 0.0.3) + screengrab (0.3.0) + fastlane_core (>= 0.36.8, < 1.0.0) security (0.1.3) - sentry-raven (0.15.2) + sentry-raven (0.15.6) faraday (>= 0.7.6) - sigh (1.2.1) - fastlane_core (>= 0.26.4, < 1.0.0) + sigh (1.4.0) + fastlane_core (>= 0.36.1, < 1.0.0) plist (~> 3.1) - spaceship (>= 0.12.3) - signet (0.7.0) + spaceship (>= 0.22.0, < 1.0.0) + signet (0.7.2) addressable (~> 2.3) faraday (~> 0.9) jwt (~> 1.5) multi_json (~> 1.10) slack-notifier (1.5.1) + slather (2.0.1) + clamp (~> 0.6) + nokogiri (~> 1.6.3) + xcodeproj (>= 0.28.2, < 1.1.0) slop (3.6.0) - snapshot (1.4.2) + snapshot (1.11.0) fastimage (~> 1.6.3) - fastlane_core (>= 0.21.0, < 1.0.0) + fastlane_core (>= 0.36.1, < 1.0.0) plist (~> 3.1.0) xcpretty (>= 0.2.1) - spaceship (0.18.0) + spaceship (0.22.0) colored credentials_manager (>= 0.9.0) faraday (~> 0.9) @@ -207,26 +219,25 @@ GEM multi_xml (~> 0.5) plist (~> 3.1) pry - supply (0.2.2) - credentials_manager (>= 0.10.0) - fastlane_core (>= 0.19.0) - google-api-client (~> 0.8.6) + supply (0.5.2) + credentials_manager (>= 0.15.0) + fastlane_core (>= 0.35.0) + google-api-client (~> 0.9.1) terminal-notifier (1.6.3) terminal-table (1.4.5) + thor (0.19.1) thread_safe (0.3.5) tzinfo (1.2.2) thread_safe (~> 0.1) + uber (0.0.15) unf (0.1.4) unf_ext - unf_ext (0.0.7.1) - xcode-install (1.0.1) - claide (~> 0.9.1) - spaceship (>= 0.13.0, < 1.0.0) + unf_ext (0.0.7.2) xcodeproj (0.28.2) activesupport (>= 3) claide (~> 0.9.1) colored (~> 1.2) - xcpretty (0.2.1) + xcpretty (0.2.2) rouge (~> 1.8) xcpretty-travis-formatter (0.0.4) xcpretty (~> 0.2, >= 0.0.7) @@ -235,9 +246,10 @@ PLATFORMS ruby DEPENDENCIES - fastlane (>= 1.35) + fastlane scan + slather xcpretty BUNDLED WITH - 1.10.6 + 1.11.2 diff --git a/Money.podspec b/Money.podspec index a193e65..117830e 100644 --- a/Money.podspec +++ b/Money.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Money" - s.version = "1.6.0" + s.version = "1.6.1" s.summary = "Swift types for working with Money." s.description = <<-DESC @@ -15,7 +15,7 @@ Pod::Spec.new do |s| s.author = { "Daniel Thorpe" => "@danthorpe" } s.source = { :git => "https://github.com/danthorpe/Money.git", :tag => s.version.to_s } s.module_name = 'Money' - s.documentation_url = 'http://docs.danthorpe.me/money/1.6.0/index.html' + s.documentation_url = 'http://docs.danthorpe.me/money/1.6.1/index.html' s.social_media_url = 'https://twitter.com/danthorpe' s.requires_arc = true s.ios.deployment_target = '8.0' diff --git a/Money.xcodeproj/project.pbxproj b/Money.xcodeproj/project.pbxproj index 8ac06b4..d11e236 100644 --- a/Money.xcodeproj/project.pbxproj +++ b/Money.xcodeproj/project.pbxproj @@ -899,6 +899,7 @@ 65B92ACC1BE0E46C00F82024 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_ENABLE_CODE_COVERAGE = YES; ENABLE_TESTABILITY = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; ONLY_ACTIVE_ARCH = YES; @@ -908,6 +909,7 @@ 65B92ACD1BE0E46C00F82024 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_ENABLE_CODE_COVERAGE = YES; IPHONEOS_DEPLOYMENT_TARGET = 8.0; }; name = Release; diff --git a/Money.xcodeproj/xcshareddata/xcschemes/Money-watchOS.xcscheme b/Money.xcodeproj/xcshareddata/xcschemes/Money-watchOS.xcscheme index 683de6e..cd63e47 100644 --- a/Money.xcodeproj/xcshareddata/xcschemes/Money-watchOS.xcscheme +++ b/Money.xcodeproj/xcshareddata/xcschemes/Money-watchOS.xcscheme @@ -26,7 +26,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES"> <Testables> </Testables> <AdditionalOptions> diff --git a/Money/Shared/Currency.swift b/Money/Shared/Currency.swift index ae1dac8..86ade9f 100644 --- a/Money/Shared/Currency.swift +++ b/Money/Shared/Currency.swift @@ -86,14 +86,17 @@ public extension CurrencyType { internal extension CurrencyType { - static func formattedWithStyle(style: NSNumberFormatterStyle, forLocale locale: NSLocale) -> NSDecimalNumber -> String { - + static func formattedWithStyle(style: NSNumberFormatterStyle, forLocale tmp: NSLocale) -> NSDecimalNumber -> String { + + let id = "\(tmp.localeIdentifier)@currency=\(code)" + let locale = NSLocale(localeIdentifier: NSLocale.canonicalLocaleIdentifierFromString(id)) + let formatter = NSNumberFormatter() + formatter.currencyCode = code formatter.locale = locale formatter.numberStyle = style formatter.maximumFractionDigits = scale formatter.currencySymbol = symbol ?? locale.currencySymbol - formatter.currencyCode = code return { formatter.stringFromNumber($0)! } } diff --git a/Money/Shared/Locale.swift b/Money/Shared/Locale.swift index ef7d8e5..9f43f8b 100644 --- a/Money/Shared/Locale.swift +++ b/Money/Shared/Locale.swift @@ -84,12 +84,3 @@ public extension NSLocale { } } -internal extension NSNumberFormatter { - func reset() { - currencyCode = nil - currencySymbol = nil - internationalCurrencySymbol = nil - currencyGroupingSeparator = nil - currencyDecimalSeparator = nil - } -} \ No newline at end of file diff --git a/README.md b/README.md index 36b6e2a..981d21e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![](https://raw.githubusercontent.com/danthorpe/Money/development/header.png) [![Build status](https://badge.buildkite.com/265eb9670a2ef6b73eebf37769a8455c402509f71f09c4f51e.svg?branch=development)](https://buildkite.com/blindingskies/money?branch=development) -[![codecov.io](https://codecov.io/github/danthorpe/Money/coverage.svg?branch=development&token=gI70muNOjA)](https://codecov.io/github/danthorpe/Money?branch=development) +[![Coverage Status](https://coveralls.io/repos/github/danthorpe/Money/badge.svg?branch=development)](https://coveralls.io/github/danthorpe/Money?branch=development) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Money.svg)](https://img.shields.io/cocoapods/v/Money.svg) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Platform](https://img.shields.io/cocoapods/p/Money.svg?style=flat)](http://cocoadocs.org/docsets/Money) @@ -197,13 +197,6 @@ extension Currency { static let code: String = "BEES" static let symbol: String = "🐝" static let scale: Int = 0 - static let formatter: NSNumberFormatter = { - let fmtr = NSNumberFormatter() - fmtr.numberStyle = .CurrencyStyle - fmtr.maximumFractionDigits = Currency.Bee.scale - fmtr.currencySymbol = Currency.Bee.symbol - return fmtr - }() } } @@ -222,7 +215,7 @@ print(“I have \(bees)”) And of course if you have an IAP for purchasing in-app currency, then I’m sure a custom FX provider would be handy. -Take a look at the example project, Custom Money, for an example of a custom local FX provider to exchange your 🐝s. +Take a look at the example project, [Custom Money](https://github.com/danthorpe/Examples/tree/development/Money/Custom%20Money), for an example of a custom local FX provider to exchange your 🐝s. ## Installation Money builds as a cross platform (iOS, OS X, watchOS) extension compatible framework. It is compatible with [Carthage](https://github.com/carthage/carthage). It is also available via CocoaPods. diff --git a/Supporting Files/Money.xcconfig b/Supporting Files/Money.xcconfig index 2a940ca..50d96f8 100644 --- a/Supporting Files/Money.xcconfig +++ b/Supporting Files/Money.xcconfig @@ -6,7 +6,7 @@ // // -MONEY_VERSION = 1.6.0 +MONEY_VERSION = 1.6.1 APPLICATION_EXTENSION_API_ONLY = YES INFOPLIST_FILE = $(SRCROOT)/Supporting Files/Info.plist diff --git a/Tests/Shared/LocaleTests.swift b/Tests/Shared/LocaleTests.swift index 838ab21..03c170f 100644 --- a/Tests/Shared/LocaleTests.swift +++ b/Tests/Shared/LocaleTests.swift @@ -21,9 +21,9 @@ class LocaleTests: XCTestCase { } override func tearDown() { - super.tearDown() en_US = nil es_ES = nil + super.tearDown() } func test__currency_code() { @@ -45,5 +45,5 @@ class LocaleTests: XCTestCase { XCTAssertEqual(en_US.currencyDecimalSeparator, ".") XCTAssertEqual(es_ES.currencyDecimalSeparator, ",") } - } + diff --git a/Tests/Shared/MoneyTests.swift b/Tests/Shared/MoneyTests.swift index 6fb096f..2089453 100644 --- a/Tests/Shared/MoneyTests.swift +++ b/Tests/Shared/MoneyTests.swift @@ -237,6 +237,15 @@ class MoneyDivisionTests: XCTestCase { } } +class MoneyConversionTests: XCTestCase { + let input: GBP = 100 + + func test__convert_with_rate_to_other() { + let output: EUR = input.convertWithRate(1.2) + XCTAssertEqual(output, 120) + } +} + class MoneyDescriptionTests: MoneyTests { override func setUp() { @@ -375,3 +384,31 @@ class MoneyMinorUnitTests: XCTestCase { } } +class CustomCurrencyWithoutSymbol: CustomCurrencyType { + static let code: String = "DAN" + static let scale: Int = 3 + static let symbol: String? = .None +} + +class CurrencyTests: XCTestCase { + + func test__formatted_with_style() { + let formating = Currency.GBP.formattedWithStyle(.CurrencyISOCodeStyle, forLocale: NSLocale.currentLocale()) + let result = formating(NSDecimalNumber(double: 10)) + XCTAssertEqual(result, "GBP10.00") + } + + func test__formatted_with_iso_style__with_no_symbol() { + let formating = CustomCurrencyWithoutSymbol.formattedWithStyle(.CurrencyISOCodeStyle, forLocale: NSLocale.currentLocale()) + let result = formating(NSDecimalNumber(double: 10.1234)) + XCTAssertEqual(result, "DAN10.123") + } + + func test__formatted_with_default_style__with_no_symbol() { + let formating = CustomCurrencyWithoutSymbol.formattedWithStyle(.CurrencyStyle, forLocale: NSLocale.currentLocale()) + let result = formating(NSDecimalNumber(double: 10.1234)) + XCTAssertEqual(result, "DAN10.123") + } +} + +