From 02c024e819a136834617786b75101becc9dda47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 13 Oct 2019 12:53:09 +0200 Subject: [PATCH] CocoaPods test apps don't rely on demo app, which requires Swift 5.1 --- .../GRDBiOS-framework/AppDelegate.swift | 18 ++++ .../GRDBiOS-framework/Default-568h@2x.png | Bin 0 -> 18594 bytes Tests/CocoaPods/GRDBiOS-framework/Extra.swift | 9 -- Tests/CocoaPods/GRDBiOS-framework/Info.plist | 36 +++++++ .../iOS.xcodeproj/project.pbxproj | 89 +++-------------- .../GRDBiOS-static/AppDelegate.swift | 18 ++++ .../GRDBiOS-static/Default-568h@2x.png | Bin 0 -> 18594 bytes Tests/CocoaPods/GRDBiOS-static/Extra.swift | 9 -- Tests/CocoaPods/GRDBiOS-static/Info.plist | 36 +++++++ .../iOS.xcodeproj/project.pbxproj | 94 ++++-------------- 10 files changed, 141 insertions(+), 168 deletions(-) create mode 100644 Tests/CocoaPods/GRDBiOS-framework/AppDelegate.swift create mode 100644 Tests/CocoaPods/GRDBiOS-framework/Default-568h@2x.png delete mode 100644 Tests/CocoaPods/GRDBiOS-framework/Extra.swift create mode 100644 Tests/CocoaPods/GRDBiOS-framework/Info.plist create mode 100644 Tests/CocoaPods/GRDBiOS-static/AppDelegate.swift create mode 100644 Tests/CocoaPods/GRDBiOS-static/Default-568h@2x.png delete mode 100644 Tests/CocoaPods/GRDBiOS-static/Extra.swift create mode 100644 Tests/CocoaPods/GRDBiOS-static/Info.plist diff --git a/Tests/CocoaPods/GRDBiOS-framework/AppDelegate.swift b/Tests/CocoaPods/GRDBiOS-framework/AppDelegate.swift new file mode 100644 index 000000000..0ecb34814 --- /dev/null +++ b/Tests/CocoaPods/GRDBiOS-framework/AppDelegate.swift @@ -0,0 +1,18 @@ +import GRDB +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { + // Test GRDB + _ = DatabaseQueue() + + // test SQLITE_ENABLE_FTS5 + _ = FTS5.self + + // test_SQLITE_ENABLE_PREUPDATE_HOOK + _ = DatabasePreUpdateEvent.self + + return true + } +} diff --git a/Tests/CocoaPods/GRDBiOS-framework/Default-568h@2x.png b/Tests/CocoaPods/GRDBiOS-framework/Default-568h@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0891b7aabfcf3422423b109c8beed2bab838c607 GIT binary patch literal 18594 zcmeI4X;f257Jx&9fS`ixvS;&$x8J@slQFSel)6zJN=?13FB7H(lQjRkSy8x_-S~tvu2gzn1oS+dLcF#eqtq$ z%tf9TTvX?`)R@}3uBI;jzS-=ZR-Td&MHaS&;!0?Ni*#$#`n*~CcQK)Q9vAQ~TUpnI!j)a2biYK^R)M~A5wUDZhx?ULMX z3x1P&qt=trOY6P2U67L=m=U?F|5#Uj(eCueNTZaHs_ceWiHeET+j+tp3Jt9g(ekqP z2WOvfR{qV+9r+o4J5?qK>7;;^+I7tGv-i)es$X_D=EoKF+S?zsyj^oRFElP}c}JT< zd8SUs-?O?}2YD#ngKbnHgzHBcboxK_2r9l(?eNCl-pEzkJm}fY?WC*jnS?VBE4EpY zO$fEejz6fU;W2Kl>JeQBZBl-%Irg`obSlg*@4QB;Dd1H7^Oi5wvt4d{RZ!8Og?^aE z)k0$1g+V3fd(gdQ3d&q2q-FL*uy#}|bc^=VhFsl0jBgUGJ+-s3U8MK9A!YJJMxpci z5hJ%|{DwV48fZn0{n5l$N_KcSb#NKE4plB`9I6Zt=Z!~-zw0{9tg$L&Ju1F0X)Cy8 zKF;(&lJ>x)Jw(=;p~sF(Sd9VWGwFE2rnyS9!f^DZ8+aCLq zQ};>lcJ1GDLqjm6Hd>|Eabno@P`~Bn(~6^aD_#yoEH(a?Nm1S<;S+hSxI5d16^<1lEM3NPFi zkqPrpL)+ zgnseFikg`gJVBha1&7C4;O6>h=dt~`ND+;Zd?W(4v2JIb7Pt>Td42%M-Ju-XAH#Pns762L}K3 zDhvsRqN0Ni(1UrishD2YvV?4*h2iFj$+&N||Fn$4n|^NSU+o?~jq`0jVQt8T9l{7b zXiwwODFh2V!Q6sqP9S>WH$oOf$N~=d0-bqTlD61!=`&0eAP-F>XN?*|gtOXX{ zQVTWyYo4ZK0GAw!GHf|pz9`D;-bbb*5LBX*{bnz|+)$@&P9|ORM2o?95{;ejvo&r- zq8cBhTN6nn)7~W>54U)%-F_-b?YKdfk5I8MHcuzBD5)!;yv#Z&R&^y=@=>VTIMy#r zX&U<=BsPkdqcMe<_}2+>H%XKyrr5ZR8_KVe>ZqYN z^=^~TFD};;rHJ$U;{~w^hYojl4hRI@SH$^K{YEo=sg)WY87r!*7blQK&qnpDo0`Vn zkl)9u9g=mCh&ZCJS(L4yN3k0kQ zuvg$h2KEEk51T+O0JQ+r0`R>g{jvqM0Mr6d3qUOZwE!?PI7HY@CE|dr sfw?Q;rAv?G4&^^8-z_>&sWXMxvD*gPOU4CBe-*@OtE+wfmVJNyHv)PfH~;_u literal 0 HcmV?d00001 diff --git a/Tests/CocoaPods/GRDBiOS-framework/Extra.swift b/Tests/CocoaPods/GRDBiOS-framework/Extra.swift deleted file mode 100644 index 8448da6f5..000000000 --- a/Tests/CocoaPods/GRDBiOS-framework/Extra.swift +++ /dev/null @@ -1,9 +0,0 @@ -import GRDB - -func test_SQLITE_ENABLE_FTS5() { - _ = FTS5.self -} - -func test_SQLITE_ENABLE_PREUPDATE_HOOK() { - _ = DatabasePreUpdateEvent.self -} diff --git a/Tests/CocoaPods/GRDBiOS-framework/Info.plist b/Tests/CocoaPods/GRDBiOS-framework/Info.plist new file mode 100644 index 000000000..fb4115c84 --- /dev/null +++ b/Tests/CocoaPods/GRDBiOS-framework/Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Tests/CocoaPods/GRDBiOS-framework/iOS.xcodeproj/project.pbxproj b/Tests/CocoaPods/GRDBiOS-framework/iOS.xcodeproj/project.pbxproj index 59f0715c0..00a2476ac 100644 --- a/Tests/CocoaPods/GRDBiOS-framework/iOS.xcodeproj/project.pbxproj +++ b/Tests/CocoaPods/GRDBiOS-framework/iOS.xcodeproj/project.pbxproj @@ -7,15 +7,8 @@ objects = { /* Begin PBXBuildFile section */ - 561DCFEF2343C25200BF2235 /* Extra.swift in Sources */ = {isa = PBXBuildFile; fileRef = 561DCFEE2343C25200BF2235 /* Extra.swift */; }; - 562697512110308F0066800A /* PlayersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974C2110308E0066800A /* PlayersViewController.swift */; }; - 562697522110308F0066800A /* Player.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974D2110308E0066800A /* Player.swift */; }; - 562697532110308F0066800A /* PlayerEditionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974E2110308E0066800A /* PlayerEditionViewController.swift */; }; - 562697542110308F0066800A /* AppDatabase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974F2110308E0066800A /* AppDatabase.swift */; }; - 562697552110308F0066800A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 562697502110308E0066800A /* AppDelegate.swift */; }; - 567374431B4D46600089DE44 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 567374411B4D46600089DE44 /* Main.storyboard */; }; - 567374451B4D46600089DE44 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 567374441B4D46600089DE44 /* Assets.xcassets */; }; - 567374481B4D46600089DE44 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 567374461B4D46600089DE44 /* LaunchScreen.storyboard */; }; + 56606CF02353353600185962 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56606CEF2353353600185962 /* AppDelegate.swift */; }; + 56606CF32353368800185962 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 56606CF22353368800185962 /* Default-568h@2x.png */; }; 905ECD161513DA7089DC0E4F /* Pods_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 44319992BE6EA64810E8982A /* Pods_iOS.framework */; }; /* End PBXBuildFile section */ @@ -34,17 +27,10 @@ /* Begin PBXFileReference section */ 44319992BE6EA64810E8982A /* Pods_iOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_iOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 561DCFEE2343C25200BF2235 /* Extra.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Extra.swift; sourceTree = SOURCE_ROOT; }; - 5626974C2110308E0066800A /* PlayersViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayersViewController.swift; sourceTree = ""; }; - 5626974D2110308E0066800A /* Player.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Player.swift; sourceTree = ""; }; - 5626974E2110308E0066800A /* PlayerEditionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayerEditionViewController.swift; sourceTree = ""; }; - 5626974F2110308E0066800A /* AppDatabase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDatabase.swift; sourceTree = ""; }; - 562697502110308E0066800A /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 56606CEF2353353600185962 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 56606CF12353357300185962 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 56606CF22353368800185962 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 567374381B4D46600089DE44 /* iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 567374421B4D46600089DE44 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 567374441B4D46600089DE44 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 567374471B4D46600089DE44 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 567374491B4D46600089DE44 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62C5B84AA50DF194B4DDDFD0 /* Pods-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-iOS/Pods-iOS.debug.xcconfig"; sourceTree = ""; }; 9573251A237B01D90415D0D7 /* Pods-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-iOS/Pods-iOS.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -64,7 +50,9 @@ 5673742F1B4D46600089DE44 = { isa = PBXGroup; children = ( - 5673743A1B4D46600089DE44 /* GRDBDemoiOS */, + 56606CEF2353353600185962 /* AppDelegate.swift */, + 56606CF22353368800185962 /* Default-568h@2x.png */, + 56606CF12353357300185962 /* Info.plist */, 567374391B4D46600089DE44 /* Products */, 9ABB37395508D35C98A292E7 /* Pods */, 8D9BFC4007F760CC8E01ACC6 /* Frameworks */, @@ -79,24 +67,6 @@ name = Products; sourceTree = ""; }; - 5673743A1B4D46600089DE44 /* GRDBDemoiOS */ = { - isa = PBXGroup; - children = ( - 5626974F2110308E0066800A /* AppDatabase.swift */, - 562697502110308E0066800A /* AppDelegate.swift */, - 561DCFEE2343C25200BF2235 /* Extra.swift */, - 5626974D2110308E0066800A /* Player.swift */, - 5626974E2110308E0066800A /* PlayerEditionViewController.swift */, - 5626974C2110308E0066800A /* PlayersViewController.swift */, - 567374441B4D46600089DE44 /* Assets.xcassets */, - 567374491B4D46600089DE44 /* Info.plist */, - 567374461B4D46600089DE44 /* LaunchScreen.storyboard */, - 567374411B4D46600089DE44 /* Main.storyboard */, - ); - name = GRDBDemoiOS; - path = ../../../DemoApps/GRDBDemoiOS/GRDBDemoiOS; - sourceTree = ""; - }; 8D9BFC4007F760CC8E01ACC6 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -156,10 +126,9 @@ }; buildConfigurationList = 567374331B4D46600089DE44 /* Build configuration list for PBXProject "iOS" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( - English, en, Base, ); @@ -178,9 +147,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 567374481B4D46600089DE44 /* LaunchScreen.storyboard in Resources */, - 567374451B4D46600089DE44 /* Assets.xcassets in Resources */, - 567374431B4D46600089DE44 /* Main.storyboard in Resources */, + 56606CF32353368800185962 /* Default-568h@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -230,36 +197,12 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 562697522110308F0066800A /* Player.swift in Sources */, - 562697532110308F0066800A /* PlayerEditionViewController.swift in Sources */, - 561DCFEF2343C25200BF2235 /* Extra.swift in Sources */, - 562697542110308F0066800A /* AppDatabase.swift in Sources */, - 562697552110308F0066800A /* AppDelegate.swift in Sources */, - 562697512110308F0066800A /* PlayersViewController.swift in Sources */, + 56606CF02353353600185962 /* AppDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXVariantGroup section */ - 567374411B4D46600089DE44 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 567374421B4D46600089DE44 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 567374461B4D46600089DE44 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 567374471B4D46600089DE44 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - /* Begin XCBuildConfiguration section */ 567374601B4D46600089DE44 /* Debug */ = { isa = XCBuildConfiguration; @@ -369,13 +312,12 @@ isa = XCBuildConfiguration; baseConfigurationReference = 62C5B84AA50DF194B4DDDFD0 /* Pods-iOS.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - INFOPLIST_FILE = ../../../DemoApps/GRDBDemoiOS/GRDBDemoiOS/Info.plist; + INFOPLIST_FILE = Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = GRDB.CarthageTest; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBTest; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -387,13 +329,12 @@ isa = XCBuildConfiguration; baseConfigurationReference = 9573251A237B01D90415D0D7 /* Pods-iOS.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - INFOPLIST_FILE = ../../../DemoApps/GRDBDemoiOS/GRDBDemoiOS/Info.plist; + INFOPLIST_FILE = Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = GRDB.CarthageTest; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBTest; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; SWIFT_VERSION = 4.2; diff --git a/Tests/CocoaPods/GRDBiOS-static/AppDelegate.swift b/Tests/CocoaPods/GRDBiOS-static/AppDelegate.swift new file mode 100644 index 000000000..0ecb34814 --- /dev/null +++ b/Tests/CocoaPods/GRDBiOS-static/AppDelegate.swift @@ -0,0 +1,18 @@ +import GRDB +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { + // Test GRDB + _ = DatabaseQueue() + + // test SQLITE_ENABLE_FTS5 + _ = FTS5.self + + // test_SQLITE_ENABLE_PREUPDATE_HOOK + _ = DatabasePreUpdateEvent.self + + return true + } +} diff --git a/Tests/CocoaPods/GRDBiOS-static/Default-568h@2x.png b/Tests/CocoaPods/GRDBiOS-static/Default-568h@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..0891b7aabfcf3422423b109c8beed2bab838c607 GIT binary patch literal 18594 zcmeI4X;f257Jx&9fS`ixvS;&$x8J@slQFSel)6zJN=?13FB7H(lQjRkSy8x_-S~tvu2gzn1oS+dLcF#eqtq$ z%tf9TTvX?`)R@}3uBI;jzS-=ZR-Td&MHaS&;!0?Ni*#$#`n*~CcQK)Q9vAQ~TUpnI!j)a2biYK^R)M~A5wUDZhx?ULMX z3x1P&qt=trOY6P2U67L=m=U?F|5#Uj(eCueNTZaHs_ceWiHeET+j+tp3Jt9g(ekqP z2WOvfR{qV+9r+o4J5?qK>7;;^+I7tGv-i)es$X_D=EoKF+S?zsyj^oRFElP}c}JT< zd8SUs-?O?}2YD#ngKbnHgzHBcboxK_2r9l(?eNCl-pEzkJm}fY?WC*jnS?VBE4EpY zO$fEejz6fU;W2Kl>JeQBZBl-%Irg`obSlg*@4QB;Dd1H7^Oi5wvt4d{RZ!8Og?^aE z)k0$1g+V3fd(gdQ3d&q2q-FL*uy#}|bc^=VhFsl0jBgUGJ+-s3U8MK9A!YJJMxpci z5hJ%|{DwV48fZn0{n5l$N_KcSb#NKE4plB`9I6Zt=Z!~-zw0{9tg$L&Ju1F0X)Cy8 zKF;(&lJ>x)Jw(=;p~sF(Sd9VWGwFE2rnyS9!f^DZ8+aCLq zQ};>lcJ1GDLqjm6Hd>|Eabno@P`~Bn(~6^aD_#yoEH(a?Nm1S<;S+hSxI5d16^<1lEM3NPFi zkqPrpL)+ zgnseFikg`gJVBha1&7C4;O6>h=dt~`ND+;Zd?W(4v2JIb7Pt>Td42%M-Ju-XAH#Pns762L}K3 zDhvsRqN0Ni(1UrishD2YvV?4*h2iFj$+&N||Fn$4n|^NSU+o?~jq`0jVQt8T9l{7b zXiwwODFh2V!Q6sqP9S>WH$oOf$N~=d0-bqTlD61!=`&0eAP-F>XN?*|gtOXX{ zQVTWyYo4ZK0GAw!GHf|pz9`D;-bbb*5LBX*{bnz|+)$@&P9|ORM2o?95{;ejvo&r- zq8cBhTN6nn)7~W>54U)%-F_-b?YKdfk5I8MHcuzBD5)!;yv#Z&R&^y=@=>VTIMy#r zX&U<=BsPkdqcMe<_}2+>H%XKyrr5ZR8_KVe>ZqYN z^=^~TFD};;rHJ$U;{~w^hYojl4hRI@SH$^K{YEo=sg)WY87r!*7blQK&qnpDo0`Vn zkl)9u9g=mCh&ZCJS(L4yN3k0kQ zuvg$h2KEEk51T+O0JQ+r0`R>g{jvqM0Mr6d3qUOZwE!?PI7HY@CE|dr sfw?Q;rAv?G4&^^8-z_>&sWXMxvD*gPOU4CBe-*@OtE+wfmVJNyHv)PfH~;_u literal 0 HcmV?d00001 diff --git a/Tests/CocoaPods/GRDBiOS-static/Extra.swift b/Tests/CocoaPods/GRDBiOS-static/Extra.swift deleted file mode 100644 index 8448da6f5..000000000 --- a/Tests/CocoaPods/GRDBiOS-static/Extra.swift +++ /dev/null @@ -1,9 +0,0 @@ -import GRDB - -func test_SQLITE_ENABLE_FTS5() { - _ = FTS5.self -} - -func test_SQLITE_ENABLE_PREUPDATE_HOOK() { - _ = DatabasePreUpdateEvent.self -} diff --git a/Tests/CocoaPods/GRDBiOS-static/Info.plist b/Tests/CocoaPods/GRDBiOS-static/Info.plist new file mode 100644 index 000000000..fb4115c84 --- /dev/null +++ b/Tests/CocoaPods/GRDBiOS-static/Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Tests/CocoaPods/GRDBiOS-static/iOS.xcodeproj/project.pbxproj b/Tests/CocoaPods/GRDBiOS-static/iOS.xcodeproj/project.pbxproj index 78c62e00d..295fbcddd 100644 --- a/Tests/CocoaPods/GRDBiOS-static/iOS.xcodeproj/project.pbxproj +++ b/Tests/CocoaPods/GRDBiOS-static/iOS.xcodeproj/project.pbxproj @@ -7,16 +7,9 @@ objects = { /* Begin PBXBuildFile section */ - 561DCFF12343C4B200BF2235 /* Extra.swift in Sources */ = {isa = PBXBuildFile; fileRef = 561DCFF02343C4B200BF2235 /* Extra.swift */; }; - 562697512110308F0066800A /* PlayersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974C2110308E0066800A /* PlayersViewController.swift */; }; - 562697522110308F0066800A /* Player.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974D2110308E0066800A /* Player.swift */; }; - 562697532110308F0066800A /* PlayerEditionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974E2110308E0066800A /* PlayerEditionViewController.swift */; }; - 562697542110308F0066800A /* AppDatabase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5626974F2110308E0066800A /* AppDatabase.swift */; }; - 562697552110308F0066800A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 562697502110308E0066800A /* AppDelegate.swift */; }; - 567374431B4D46600089DE44 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 567374411B4D46600089DE44 /* Main.storyboard */; }; - 567374451B4D46600089DE44 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 567374441B4D46600089DE44 /* Assets.xcassets */; }; - 567374481B4D46600089DE44 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 567374461B4D46600089DE44 /* LaunchScreen.storyboard */; }; - D246CFB4904D46E7D400E2CE /* libPods-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9E46153E91609427B4025BC7 /* libPods-iOS.a */; }; + 33D0B66EF0B896F9E8391C5D /* libPods-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D9232D362032D81EAFF2102C /* libPods-iOS.a */; }; + 56606CF02353353600185962 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56606CEF2353353600185962 /* AppDelegate.swift */; }; + 56606CF32353368800185962 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 56606CF22353368800185962 /* Default-568h@2x.png */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -33,20 +26,13 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 561DCFF02343C4B200BF2235 /* Extra.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Extra.swift; sourceTree = SOURCE_ROOT; }; - 5626974C2110308E0066800A /* PlayersViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayersViewController.swift; sourceTree = ""; }; - 5626974D2110308E0066800A /* Player.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Player.swift; sourceTree = ""; }; - 5626974E2110308E0066800A /* PlayerEditionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlayerEditionViewController.swift; sourceTree = ""; }; - 5626974F2110308E0066800A /* AppDatabase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDatabase.swift; sourceTree = ""; }; - 562697502110308E0066800A /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 56606CEF2353353600185962 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 56606CF12353357300185962 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 56606CF22353368800185962 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; 567374381B4D46600089DE44 /* iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 567374421B4D46600089DE44 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 567374441B4D46600089DE44 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 567374471B4D46600089DE44 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 567374491B4D46600089DE44 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62C5B84AA50DF194B4DDDFD0 /* Pods-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-iOS/Pods-iOS.debug.xcconfig"; sourceTree = ""; }; 9573251A237B01D90415D0D7 /* Pods-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-iOS/Pods-iOS.release.xcconfig"; sourceTree = ""; }; - 9E46153E91609427B4025BC7 /* libPods-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + D9232D362032D81EAFF2102C /* libPods-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -54,7 +40,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - D246CFB4904D46E7D400E2CE /* libPods-iOS.a in Frameworks */, + 33D0B66EF0B896F9E8391C5D /* libPods-iOS.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -64,7 +50,9 @@ 5673742F1B4D46600089DE44 = { isa = PBXGroup; children = ( - 5673743A1B4D46600089DE44 /* GRDBDemoiOS */, + 56606CEF2353353600185962 /* AppDelegate.swift */, + 56606CF22353368800185962 /* Default-568h@2x.png */, + 56606CF12353357300185962 /* Info.plist */, 567374391B4D46600089DE44 /* Products */, 9ABB37395508D35C98A292E7 /* Pods */, 8D9BFC4007F760CC8E01ACC6 /* Frameworks */, @@ -79,28 +67,10 @@ name = Products; sourceTree = ""; }; - 5673743A1B4D46600089DE44 /* GRDBDemoiOS */ = { - isa = PBXGroup; - children = ( - 5626974F2110308E0066800A /* AppDatabase.swift */, - 562697502110308E0066800A /* AppDelegate.swift */, - 561DCFF02343C4B200BF2235 /* Extra.swift */, - 5626974D2110308E0066800A /* Player.swift */, - 5626974E2110308E0066800A /* PlayerEditionViewController.swift */, - 5626974C2110308E0066800A /* PlayersViewController.swift */, - 567374441B4D46600089DE44 /* Assets.xcassets */, - 567374491B4D46600089DE44 /* Info.plist */, - 567374461B4D46600089DE44 /* LaunchScreen.storyboard */, - 567374411B4D46600089DE44 /* Main.storyboard */, - ); - name = GRDBDemoiOS; - path = ../../../DemoApps/GRDBDemoiOS/GRDBDemoiOS; - sourceTree = ""; - }; 8D9BFC4007F760CC8E01ACC6 /* Frameworks */ = { isa = PBXGroup; children = ( - 9E46153E91609427B4025BC7 /* libPods-iOS.a */, + D9232D362032D81EAFF2102C /* libPods-iOS.a */, ); name = Frameworks; sourceTree = ""; @@ -176,9 +146,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 567374481B4D46600089DE44 /* LaunchScreen.storyboard in Resources */, - 567374451B4D46600089DE44 /* Assets.xcassets in Resources */, - 567374431B4D46600089DE44 /* Main.storyboard in Resources */, + 56606CF32353368800185962 /* Default-568h@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -210,36 +178,12 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 562697522110308F0066800A /* Player.swift in Sources */, - 562697532110308F0066800A /* PlayerEditionViewController.swift in Sources */, - 561DCFF12343C4B200BF2235 /* Extra.swift in Sources */, - 562697542110308F0066800A /* AppDatabase.swift in Sources */, - 562697552110308F0066800A /* AppDelegate.swift in Sources */, - 562697512110308F0066800A /* PlayersViewController.swift in Sources */, + 56606CF02353353600185962 /* AppDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXVariantGroup section */ - 567374411B4D46600089DE44 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 567374421B4D46600089DE44 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 567374461B4D46600089DE44 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 567374471B4D46600089DE44 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - /* Begin XCBuildConfiguration section */ 567374601B4D46600089DE44 /* Debug */ = { isa = XCBuildConfiguration; @@ -349,13 +293,12 @@ isa = XCBuildConfiguration; baseConfigurationReference = 62C5B84AA50DF194B4DDDFD0 /* Pods-iOS.debug.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - INFOPLIST_FILE = ../../../DemoApps/GRDBDemoiOS/GRDBDemoiOS/Info.plist; + INFOPLIST_FILE = Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = GRDB.CarthageTest; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBTest; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -367,13 +310,12 @@ isa = XCBuildConfiguration; baseConfigurationReference = 9573251A237B01D90415D0D7 /* Pods-iOS.release.xcconfig */; buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - INFOPLIST_FILE = ../../../DemoApps/GRDBDemoiOS/GRDBDemoiOS/Info.plist; + INFOPLIST_FILE = Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = GRDB.CarthageTest; + PRODUCT_BUNDLE_IDENTIFIER = com.github.groue.GRDBTest; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; SWIFT_VERSION = 4.2;