fastlane-plugin-google_sheet_localize 0.2.04 → 0.2.05
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6f86aecc67767107cfc7443d4589462d5c4e36e2d685584caa21b4834a061ea
|
4
|
+
data.tar.gz: 1f03697a4a2cce054899ec7b46c9cc297aed9abfb34918d74500ec4efd8431fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102951e94dcde52e2bf424db690327add236722bdbf246c12fc54b8105913e55da4ece13ec3f1cfe8a2a742668b1ccf93d08038e7b419d4105757dcaa97480f9
|
7
|
+
data.tar.gz: 96c2c82de7a51e54352e60dcf1a1314eb3d48c6ba936b6de0e44542eab0377408f4bdb244ded2dee49823ac78a63c2aa3c76d1d801beecaa5e51081152383d12
|
@@ -16,6 +16,7 @@ module Fastlane
|
|
16
16
|
language_titles = params[:language_titles]
|
17
17
|
default_language = params[:default_language]
|
18
18
|
base_language = params[:base_language]
|
19
|
+
code_generation_path = params[:code_generation_path]
|
19
20
|
|
20
21
|
spreadsheet = session.spreadsheet_by_url(spreadsheet_id)
|
21
22
|
worksheet = spreadsheet.worksheets.first
|
@@ -49,7 +50,7 @@ module Fastlane
|
|
49
50
|
result.push(language)
|
50
51
|
end
|
51
52
|
end
|
52
|
-
self.createFiles(result, platform, path, default_language, base_language)
|
53
|
+
self.createFiles(result, platform, path, default_language, base_language, code_generation_path)
|
53
54
|
end
|
54
55
|
|
55
56
|
def self.generateJSONObject(contentRows, index)
|
@@ -90,13 +91,20 @@ module Fastlane
|
|
90
91
|
}
|
91
92
|
end
|
92
93
|
|
93
|
-
def self.createFiles(languages, platform, destinationPath, defaultLanguage, base_language)
|
94
|
+
def self.createFiles(languages, platform, destinationPath, defaultLanguage, base_language, codeGenerationPath)
|
94
95
|
self.createFilesForLanguages(languages, platform, destinationPath, defaultLanguage, base_language)
|
95
96
|
|
96
97
|
if platform == "ios"
|
97
98
|
|
98
99
|
swiftFilename = "Localization.swift"
|
99
|
-
|
100
|
+
|
101
|
+
swiftPath = codeGenerationPath
|
102
|
+
|
103
|
+
if codeGenerationPath.to_s.empty?
|
104
|
+
swiftPath = destinationPath
|
105
|
+
end
|
106
|
+
|
107
|
+
swiftFilepath = "#{swiftPath}/#{swiftFilename}"
|
100
108
|
|
101
109
|
filteredItems = languages[0]["items"].select { |item|
|
102
110
|
iosIdentifier = item['identifierIos']
|
@@ -452,6 +460,11 @@ module Fastlane
|
|
452
460
|
env_name: "LOCALIZATION_PATH",
|
453
461
|
description: "Output path",
|
454
462
|
optional: false,
|
463
|
+
type: String),
|
464
|
+
FastlaneCore::ConfigItem.new(key: :code_generation_path,
|
465
|
+
env_name: "CODEGENERATIONPATH",
|
466
|
+
description: "Code generation path for the Swift file",
|
467
|
+
optional: true,
|
455
468
|
type: String)
|
456
469
|
]
|
457
470
|
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.
|
4
|
+
version: 0.2.05
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google_drive
|