cocoapods-localzedLoader 0.1.6 → 0.1.9
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: 12e20670e8b6a34ee41901ed75f366056badd7fcda4f1cc655e03a15db9bcdb9
|
4
|
+
data.tar.gz: 15e6ce7c2a104e370590b77d97f5655e5d4a6e8d710793035fe3a2bdc100b6ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c4682838148e67c717abefb89f1470627b83221b048b3cc77d1dce88e3fa649d185f935c87c5d3f795e0b96b633c3e9d698f92f5694bb9de95c9d719a8490b8
|
7
|
+
data.tar.gz: cb99d09ef4193662e80317b1994a6c6d1d8b2972425e62938a91d77e16ba75ba54d5f990069d8ee183b61dac28608bd948675bc4edd59ad36be913bc37d5d9a2
|
@@ -19,7 +19,7 @@ module Pod
|
|
19
19
|
# @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
|
20
20
|
# in the `plugins.json` file, once your plugin is released.
|
21
21
|
#
|
22
|
-
class
|
22
|
+
class Download < Command
|
23
23
|
self.summary = 'langDownnloader for user'
|
24
24
|
|
25
25
|
self.description = <<-DESC
|
@@ -30,9 +30,14 @@ module Pod
|
|
30
30
|
|
31
31
|
def initialize(argv)
|
32
32
|
super
|
33
|
+
# puts "初始化:#{argv}"
|
33
34
|
project_directory = argv.option('project-directory')
|
35
|
+
puts project_directory
|
34
36
|
project_directory = Dir.pwd if project_directory.nil?
|
37
|
+
puts project_directory
|
35
38
|
@project_directory = Pathname.new(project_directory).expand_path
|
39
|
+
puts project_directory
|
40
|
+
|
36
41
|
end
|
37
42
|
def self.options
|
38
43
|
[
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.1.
|
1
|
+
module Localizedloader
|
2
|
+
VERSION = "0.1.9"
|
3
3
|
end
|
@@ -106,7 +106,9 @@ class BundleGenerater
|
|
106
106
|
file_til.getLangList.each do |lang|
|
107
107
|
path = "./#{lang}.lproj/Localizable.strings"
|
108
108
|
dest = bundPath + "/#{lang}.lproj"
|
109
|
+
dest2 = "./AqaraHome/Resource/#{lang}.lproj"
|
109
110
|
FileUtils.mkdir_p dest
|
111
|
+
FileUtils.cp(path,dest2)
|
110
112
|
FileUtils.mv("#{path}",dest,force:true)
|
111
113
|
|
112
114
|
info_plist_file = "./#{lang}.lproj/InfoPlist.strings"
|
data/lib/cocoapods_plugin.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'cocoapods-localzedLoader/command'
|
2
2
|
require_relative 'cocoapods-localzedLoader/ios_bundle_generate'
|
3
|
-
module
|
3
|
+
module Pod
|
4
4
|
Pod::HooksManager.register('cocoapods-localzedLoader', :pre_install) do |context|
|
5
|
-
args = ['
|
6
|
-
|
5
|
+
args = ['download', "--project-directory=#{Config.instance.installation_root}"]
|
6
|
+
Pod::Command.run(args)
|
7
7
|
end
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-localzedLoader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jeremylu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -60,7 +60,7 @@ homepage: https://github.com/EXAMPLE/cocoapods-localzedLoader
|
|
60
60
|
licenses:
|
61
61
|
- MIT
|
62
62
|
metadata: {}
|
63
|
-
post_install_message:
|
63
|
+
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
66
66
|
- lib
|
@@ -75,8 +75,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
79
|
-
signing_key:
|
78
|
+
rubygems_version: 3.4.6
|
79
|
+
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: A longer description of cocoapods-localzedLoader.
|
82
82
|
test_files: []
|