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: 68adf84c5eedaaf06d2f8e44f1c6135399a1f713d2dda93b75dca5a1ca61449a
4
- data.tar.gz: 6843b6a13cd0a82d1789711d0fdbd567862eec31f2705b9c4b57376779eee36f
3
+ metadata.gz: 64f0bf6895de405624464802a78fce9ee35f4997e1f0e0953f269904c9544d78
4
+ data.tar.gz: eb179532bc99998db5c7da8ac0419120a974bb93df522674f5771350f58078e3
5
5
  SHA512:
6
- metadata.gz: bc1142cc3fb23a38ffb7d52c090cf177ff459b26ca2973f908e323ea140a942dafa68e4a8341fbc5cde70cf9b4ea0fed6f001fc943ce99edaa2220da97582cd9
7
- data.tar.gz: 334630c3c53cc0b5ec07f3370532dcd12db94fe689665e807733bcfb9d935ef53715f66ba6498dc01eec8197bdcd3258d939d7dc9e9e6e297134ce49cc1db783
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module PodSpecGenerator
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  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.7
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-05-28 00:00:00.000000000 Z
11
+ date: 2024-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods