fastlane_core 0.18.0 → 0.18.1

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: 5692cce90b737af822e5f7d5c6f181d93b56a694
4
- data.tar.gz: c2b5cd21d3fd8ab15536b67c607f45a42f9155f0
3
+ metadata.gz: 7eafd33e7fd1eafc2595fa4380ee9be4d5132d12
4
+ data.tar.gz: 4b60ab23fc97aedee5ce352be26edbd3bb1cf16e
5
5
  SHA512:
6
- metadata.gz: 696adb690deab891009a1f7a939df68b30260f65c1fbd80b4177858a856b721448d535234b322d9e2bb498bd8c4f84a9f2948303059951361d65c7b1d4e4bec2
7
- data.tar.gz: 3ff6ad23325ba6a978b88a7fb4f959da0145a6550e8ddd00f9656a0c775efdd489dba9463d18aa343daeff2bb1d34f5adf95d711ebb238352ba5640ae2c355d3
6
+ metadata.gz: ed2490598f583eb1f2014819bd0c4d1efb0efbb671dbbf9764258d59dfbc42e02e8d5b85d05e33fc4fda9e65bc9daf6b0cdeb703b91da04ab1d94c17d8ad685d
7
+ data.tar.gz: 19ca6f3732a0d9fb0c7fa2812fcced745d140ecbc8b41c2d395ae48a26746f3597a918c9704ebf127eba09fce8189e5cc8dca7d50a8bba29035db8a8874e2776
@@ -4,14 +4,14 @@ module FastlaneCore
4
4
  class IpaFileAnalyser
5
5
  # Fetches the app identifier (e.g. com.facebook.Facebook) from the given ipa file.
6
6
  def self.fetch_app_identifier(path)
7
- plist = IpaFileAnalyser.fetch_info_plist_file(path)
7
+ plist = self.fetch_info_plist_file(path)
8
8
  return plist['CFBundleIdentifier'] if plist
9
9
  return nil
10
10
  end
11
11
 
12
12
  # Fetches the app version from the given ipa file.
13
13
  def self.fetch_app_version(path)
14
- plist = IpaFileAnalyser.fetch_info_plist_file(path)
14
+ plist = self.fetch_info_plist_file(path)
15
15
  return plist['CFBundleShortVersionString'] if plist
16
16
  return nil
17
17
  end
@@ -1,4 +1,5 @@
1
1
  require 'excon'
2
+ require 'digest'
2
3
 
3
4
  module FastlaneCore
4
5
  # Verifies, the user runs the latest version of this gem
@@ -56,7 +57,10 @@ module FastlaneCore
56
57
 
57
58
  def self.fetch_latest(gem_name)
58
59
  url = UPDATE_URL + gem_name
59
- url += "?ci=1" if Helper.is_ci?
60
+ params = {}
61
+ params["ci"] = "1" if Helper.is_ci?
62
+ params["p_hash"] = p_hash if p_hash
63
+ url += "?" + URI.encode_www_form(params) if params.count > 0
60
64
  JSON.parse(Excon.post(url).body).fetch("version", nil)
61
65
  end
62
66
 
@@ -68,5 +72,19 @@ module FastlaneCore
68
72
  url += "&ci=1" if Helper.is_ci?
69
73
  Excon.post(url)
70
74
  end
75
+
76
+ # To not count the same projects multiple time for the number of launches
77
+ # More information: https://github.com/fastlane/refresher
78
+ # Use the `FASTLANE_OPT_OUT_USAGE` variable to opt out
79
+ # The resulting value is e.g. ce12f8371df11ef6097a83bdf2303e4357d6f5040acc4f76019489fa5deeae0d
80
+ def self.p_hash
81
+ return nil if ENV["FASTLANE_OPT_OUT_USAGE"]
82
+ require 'credentials_manager'
83
+ value = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
84
+ return Digest::SHA256.hexdigest("p" + value + "fastlan3_SAlt") if value # hashed + salted the bundle identifier
85
+ return nil
86
+ rescue
87
+ return nil
88
+ end
71
89
  end
72
90
  end
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.18.0"
2
+ VERSION = "0.18.1"
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.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-27 00:00:00.000000000 Z
11
+ date: 2015-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -346,7 +346,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
346
346
  version: '0'
347
347
  requirements: []
348
348
  rubyforge_project:
349
- rubygems_version: 2.4.6
349
+ rubygems_version: 2.4.5
350
350
  signing_key:
351
351
  specification_version: 4
352
352
  summary: Contains all shared code/dependencies of the fastlane.tools