fastlane-plugin-simple_loco 2.1.1 → 2.2.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: 0a813ed407a1329832a80a7123412ab38f0bae212baf5a357c728c232e9c1b78
4
- data.tar.gz: a6574282b739b64614c79784433c02220fdd2178e9878e77cda31d5c03679b96
3
+ metadata.gz: 60d1b677fef0fd77bf745fa50094849ee1b4dc84b5401abfff80a6e09e8db3cc
4
+ data.tar.gz: b5e03b106b249603b7bd2ee5b4c64b92e90d3034908e1e3ac05c9bb807c6a48f
5
5
  SHA512:
6
- metadata.gz: b70f807b1edd729b105ac0e8c9d16b81419c81c8cf73e668a20384ea378d4efb25c2b616db8a88074f9487c2f9f75a547fce60ff123c46595791fcabe2a321c4
7
- data.tar.gz: 41146de5bc8e3e3afb1c7581445d8990a156631435f1bcffd4205a9a63628a59bcac25e97391a31b6f46ec447d81f342d0bf203247d72bcb1c972c07ee241db6
6
+ metadata.gz: 8db3caa5a2e78fe8de1fdae3f272f39e3496378293632819267896ad937451ca922ebe3e7c9f4cc8bfe7c84dcf927c0982cb3c00e3f806d03581deb69f34ff30
7
+ data.tar.gz: ce254f9cdafc0f2fdcccb2505235cde9889dc1d3d8bb68f89bfffd1f6dada83bf61a6fda019e715bfef5f148ea695c6541fe74d6f34726cfaf4e45113ad460c7
data/README.md CHANGED
@@ -38,11 +38,11 @@ The config file specifies the following properties:
38
38
  - locales: List of locales to fetch
39
39
  - directory: Directory to move translation files to
40
40
  - platform: Platform for the translations: choice between:
41
- - Android
42
- - iOS
43
- - Xamarin
44
- - Flutter
45
- - Custom
41
+ - android
42
+ - ios
43
+ - xamarin
44
+ - flutter
45
+ - custom
46
46
  - key: Key of the Loco project
47
47
  - Optional parameters:
48
48
  - format
@@ -72,7 +72,8 @@ module Fastlane
72
72
  if platform == PLATFORM_ANDROID
73
73
  @adapter = AndroidAdapter.new
74
74
  elsif platform == PLATFORM_IOS
75
- @adapter = CocoaAdapter.new
75
+ @adapter = CocoaAdapter.new(
76
+ format: format)
76
77
  elsif platform == PLATFORM_FLUTTER
77
78
  @adapter = FlutterAdapter.new
78
79
  elsif platform == PLATFORM_XAMARIN
@@ -289,8 +290,18 @@ module Fastlane
289
290
  end
290
291
 
291
292
  class CocoaAdapter < BaseAdapter
293
+ def initialize(format:)
294
+ @format = format
295
+ end
296
+
297
+ attr_reader :format
298
+
292
299
  def allowed_extensions
293
- return ['.strings', '.stringsdict']
300
+ if @format == 'plist'
301
+ return ['.strings']
302
+ else
303
+ return ['.strings', '.stringsdict']
304
+ end
294
305
  end
295
306
 
296
307
  def directory(locale, is_default)
@@ -298,7 +309,11 @@ module Fastlane
298
309
  end
299
310
 
300
311
  def default_file_name
301
- return 'Localizable'
312
+ if @format == 'plist'
313
+ return 'InfoPlist'
314
+ else
315
+ return 'Localizable'
316
+ end
302
317
  end
303
318
  end
304
319
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module SimpleLoco
3
- VERSION = "2.1.1"
3
+ VERSION = "2.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-simple_loco
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Delcoigne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.2.3
170
+ rubygems_version: 3.4.10
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: A simple implementation for exporting translations from Loco.