fastlane-plugin-google_sheet_localize 0.2.05 → 0.2.06

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: b6f86aecc67767107cfc7443d4589462d5c4e36e2d685584caa21b4834a061ea
4
- data.tar.gz: 1f03697a4a2cce054899ec7b46c9cc297aed9abfb34918d74500ec4efd8431fe
3
+ metadata.gz: c4375d552c52ecf14e9406f7b965857354fe368a43a249d31192b11c040c1ff0
4
+ data.tar.gz: 57c9738138633aa934b6accf4aef9eb93f437c6743ef5e12174015e82dc6c26f
5
5
  SHA512:
6
- metadata.gz: 102951e94dcde52e2bf424db690327add236722bdbf246c12fc54b8105913e55da4ece13ec3f1cfe8a2a742668b1ccf93d08038e7b419d4105757dcaa97480f9
7
- data.tar.gz: 96c2c82de7a51e54352e60dcf1a1314eb3d48c6ba936b6de0e44542eab0377408f4bdb244ded2dee49823ac78a63c2aa3c76d1d801beecaa5e51081152383d12
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,
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.2.05"
3
+ VERSION = "0.2.06"
4
4
  end
5
5
  end
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.05
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-18 00:00:00.000000000 Z
11
+ date: 2019-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google_drive