fastlane 2.122.0.beta.20190425200104 → 2.122.0.beta.20190426200020

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: b046eb9905590895e6cebb113678bab22a951f8f
4
- data.tar.gz: 93b69d90c10e789957903f6d3e2565fc35ffdfe2
3
+ metadata.gz: 4243b108a2c5ce30572d76cdf8b0dbdd168712d0
4
+ data.tar.gz: 7bd08eb1884fa01ff28980c3777042cd8fde2046
5
5
  SHA512:
6
- metadata.gz: 7c05ece033a3738c7225c9341fddee4b9d27509ecb78c7a97a2cc3790c566ef3aa2ee1461ded45357e0bafd2ee5f4d5a3e78ee0f89ed033aaccec309883beb80
7
- data.tar.gz: 10c4edccc6574e88814e0e056c00948df4cc98a158c0ef15e42ffbf718b0d5c53fbe3cfd72e46c6445a97e2d2dd4a4d87de308756cf6c947205cdd31dbf05803
6
+ metadata.gz: f50800fe5f2ed6f175f9da44bf26f2963c49156a580dd855092092f92ca1590f6a1582ef4226aed290c1a4f9cd7bbf1c117715865b1f7f56f2ac5391515de8e3
7
+ data.tar.gz: ec2b52239260da83e53c11531ce517933e24c90fd62c1a05078c133145cf0a076291205d8ba69facf11ad545029af42c5e6167f026308df3245cb637fb2a84cc
@@ -19,7 +19,9 @@ module Fastlane
19
19
  output_path: File.join(tmp_path, "Result.zip"))
20
20
 
21
21
  other_action.appetize(path: zipped_bundle,
22
- api_token: params[:api_token])
22
+ api_token: params[:api_token],
23
+ public_key: params[:public_key],
24
+ note: params[:note])
23
25
 
24
26
  public_key = Actions.lane_context[SharedValues::APPETIZE_PUBLIC_KEY]
25
27
  UI.success("Generated Public Key: #{Actions.lane_context[SharedValues::APPETIZE_PUBLIC_KEY]}")
@@ -61,7 +63,20 @@ module Fastlane
61
63
  env_name: "APPETIZE_API_TOKEN",
62
64
  description: "Appetize.io API Token",
63
65
  sensitive: true,
64
- is_string: true)
66
+ is_string: true),
67
+ FastlaneCore::ConfigItem.new(key: :public_key,
68
+ description: "If not provided, a new app will be created. If provided, the existing build will be overwritten",
69
+ is_string: true,
70
+ optional: true,
71
+ verify_block: proc do |value|
72
+ if value.start_with?("private_")
73
+ UI.user_error!("You provided a private key to appetize, please provide the public key")
74
+ end
75
+ end),
76
+ FastlaneCore::ConfigItem.new(key: :note,
77
+ description: "Notes you wish to add to the uploaded app",
78
+ is_string: true,
79
+ optional: true)
65
80
  ]
66
81
  end
67
82
 
@@ -14,17 +14,18 @@ module Fastlane
14
14
  plist = Plist.parse_xml(info_plist_path)
15
15
 
16
16
  # Check if current app identifier product bundle identifier
17
- if plist['CFBundleIdentifier'] == "$(#{identifier_key})"
17
+ app_id_equals_bundle_id = %W($(#{identifier_key}) ${#{identifier_key}}).include?(plist['CFBundleIdentifier'])
18
+ if app_id_equals_bundle_id
18
19
  # Load .xcodeproj
19
20
  project_path = params[:xcodeproj]
20
21
  project = Xcodeproj::Project.open(project_path)
21
22
 
22
23
  # Fetch the build configuration objects
23
24
  configs = project.objects.select { |obj| obj.isa == 'XCBuildConfiguration' && !obj.build_settings[identifier_key].nil? }
24
- UI.user_error!("Info plist uses $(#{identifier_key}), but xcodeproj does not") unless configs.count > 0
25
+ UI.user_error!("Info plist uses #{identifier_key}, but xcodeproj does not") if configs.empty?
25
26
 
26
27
  configs = configs.select { |obj| resolve_path(obj.build_settings[info_plist_key], params[:xcodeproj]) == info_plist_path }
27
- UI.user_error!("Xcodeproj doesn't have configuration with info plist #{params[:plist_path]}.") unless configs.count > 0
28
+ UI.user_error!("Xcodeproj doesn't have configuration with info plist #{params[:plist_path]}.") if configs.empty?
28
29
 
29
30
  # For each of the build configurations, set app identifier
30
31
  configs.each do |c|
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.122.0.beta.20190425200104'.freeze
2
+ VERSION = '2.122.0.beta.20190426200020'.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
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -1,3 +1,5 @@
1
+ require_relative 'globals'
2
+
1
3
  module Spaceship
2
4
  ##
3
5
  # Spaceship::Base is the superclass for models in Apple Developer Portal.
@@ -64,6 +66,9 @@ module Spaceship
64
66
  h = @hash.dup
65
67
  h.delete(:application)
66
68
  h.to_json(*a)
69
+ rescue JSON::GeneratorError => e
70
+ puts("Failed to jsonify #{h} (#{a})") if Spaceship::Globals.verbose?
71
+ raise e
67
72
  end
68
73
 
69
74
  def to_h
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.122.0.beta.20190425200104
4
+ version: 2.122.0.beta.20190426200020
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Dee
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-04-25 00:00:00.000000000 Z
30
+ date: 2019-04-26 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1691,24 +1691,24 @@ metadata:
1691
1691
  post_install_message:
1692
1692
  rdoc_options: []
1693
1693
  require_paths:
1694
- - screengrab/lib
1695
- - pilot/lib
1696
- - supply/lib
1697
- - cert/lib
1698
- - fastlane_core/lib
1699
- - precheck/lib
1700
- - match/lib
1701
- - frameit/lib
1702
1694
  - snapshot/lib
1703
- - sigh/lib
1704
- - fastlane/lib
1695
+ - credentials_manager/lib
1705
1696
  - spaceship/lib
1706
- - pem/lib
1707
- - scan/lib
1708
- - gym/lib
1697
+ - cert/lib
1698
+ - sigh/lib
1709
1699
  - produce/lib
1710
- - credentials_manager/lib
1700
+ - scan/lib
1701
+ - fastlane/lib
1711
1702
  - deliver/lib
1703
+ - pilot/lib
1704
+ - supply/lib
1705
+ - precheck/lib
1706
+ - gym/lib
1707
+ - screengrab/lib
1708
+ - pem/lib
1709
+ - frameit/lib
1710
+ - fastlane_core/lib
1711
+ - match/lib
1712
1712
  required_ruby_version: !ruby/object:Gem::Requirement
1713
1713
  requirements:
1714
1714
  - - ">="