fastlane-plugin-polidea 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/polidea/actions/import_provisioning.rb +38 -0
- data/lib/fastlane/plugin/polidea/actions/mailgun.rb +3 -3
- data/lib/fastlane/plugin/polidea/actions/{polidea_store_action.rb → polidea_store.rb} +3 -2
- data/lib/fastlane/plugin/polidea/actions/release_notes.rb +37 -0
- data/lib/fastlane/plugin/polidea/{actions → helper}/qr_generator.rb +0 -0
- data/lib/fastlane/plugin/polidea/version.rb +1 -1
- metadata +6 -5
- data/lib/fastlane/plugin/polidea/helper/polidea_helper.rb +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94294868714a0e1efd73d5b5def4349b762ace7d
|
4
|
+
data.tar.gz: 28c9cb783bf1a77d6888816779f96495860e5120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ec4b068a883743913a54c3e3666716a98e0fa5a913ac6b5f98136337309fffe0eb18a149474739a68ae2b8efd6c7f34b2799bf70712b82d4e78c188d33cbee9
|
7
|
+
data.tar.gz: 1b6c25db27e4f8f0d986946d40c18114cffe2d8f0eb8acdf2d575a2de6d9c98cb8fa2691eddf4f666e05ca95e8807ecb3f7b31ec07362169bbe34e2cc05cf7b3
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class ImportProvisioningAction < Action
|
4
|
+
def self.run(config)
|
5
|
+
path = config[:path]
|
6
|
+
profiles = Dir.glob File.join(path, "*.mobileprovision")
|
7
|
+
|
8
|
+
# Install the provisioning profiles
|
9
|
+
profiles.each do |profile|
|
10
|
+
FastlaneCore::ProvisioningProfile.install(profile)
|
11
|
+
end
|
12
|
+
UI.success "Successfully imported:\n#{profiles.join("\n")}"
|
13
|
+
true
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.available_options
|
17
|
+
[
|
18
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
19
|
+
env_name: "",
|
20
|
+
description: "Directory containing provisioning profiles",
|
21
|
+
default_value: "signing")
|
22
|
+
]
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.description
|
26
|
+
"Import provisioning profiles from directory (`signing` is default)"
|
27
|
+
end
|
28
|
+
|
29
|
+
def self.author
|
30
|
+
"Piotrek Dubiel"
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.is_supported?(platform)
|
34
|
+
platform == :ios
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -81,9 +81,9 @@ module Fastlane
|
|
81
81
|
FastlaneCore::ConfigItem.new(key: :release_notes,
|
82
82
|
env_name: "MAILGUN_RELEASE_NOTES",
|
83
83
|
description: "Release notes",
|
84
|
-
type:
|
84
|
+
type: String,
|
85
85
|
optional: true,
|
86
|
-
default_value: []),
|
86
|
+
default_value: Actions.lane_context[SharedValues::RELEASE_NOTES]),
|
87
87
|
FastlaneCore::ConfigItem.new(key: :binary_size,
|
88
88
|
env_name: "MAILGUN_BINARY_SIZE",
|
89
89
|
description: "Binary size",
|
@@ -144,7 +144,7 @@ module Fastlane
|
|
144
144
|
app_version: options[:app_version],
|
145
145
|
build_number: options[:build_number],
|
146
146
|
installation_link: options[:installation_link],
|
147
|
-
release_notes: options[:release_notes],
|
147
|
+
release_notes: options[:release_notes].split("\n"),
|
148
148
|
platform: Actions.lane_context[Actions::SharedValues::PLATFORM_NAME],
|
149
149
|
release_date: DateTime.now.strftime('%b %d, %Y'),
|
150
150
|
binary_size: (options[:binary_size] / 1024.0 / 1024.0).round(2).to_s
|
@@ -76,10 +76,11 @@ module Fastlane
|
|
76
76
|
UI.user_error!("No icon url given, pass using `icon_url: 'url'` or make sure s3 action succeded and exposed S3_ICON_OUTPUT_PATH shared value") unless value and !value.empty?
|
77
77
|
end),
|
78
78
|
FastlaneCore::ConfigItem.new(key: :release_notes,
|
79
|
-
env_name: "
|
79
|
+
env_name: "",
|
80
80
|
description: "Release notes to be attached to uploaded version",
|
81
81
|
is_string: true,
|
82
|
-
optional: true
|
82
|
+
optional: true,
|
83
|
+
default_value: Actions.lane_context[SharedValues::RELEASE_NOTES]),
|
83
84
|
FastlaneCore::ConfigItem.new(key: :app_name,
|
84
85
|
env_name: "",
|
85
86
|
description: "Application name (defaults to results of extract_app_name action)",
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
module SharedValues
|
4
|
+
RELEASE_NOTES = :RELEASE_NOTES
|
5
|
+
end
|
6
|
+
|
7
|
+
class ReleaseNotesAction < Action
|
8
|
+
def self.run(config)
|
9
|
+
current_tag = sh "git describe --exact-match --tags HEAD"
|
10
|
+
tag_info = sh "git cat-file -p #{current_tag}"
|
11
|
+
release_notes = tag_info.split("\n").drop(5).join("\n")
|
12
|
+
UI.success "Extracted release notes:\n#{release_notes}"
|
13
|
+
Actions.lane_context[SharedValues::RELEASE_NOTES] = release_notes
|
14
|
+
ENV[SharedValues::RELEASE_NOTES.to_s] = release_notes
|
15
|
+
release_notes
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.description
|
19
|
+
"Extracts release notes from git tag messages"
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.output
|
23
|
+
[
|
24
|
+
['RELEASE_NOTES', 'Release notes extracted from git tag']
|
25
|
+
]
|
26
|
+
end
|
27
|
+
|
28
|
+
def self.author
|
29
|
+
"Piotrek Dubiel"
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.is_supported?(platform)
|
33
|
+
true
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-polidea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotrek Dubiel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plist
|
@@ -183,11 +183,12 @@ files:
|
|
183
183
|
- lib/fastlane/plugin/polidea/actions/extract_app_name.rb
|
184
184
|
- lib/fastlane/plugin/polidea/actions/extract_version.rb
|
185
185
|
- lib/fastlane/plugin/polidea/actions/get_binary_size.rb
|
186
|
+
- lib/fastlane/plugin/polidea/actions/import_provisioning.rb
|
186
187
|
- lib/fastlane/plugin/polidea/actions/mailgun.rb
|
187
|
-
- lib/fastlane/plugin/polidea/actions/
|
188
|
-
- lib/fastlane/plugin/polidea/actions/
|
188
|
+
- lib/fastlane/plugin/polidea/actions/polidea_store.rb
|
189
|
+
- lib/fastlane/plugin/polidea/actions/release_notes.rb
|
189
190
|
- lib/fastlane/plugin/polidea/actions/s3.rb
|
190
|
-
- lib/fastlane/plugin/polidea/helper/
|
191
|
+
- lib/fastlane/plugin/polidea/helper/qr_generator.rb
|
191
192
|
- lib/fastlane/plugin/polidea/templates/images/icon-placeholder.png
|
192
193
|
- lib/fastlane/plugin/polidea/templates/images/logo.png
|
193
194
|
- lib/fastlane/plugin/polidea/templates/images/polidea-facebook-icon.png
|
@@ -1,12 +0,0 @@
|
|
1
|
-
module Fastlane
|
2
|
-
module Helper
|
3
|
-
class PolideaHelper
|
4
|
-
# class methods that you define here become available in your action
|
5
|
-
# as `Helper::PolideaHelper.your_method`
|
6
|
-
#
|
7
|
-
def self.show_message
|
8
|
-
UI.message("Hello from the polidea plugin helper!")
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|