lib/fastlane/plugin/polidea/actions/add_prefix_schema.rb in fastlane-plugin-polidea-2.1.1.pre vs lib/fastlane/plugin/polidea/actions/add_prefix_schema.rb in fastlane-plugin-polidea-2.1.1.pre.1

- old
+ new

@@ -6,19 +6,22 @@ PREFIX_SCHEMA = :PREFIX_SCHEMA end class AddPrefixSchemaAction < Action def self.run(config) + Fastlane::Polidea.session.action_launched("add_prefix_schema", config) + prefix_schema = generate_url_scheme info_plists = Dir.glob(File.join(config[:path], "**/*.plist")) UI.user_error!("There isn't any Info.plist in this directory") if info_plists.empty? info_plists.each do |info_plist| update_plist(info_plist, prefix_schema) end Actions.lane_context[SharedValues::PREFIX_SCHEMA] = prefix_schema + Fastlane::Polidea.session.action_completed("add_prefix_schema") prefix_schema end def self.generate_url_scheme Base64.urlsafe_encode64(SecureRandom.hex)[0..11]