fastlane-plugin-google_sheet_localize 0.3.05 → 0.3.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: 8cd7e38197a7a899f0babccc4dd007133de1f45a4f75cd8164161b77a380d0be
|
|
4
|
+
data.tar.gz: 6aae195e79318258190b3a8b1d2dd68977589c771f7a746ecb48e4e04522dd3a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3d4cee30ff65e35d313138b8deb8644596dc517d1c2f4517b073506a9cd5e546b082cc3f899fda617188197a29f5fbe05c4395786a48c0fcc8dc6d3dbdbe973
|
|
7
|
+
data.tar.gz: b1a107ece3531c4ee3ccdb57fec4c108540ea4f14689a1a1d5fa14b083f33621687f4afbc7f284d60301f3c4416c4a4cca55a151602eacefa6947a6cca5cd015
|
|
@@ -187,7 +187,7 @@ module Fastlane
|
|
|
187
187
|
swiftFilepath = "#{swiftPath}/#{swiftFilename}"
|
|
188
188
|
|
|
189
189
|
File.open(swiftFilepath, "w") do |f|
|
|
190
|
-
f.write("import Foundation\n\n// swiftlint:disable all\npublic
|
|
190
|
+
f.write("import Foundation\n\n// swiftlint:disable all\npublic class Localization: NSObject {\n")
|
|
191
191
|
filteredItems.each { |item|
|
|
192
192
|
|
|
193
193
|
identifier = item['identifier']
|
|
@@ -220,7 +220,7 @@ module Fastlane
|
|
|
220
220
|
|
|
221
221
|
if arguments.count == 0
|
|
222
222
|
f.write(self.createComment(item['comment'], item['text']))
|
|
223
|
-
f.write("public static let #{constantName} = localized(identifier: \"#{identifier}\")\n")
|
|
223
|
+
f.write("@objc public static let #{constantName} = localized(identifier: \"#{identifier}\")\n")
|
|
224
224
|
else
|
|
225
225
|
f.write(self.createComment(item['comment'], item['text']))
|
|
226
226
|
f.write(self.createiOSFunction(constantName, identifier, arguments))
|
|
@@ -477,7 +477,7 @@ module Fastlane
|
|
|
477
477
|
end
|
|
478
478
|
|
|
479
479
|
def self.createiOSFunction(constantName, identifier, arguments)
|
|
480
|
-
functionTitle = "public static func #{constantName}("
|
|
480
|
+
functionTitle = "@objc public static func #{constantName}("
|
|
481
481
|
|
|
482
482
|
arguments.each_with_index do |item, index|
|
|
483
483
|
functionTitle = functionTitle + "_ arg#{index}: #{item[:type]}"
|