fastlane-plugin-notarize 0.1.0 → 0.2.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: a4ed3b8ac3d78250058bfede6901efca6737e756
4
- data.tar.gz: 559bbd32554af05a591c42478013fd751882d2d0
3
+ metadata.gz: 7c6b2af870f602051718f4e12a3ff8f50e143de5
4
+ data.tar.gz: 354fb94000dd61c23ae7d69efe5c7c8770e65daa
5
5
  SHA512:
6
- metadata.gz: d1052f35aa220439d85a292f7b8272652d8af0e6fbc6e5f84dd2154af80c323fbde49b5115b9af7fdd2b9b61a7d95d622274011443d53e9d87a3244fe35e0587
7
- data.tar.gz: 3c59545938745b0fa78257c4fb647991f465f1e3ae99c4add2b236d223af853dc1f9dc9724ed8644441714d24d79a11ee3ea32cd9cfc24fee2bfd5cd2e537ef1
6
+ metadata.gz: e617932066cfc9fedbef60f70a85da79892fe8df874d2400ab022e7012351754f4fd54869cd756e6accc0f5f8388b3231e97ff0e270b79f9c5036cb6dce4d655
7
+ data.tar.gz: 76cf8459503aa0b52a3ca81d361b7745e22a2109fb46c72828c08de96609480ae0fc61997cc17607985dbad4abe913501735ff1fc0889464ecf98e291cbe341d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # fastlane notarize plugin [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-notarize)
2
2
 
3
- [fastlane](https://github.com/fastlane/fastlane) plugin to [notarize](https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution) a macOS app.
3
+ [fastlane](https://github.com/fastlane/fastlane) plugin to [notarize](https://developer.apple.com/documentation/security/notarizing_your_app_before_distribution) a macOS app. 🛂
4
4
 
5
5
  Notarize plugin provides a `notarize` action to upload an app to Apple's notarization service, querying the result periodically until it's complete—which currently takes around 2 minutes. In case of success, it staples the app with the notarization ticket. In case of failure, it prints the log file listing all the issues.
6
6
 
@@ -20,7 +20,7 @@ notarize(
20
20
  )
21
21
  ```
22
22
 
23
- This action should prompt you for an Apple ID and password, using fastlane's built-in credentials manager. To use the action in a CI environment like Travis CI, CircleCI or Bitrise, you can set `FASTLANE_USER` and `FASTLANE_PASSWORD` environment variables. (Make sure to use secret environment variables, specifically for the password.)
23
+ This action should prompt you for an Apple ID and password, using fastlane's built-in credentials manager. To use the action in a CI environment like Bitrise, CircleCI or Travis CI, you can set `FASTLANE_USER` and `FASTLANE_PASSWORD` environment variables. (Make sure to use secret environment variables, specifically for the password.)
24
24
 
25
25
  ## Example
26
26
 
@@ -18,7 +18,10 @@ module Fastlane
18
18
 
19
19
  unless bundle_id
20
20
  info_plist_path = File.join(package_path, 'Contents', 'Info.plist')
21
- bundle_id = Plist.parse_xml(info_plist_path)['CFBundleIdentifier']
21
+ bundle_id = Actions.sh(
22
+ "/usr/libexec/PlistBuddy -c \"Print :CFBundleIdentifier\" \"#{info_plist_path}\"",
23
+ log: false
24
+ ).strip
22
25
  end
23
26
  end
24
27
 
@@ -31,8 +34,11 @@ module Fastlane
31
34
 
32
35
  UI.message('Uploading package to notarization service, might take a while')
33
36
 
37
+ notarization_upload_command = "xcrun altool --notarize-app -t osx -f \"#{compressed_package_path || package_path}\" --primary-bundle-id #{bundle_id} -u #{apple_id_account.user} -p @env:FL_NOTARIZE_PASSWORD --output-format xml"
38
+ notarization_upload_command << " --asc-provider \"#{params[:asc_provider]}\"" unless params[:asc_provider]
39
+
34
40
  notarization_upload_response = Actions.sh(
35
- "xcrun altool --notarize-app -t osx -f \"#{compressed_package_path || package_path}\" --primary-bundle-id #{bundle_id} -u #{apple_id_account.user} -p @env:FL_NOTARIZE_PASSWORD --output-format xml",
41
+ notarization_upload_command,
36
42
  log: false
37
43
  )
38
44
 
@@ -103,6 +109,8 @@ module Fastlane
103
109
  username = CredentialsManager::AppfileConfig.try_fetch_value(:apple_dev_portal_id)
104
110
  username ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
105
111
 
112
+ asc_provider = CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id)
113
+
106
114
  [
107
115
  FastlaneCore::ConfigItem.new(key: :package,
108
116
  env_name: 'FL_NOTARIZE_PACKAGE',
@@ -120,7 +128,12 @@ module Fastlane
120
128
  env_name: 'FL_NOTARIZE_USERNAME',
121
129
  description: 'Apple ID username',
122
130
  default_value: username,
123
- default_value_dynamic: true)
131
+ default_value_dynamic: true),
132
+ FastlaneCore::ConfigItem.new(key: :asc_provider,
133
+ env_name: 'FL_NOTARIZE_ASC_PROVIDER',
134
+ description: 'Provider short name for accounts associated with multiple providers',
135
+ optional: true,
136
+ default_value: asc_provider)
124
137
  ]
125
138
  end
126
139
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Notarize
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-notarize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeplin, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-05 00:00:00.000000000 Z
11
+ date: 2019-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry