Class: CocoapodsCatalystSupport::OSPlatform

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-catalyst-support/os_platform.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#filterObject (readonly)

Returns the value of attribute filter.


7
8
9
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 7

def filter
  @filter
end

#nameObject (readonly)

Returns the value of attribute name.


4
5
6
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 4

def name
  @name
end

#sdkObject (readonly)

Returns the value of attribute sdk.


5
6
7
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 5

def sdk
  @sdk
end

#sdk_rootObject (readonly)

Returns the value of attribute sdk_root.


6
7
8
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 6

def sdk_root
  @sdk_root
end

Class Method Details

.iosObject


9
10
11
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 9

def self.ios
  OSPlatform.new :ios, 'iphone*', 'iPhoneOS', 'ios'
end

.macosObject


13
14
15
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 13

def self.macos
  OSPlatform.new :macos, 'macosx*', 'MacOS', 'maccatalyst'
end

.tvosObject


21
22
23
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 21

def self.tvos
  OSPlatform.new :tvos, 'appletvos*', 'AppleTVOS', 'tvos'
end

.watchosObject


17
18
19
# File 'lib/cocoapods-catalyst-support/os_platform.rb', line 17

def self.watchos
  OSPlatform.new :watchos, 'watchos*', 'WatchOS', 'watchos'
end