fastlane-plugin-pod_spec_generator 0.1.7 → 0.1.8
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64f0bf6895de405624464802a78fce9ee35f4997e1f0e0953f269904c9544d78
|
4
|
+
data.tar.gz: eb179532bc99998db5c7da8ac0419120a974bb93df522674f5771350f58078e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e43e1b3e0ec4a777de32fefa4dd8a773a6a58c084f9c33d1eee3bf540975186e0e18cade5e668fd01f66bc69eb4471abde2c41d6f9f2a82c3cb4c83a0c83900
|
7
|
+
data.tar.gz: '091f9280adc597e1bcd9cd8e4e5378d4b0ef52fada0fe734e47ff7042d1f10ad1a831ab838563af59d4853d7aab6108b8f0f25b9f54b67b9ef26e5f0f44ad936'
|
@@ -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
|
@@ -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
|
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.8
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|