From f7c3f02e82a89feaf635fef2eda99e7047219518 Mon Sep 17 00:00:00 2001 From: Alexey Gerasimov Date: Tue, 26 Sep 2017 23:39:17 +0300 Subject: [PATCH] commonFastlane file added --- xcode/commonFastfile | 30 ++++++++++++++++++++++++++++++ xcode/exportPlistEnterprise.plist | Bin 64 -> 0 bytes xcode/exportPlistStandard.plist | Bin 65 -> 0 bytes 3 files changed, 30 insertions(+) create mode 100644 xcode/commonFastfile delete mode 100644 xcode/exportPlistEnterprise.plist delete mode 100644 xcode/exportPlistStandard.plist diff --git a/xcode/commonFastfile b/xcode/commonFastfile new file mode 100644 index 0000000..622ddce --- /dev/null +++ b/xcode/commonFastfile @@ -0,0 +1,30 @@ +$appName = File.basename(Dir['../*.xcworkspace'].first, '.*') + +before_each do |lane, options| + cocoapods( + clean: true, + repo_update: true + ) + set_info_plist_value( + path: "./#{$appName}/Info.plist", + key: "CFBundleVersion", + value: options[:buildNumber] || 10000 + ) +end + +after_each do |lane, options| + if options[:uploadToFabric] + token = sh("cat ../#{$appName}.xcodeproj/project.pbxproj | grep 'Fabric/run' | awk '{print $4}' | tr -d '\n'") + secret = sh("cat ../#{$appName}.xcodeproj/project.pbxproj | grep 'Fabric/run' | awk '{print $5}' | sed 's/..$//' | tr -d '\n'") + releaseNotesFile = "release-notes.txt" + sh("touch ../#{releaseNotesFile}") + crashlytics( + ipa_path: "./#{$appName}.ipa", + crashlytics_path: "./Pods/Crashlytics/", + api_token: token, + build_secret: secret, + notes_path: releaseNotesFile, + groups: "touch-instinct" + ) + end +end diff --git a/xcode/exportPlistEnterprise.plist b/xcode/exportPlistEnterprise.plist deleted file mode 100644 index 6f2f5c04a455554dd77bc5d794b49c92418425f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 64 zcmYc)$jK}&F)+Bu$P|{FT9T2U5|x@)l3G+ylv$k0!7ao928@glnt>Tg!zft*FwzTr diff --git a/xcode/exportPlistStandard.plist b/xcode/exportPlistStandard.plist deleted file mode 100644 index 34839e11d655eaf4b0f9d05563e1e231633990e1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 65 zcmYc)$jK}&F)+Bu$P|{FT9T2U5}lG-mYS1akeixU!oe-X00xYV5SoD*O2a5Q07-lc A-~a#s