pilot/lib/pilot/build_manager.rb in fastlane-2.166.0 vs pilot/lib/pilot/build_manager.rb in fastlane-2.167.0

- old
+ new

@@ -190,11 +190,11 @@ # Get processed builds builds = app.get_builds(includes: "betaBuildMetrics,preReleaseVersion", sort: "-uploadedDate").map do |build| [ build.app_version, build.version, - (build.beta_build_metrics || []).map(&:install_count).reduce(:+) + (build.beta_build_metrics || []).map(&:install_count).compact.reduce(:+) ] end # Only show table if there are any build deliveries unless build_deliveries.empty? @@ -271,12 +271,18 @@ end end changelog end + def self.emoji_regex + # EmojiRegex::RGIEmoji is now preferred over EmojiRegex::Regex which is deprecated as of 3.2.0 + # https://github.com/ticky/ruby-emoji-regex/releases/tag/v3.2.0 + return defined?(EmojiRegex::RGIEmoji) ? EmojiRegex::RGIEmoji : EmojiRegex::Regex + end + def self.strip_emoji(changelog) - if changelog && changelog =~ EmojiRegex::Regex - changelog.gsub!(EmojiRegex::Regex, "") + if changelog && changelog =~ emoji_regex + changelog.gsub!(emoji_regex, "") UI.important("Emoji symbols have been removed from the changelog, since they're not allowed by Apple.") end changelog end