INNER CODE UNIT · Ruby

GetAppStoreVersionNumberAction

SiarheiFedartsou/fastlane-plugin-versioning · lib/fastlane/plugin/versioning/actions/get_app_store_version_number.rb:3

    class GetAppStoreVersionNumberAction < Action

      require 'json'
      require 'securerandom'

      def self.run(params)
        if params[:bundle_id]
          bundle_id = params[:bundle_id]
        else
          if Helper.test?
            plist = "/tmp/fastlane/tests/fastlane/plist/Info.plist"
          else
            plist = GetInfoPlistPathAction.run(params)
          end
          bundle_id = GetInfoPlistValueAction.run(path: plist, key: 'CFBundleIdentifier') # TODO: add same kind of flag to support build setting variables
        end

        random = Helper.test? ? "123" : SecureRandom.uuid

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…