fastlane 2.60.0.beta.20170928010003 → 2.60.0.beta.20170929010003

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a117dfadb97e085078b4d4e3ba30f5ee7798cd7c
4
- data.tar.gz: bf439ccb3619b512a582552e6d416eb38f51c28d
3
+ metadata.gz: 7e2b625eec3f6079e6ea051b4aeec19b62bd46c0
4
+ data.tar.gz: 201f2ed13b94513815409ff0dfddf46b345b5ac2
5
5
  SHA512:
6
- metadata.gz: 0d2c4f64c34ea4009750ed2527695ef0d4084ad898b9caaf518f406798c801ab5dc5635172755aac205bbe3b3d37b2991fd4e0f7142665b9780b76ab7b13eb57
7
- data.tar.gz: 412909c21d02b981eed2189b1db21b59158ad081a66ac7ee13b2685e08e95238c79dfbdcb8c1e0d8da215facfc51c330e8938400c2b24101d3965d5cd964e9ae
6
+ metadata.gz: 40844f37dac26559d5249499421b8c75190d070b5f9c961500ad4f8dca1f1d3356887b4abe8789bd7428f2c20b12e26deaedad87c78e5527557953f9d0d5bce1
7
+ data.tar.gz: 3c75a122cb56b8d1453b7b39f20e2b837aca7ff0d50ca29248780bb70c2cbba868cbdcb00fe14bb7310265485b8b24d85cdeaae7ec628833dbbb0509df1e5dd8
@@ -24,7 +24,8 @@ module Fastlane
24
24
  updater.options[:prerelease] = true if options[:nightly]
25
25
  cleaner = Gem::CommandManager.instance[:cleanup]
26
26
 
27
- sudo_needed = !File.writable?(Gem.dir)
27
+ gem_dir = ENV['GEM_HOME'] || Gem.dir
28
+ sudo_needed = !File.writable?(gem_dir)
28
29
 
29
30
  if sudo_needed
30
31
  UI.important("It seems that your Gem directory is not writable by your current User.")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.60.0.beta.20170928010003'.freeze
2
+ VERSION = '2.60.0.beta.20170929010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -69,7 +69,7 @@ module Gym
69
69
  # We do some `gsub`bing, because we can't really know the profile type, so we'll just look at the name and see if it includes
70
70
  # the export method (which it usually does, but with different notations)
71
71
  def app_identifier_contains?(str, contains)
72
- return str.to_s.gsub("-", "").gsub(" ", "").downcase.include?(contains.to_s.gsub("-", "").gsub(" ", "").downcase)
72
+ return str.to_s.gsub("-", "").gsub(" ", "").gsub("InHouse", "enterprise").downcase.include?(contains.to_s.gsub("-", "").gsub(" ", "").downcase)
73
73
  end
74
74
 
75
75
  # Array of paths to all project files
@@ -104,6 +104,21 @@ module Gym
104
104
  return (!build_settings["TEST_TARGET_NAME"].nil? || !build_settings["TEST_HOST"].nil?)
105
105
  end
106
106
 
107
+ def same_platform?(sdkroot)
108
+ destination = Gym.config[:destination].dup
109
+ destination.slice!("generic/platform=")
110
+ destination_sdkroot = []
111
+ case destination
112
+ when "macosx"
113
+ destination_sdkroot = ["macosx"]
114
+ when "iOS"
115
+ destination_sdkroot = ["iphoneos", "watchos"]
116
+ when "tvOS"
117
+ destination_sdkroot = ["appletvos"]
118
+ end
119
+ return destination_sdkroot.include?(sdkroot)
120
+ end
121
+
107
122
  def detect_project_profile_mapping
108
123
  provisioning_profile_mapping = {}
109
124
  specified_configuration = Gym.config[:configuration] || Gym.project.default_build_settings(key: "CONFIGURATION")
@@ -122,6 +137,8 @@ module Gym
122
137
  target.build_configuration_list.build_configurations.each do |build_configuration|
123
138
  current = build_configuration.build_settings
124
139
  next if test_target?(current)
140
+ sdkroot = build_configuration.resolve_build_setting("SDKROOT")
141
+ next unless same_platform?(sdkroot)
125
142
  next unless specified_configuration == build_configuration.name
126
143
 
127
144
  bundle_identifier = build_configuration.resolve_build_setting("PRODUCT_BUNDLE_IDENTIFIER")
@@ -14,8 +14,6 @@ module Gym
14
14
  FastlaneCore::Project.detect_projects(config)
15
15
  Gym.project = FastlaneCore::Project.new(config)
16
16
 
17
- detect_selected_provisioning_profiles
18
-
19
17
  # Go into the project's folder, as there might be a Gymfile there
20
18
  Dir.chdir(File.expand_path("..", Gym.project.path)) do
21
19
  config.load_configuration_file(Gym.gymfile_name)
@@ -23,6 +21,7 @@ module Gym
23
21
 
24
22
  detect_scheme
25
23
  detect_platform # we can only do that *after* we have the scheme
24
+ detect_selected_provisioning_profiles # we can only do that *aftet* we have the platform
26
25
  detect_configuration
27
26
  detect_toolchain
28
27
 
@@ -37,10 +36,9 @@ module Gym
37
36
  day = Time.now.strftime("%F") # e.g. 2015-08-07
38
37
  archive_path = File.expand_path("~/Library/Developer/Xcode/Archives/#{day}/")
39
38
 
40
- path = xcode_preference_plist_path
41
- return archive_path unless File.exist?(path.to_s) # this file only exists when you edit the Xcode preferences to set custom values
39
+ return archive_path unless has_xcode_preferences_plist?
42
40
 
43
- custom_archive_path = xcode_preferences_dictionary(path)['IDECustomDistributionArchivesLocation']
41
+ custom_archive_path = xcode_preferences_dictionary['IDECustomDistributionArchivesLocation']
44
42
  return archive_path if custom_archive_path.to_s.length == 0
45
43
 
46
44
  return File.join(custom_archive_path, day)
@@ -48,11 +46,16 @@ module Gym
48
46
 
49
47
  # Helper Methods
50
48
 
49
+ # this file only exists when you edit the Xcode preferences to set custom values
50
+ def self.has_xcode_preferences_plist?
51
+ File.exist?(xcode_preference_plist_path)
52
+ end
53
+
51
54
  def self.xcode_preference_plist_path
52
55
  File.expand_path("~/Library/Preferences/com.apple.dt.Xcode.plist")
53
56
  end
54
57
 
55
- def self.xcode_preferences_dictionary(path)
58
+ def self.xcode_preferences_dictionary(path = xcode_preference_plist_path)
56
59
  CFPropertyList.native_types(CFPropertyList::List.new(file: path).value)
57
60
  end
58
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.60.0.beta.20170928010003
4
+ version: 2.60.0.beta.20170929010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-09-28 00:00:00.000000000 Z
18
+ date: 2017-09-29 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier