fastlane 2.118.0.beta.20190306200052 → 2.118.0.beta.20190307200117

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: ffaf10682a17067d93101428e8077c5d788be1a1
4
- data.tar.gz: d1c6838e2de444d7bcec1a949ddd838b4ea736c3
3
+ metadata.gz: 5ff507af11f53a18762113f3576ce9e92b877db5
4
+ data.tar.gz: 8ce3ff5adbfbc17af703f03eddbbf48221359a53
5
5
  SHA512:
6
- metadata.gz: 4c1b9115a9b0e661de132b32aab6321f51bfe0a93d9291e31a6383bcea71b0c025669d1c8b2a98b3e05b047de0375b7094f93b4be9e5bb49413fef074eff30fd
7
- data.tar.gz: 5882032b2b73b47da4bd20d4ee4238cefcdd52f04d7976523baed1447ce903e4a5398843a47fe3545d0d784f3d0317c47e7f855bd7c0a8265fb098a0b40b501b
6
+ metadata.gz: 43991d523d5a8ef4d7bd1d89a72486fdd37b1b8ff14383a9a6b94da7485fd766ac8622afa110c58c05b5de7da16d11a10a71cc90829eaeb9ae57098635d084f9
7
+ data.tar.gz: 72ffb8707fb710083b87f6e9c7beefd6f73ca63431d22f493045eb79723cf06aad3a0b545e46ba4c49c7ad04b8afd65ac431433a0aea1a0ddc56967fa5f23bf8
@@ -17,8 +17,17 @@ module Fastlane
17
17
  end
18
18
 
19
19
  target_dictionary = project.targets.map { |f| { name: f.name, uuid: f.uuid, build_configuration_list: f.build_configuration_list } }
20
+ target_attributes = project.root_object.attributes["TargetAttributes"]
20
21
  changed_targets = []
21
- project.root_object.attributes["TargetAttributes"].each do |target, sett|
22
+
23
+ # make sure TargetAttributes exist for all targets
24
+ target_dictionary.each do |props|
25
+ unless target_attributes.key?(props[:uuid])
26
+ target_attributes[props[:uuid]] = {}
27
+ end
28
+ end
29
+
30
+ target_attributes.each do |target, sett|
22
31
  found_target = target_dictionary.detect { |h| h[:uuid] == target }
23
32
  if params[:targets]
24
33
  # get target name
@@ -68,6 +68,12 @@ If you want to generate a development certificate instead:
68
68
  fastlane pem --development
69
69
  ```
70
70
 
71
+ If you want to generate a Website Push certificate:
72
+
73
+ ```no-highlight
74
+ fastlane pem --website_push
75
+ ```
76
+
71
77
  Set a password for your `p12` file:
72
78
 
73
79
  ```no-highlight
@@ -58,7 +58,7 @@ module Fastlane
58
58
  Gem.path.any? { |gem_path| File.expand_path(path).start_with?(gem_path) }
59
59
  end
60
60
  ios_projects.delete_if { |path| path.match("fastlane/swift/FastlaneSwiftRunner/FastlaneSwiftRunner.xcodeproj") }
61
- android_projects = Dir["**/*.gradle"]
61
+ android_projects = Dir["**/*.gradle"] + Dir["**/*.gradle.kts"]
62
62
 
63
63
  spinner.success
64
64
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.118.0.beta.20190306200052'.freeze
2
+ VERSION = '2.118.0.beta.20190307200117'.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
@@ -58,7 +58,7 @@ module PEM
58
58
  end
59
59
 
60
60
  x509_certificate = cert.download
61
- certificate_type = (PEM.config[:development] ? 'development' : 'production')
61
+
62
62
  filename_base = PEM.config[:pem_name] || "#{certificate_type}_#{PEM.config[:app_identifier]}"
63
63
  filename_base = File.basename(filename_base, ".pem") # strip off the .pem if it was provided.
64
64
 
@@ -87,11 +87,23 @@ module PEM
87
87
  def certificate
88
88
  if PEM.config[:development]
89
89
  Spaceship.certificate.development_push
90
+ elsif PEM.config[:website_push]
91
+ Spaceship.certificate.website_push
90
92
  else
91
93
  Spaceship.certificate.production_push
92
94
  end
93
95
  end
94
96
 
97
+ def certificate_type
98
+ if PEM.config[:development]
99
+ 'development'
100
+ elsif PEM.config[:website_push]
101
+ 'website'
102
+ else
103
+ 'production'
104
+ end
105
+ end
106
+
95
107
  def certificate_sorted
96
108
  certificate.all.sort { |x, y| y.expires <=> x.expires }
97
109
  end
@@ -15,6 +15,12 @@ module PEM
15
15
  description: "Renew the development push certificate instead of the production one",
16
16
  is_string: false,
17
17
  default_value: false),
18
+ FastlaneCore::ConfigItem.new(key: :website_push,
19
+ env_name: "PEM_WEBSITE_PUSH",
20
+ description: "Create a Website Push certificate",
21
+ is_string: false,
22
+ conflicting_options: [:development],
23
+ default_value: false),
18
24
  FastlaneCore::ConfigItem.new(key: :generate_p12,
19
25
  env_name: "PEM_GENERATE_P12_FILE",
20
26
  description: "Generate a p12 file additionally to a PEM file",
@@ -1,6 +1,7 @@
1
1
  require 'openssl'
2
2
 
3
3
  require_relative 'app'
4
+ require_relative 'website_push'
4
5
 
5
6
  module Spaceship
6
7
  module Portal
@@ -127,7 +128,11 @@ module Spaceship
127
128
  class ProductionPush < PushCertificate; end
128
129
 
129
130
  # A push notification certificate for websites
130
- class WebsitePush < PushCertificate; end
131
+ class WebsitePush < PushCertificate
132
+ def self.portal_type
133
+ Spaceship::Portal::WebsitePush
134
+ end
135
+ end
131
136
 
132
137
  # A push notification certificate for the VOIP environment
133
138
  class VoipPush < PushCertificate; end
@@ -293,7 +298,7 @@ module Spaceship
293
298
 
294
299
  # look up the app_id by the bundle_id
295
300
  if bundle_id
296
- app = Spaceship::Portal::App.set_client(client).find(bundle_id)
301
+ app = portal_type.set_client(client).find(bundle_id)
297
302
  raise "Could not find app with bundle id '#{bundle_id}'" unless app
298
303
  app_id = app.app_id
299
304
  end
@@ -307,6 +312,12 @@ module Spaceship
307
312
  response['certificateTypeDisplayId'] = response['certificateType']['certificateTypeDisplayId']
308
313
  self.new(response)
309
314
  end
315
+
316
+ # Default portal class to use when finding by bundle_id
317
+ # @return (Class): The class this type of certificate belongs to
318
+ def portal_type
319
+ Spaceship::Portal::App
320
+ end
310
321
  end
311
322
 
312
323
  # instance methods
@@ -581,7 +581,8 @@ module Spaceship
581
581
  teamId: team_id,
582
582
  type: type,
583
583
  csrContent: csr,
584
- appIdId: app_id # optional
584
+ appIdId: app_id, # optional
585
+ specialIdentifierDisplayId: app_id, # For requesting Web Push certificates
585
586
  })
586
587
  parse_response(r, 'certRequest')
587
588
  end
@@ -42,6 +42,8 @@ module Spaceship
42
42
  'status' => :status
43
43
  )
44
44
 
45
+ alias app_id website_id # must be after attr_mapping
46
+
45
47
  class << self
46
48
  # @param mac [Bool] Fetches Mac website push if true
47
49
  # @return (Array) Returns all website push available for this account
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.118.0.beta.20190306200052
4
+ version: 2.118.0.beta.20190307200117
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-03-06 00:00:00.000000000 Z
30
+ date: 2019-03-07 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -1687,24 +1687,24 @@ metadata:
1687
1687
  post_install_message:
1688
1688
  rdoc_options: []
1689
1689
  require_paths:
1690
- - scan/lib
1691
- - produce/lib
1692
- - sigh/lib
1693
- - match/lib
1694
1690
  - frameit/lib
1695
- - deliver/lib
1696
- - spaceship/lib
1697
- - pilot/lib
1698
- - cert/lib
1699
- - supply/lib
1700
- - precheck/lib
1701
- - gym/lib
1702
1691
  - screengrab/lib
1703
- - fastlane_core/lib
1704
- - fastlane/lib
1692
+ - gym/lib
1693
+ - cert/lib
1705
1694
  - snapshot/lib
1695
+ - produce/lib
1696
+ - match/lib
1706
1697
  - pem/lib
1698
+ - fastlane/lib
1699
+ - scan/lib
1700
+ - spaceship/lib
1707
1701
  - credentials_manager/lib
1702
+ - deliver/lib
1703
+ - precheck/lib
1704
+ - sigh/lib
1705
+ - pilot/lib
1706
+ - fastlane_core/lib
1707
+ - supply/lib
1708
1708
  required_ruby_version: !ruby/object:Gem::Requirement
1709
1709
  requirements:
1710
1710
  - - ">="