fastlane-plugin-install_provisioning_profiles 0.1.1 → 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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ff7a5f77d63165af0ec2423537e9a5206ec33262b01f98798599367d9ab9e4d
|
|
4
|
+
data.tar.gz: 76e1ab41f76fceeb717417cb9374d93a0361a64d6ef747b0413d44dc0740b9ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81caada1b2ce00dcfc1f9a326566fc804352a10173fc007e47fbd4c82d5becf143729e6b1ee91634a6cdd740905e63f1f5fc2d39b255edc4f2f79a7c2bbef6bd
|
|
7
|
+
data.tar.gz: 8288228bd31c1670fc4f1fe1c1aee023c78d3eba174a5dfead49bd00db815d8d286d87b0f13145c3d738ff96d8dd3ccf7251fc6dfbbe0dfebf0b23fb630bd404
|
data/README.md
CHANGED
|
@@ -17,6 +17,11 @@ Install all the provisioning profiles located in you're project.
|
|
|
17
17
|
|
|
18
18
|
Just check in all the provisioning profiles needed to compile you're project, and we take care of the rest.
|
|
19
19
|
|
|
20
|
+
You can override existing provisioning profiles by using the following options.
|
|
21
|
+
```ruby
|
|
22
|
+
install_provisioning_profiles(override_provisioning_profiles: true)
|
|
23
|
+
```
|
|
24
|
+
|
|
20
25
|
## Example
|
|
21
26
|
|
|
22
27
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
require 'fileutils'
|
|
2
|
+
|
|
1
3
|
module Fastlane
|
|
2
4
|
module Actions
|
|
3
5
|
class InstallProvisioningProfilesAction < Action
|
|
4
6
|
def self.run(params)
|
|
7
|
+
override_provisioning_profiles = params[:override_provisioning_profiles]
|
|
8
|
+
|
|
5
9
|
UI.important("Installing provisioning profile")
|
|
6
10
|
provisioning_profiles = locate_provisioning_profiles
|
|
7
11
|
|
|
@@ -17,6 +21,13 @@ module Fastlane
|
|
|
17
21
|
# Retrieve the UUID of the provisioning profile
|
|
18
22
|
uuid = retrieve_uuid(provisioning_profile)
|
|
19
23
|
|
|
24
|
+
# Check if the override_provisioning_profiles is disabled
|
|
25
|
+
if override_provisioning_profiles == false
|
|
26
|
+
if uuid_exist(uuid)
|
|
27
|
+
next
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
20
31
|
# Show the UUID of the provisioning profile
|
|
21
32
|
UI.message("UUID: #{uuid}")
|
|
22
33
|
|
|
@@ -34,9 +45,17 @@ module Fastlane
|
|
|
34
45
|
`/usr/libexec/PlistBuddy -c 'Print :UUID' /dev/stdin <<< $(security cms -D -i #{provisioning_profile})`.gsub("\n", "")
|
|
35
46
|
end
|
|
36
47
|
|
|
48
|
+
def self.uuid_exist(uuid)
|
|
49
|
+
File.exist?("#{target_directory}/#{uuid}.mobileprovision")
|
|
50
|
+
end
|
|
51
|
+
|
|
37
52
|
def self.copy_provisioning_profile(provisioning_profile, uuid)
|
|
38
|
-
|
|
39
|
-
|
|
53
|
+
target_location = "#{target_directory}/#{uuid}.mobileprovision"
|
|
54
|
+
FileUtils.cp(provisioning_profile, target_location)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def self.target_directory
|
|
58
|
+
File.expand_path("~/Library/MobileDevice/Provisioning Profiles")
|
|
40
59
|
end
|
|
41
60
|
|
|
42
61
|
#####################################################
|
|
@@ -47,6 +66,19 @@ module Fastlane
|
|
|
47
66
|
"Install all the provisioning profiles located in you're project."
|
|
48
67
|
end
|
|
49
68
|
|
|
69
|
+
def self.available_options
|
|
70
|
+
[
|
|
71
|
+
FastlaneCore::ConfigItem.new(
|
|
72
|
+
key: :override_provisioning_profiles,
|
|
73
|
+
env_name: 'FL_INSTALL_PROVISIONING_PROFILES_OVERRIDE',
|
|
74
|
+
description: 'Override existing provisioning profiles',
|
|
75
|
+
is_string: false,
|
|
76
|
+
optional: true,
|
|
77
|
+
default_value: false
|
|
78
|
+
)
|
|
79
|
+
]
|
|
80
|
+
end
|
|
81
|
+
|
|
50
82
|
def self.authors
|
|
51
83
|
["dgyesbreghs"]
|
|
52
84
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-install_provisioning_profiles
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dylan Gyesbreghs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-11-
|
|
11
|
+
date: 2017-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -144,9 +144,9 @@ require_paths:
|
|
|
144
144
|
- lib
|
|
145
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
requirements:
|
|
147
|
-
- - "
|
|
147
|
+
- - "~>"
|
|
148
148
|
- !ruby/object:Gem::Version
|
|
149
|
-
version: '0'
|
|
149
|
+
version: '2.0'
|
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
requirements:
|
|
152
152
|
- - ">="
|