Class: Fastlane::Actions::GsExecuteBetaLaneAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::GsExecuteBetaLaneAction
- Defined in:
- lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
61 62 63 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 61 def self. ["Сергей Веселовский"] end |
.available_options ⇒ Object
74 75 76 77 78 79 80 81 82 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 74 def self. [ FastlaneCore::ConfigItem.new(key: :alias, env_name: "ALIAS", description: "project system alias", optional: false, type: String) ] end |
.description ⇒ Object
57 58 59 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 57 def self.description "Plugin contains project flow code for code sharing between projects" end |
.details ⇒ Object
69 70 71 72 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 69 def self.details # Optional: "Plugin contains project flow code for code sharing between GradoService projects" end |
.is_supported?(platform) ⇒ Boolean
84 85 86 87 88 89 90 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 84 def self.is_supported?(platform) # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example) # See: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md # # [:ios, :mac, :android].include?(platform) true end |
.return_value ⇒ Object
65 66 67 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 65 def self.return_value # If your method provides a return value, you can describe here what it does end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_beta_lane.rb', line 4 def self.run(params) require 'fastlane/plugin/gs_versioning' require 'fastlane/plugin/versioning' # match(type: "appstore") # more information: https://codesigning.guide # Increment the build number (not the version number) UI.("alias = " + params[:alias]) fastlaneHelper = Fastlane::Helper::GsProjectFlowIosHelper.new # v = Helper::GsProjectFlowIosHelper.new.execute_action('gs_increment_beta_version', {path:Helper::GsProjectFlowIosHelper.get_versions_path}) arg = FastlaneCore::Configuration.create(GsIncrementBetaVersionAction., {path:Helper::GsProjectFlowIosHelper.get_versions_path}) v = GsIncrementBetaVersionAction.run(arg) version_name = v.major.to_s + "." + v.minor.to_s + "." + v.build.to_s UI.('version' + version_name) # Helper::GsProjectFlowIosHelper.new.execute_action('increment_build_number_in_plist', {xcodeproj:ENV["xcodeproj"], target:ENV["target"], build_number: v.build.to_s}) Actions::IncrementBuildNumberInPlistAction.run(FastlaneCore::Configuration.create(Actions::IncrementBuildNumberInPlistAction., {xcodeproj:ENV["xcodeproj"], target:ENV["target"], build_number: v.build.to_s})) # Helper::GsProjectFlowIosHelper.new.execute_action('increment_build_version_in_plist', {version_number: v.major.to_s + "." + v.minor.to_s + ".0", # xcodeproj: ENV["xcodeproj"], # target: ENV["target"]}) IncrementVersionNumberInPlistAction.run(FastlaneCore::Configuration.create(IncrementVersionNumberInPlistAction., {version_number: v.major.to_s + "." + v.minor.to_s, xcodeproj: ENV["xcodeproj"], target: ENV["target"]})) ruText = fastlaneHelper.generateReleaseNotes("fileBeta", params[:alias], version_name, "Ru") enText = fastlaneHelper.generateReleaseNotes("fileBeta", params[:alias], version_name, "En") # ruText = FileHelper.read(Dir.pwd + "/../../../notes/" + ENV["ALIAS"] + "/" + version_name + "_Ru.txt") # enText = FileHelper.read(Dir.pwd + "/../../../notes/" + ENV["ALIAS"] + "/" + version_name + "_En.txt") require 'date' current_time = DateTime.now time_string = current_time.strftime "%d.%m.%Y %H-%M" crashlytics_changelog = time_string + "\n" + ruText + "\n\n" + enText # Dir.chdir ".." do UI.(Dir.pwd) sh "chmod 744 ./DeleteDerrivedData.sh" sh Dir.pwd+"/DeleteDerrivedData.sh" # end Actions::GymAction.run(FastlaneCore::Configuration.create(GymAction.,{scheme: ENV["APP_SCHEME"], export_method:"ad-hoc", export_options: { provisioningProfiles: { ENV["BUNDLE_ID"] => "AdHoc "+ENV["ALIAS"] } }, skip_profile_detection: true })) # Build your app - more options available Actions::CrashlyticsAction.run(FastlaneCore::Configuration.create(CrashlyticsAction.,{notes: crashlytics_changelog, groups: ENV["CRASHLYTICS_GROUPS"]})) Actions::GsSaveBetaVersionAction.run(FastlaneCore::Configuration.create(GsSaveBetaVersionAction.,{version:v, path:Helper::GsProjectFlowIosHelper.get_versions_path})) UI.success("✅ App is released to Crashlytics") # # You can also use other beta testing services here (run fastlane actions) end |