fastlane-plugin-google_sheet_localize 0.3.10 → 0.3.11

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: 6ad1b088723de465606267fc7cd2da89753d60c51f3c36607591320b66cb8152
4
- data.tar.gz: afbc9b0390d111892e3f2c408a5b7f3f5339b53ffff9c9bac2bb2d2e23aee83e
3
+ metadata.gz: 9b5d87c095c7e5ca644cad2b1843e389dc0772a30f10ee213fb21e8d5bb64e14
4
+ data.tar.gz: d85062c292448a24ca74fce441cb57369a588d30a3581f4929281bf605acbb3f
5
5
  SHA512:
6
- metadata.gz: 309965ccd5cbf39742863d369d6cdd50570714feec7f5fe678c21a12bd85b60e6dcfe4bc937bbb3caa29b65a806d917c3ff2072444bc561bcbe094148805569a
7
- data.tar.gz: 2f1a279e8f808e85d26bf6134457340b9f6610a5dd121249e68adf508260095b7d43d9f09b03f6510fd7b7459e6fed142a7750f10e156cc586ec21f9885bbdf4
6
+ metadata.gz: 129d2376d444e9b473a455085a7b1fd58ced4a95820f4a8dd339a3c8e0021e44f505bee4c6cbdfd522200a6033017653230cfd78dded79259a09375d4141221e
7
+ data.tar.gz: 1130f9c3f659b4b0ad46c7d09745fb002cce7d16b3de2fc78c32e14121d84f57d733e4b8ee2c62e999a5d077149bd57d73a9e2f8342d41378ff5500548e9ca0f
@@ -21,6 +21,7 @@ module Fastlane
21
21
  identifier_name = params[:identifier_name]
22
22
  comment_example_language = params[:comment_example_language]
23
23
  support_objc = params[:support_objc]
24
+ support_spm = params[:support_spm]
24
25
 
25
26
  if identifier_name.to_s.empty?
26
27
  if platform == "ios"
@@ -86,7 +87,7 @@ module Fastlane
86
87
  end
87
88
  end
88
89
  }
89
- self.createFiles(result, platform, path, default_language, base_language, code_generation_path, comment_example_language, support_objc)
90
+ self.createFiles(result, platform, path, default_language, base_language, code_generation_path, comment_example_language, support_objc, support_spm)
90
91
  end
91
92
 
92
93
  def self.generateJSONObject(contentRows, index, identifierIndex)
@@ -132,7 +133,7 @@ module Fastlane
132
133
  }
133
134
  end
134
135
 
135
- def self.createFiles(languages, platform, destinationPath, defaultLanguage, base_language, codeGenerationPath, comment_example_language, support_objc)
136
+ def self.createFiles(languages, platform, destinationPath, defaultLanguage, base_language, codeGenerationPath, comment_example_language, support_objc, support_spm)
136
137
  self.createFilesForLanguages(languages, platform, destinationPath, defaultLanguage, base_language)
137
138
 
138
139
  if platform == "web"
@@ -228,7 +229,7 @@ module Fastlane
228
229
  end
229
230
  }
230
231
  f.write("\n}")
231
- f.write(self.createiOSFileEndString(destinationPath))
232
+ f.write(self.createiOSFileEndString(destinationPath, support_spm))
232
233
  end
233
234
 
234
235
  end
@@ -453,9 +454,9 @@ module Fastlane
453
454
  }
454
455
  end
455
456
 
456
- def self.createiOSFileEndString(destinationPath)
457
+ def self.createiOSFileEndString(destinationPath, support_spm)
457
458
 
458
- bundle = "let bundle = Bundle(for: LocalizationHelper.self)"
459
+ bundle = support_spm ? "let bundle = Bundle.module" : "let bundle = Bundle(for: LocalizationHelper.self)"
459
460
 
460
461
  puts destinationPath
461
462
 
@@ -589,6 +590,11 @@ module Fastlane
589
590
  default_value: [],
590
591
  optional: true,
591
592
  type: Array),
593
+ FastlaneCore::ConfigItem.new(key: :support_spm,
594
+ env_name: "SUPPORT_SPM",
595
+ description: "Is Swift Package",
596
+ default_value: false,
597
+ type: Boolean),
592
598
  FastlaneCore::ConfigItem.new(key: :language_titles,
593
599
  env_name: "LANGUAGE_TITLES",
594
600
  description: "Alle language titles",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleSheetLocalize
3
- VERSION = "0.3.10"
3
+ VERSION = "0.3.11"
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.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Hahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google_drive