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: a12521dbf39622a29b3d01016dbfc34e52d4e09c7e9a4254918302b30c7acad6
4
- data.tar.gz: b5199d2ce6be86cf7506d714c26bf998de84a056e7d49b1b20ca32e6f13e3c87
3
+ metadata.gz: b6f86aecc67767107cfc7443d4589462d5c4e36e2d685584caa21b4834a061ea
4
+ data.tar.gz: 1f03697a4a2cce054899ec7b46c9cc297aed9abfb34918d74500ec4efd8431fe
5
5
  SHA512:
6
- metadata.gz: 4db2eb28c24aac68a48b0b96f4cf2a6f3a4586ad49b80dcd5b704a0624acd4c6b5a6850f9f6a3d687a322a50089ad81b13cd58b0073ccd461ce47c4491cbaaf9
7
- data.tar.gz: eb580b92e8997c7f5a25a2808e2fd097b7a1b6b62d5989003e3c3448585b6639638af4e2aeb531b7618ac584c6255cf84e0115d34f003d3a062693d5c5df7433
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
- swiftFilepath = "#{destinationPath}/#{swiftFilename}"
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.2.04"
3
+ VERSION = "0.2.05"
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.04
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-13 00:00:00.000000000 Z
11
+ date: 2019-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google_drive