fastlane-plugin-google_sheet_localize 0.1.67 → 0.1.68

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: 68d5d6d035c3900d2117d25b701d8e310e7beff687ee17532b285053760179ac
4
- data.tar.gz: bb0b86e68f6d0c26679c8bf38998e373fa0ad2db9d09ad788131a822f1fbb612
3
+ metadata.gz: de7659bbc6c9c67d02f5363f37d822c4d86941f61f4087424599422779239948
4
+ data.tar.gz: 7d942a723331b3f81f265e111ce085b9847844849cbf40dc2083f8a64aa45e69
5
5
  SHA512:
6
- metadata.gz: e87fe2d433a8a4595250df12b950901fcd7a5d10a76a60209da6cf0606e139416e26832c3af2808a71c948fc63fe3fbdcf4f8c311fff41ffc6bbc7b883872710
7
- data.tar.gz: af287cbd3bb04f849ca112d56c2d35e1fe8a157476245c6da96fc2153466fa93c32c2f001e872adc0ca7c7d05613ff48de57c1a6380b852b2ed359cfcbcd0c06
6
+ metadata.gz: b9dd64e8eafdb313f1cae3f9c31a71904242e7ce1bc68fe2393b9bc98aa04410f3d1aff213de4bb1b6b446cafb1782c7cdb9ad5188a4a368f12596653ed7d751
7
+ data.tar.gz: 8351fa37ccb0ac40995bfc891b25ef600d0f777e0b8b3ecb87aab7aaf77a92c1f49b75660efb0d9f33851603e03645789af943907bbb61b28b708705d6db961e
data/README.md CHANGED
@@ -21,15 +21,16 @@ https://medium.com/@osanda.deshan/getting-google-oauth-access-token-using-google
21
21
 
22
22
  ## Example
23
23
 
24
- ```bash
24
+ ```ruby
25
25
  lane :localize do
26
26
  google_sheet_localize(service_account_path: "./fastlane/google_drive_credentials.json",
27
27
  sheet_id: "sheet id",
28
28
  platform: "ios",
29
- tabs: ["3TV"],
29
+ tabs: ["3TV"], #array of tab titles in google sheet
30
30
  localization_path: "./Kit/TVKit",
31
- language_titles: ["de", "en"],
32
- default_language: "de")
31
+ language_titles: ["de", "en"], #language titles in google sheet
32
+ default_language: "de", #default language for google sheet
33
+ base_language: "en") #ios: Base.lproj android: values
33
34
  end
34
35
  ```
35
36
 
@@ -104,7 +104,7 @@ module Fastlane
104
104
  }
105
105
 
106
106
  File.open(swiftFilepath, "w") do |f|
107
- f.write("import Foundation\n\n// swiftlint:disable file_length\npublic struct Localization {\n")
107
+ f.write("import Foundation\n\n// swiftlint:disable file_length\n// swiftlint:disable type_body_length\npublic struct Localization {\n")
108
108
  filteredItems.each { |item|
109
109
 
110
110
  identifier = item['identifierIos']
@@ -121,6 +121,14 @@ module Fastlane
121
121
  end
122
122
  end
123
123
 
124
+ if constantName == "continue"
125
+ constantName = "`continue`"
126
+ end
127
+
128
+ if constantName == "switch"
129
+ constantName = "`switch`"
130
+ end
131
+
124
132
  text = self.mapInvalidPlaceholder(item['text'])
125
133
 
126
134
  arguments = self.findArgumentsInText(text)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.1.67"
3
+ VERSION = "0.1.68"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-google_sheet_localize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.67
4
+ version: 0.1.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn