Sha256: 81e087d510406cafa8fec13acb5acc54dbe71c314145eb42d4f049571e58432d

Contents?: true

Size: 771 Bytes

Versions: 2

Compression:

Stored size: 771 Bytes

Contents

module SimCtl
  class Command
    module Privacy
      # Change privacy settings
      #
      # @param device [SimCtl::Device] the device
      # @param action [String] grant, revoke, reset
      # @param service [String] all, calendar, contacts-limited, contacts, location,
      #                location-always, photos-add, photos, media-library, microphone,
      #                motion, reminders, siri
      # @param bundle [String] bundle identifier
      # @return [void]
      def privacy(device, action, service, bundle)
        unless Xcode::Version.gte? '11.4'
          raise UnsupportedCommandError, 'Needs at least Xcode 11.4'
        end
        Executor.execute(command_for('privacy', device.udid, action, service, bundle))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simctl-1.6.10 lib/simctl/command/privacy.rb
simctl-1.6.8 lib/simctl/command/privacy.rb