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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b8750e6f8ce04f30fa5de7a9d9b33c26383db072687e6e0df1c989eb803d6d1
4
- data.tar.gz: dc9cff9b0d587eb192a6e72050c089df4345bb8b210caf733ff9f8881f07c6bf
3
+ metadata.gz: bfed650a535963881f1c80a19d717bb18f60571461a99874052795df20cecd45
4
+ data.tar.gz: b7e5e2913f54a4e2c293075a7ffe3e8748e9ce19043d60d0f7ce267c0fa1e986
5
5
  SHA512:
6
- metadata.gz: ae9a9eb0dbcf1f247ca78071fd83dc66f5569f29b3389fdab21bbf0388f602f273f0e672275c4bcd7c3993ea879f34d778e70200edc7f3f287a1070de6f1866d
7
- data.tar.gz: 7f3e36fb8db7180f05c38a6851d7959baec4021eb697b5868669df6fdea6d942ebfd8a63cdb0b082ddd9f0b0034c278e79e0e806722bb9a02c2ca13c51655864
6
+ metadata.gz: bcef9d47fd4e11337851590bd57d6b508b59890038bbc65117ac01a1daf39250dcecdb24806908da51c98da4266e97a04df715ff9dffb41d68b45ecc98115b9f
7
+ data.tar.gz: 77259fd98da73589ea5783abb851e2c9a3b99b374bb2b5a3923364483de29bb49d7aef9ca2c7e80e2e4038df856edbd6fbaa7c9e454785c0837dbe7c11567443
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (1.3.6)
4
+ gonative-cli (1.3.7)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -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.groups.first)
21
- proj.targets.first.add_resources([file])
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '1.3.6'
4
+ VERSION = '1.3.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan