fastlane_core 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa67f5ecf00a2022c691ef679d4228b6173c45ce
4
- data.tar.gz: 7e8e9d38e4c0dfa77229e043908fb3ad6d58d87d
3
+ metadata.gz: f0e03d2e729260672a1852127c864f711c9e7a58
4
+ data.tar.gz: 911a1c50cf3dbbcff3ece7c5ee269f84d15edacd
5
5
  SHA512:
6
- metadata.gz: f0425fc97004b7a2df9b4149e78201ea7a60ffd3eb83dd422e73ea3653e9e3f61d99be37649b087fdf32b75e77234df6a8c91e46b150e52ebc6403a450d172ba
7
- data.tar.gz: 0aa390506ad4fad52b3f913661ba7c8fb6cbf90602cf1b49ea39d32cf877aa52d846359a51a5de72ce11e34e1d3fae103a2d0e9a00199787a5332e5f8cd7819a
6
+ metadata.gz: e8526b80e97ba23ed0fa53069c13c2e4441c91f744d91fdf5d3feb1558519e2a26823ce79d0d85f42f9cf14e551f42051ba6076f41f392b67b80130cbe092c57
7
+ data.tar.gz: 40907d5e49a11682a880b5e9fb8880ad114b8d1049f190d4aa76adedf76f6c575c6304fd07ae4b140a719276cccc70fd800242ffe1852f65ea38392623d4ff57
@@ -89,6 +89,25 @@ module FastlaneCore
89
89
  Excon.post(url)
90
90
  end
91
91
 
92
+ # (optional) Returns the app identifier for the current tool
93
+ def self.ios_app_identifier
94
+ # ARGV example:
95
+ # ["-a", "com.krausefx.app", "--team_id", "5AA97AAHK2"]
96
+ ARGV.each_with_index do |current, index|
97
+ if current == "-a" || current == "--app_identifier"
98
+ return ARGV[index + 1] if ARGV.count > index
99
+ end
100
+ end
101
+
102
+ ["FASTLANE", "DELIVER", "PILOT", "PRODUCE", "PEM", "SIGH", "SNAPSHOT", "MATCH"].each do |current|
103
+ return ENV["#{current}_APP_IDENTIFIER"] if ENV["#{current}_APP_IDENTIFIER"]
104
+ end
105
+
106
+ return nil
107
+ rescue
108
+ nil # we don't want this method to cause a crash
109
+ end
110
+
92
111
  # To not count the same projects multiple time for the number of launches
93
112
  # More information: https://github.com/fastlane/refresher
94
113
  # Use the `FASTLANE_OPT_OUT_USAGE` variable to opt out
@@ -96,7 +115,10 @@ module FastlaneCore
96
115
  def self.p_hash
97
116
  return nil if ENV["FASTLANE_OPT_OUT_USAGE"]
98
117
  require 'credentials_manager'
99
- value = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
118
+
119
+ value = nil
120
+ value ||= self.ios_app_identifier
121
+ value ||= CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
100
122
  unless value
101
123
  value = CredentialsManager::AppfileConfig.try_fetch_value(:package_name)
102
124
  value = "android_project_#{value}" if value # if the iOS and Android app share the same app identifier
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.40.0".freeze
2
+ VERSION = "0.41.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
399
  version: '0'
400
400
  requirements: []
401
401
  rubyforge_project:
402
- rubygems_version: 2.2.2
402
+ rubygems_version: 2.4.8
403
403
  signing_key:
404
404
  specification_version: 4
405
405
  summary: Contains all shared code/dependencies of the fastlane.tools