From e0300fcd076eca13d7f679845945fd8403c5bd59 Mon Sep 17 00:00:00 2001 From: Ivan Smolin Date: Fri, 15 Jan 2021 18:51:15 +0300 Subject: [PATCH] remove carthage & rome --- xcode/commonFastfile | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 5bf6e4f..ec647c4 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -23,34 +23,6 @@ private_lane :installDependencies do |options| cocoapods( repo_update: true ) - - if File.exists? "../Cartfile" - use_rome = File.exists? "../Romefile" - - swift_version = sh("xcrun swift --version | head -1 | sed 's/.*\\(\(.*\)\\).*/\\1/' | tr -d \"()\" | tr \" \" \"-\"").chop - rome_path = "Pods/Rome/rome" - rome_options = "--platform iOS --cache-prefix #{swift_version} --romefile Romefile" - - carthage_install = lambda do - if use_rome - sh("cd .. && #{rome_path} download #{rome_options}") - end - - carthage(command: "bootstrap", platform: "iOS", cache_builds: true) - - if use_rome - sh("cd .. && #{rome_path} list --missing #{rome_options} | awk '{print $1}' | xargs -I framework_name #{rome_path} upload framework_name #{rome_options}") - end - end - - begin - carthage_install.call - rescue - # workaround for https://github.com/Carthage/Carthage/issues/2298 - sh("rm -rf ~/Library/Caches/org.carthage.CarthageKit") - carthage_install.call - end - end end private_lane :uploadToFirebase do |options|