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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54484cec34995363a8dccc6261c08129e8e96493
|
4
|
+
data.tar.gz: 579a5e35aeb14ee821f644cf695b7144fcf38bba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
11
|
+
project_attributes = project.root_object.attributes
|
12
12
|
build_settings = target.build_configuration_list[params[:build_configuration]].build_settings
|
13
13
|
|
14
|
-
|
15
|
-
|
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 "
|
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
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
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)
|
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: :
|
83
|
-
env_name: "
|
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",
|
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:
|
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-
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|