fastlane-plugin-google_sheet_localize 0.1.98 → 0.1.99

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: 259dd699b7047735ea31e9f9ad204de392b61c486225e14b84b0c18538502777
4
- data.tar.gz: 1a82de7391a6e0df8eed11728f89726365f3820145a461fb833e801b105ec5fc
3
+ metadata.gz: 1687b2bd2a17284ad02aa07d130b32b32eb7f67686db2c20f47067a8b0fa470b
4
+ data.tar.gz: fdc685a6b3d44eafd823eb305068a4578b378832575805908d98ca27ee155856
5
5
  SHA512:
6
- metadata.gz: 4db6ad5d013b2b5c442d6c272335a814673da43cc5978e6a860e0380305376d20ac793d966cac980cc2d34e2d9982b05b43591db7ddf291101b4f432cdec9e8c
7
- data.tar.gz: a2885ebd6a84ced8676483821c8a3022f5cf4d62d4ee17ce564cbd0d9707a2f61172ca386de0b7b995e27b220814d35e15f4caf245954b3108af6fac682cc9fa
6
+ metadata.gz: 59209bd5e5eb7d47b8b816811aa3713b7f8c231fa4409e68f9555e9a7793d4b088a12ee27736b6884c6499a60f0d6714af1eab54d0c7805990ec59bcfd919994
7
+ data.tar.gz: f7da7bcf9220a6148678be6ed43d9699fd42667c8dfb40f8343deee6b5da84219ecc58c54f4152c42909a107b250b1bc62bfc5e546bcddadff35c90d68dd5430
@@ -85,8 +85,8 @@ module Fastlane
85
85
 
86
86
  def self.filterUnusedRows(items, identifier)
87
87
  return items.select { |item|
88
- iosIdentifier = item[identifier]
89
- iosIdentifier != "NR" && iosIdentifier != ""
88
+ currentIdentifier = item[identifier]
89
+ currentIdentifier != "NR" && currentIdentifier != "" && currentIdentifier != "TBD"
90
90
  }
91
91
  end
92
92
 
@@ -100,7 +100,7 @@ module Fastlane
100
100
 
101
101
  filteredItems = languages[0]["items"].select { |item|
102
102
  iosIdentifier = item['identifierIos']
103
- iosIdentifier != "NR" && iosIdentifier != "" && !iosIdentifier.include?('//')
103
+ iosIdentifier != "NR" && iosIdentifier != "" && !iosIdentifier.include?('//') && iosIdentifier != "TBD"
104
104
  }
105
105
 
106
106
  File.open(swiftFilepath, "w") do |f|
@@ -279,7 +279,7 @@ module Fastlane
279
279
  identifier = item['identifierAndroid']
280
280
  text = item['text']
281
281
 
282
- if !identifier.to_s.empty? && identifier != "NR"
282
+ if !identifier.to_s.empty?
283
283
  line = ""
284
284
 
285
285
  if !comment.to_s.empty?
@@ -328,7 +328,7 @@ module Fastlane
328
328
  end
329
329
 
330
330
  def self.createiOSFileEndString()
331
- return "\n\nprivate class LocalizationHelper { }\n\nextension Localization {\n\tprivate static func localized(identifier key: String, _ args: CVarArg...) -> String {\n\t\tlet format = NSLocalizedString(key, tableName: nil, bundle: Bundle(for: LocalizationHelper.self), comment: \"\")\n\n\t\tguard !args.isEmpty else { return format }\n\n\t\tif args.count == 1, let first = args.first {\n\t\t\treturn String.localizedStringWithFormat(format, first)\n\t\t}\n\t\treturn String.localizedStringWithFormat(format, args)\n\t}\n}"
331
+ return "\n\nprivate class LocalizationHelper { }\n\nextension Localization {\n\tprivate static func localized(identifier key: String, _ args: CVarArg...) -> String {\n\t\tlet format = NSLocalizedString(key, tableName: nil, bundle: Bundle(for: LocalizationHelper.self), comment: \"\")\n\n\t\tguard !args.isEmpty else { return format }\n\n\t\tString(format: format, locale: .current, arguments: args)\n\t}\n}"
332
332
  end
333
333
 
334
334
  def self.createiOSFunction(constantName, identifier, arguments, comment)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.1.98"
3
+ VERSION = "0.1.99"
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.98
4
+ version: 0.1.99
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn