Class: DeployGate::Builds::Ios::Analyze
- Inherits:
-
Object
- Object
- DeployGate::Builds::Ios::Analyze
- Defined in:
- lib/deploygate/builds/ios/analyze.rb
Defined Under Namespace
Classes: NotLocalProvisioningProfileError
Constant Summary collapse
- BASE_WORK_DIR_NAME =
'project.xcworkspace'
- BUILD_CONFIGRATION =
'Release'
Instance Attribute Summary collapse
-
#build_workspace ⇒ Object
readonly
Returns the value of attribute build_workspace.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
-
#scheme_workspace ⇒ Object
readonly
Returns the value of attribute scheme_workspace.
-
#workspaces ⇒ Object
readonly
Returns the value of attribute workspaces.
Instance Method Summary collapse
- #initialize(workspaces) ⇒ DeployGate::Builds::Ios::Analyze constructor
-
#target_bundle_identifier ⇒ String
Support Xcode7 more.
- #target_xcode_setting_provisioning_profile_uuid ⇒ String
Constructor Details
#initialize(workspaces) ⇒ DeployGate::Builds::Ios::Analyze
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 15 def initialize(workspaces) @workspaces = workspaces @scheme_workspace = find_scheme_workspace(workspaces) @build_workspace = find_build_workspace(workspaces) @xcodeproj = File.dirname(@scheme_workspace) config = FastlaneCore::Configuration.create(Gym::Options., {:workspace => @scheme_workspace}) project = FastlaneCore::Project.new(config) if project.schemes.empty? config = FastlaneCore::Configuration.create(Gym::Options., {:workspace => @build_workspace}) project = FastlaneCore::Project.new(config) end project.select_scheme @scheme = project.[:scheme] end |
Instance Attribute Details
#build_workspace ⇒ Object (readonly)
Returns the value of attribute build_workspace.
5 6 7 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 5 def build_workspace @build_workspace end |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
5 6 7 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 5 def scheme @scheme end |
#scheme_workspace ⇒ Object (readonly)
Returns the value of attribute scheme_workspace.
5 6 7 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 5 def scheme_workspace @scheme_workspace end |
#workspaces ⇒ Object (readonly)
Returns the value of attribute workspaces.
5 6 7 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 5 def workspaces @workspaces end |
Instance Method Details
#target_bundle_identifier ⇒ String
Support Xcode7 more
33 34 35 36 37 38 39 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 33 def target_bundle_identifier product_name = target_product_name identifier = target_build_configration.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] identifier.gsub!(/\$\(PRODUCT_NAME:.+\)/, product_name) identifier end |
#target_xcode_setting_provisioning_profile_uuid ⇒ String
42 43 44 45 |
# File 'lib/deploygate/builds/ios/analyze.rb', line 42 def target_xcode_setting_provisioning_profile_uuid uuid = target_build_configration.build_settings['PROVISIONING_PROFILE'] UUID.validate(uuid) ? uuid : nil end |