gonative-cli 1.3.6 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gonative/plugins/ios/add_language.rb +14 -4
- data/lib/gonative/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfed650a535963881f1c80a19d717bb18f60571461a99874052795df20cecd45
|
4
|
+
data.tar.gz: b7e5e2913f54a4e2c293075a7ffe3e8748e9ce19043d60d0f7ce267c0fa1e986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcef9d47fd4e11337851590bd57d6b508b59890038bbc65117ac01a1daf39250dcecdb24806908da51c98da4266e97a04df715ff9dffb41d68b45ecc98115b9f
|
7
|
+
data.tar.gz: 77259fd98da73589ea5783abb851e2c9a3b99b374bb2b5a3923364483de29bb49d7aef9ca2c7e80e2e4038df856edbd6fbaa7c9e454785c0837dbe7c11567443
|
data/Gemfile.lock
CHANGED
@@ -16,12 +16,22 @@ module GoNative
|
|
16
16
|
|
17
17
|
def call
|
18
18
|
proj = Xcodeproj::Project.open('MedianIOS.xcodeproj')
|
19
|
-
file = proj.new_file("#{language}.lproj")
|
20
|
-
file.move(proj
|
21
|
-
|
22
|
-
|
19
|
+
file = proj.new_file("#{language}.lproj/Localizable.strings")
|
20
|
+
file.move(localizable_group(proj))
|
21
|
+
file.name = language
|
22
|
+
|
23
23
|
proj.save
|
24
24
|
end
|
25
|
+
|
26
|
+
def localizable_group(proj)
|
27
|
+
proj.objects.each do |o|
|
28
|
+
if o.is_a?(Xcodeproj::Project::Object::PBXGroup) && (o.hierarchy_path == '/LeanIOS/Localizable.strings')
|
29
|
+
return o
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
nil
|
34
|
+
end
|
25
35
|
end
|
26
36
|
end
|
27
37
|
end
|
data/lib/gonative/version.rb
CHANGED