pod-builder 5.0.0 → 5.1.0

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: 6509579a498f83ab8b171004c0b3096a306b85b547392c2a6e16525d5f976fe9
4
- data.tar.gz: 66bd6e1a6bf224b02ec05dbd51e5001ad0f2c29aa03baba43037e7d4616057fe
3
+ metadata.gz: d0ab7c5e2b626fdced7e32539cd701cdf1dc36fe5e921351edab3aab860f3550
4
+ data.tar.gz: ed1f4cbad8ebe2bc973aadc12ebfe04adf0c66af1833a49ea5f4ab0df513f6f3
5
5
  SHA512:
6
- metadata.gz: bbd9e59727c97c102429d4af1fe1b6a2c2e67c8b4460fd52582b6b3f0410abb6788340c3821d931d46524795a67e13102612f3444e9e44c2c4078840c13ab13e
7
- data.tar.gz: 59ff68c1e2b9130f647d25152ad9729105ffbc55e3e77d89e0221bf6bc06da45d612d258e46f1102e0f8d1e20cdb47704c88256b4ecbf0bba33593efed8184cc
6
+ metadata.gz: 5d1babbf3946a5e021a17a984cf16afc3b81558af5fdac2ad64bfb0fa2f90b5803130d1ca1d7bc58254e9143e1f3ce14587387ae97eb888d7444cde04fa93739
7
+ data.tar.gz: a756ebcb9b0bae3b31ba0abba18a3f5638285597582e6432fee80e273efc02d4e92718f31e3b26394398de77757d44b4bea6dc004b181388d51d2af05bd92fbd
data/README.md CHANGED
@@ -203,6 +203,15 @@ _PodBuilder.json_ allows some advanced customizations.
203
203
 
204
204
  ## Supported keys
205
205
 
206
+ #### `development_team`
207
+
208
+ Starting with Xcode 14 it is mandatory to sign both frameworks and framework bundles. PodBuilder will try to automatically extract the developer team from the application, however there are cases where this will fail and the development_team needs to be added explicitly in the configuration file.
209
+
210
+
211
+ #### `development_language`
212
+
213
+ Starting with Xcode 14, when the main language is different than english, it might be necessary to explicitly set the default app language to properly localize app's extensions. Use the ISO 639-1 code.
214
+
206
215
  #### `spec_overrides`
207
216
 
208
217
  This hash allows to add/replace keys in a podspec specification. This can be useful to solve compilation issue or change compilation behaviour (e.g. compile framework statically by specifying `static_framework = true`) without having to fork the repo.
@@ -78,6 +78,7 @@ module PodBuilder
78
78
  attr_accessor :pre_actions
79
79
  attr_accessor :post_actions
80
80
  attr_accessor :development_team
81
+ attr_accessor :development_language
81
82
  end
82
83
 
83
84
  @build_settings = DEFAULT_BUILD_SETTINGS
@@ -119,6 +120,7 @@ module PodBuilder
119
120
  @post_actions = {}
120
121
 
121
122
  @development_team = ""
123
+ @development_language = nil
122
124
 
123
125
  def self.check_inited
124
126
  raise "\n\nNot inited, run `pod_builder init`\n".red if podbuilder_path.nil?
@@ -252,7 +254,11 @@ module PodBuilder
252
254
  Configuration.development_team = value
253
255
  end
254
256
  end
255
-
257
+ if value = json["development_language"]
258
+ if value.is_a?(String) && value.length > 0
259
+ Configuration.development_language = value
260
+ end
261
+ end
256
262
  Configuration.build_settings.freeze
257
263
 
258
264
  sanity_check()
@@ -297,6 +303,7 @@ module PodBuilder
297
303
  config["build_using_repo_paths"] = Configuration.build_using_repo_paths
298
304
  config["react_native_project"] = Configuration.react_native_project
299
305
  config["development_team"] = Configuration.development_team
306
+ config["development_language"] = Configuration.development_language || "en"
300
307
 
301
308
  File.write(config_path, JSON.pretty_generate(config))
302
309
  end
@@ -426,3 +426,18 @@ module PodBuilder
426
426
  end
427
427
  end
428
428
  end
429
+
430
+ # CocoaPods seems to hard code the development language to english
431
+ # By monkey patching the project save we make sure that the to manually rewrite the
432
+ # development language if it has been manually specified in PodBuilder's configuration
433
+ class Xcodeproj::Project
434
+ alias_method :swz_save, :save
435
+
436
+ def save(save_path = nil)
437
+ if development_language = PodBuilder::Configuration.development_language
438
+ root_object.development_region = development_language
439
+ end
440
+
441
+ swz_save(save_path)
442
+ end
443
+ end
@@ -1,3 +1,3 @@
1
1
  module PodBuilder
2
- VERSION = "5.0.0"
2
+ VERSION = "5.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler