fastlane-plugin-remove_provisioning_profile 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +4 -2
- data/lib/fastlane/plugin/remove_provisioning_profile/actions/remove_provisioning_profile_action.rb +6 -1
- data/lib/fastlane/plugin/remove_provisioning_profile/extensions/file_include_extension.rb +4 -4
- data/lib/fastlane/plugin/remove_provisioning_profile/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9e8c6182af7e982871de14632ca02114ec32fbd
|
4
|
+
data.tar.gz: 32c94c7cf5c5421b629ee8075d6a02e293ea10e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0c1411dcbe9cb08049892c0304fcb52174be08ff1643fa7a891a5ccc8ef54ac579a71410c1110d489b10c7ba761b0b8c2d0a80e2536a8d89ef301250a52925
|
7
|
+
data.tar.gz: 2004569763eec045c7fae2097695adbd435148fab9d950025897cc9f4798537eb263375ccf4999ceda2c3ee2629392e2ed65cfe957eb22b7d628842f62366174
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# remove_provisioning_profile plugin
|
2
2
|
|
3
3
|
[](https://rubygems.org/gems/fastlane-plugin-remove_provisioning_profile)
|
4
|
+
[](https://travis-ci.org/Antondomashnev/fastlane-plugin-remove-provisioning-profile)
|
5
|
+
[](https://codebeat.co/projects/github-com-antondomashnev-fastlane-plugin-remove-provisioning-profile)
|
4
6
|
|
5
7
|
## Getting Started
|
6
8
|
|
@@ -24,7 +26,7 @@ Available options
|
|
24
26
|
|
25
27
|
Example to run the action
|
26
28
|
```
|
27
|
-
|
29
|
+
remove_provisioning_profile(app_identifier: "com.antondomashnev.fastlane-plugin-remove-provisioning-profile", type: "development")
|
28
30
|
```
|
29
31
|
|
30
32
|
Example `lane` from our team's `fastfile`. The lane removes the old provisioning profiles of all types and then runs `match` to create and load new
|
@@ -34,7 +36,7 @@ desc "Recreate the provisioning profiles so you can deploy to your device, relea
|
|
34
36
|
types = ["development", "adhoc", "appstore"]
|
35
37
|
app_identifier = "com.antondomashnev.fastlane-plugin-remove-provisioning-profile"
|
36
38
|
types.each do |type|
|
37
|
-
|
39
|
+
remove_provisioning_profile(app_identifier: app_identifier, type: type)
|
38
40
|
match(app_identifier: app_identifier, type: type, force: true)
|
39
41
|
end
|
40
42
|
end
|
data/lib/fastlane/plugin/remove_provisioning_profile/actions/remove_provisioning_profile_action.rb
CHANGED
@@ -7,6 +7,11 @@ module Fastlane
|
|
7
7
|
app_identifier = params[:app_identifier]
|
8
8
|
type = params[:type]
|
9
9
|
provisioning_profiles_folder = params[:provisioning_profiles_folder] ? params[:provisioning_profiles_folder] : "#{Dir.home}/Library/MobileDevice/Provisioning Profiles"
|
10
|
+
unless Dir.exist?(provisioning_profiles_folder)
|
11
|
+
UI.important("There is no directory at the given path '#{provisioning_profiles_folder}' skipping the action")
|
12
|
+
return
|
13
|
+
end
|
14
|
+
|
10
15
|
UI.message("Looking for '#{type}' provisioning profile of '#{app_identifier}' in '#{provisioning_profiles_folder}'") if $verbose
|
11
16
|
|
12
17
|
provisioning_profiles = []
|
@@ -61,7 +66,7 @@ module Fastlane
|
|
61
66
|
optional: false,
|
62
67
|
type: String,
|
63
68
|
verify_block: proc do |value|
|
64
|
-
UI.user_error!("No app identifier") if value.to_s.length
|
69
|
+
UI.user_error!("No app identifier") if value.to_s.length.zero?
|
65
70
|
end),
|
66
71
|
FastlaneCore::ConfigItem.new(key: :type,
|
67
72
|
description: "Provisioning profile type",
|
@@ -14,13 +14,13 @@ class File
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.include_two_lines?(file_path,
|
18
|
-
|
19
|
-
|
17
|
+
def self.include_two_lines?(file_path, included_line1, included_line2)
|
18
|
+
stripped_included_line1 = included_line1.strip
|
19
|
+
stripped_included_line2 = included_line2.strip
|
20
20
|
previous_line = ""
|
21
21
|
File.foreach(file_path).any? do |line|
|
22
22
|
next unless line.valid_encoding?
|
23
|
-
if previous_line.strip ==
|
23
|
+
if previous_line.strip == stripped_included_line1 && line.strip == stripped_included_line2
|
24
24
|
true
|
25
25
|
else
|
26
26
|
previous_line = line
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-remove_provisioning_profile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Domashnev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -127,9 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.5.1
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Remove provision profile from your local machine
|
134
134
|
test_files: []
|
135
|
-
has_rdoc:
|