lib/snapshot.rb in snapshot-0.9.3 vs lib/snapshot.rb in snapshot-0.10.0
- old
+ new
@@ -14,6 +14,14 @@
module Snapshot
Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
Snapshot::DependencyChecker.check_dependencies
+
+ def self.xcode_version
+ `xcodebuild -version`.match(/Xcode (.*)/)[1]
+ end
+
+ def self.min_xcode7?
+ xcode_version.split(".").first.to_i >= 7
+ end
end