diff --git a/ios/Config.xcconfig b/ios/Config.xcconfig deleted file mode 100644 index 7b4b92e..0000000 --- a/ios/Config.xcconfig +++ /dev/null @@ -1,19 +0,0 @@ -// Avoids stripping out critical GHC runtime code (Simon Marlow has mentioned there may be around needing this) -DEAD_CODE_STRIPPING = NO - -// Be sure to include $(inherited) if you override any of the following: - -// Required by the Haskell runtime -OTHER_LDFLAGS = -liconv - -// You can use this instead to ignore the annoying -// "could not create compact unwind for .LFB3: non-standard register 5 being saved in prolog" -// error, which is harmless. But it masks all warnings, so be careful. -// OTHER_LDFLAGS = -liconv -w - -// Configure this to match your installed GHC -HEADER_SEARCH_PATHS = /Users/hamish/ghcios/lib/aarch64-apple-darwin16-ghc-8.1.20161022/include - -MODULEMAP_FILE[sdk=iphoneos*] = $(SRCROOT)/module.map -MODULEMAP_FILE[sdk=iphonesimulator*] = $(SRCROOT)/module.map -MODULEMAP_FILE[sdk=macosx*] = $(SRCROOT)/module.map diff --git a/ios/Reflex Todo MVC.xcodeproj/.gitignore b/ios/Reflex Todo MVC.xcodeproj/.gitignore deleted file mode 100644 index 816635b..0000000 --- a/ios/Reflex Todo MVC.xcodeproj/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/xcuserdata/ diff --git a/ios/Reflex Todo MVC.xcodeproj/project.pbxproj b/ios/Reflex Todo MVC.xcodeproj/project.pbxproj deleted file mode 100644 index bf7eced..0000000 --- a/ios/Reflex Todo MVC.xcodeproj/project.pbxproj +++ /dev/null @@ -1,336 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 1C7AE4AD1DCBF2030009F2A9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C7AE4AC1DCBF2030009F2A9 /* AppDelegate.swift */; }; - 1C7AE4AF1DCBF2030009F2A9 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C7AE4AE1DCBF2030009F2A9 /* ViewController.swift */; }; - 1C7AE4B21DCBF2030009F2A9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1C7AE4B01DCBF2030009F2A9 /* Main.storyboard */; }; - 1C7AE4B41DCBF2030009F2A9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1C7AE4B31DCBF2030009F2A9 /* Assets.xcassets */; }; - 1C7AE4B71DCBF2030009F2A9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1C7AE4B51DCBF2030009F2A9 /* LaunchScreen.storyboard */; }; - 1C7AE4C11DCC09090009F2A9 /* Config.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 1C7AE4C01DCC09090009F2A9 /* Config.xcconfig */; }; - 1C8D127F1DCC215200070EB8 /* ios.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C8D127E1DCC215200070EB8 /* ios.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 1C7AE4A91DCBF2030009F2A9 /* Reflex Todo MVC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Reflex Todo MVC.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 1C7AE4AC1DCBF2030009F2A9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - 1C7AE4AE1DCBF2030009F2A9 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 1C7AE4B11DCBF2030009F2A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 1C7AE4B31DCBF2030009F2A9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 1C7AE4B61DCBF2030009F2A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 1C7AE4B81DCBF2030009F2A9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 1C7AE4C01DCC09090009F2A9 /* Config.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = ""; }; - 1C8D127E1DCC215200070EB8 /* ios.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = ios.a; sourceTree = ""; }; - 1C8D12801DCC216400070EB8 /* Ios_stub.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ios_stub.h; sourceTree = ""; }; - 1C8D12811DCC423A00070EB8 /* module.map */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = "sourcecode.module-map"; path = module.map; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 1C7AE4A61DCBF2030009F2A9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1C8D127F1DCC215200070EB8 /* ios.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 1C7AE4A01DCBF2030009F2A9 = { - isa = PBXGroup; - children = ( - 1C7AE4C01DCC09090009F2A9 /* Config.xcconfig */, - 1C7AE4AB1DCBF2030009F2A9 /* Reflex Todo MVC */, - 1C7AE4AA1DCBF2030009F2A9 /* Products */, - ); - sourceTree = ""; - }; - 1C7AE4AA1DCBF2030009F2A9 /* Products */ = { - isa = PBXGroup; - children = ( - 1C7AE4A91DCBF2030009F2A9 /* Reflex Todo MVC.app */, - ); - name = Products; - sourceTree = ""; - }; - 1C7AE4AB1DCBF2030009F2A9 /* Reflex Todo MVC */ = { - isa = PBXGroup; - children = ( - 1C8D12811DCC423A00070EB8 /* module.map */, - 1C8D12801DCC216400070EB8 /* Ios_stub.h */, - 1C8D127E1DCC215200070EB8 /* ios.a */, - 1C7AE4AC1DCBF2030009F2A9 /* AppDelegate.swift */, - 1C7AE4AE1DCBF2030009F2A9 /* ViewController.swift */, - 1C7AE4B01DCBF2030009F2A9 /* Main.storyboard */, - 1C7AE4B31DCBF2030009F2A9 /* Assets.xcassets */, - 1C7AE4B51DCBF2030009F2A9 /* LaunchScreen.storyboard */, - 1C7AE4B81DCBF2030009F2A9 /* Info.plist */, - ); - path = "Reflex Todo MVC"; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 1C7AE4A81DCBF2030009F2A9 /* Reflex Todo MVC */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1C7AE4BB1DCBF2030009F2A9 /* Build configuration list for PBXNativeTarget "Reflex Todo MVC" */; - buildPhases = ( - 1C7AE4A51DCBF2030009F2A9 /* Sources */, - 1C7AE4A61DCBF2030009F2A9 /* Frameworks */, - 1C7AE4A71DCBF2030009F2A9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Reflex Todo MVC"; - productName = "Reflex Todo MVC"; - productReference = 1C7AE4A91DCBF2030009F2A9 /* Reflex Todo MVC.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 1C7AE4A11DCBF2030009F2A9 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0810; - LastUpgradeCheck = 0810; - ORGANIZATIONNAME = "Hamish Mackenzie"; - TargetAttributes = { - 1C7AE4A81DCBF2030009F2A9 = { - CreatedOnToolsVersion = 8.1; - DevelopmentTeam = S2E9QD7Q5B; - ProvisioningStyle = Automatic; - }; - }; - }; - buildConfigurationList = 1C7AE4A41DCBF2030009F2A9 /* Build configuration list for PBXProject "Reflex Todo MVC" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 1C7AE4A01DCBF2030009F2A9; - productRefGroup = 1C7AE4AA1DCBF2030009F2A9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 1C7AE4A81DCBF2030009F2A9 /* Reflex Todo MVC */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 1C7AE4A71DCBF2030009F2A9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1C7AE4C11DCC09090009F2A9 /* Config.xcconfig in Resources */, - 1C7AE4B71DCBF2030009F2A9 /* LaunchScreen.storyboard in Resources */, - 1C7AE4B41DCBF2030009F2A9 /* Assets.xcassets in Resources */, - 1C7AE4B21DCBF2030009F2A9 /* Main.storyboard in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 1C7AE4A51DCBF2030009F2A9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1C7AE4AF1DCBF2030009F2A9 /* ViewController.swift in Sources */, - 1C7AE4AD1DCBF2030009F2A9 /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 1C7AE4B01DCBF2030009F2A9 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 1C7AE4B11DCBF2030009F2A9 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 1C7AE4B51DCBF2030009F2A9 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 1C7AE4B61DCBF2030009F2A9 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 1C7AE4B91DCBF2030009F2A9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - 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_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - 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_BITCODE = NO; - 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 = 10.1; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 1C7AE4BA1DCBF2030009F2A9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - 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_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_SUSPICIOUS_MOVES = YES; - 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_BITCODE = NO; - 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 = 10.1; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 1C7AE4BC1DCBF2030009F2A9 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1C7AE4C01DCC09090009F2A9 /* Config.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = S2E9QD7Q5B; - INFOPLIST_FILE = "Reflex Todo MVC/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Reflex\\ Todo\\ MVC", - ); - PRODUCT_BUNDLE_IDENTIFIER = "Monadic-Ltd.Reflex-Todo-MVC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_INCLUDE_PATHS = "$(SRCROOT)/Reflex\\ Todo\\ MVC"; - SWIFT_VERSION = 3.0; - }; - name = Debug; - }; - 1C7AE4BD1DCBF2030009F2A9 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 1C7AE4C01DCC09090009F2A9 /* Config.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - DEVELOPMENT_TEAM = S2E9QD7Q5B; - INFOPLIST_FILE = "Reflex Todo MVC/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/Reflex\\ Todo\\ MVC", - ); - PRODUCT_BUNDLE_IDENTIFIER = "Monadic-Ltd.Reflex-Todo-MVC"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_INCLUDE_PATHS = "$(SRCROOT)/Reflex\\ Todo\\ MVC"; - SWIFT_VERSION = 3.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1C7AE4A41DCBF2030009F2A9 /* Build configuration list for PBXProject "Reflex Todo MVC" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1C7AE4B91DCBF2030009F2A9 /* Debug */, - 1C7AE4BA1DCBF2030009F2A9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 1C7AE4BB1DCBF2030009F2A9 /* Build configuration list for PBXNativeTarget "Reflex Todo MVC" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1C7AE4BC1DCBF2030009F2A9 /* Debug */, - 1C7AE4BD1DCBF2030009F2A9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 1C7AE4A11DCBF2030009F2A9 /* Project object */; -} diff --git a/ios/Reflex Todo MVC.xcodeproj/project.xcworkspace/.gitignore b/ios/Reflex Todo MVC.xcodeproj/project.xcworkspace/.gitignore deleted file mode 100644 index 816635b..0000000 --- a/ios/Reflex Todo MVC.xcodeproj/project.xcworkspace/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/xcuserdata/ diff --git a/ios/Reflex Todo MVC.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/Reflex Todo MVC.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 1bf2a64..0000000 --- a/ios/Reflex Todo MVC.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/ios/Reflex Todo MVC/.gitignore b/ios/Reflex Todo MVC/.gitignore deleted file mode 100644 index 10301e2..0000000 --- a/ios/Reflex Todo MVC/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.a diff --git a/ios/Reflex Todo MVC/AppDelegate.swift b/ios/Reflex Todo MVC/AppDelegate.swift deleted file mode 100644 index 8bb0433..0000000 --- a/ios/Reflex Todo MVC/AppDelegate.swift +++ /dev/null @@ -1,46 +0,0 @@ -// -// AppDelegate.swift -// Reflex Todo MVC -// -// Created by Hamish Mackenzie on 04/11/2016. -// Copyright © 2016 Hamish Mackenzie. All rights reserved. -// - -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - var window: UIWindow? - - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } - - func applicationWillResignActive(_ application: UIApplication) { - // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. - // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. - } - - func applicationDidEnterBackground(_ application: UIApplication) { - // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. - // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. - } - - func applicationWillEnterForeground(_ application: UIApplication) { - // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. - } - - func applicationDidBecomeActive(_ application: UIApplication) { - // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. - } - - func applicationWillTerminate(_ application: UIApplication) { - // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. - } - - -} - diff --git a/ios/Reflex Todo MVC/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/Reflex Todo MVC/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 36d2c80..0000000 --- a/ios/Reflex Todo MVC/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/ios/Reflex Todo MVC/Base.lproj/LaunchScreen.storyboard b/ios/Reflex Todo MVC/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index fdf3f97..0000000 --- a/ios/Reflex Todo MVC/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/Reflex Todo MVC/Base.lproj/Main.storyboard b/ios/Reflex Todo MVC/Base.lproj/Main.storyboard deleted file mode 100644 index 273375f..0000000 --- a/ios/Reflex Todo MVC/Base.lproj/Main.storyboard +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/Reflex Todo MVC/Info.plist b/ios/Reflex Todo MVC/Info.plist deleted file mode 100644 index d052473..0000000 --- a/ios/Reflex Todo MVC/Info.plist +++ /dev/null @@ -1,45 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/ios/Reflex Todo MVC/Ios_stub.h b/ios/Reflex Todo MVC/Ios_stub.h deleted file mode 100644 index ee80805..0000000 --- a/ios/Reflex Todo MVC/Ios_stub.h +++ /dev/null @@ -1,10 +0,0 @@ -#include "HsFFI.h" -#import -#ifdef __cplusplus -extern "C" { -#endif -extern void webViewMain(WKWebView * _Nonnull view); -#ifdef __cplusplus -} -#endif - diff --git a/ios/Reflex Todo MVC/ViewController.swift b/ios/Reflex Todo MVC/ViewController.swift deleted file mode 100644 index e301726..0000000 --- a/ios/Reflex Todo MVC/ViewController.swift +++ /dev/null @@ -1,45 +0,0 @@ -// -// ViewController.swift -// Reflex Todo MVC -// -// Created by Hamish Mackenzie on 04/11/2016. -// Copyright © 2016 Hamish Mackenzie. All rights reserved. -// - -import UIKit -import WebKit -import Haskell - -class ViewController: UIViewController { - - @IBOutlet var containerView : UIView! = nil - var webView: WKWebView? - - override func loadView() { - super.loadView() - webView = WKWebView() - view = webView - } - - override func viewDidLoad() { - super.viewDidLoad() - let args = ["MyAppName"] // , "+RTS", "-DS", "-D", "-RTS"] - var cargs : UnsafeMutablePointer?>? = UnsafeMutablePointer?>.allocate(capacity: args.count) - for (ix, s) in args.enumerated() { - cargs![ix] = UnsafeMutablePointer(mutating: (s as NSString).utf8String!) - } - var count = Int32(args.count) - print("Starinting hs_init...") - hs_init(&count, &cargs) - print("Calling iosMain") - webViewMain(webView!) - print("Called iosMain") - } - - override func didReceiveMemoryWarning() { - super.didReceiveMemoryWarning() - } - - -} - diff --git a/ios/Reflex Todo MVC/module.map b/ios/Reflex Todo MVC/module.map deleted file mode 100644 index dbd578e..0000000 --- a/ios/Reflex Todo MVC/module.map +++ /dev/null @@ -1,4 +0,0 @@ -module Haskell [system] [extern_c] { - header "ios_stub.h" - export * -} diff --git a/reflex-todomvc.cabal b/reflex-todomvc.cabal index 2dee951..f391492 100644 --- a/reflex-todomvc.cabal +++ b/reflex-todomvc.cabal @@ -70,11 +70,6 @@ library Reflex.TodoMVC ghc-prof-options: -fprof-auto ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 - if os(ios) - build-depends: - jsaddle-wkwebview - exposed-modules: - Reflex.IOS executable reflex-todomvc hs-source-dirs: src-bin diff --git a/src/Reflex/IOS.hs b/src/Reflex/IOS.hs deleted file mode 100644 index 91efe98..0000000 --- a/src/Reflex/IOS.hs +++ /dev/null @@ -1,9 +0,0 @@ -{-# LANGUAGE ForeignFunctionInterface, OverloadedStrings #-} -module Reflex.IOS where -import Language.Javascript.JSaddle.WKWebView (jsaddleMain, WKWebView(..)) -import Reflex.TodoMVC (main) - -foreign export ccall webViewMain :: WKWebView -> IO () - -webViewMain :: WKWebView -> IO () -webViewMain = jsaddleMain main