fastlane-plugin-cosigner 1.0.5 β†’ 2.0.0

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: 8059bd1f2d32612a65ae42c891db0abc563cb079
4
- data.tar.gz: 267dbea8af2b5a64c219dc0c5547ce762a1ba7e4
3
+ metadata.gz: 54484cec34995363a8dccc6261c08129e8e96493
4
+ data.tar.gz: 579a5e35aeb14ee821f644cf695b7144fcf38bba
5
5
  SHA512:
6
- metadata.gz: cb099ef69d7be5a962a5dea6f133c4a05c2472b6b6d47e169dce71f8d40e6256709ab35b60b49a92daffc5b4ee726097ae74af25ac0623391a45547de8997fcf
7
- data.tar.gz: febb7115ef0610fc2356f5fe3694623347d0dcd51ed24449ea26ddb08b91207f628b320822a70a5ebbf2580337290313c482b0ce8483af7a6ff6c1bb9c527f4f
6
+ metadata.gz: e0ce40cc93b9007c8a8777f6085e13f8682e4fff3f8ebda98ffa13add165516de2d477fbde8ed058b3648dfb1240ebda7101a1bd7a51f82fc3c32ba3f1d925da
7
+ data.tar.gz: 518b68d54f45e139283a45df7d444cf4b49b6d9d5f5926db4ebb4247a746b61f04b793514a5a5020fbda6445895424d3939c9e3852458c69c3a3806cc2b660a6
@@ -8,33 +8,36 @@ module Fastlane
8
8
  project = Xcodeproj::Project.open(params[:xcodeproj_path])
9
9
 
10
10
  target = project.targets.select{ |target| target.name == params[:scheme] }.first
11
- project_atributes = project.root_object.attributes
11
+ project_attributes = project.root_object.attributes
12
12
  build_settings = target.build_configuration_list[params[:build_configuration]].build_settings
13
13
 
14
- UI.message "Updating Xcode project's ProvisioningStyle to \"#{params[:provisioning_style]}\" πŸ› ".green
15
- project_atributes['TargetAttributes'][target.uuid]['ProvisioningStyle'] = params[:provisioning_style]
14
+ # The new `ProvisioningStyle` setting on Xcode 8 apparently was migrated to the `CODE_SIGN_STYLE` build setting
15
+ # Since we can't know for sure which Xcode version is running, apply both values
16
+ UI.message "Updating Xcode project's `ProvisioningStyle` (Xcode 8) and `CODE_SIGN_STYLE` (Xcode 9+) to \"#{params[:code_sign_style]}\" πŸ› ".green
17
+ project_attributes['TargetAttributes'][target.uuid]['ProvisioningStyle'] = params[:code_sign_style]
18
+ build_settings['CODE_SIGN_STYLE'] = params[:code_sign_identity]
16
19
 
17
- UI.message "Updating Xcode project's CODE_SIGN_IDENTITY to \"#{params[:code_sign_identity]}\" πŸ”‘".green
20
+ UI.message "Updating Xcode project's `CODE_SIGN_IDENTITY` to \"#{params[:code_sign_identity]}\" πŸ”‘".green
18
21
  build_settings['CODE_SIGN_IDENTITY'] = params[:code_sign_identity]
19
22
  build_settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = params[:code_sign_identity]
20
23
 
21
- UI.message "Updating Xcode project's PROVISIONING_PROFILE_SPECIFIER to \"#{params[:profile_name]}\" πŸ”§".green
24
+ UI.message "Updating Xcode project's `PROVISIONING_PROFILE_SPECIFIER` to \"#{params[:profile_name]}\" πŸ”§".green
22
25
  build_settings['PROVISIONING_PROFILE_SPECIFIER'] = params[:profile_name]
23
26
 
24
27
  # This item is set as optional in the configuration values
25
28
  # Since Xcode 8, this is no longer needed, you use PROVISIONING_PROFILE_SPECIFIER
26
29
  if params[:profile_uuid]
27
- UI.message "Updating Xcode project's PROVISIONING_PROFILE to \"#{params[:profile_uuid]}\" πŸ”§".green
30
+ UI.message "Updating Xcode project's `PROVISIONING_PROFILE` to \"#{params[:profile_uuid]}\" πŸ”§".green
28
31
  build_settings['PROVISIONING_PROFILE'] = params[:profile_uuid]
29
32
  end
30
33
 
31
34
  if params[:development_team]
32
- UI.message "Updating Xcode project's DEVELOPMENT_TEAM to \"#{params[:development_team]}\" πŸ‘―".green
35
+ UI.message "Updating Xcode project's `DEVELOPMENT_TEAM` to \"#{params[:development_team]}\" πŸ‘―".green
33
36
  build_settings['DEVELOPMENT_TEAM'] = params[:development_team]
34
37
  end
35
38
 
36
39
  if params[:bundle_identifier]
37
- UI.message "Updatind Xcode project's Bundle identifier \"#{params[:bundle_identifier]}\" πŸ€—".green
40
+ UI.message "Updating Xcode project's `PRODUCT_BUNDLE_IDENTIFIER` \"#{params[:bundle_identifier]}\" πŸ€—".green
38
41
  build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = params[:bundle_identifier]
39
42
  end
40
43
 
@@ -53,18 +56,21 @@ module Fastlane
53
56
  "
54
57
  Fastlane plugin which enables iOS workflows to change the Xcode project's code signing settings before building a target, being a \"cosigner\" πŸ–‹.
55
58
 
56
- This is especially useful to avoid having to configure the Xcode project with a \"static\" set of code signing configurations for:
59
+ This action is especially useful to avoid having to configure the Xcode project with a \"static\" set of code signing configurations for:
57
60
 
58
- β€’ Provisioning Style (Xcode8+): Manual / Automatic
59
- β€’ Team ID
60
- β€’ Provisioning Profile UUID (Xcode 7 and earlier) and Name (Xcode8+)
61
- β€’ Code Signing Identity: iPhone Development / iPhone Distribution
61
+ * Code Signing Style (Xcode8+): Manual / Automatic (also called Provisioning Style on Xcode 8)
62
+ * Code Signing Identity: iPhone Development / iPhone Distribution
63
+ * Provisioning Profile UUID (Xcode 7 and earlier)
64
+ * Provisioning Profile Name (Xcode8+)
65
+ * Team ID
66
+ * Application Bundle identifier
62
67
 
63
- By being able to configure this before each build (e.g. gym call), it allows having separate sets of code signing configurations on the same project without being \"intrusive\".
68
+ By being able to configure this before each build (e.g. `gym` call), it allows having separate sets of code signing configurations on the same project without being \"intrusive\".
64
69
 
65
70
  Some practical scenarios can be for example:
66
71
 
67
- Xcode project in which two different Apple Developer accounts/teams are required (e.g. 1 for Development and 1 for Release) shared Xcode project where teams have different code signing configurations (e.g. Automatic vs Manual Provisioning Style)
72
+ * Xcode project in which two different Apple Developer accounts/teams are required (e.g. 1 for Development and 1 for Release)
73
+ * Shared Xcode project where teams have different code signing configurations (e.g. Automatic vs Manual Provisioning Style)
68
74
  "
69
75
  end
70
76
 
@@ -79,9 +85,9 @@ Xcode project in which two different Apple Developer accounts/teams are required
79
85
  FastlaneCore::ConfigItem.new(key: :build_configuration,
80
86
  env_name: "BUILD_CONFIGURATION",
81
87
  description: "Build configuration (Debug, Release, ...)"),
82
- FastlaneCore::ConfigItem.new(key: :provisioning_style,
83
- env_name: "PROVISIONING_STYLE",
84
- description: "Provisioning style (Automatic, Manual)",
88
+ FastlaneCore::ConfigItem.new(key: :code_sign_style,
89
+ env_name: "CODE_SIGN_STYLE",
90
+ description: "Code Sign (Provisioning) style (Automatic, Manual)",
85
91
  default_value: "Manual"),
86
92
  FastlaneCore::ConfigItem.new(key: :code_sign_identity,
87
93
  env_name: "CODE_SIGN_IDENTITY",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Cosigner
3
- VERSION = "1.0.5"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-cosigner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AndrΓ© Pacheco Neves, LuΓ­s Portela Afonso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj