fastlane-plugin-google_sheet_localize 0.2.05 → 0.2.06
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: c4375d552c52ecf14e9406f7b965857354fe368a43a249d31192b11c040c1ff0
|
|
4
|
+
data.tar.gz: 57c9738138633aa934b6accf4aef9eb93f437c6743ef5e12174015e82dc6c26f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6bad2631bd16342a04bec0a7e37780f42801a56b8ff08e65bb1cf174ab7492febbb21d6c8225b9f973a2c4ab0a003ec9aefb7e7d87f90254bc15c408af395a7
|
|
7
|
+
data.tar.gz: 85b80a30c4fb50595def1096631ad5aaf9eb501cfb7244ddebd3dab8a795619314c0163fb55aabd4552d447e3ba10440334295ec1d25cfc488c9fb3320cb5e7d
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require 'fastlane/action'
|
|
2
2
|
require 'google_drive'
|
|
3
|
+
require 'json'
|
|
3
4
|
|
|
4
5
|
require_relative '../helper/google_sheet_localize_helper'
|
|
5
6
|
|
|
@@ -321,6 +322,15 @@ module Fastlane
|
|
|
321
322
|
end
|
|
322
323
|
}
|
|
323
324
|
line = line + "\t</plurals>\n"
|
|
325
|
+
elsif text.start_with?("[\"") && text.end_with?("\"]")
|
|
326
|
+
|
|
327
|
+
line = line + "\t<string-array name=\"#{identifier}\">\n"
|
|
328
|
+
|
|
329
|
+
JSON.parse(text).each { |arrayItem|
|
|
330
|
+
line = line + "\t\t<item>#{arrayItem}</item>\n"
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
line = line + "\t</string-array>\n"
|
|
324
334
|
else
|
|
325
335
|
line = line + "\t<string name=\"#{identifier}\"><![CDATA[#{text}]]></string>\n"
|
|
326
336
|
end
|
|
@@ -432,7 +442,7 @@ module Fastlane
|
|
|
432
442
|
env_name: "PLATFORM",
|
|
433
443
|
description: "Plaform, ios or android",
|
|
434
444
|
optional: true,
|
|
435
|
-
default_value: Actions.lane_context[Actions::SharedValues::PLATFORM_NAME],
|
|
445
|
+
default_value: Actions.lane_context[Actions::SharedValues::PLATFORM_NAME].to_s,
|
|
436
446
|
default_value_dynamic: true,
|
|
437
447
|
type: String),
|
|
438
448
|
FastlaneCore::ConfigItem.new(key: :tabs,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-google_sheet_localize
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.06
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mario Hahn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google_drive
|