gonative-cli 0.7.14 → 0.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a7918620ecd9ee7454ec9be6755d1a0562a65f18aafb36422e23545ddd73796
4
- data.tar.gz: ebaa9184f3fb12800a9a9876cfecf1b9d34b226d52201fc3369a9eb57cbdcbba
3
+ metadata.gz: a8cbd3dfb5e0220eb4e44b188465bd36979f6b50bfd6328afc488c47600a6606
4
+ data.tar.gz: 5806aeb001afbc213a75322a688cc3bf44c1abb7b03926832b6ebb1af5db9c46
5
5
  SHA512:
6
- metadata.gz: 96b47aa897a41530a74075fdc64cc2fa1d95c6bf4bd85424d7d237ff5e08a39ef57593bdec1019c075e490cae441fc4faf20c2283a97ff39b1f95914b69cbdae
7
- data.tar.gz: 1aa82d8f75d76a3ed133c106ef1772e0bc39ce9f859e352a827322b55880d6f9c512d488b9f5c0c8d42c57841d88833483a0360d6fcb23926abc134ce0c95d5f
6
+ metadata.gz: 638f535dd4e0ee2004f9b3c80e143b22d977f915c9fb8188968e4f4c3c426954c24f82ec6dba13e8a85b274369171d762b0ccc96ea33acaf9d6d520ed3926fa8
7
+ data.tar.gz: 8a1a52e957e2ec489bd0b142e758d4263336920976fd222dfa6944160b4d43fd58385084aa47e9143379a0a54c9cfd48011744be83bcf33126b4256778125305
@@ -43,7 +43,10 @@ module GoNative
43
43
 
44
44
  def create_framework_proj
45
45
  proj = Xcodeproj::Project.new(FileUtils.pwd)
46
- target = proj.new_target(:framework, "#{plugin_name}", :ios, '11.0')
46
+ target = proj.new_target(:framework,
47
+ "#{plugin_name}",
48
+ :ios,
49
+ spec.deployment_target('ios') || '11.0')
47
50
  main_group = proj.new_group(plugin_name, plugin_name)
48
51
  classes_group = main_group.new_group('Classes', 'Classes')
49
52
  references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
@@ -55,7 +58,6 @@ module GoNative
55
58
  end
56
59
 
57
60
  def move_template_files
58
- spec = Pod::Specification.from_file("../#{plugin_name}.podspec")
59
61
  plugin_dependencies = spec.dependencies.map{|d| ["pod '#{d.name}'", "'#{d.requirement}'"].compact.join(', ') } * "\n\t"
60
62
  FileUtils.cp_r("#{BUILD_TEMPLATE_DIRECTORY_PATH}/.", '.')
61
63
  Utils::TemplateInflator.new(plugin_name: plugin_name, plugin_dependencies: plugin_dependencies, archs: archs).call
@@ -79,6 +81,10 @@ module GoNative
79
81
  def move_framework_file
80
82
  FileUtils.mv("XCFramework", '..', force: true)
81
83
  end
84
+
85
+ def spec
86
+ @spec ||= Pod::Specification.from_file("../#{plugin_name}.podspec")
87
+ end
82
88
  end
83
89
  end
84
90
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.14"
4
+ VERSION = "0.7.15"
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: 0.7.14
4
+ version: 0.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan