Class: Flutter::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



14
15
16
17
18
19
20
21
22
# File 'lib/config.rb', line 14

def initialize
  @source = "source '[email protected]:mtpc_sh_ios/ios_sohu_spec.git'"
  @router_name = "  pod 'SHNRouter', :subspecs => ['Core','Flutter'], :source => '[email protected]:mtpc_sh_ios/ios_sohu_spec.git'"
  @swift_version = "SWIFT_VERSION=4.0"
  @xcconfig_path = ".ios/Flutter/Generated.xcconfig"
  @podfile_path = ".ios/Podfile"
  @framework_path = "./build/flutter"
  @product_types = %w[debug profile release]
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



8
9
10
# File 'lib/config.rb', line 8

def config
  @config
end

#debugObject

Returns the value of attribute debug.



8
9
10
# File 'lib/config.rb', line 8

def debug
  @debug
end

#framework_pathObject (readonly)

Returns the value of attribute framework_path.



6
7
8
# File 'lib/config.rb', line 6

def framework_path
  @framework_path
end

#ignore_gpObject

Returns the value of attribute ignore_gp.



8
9
10
# File 'lib/config.rb', line 8

def ignore_gp
  @ignore_gp
end

#new_productsObject

Returns the value of attribute new_products.



8
9
10
# File 'lib/config.rb', line 8

def new_products
  @new_products
end

#podfile_pathObject (readonly)

Returns the value of attribute podfile_path.



6
7
8
# File 'lib/config.rb', line 6

def podfile_path
  @podfile_path
end

#product_typesObject (readonly)

Returns the value of attribute product_types.



6
7
8
# File 'lib/config.rb', line 6

def product_types
  @product_types
end

#project_dirObject

Returns the value of attribute project_dir.



8
9
10
# File 'lib/config.rb', line 8

def project_dir
  @project_dir
end

#router_nameObject (readonly)

Returns the value of attribute router_name.



6
7
8
# File 'lib/config.rb', line 6

def router_name
  @router_name
end

#sourceObject (readonly)

Returns the value of attribute source.



6
7
8
# File 'lib/config.rb', line 6

def source
  @source
end

#swift_versionObject (readonly)

Returns the value of attribute swift_version.



6
7
8
# File 'lib/config.rb', line 6

def swift_version
  @swift_version
end

#xcconfig_pathObject (readonly)

Returns the value of attribute xcconfig_path.



6
7
8
# File 'lib/config.rb', line 6

def xcconfig_path
  @xcconfig_path
end

Class Method Details

.instanceObject



10
11
12
# File 'lib/config.rb', line 10

def self.instance
  @instance ||= new
end