fastlane-plugin-simple_loco 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60d1b677fef0fd77bf745fa50094849ee1b4dc84b5401abfff80a6e09e8db3cc
|
|
4
|
+
data.tar.gz: b5e03b106b249603b7bd2ee5b4c64b92e90d3034908e1e3ac05c9bb807c6a48f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
312
|
+
if @format == 'plist'
|
|
313
|
+
return 'InfoPlist'
|
|
314
|
+
else
|
|
315
|
+
return 'Localizable'
|
|
316
|
+
end
|
|
302
317
|
end
|
|
303
318
|
end
|
|
304
319
|
|
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.
|
|
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:
|
|
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.
|
|
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.
|