fastlane-plugin-pod_spec_generator 0.1.7 → 0.1.9
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/pod_spec_generator/actions/pod_file_generator_action.rb +8 -1
- data/lib/fastlane/plugin/pod_spec_generator/actions/pod_spec_generator_action.rb +6 -0
- data/lib/fastlane/plugin/pod_spec_generator/helper/pod_file_builder.rb +11 -1
- data/lib/fastlane/plugin/pod_spec_generator/helper/pod_spec_builder.rb +2 -0
- data/lib/fastlane/plugin/pod_spec_generator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87ccf0180c07f6aa14e0986632b76cea255fd61f37bf0936df9765877dfb66e
|
4
|
+
data.tar.gz: 6c127d54bf13d65d43617658e20cce5fca6c4865879cc6daafef3249222cc6eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c18be2c5a6b38d804aba4583a06d08861e8d4dd866d60b9773399ea96e0d4885cf995a053ee43440cc6abf24f461d8cd49aa63b14c50fb2a5960d388230ca33
|
7
|
+
data.tar.gz: a84239a2295f750eb990ff35054002b13ed443895cd62d6e13d800fa9a8bf94fc5794b0808abbeb76331d98d959a8e8ca7bdc9724198882e6d23ce39d202937e
|
@@ -10,6 +10,7 @@ module Fastlane
|
|
10
10
|
builder.apply_local_spm_fix = params[:apply_local_spm_fix]
|
11
11
|
builder.targets = params[:targets]
|
12
12
|
builder.use_frameworks = params[:use_frameworks]
|
13
|
+
builder.source_urls = params[:source_urls] || []
|
13
14
|
if params[:platform]
|
14
15
|
builder.platform = params[:platform].reduce([]) do |content, pair|
|
15
16
|
content += [":#{pair[0]}", pair[1]]
|
@@ -65,7 +66,13 @@ module Fastlane
|
|
65
66
|
description: "Platform",
|
66
67
|
default_value: {ios: "14.0"},
|
67
68
|
optional: true,
|
68
|
-
type: Hash)
|
69
|
+
type: Hash),
|
70
|
+
FastlaneCore::ConfigItem.new(key: :source_urls,
|
71
|
+
env_name: "POD_FILE_GENERATOR_SOURCE_URLS",
|
72
|
+
description: "Podspec source URLs",
|
73
|
+
default_value: [],
|
74
|
+
optional: true,
|
75
|
+
type: Array)
|
69
76
|
|
70
77
|
]
|
71
78
|
end
|
@@ -22,6 +22,7 @@ module Fastlane
|
|
22
22
|
builder.source_files = params[:source_files]
|
23
23
|
builder.swift_version = params[:swift_version]
|
24
24
|
builder.spm_local_dependencies = params[:spm_local_dependencies]
|
25
|
+
builder.resources = params[:resources]
|
25
26
|
builder.platform = params[:platform].reduce([]) do |content, pair|
|
26
27
|
content += pair
|
27
28
|
end
|
@@ -101,6 +102,11 @@ module Fastlane
|
|
101
102
|
default_value: [],
|
102
103
|
optional: true,
|
103
104
|
type: Array),
|
105
|
+
FastlaneCore::ConfigItem.new(key: :resources,
|
106
|
+
description: "Resource Files",
|
107
|
+
default_value: [],
|
108
|
+
optional: true,
|
109
|
+
type: Array),
|
104
110
|
FastlaneCore::ConfigItem.new(key: :swift_version,
|
105
111
|
env_name: "POD_SPEC_GENERATOR_SWIFT_VERSION",
|
106
112
|
description: "Source Files",
|
@@ -4,17 +4,20 @@ class PodFileBuilder
|
|
4
4
|
attr_writer :use_frameworks,
|
5
5
|
:targets,
|
6
6
|
:apply_local_spm_fix,
|
7
|
-
:platform
|
7
|
+
:platform,
|
8
|
+
:source_urls
|
8
9
|
|
9
10
|
def initialize
|
10
11
|
@use_frameworks = true
|
11
12
|
@targets = []
|
12
13
|
@apply_local_spm_fix = false
|
13
14
|
@platform = nil
|
15
|
+
@source_urls = []
|
14
16
|
end
|
15
17
|
|
16
18
|
def build_pod_file_string
|
17
19
|
[use_frameworks_string,
|
20
|
+
custom_sources,
|
18
21
|
platform,
|
19
22
|
apply_local_spm_fix_string,
|
20
23
|
targets_string,
|
@@ -57,4 +60,11 @@ class PodFileBuilder
|
|
57
60
|
|
58
61
|
return nil
|
59
62
|
end
|
63
|
+
|
64
|
+
def custom_sources
|
65
|
+
return nil if @source_urls.empty?
|
66
|
+
|
67
|
+
sources = @source_urls + ["https://cdn.cocoapods.org"]
|
68
|
+
sources.map { |s| "source '#{s}'" }.join("\n")
|
69
|
+
end
|
60
70
|
end
|
@@ -12,6 +12,7 @@ class PodSpecBuilder
|
|
12
12
|
:subspecs,
|
13
13
|
:swift_version,
|
14
14
|
:source_files,
|
15
|
+
:resources,
|
15
16
|
:source,
|
16
17
|
:dependencies,
|
17
18
|
:spm_local_dependencies,
|
@@ -28,6 +29,7 @@ class PodSpecBuilder
|
|
28
29
|
@name = nil
|
29
30
|
@dependencies = []
|
30
31
|
@subscpecs = []
|
32
|
+
@resources = nil
|
31
33
|
@source = nil
|
32
34
|
@source_files = nil
|
33
35
|
@swift_version = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-pod_spec_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Crowe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|