gonative-cli 0.7.15 → 0.7.16

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: a8cbd3dfb5e0220eb4e44b188465bd36979f6b50bfd6328afc488c47600a6606
4
- data.tar.gz: 5806aeb001afbc213a75322a688cc3bf44c1abb7b03926832b6ebb1af5db9c46
3
+ metadata.gz: 978a8e1166a47df0eaada6a7acc92f45e5cb48291dd5bce06ea8ef53dce4dc66
4
+ data.tar.gz: d48f9d01b36e2ec6ddeffd9e62d5659002aae942e9a565855776557f27971646
5
5
  SHA512:
6
- metadata.gz: 638f535dd4e0ee2004f9b3c80e143b22d977f915c9fb8188968e4f4c3c426954c24f82ec6dba13e8a85b274369171d762b0ccc96ea33acaf9d6d520ed3926fa8
7
- data.tar.gz: 8a1a52e957e2ec489bd0b142e758d4263336920976fd222dfa6944160b4d43fd58385084aa47e9143379a0a54c9cfd48011744be83bcf33126b4256778125305
6
+ metadata.gz: ed4433cc3d8c2b83c146692d3239499fd65745adb1cca6265fd74a97f12ae6f6a79dabd9b6be0a0d09261020e53e35ca223fc7ad0a992989841dff50e66328a7
7
+ data.tar.gz: 5409e669f065b340df58c18cf6f7a49c9dc93ababa0b70936c19d8f248ff65c965eafe4e4bd63bf136dc23893c9bf406f5f97ab33564f42f97c57539f301a436
@@ -46,7 +46,7 @@ module GoNative
46
46
  target = proj.new_target(:framework,
47
47
  "#{plugin_name}",
48
48
  :ios,
49
- spec.deployment_target('ios') || '11.0')
49
+ deployment_target)
50
50
  main_group = proj.new_group(plugin_name, plugin_name)
51
51
  classes_group = main_group.new_group('Classes', 'Classes')
52
52
  references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
@@ -60,7 +60,11 @@ module GoNative
60
60
  def move_template_files
61
61
  plugin_dependencies = spec.dependencies.map{|d| ["pod '#{d.name}'", "'#{d.requirement}'"].compact.join(', ') } * "\n\t"
62
62
  FileUtils.cp_r("#{BUILD_TEMPLATE_DIRECTORY_PATH}/.", '.')
63
- Utils::TemplateInflator.new(plugin_name: plugin_name, plugin_dependencies: plugin_dependencies, archs: archs).call
63
+ Utils::TemplateInflator.new(plugin_name: plugin_name,
64
+ plugin_dependencies: plugin_dependencies,
65
+ archs: archs,
66
+ deployment_target: deployment_target
67
+ ).call
64
68
  end
65
69
 
66
70
  def run_pod_install
@@ -82,6 +86,10 @@ module GoNative
82
86
  FileUtils.mv("XCFramework", '..', force: true)
83
87
  end
84
88
 
89
+ def deployment_target
90
+ spec.deployment_target('ios') || '11.0'
91
+ end
92
+
85
93
  def spec
86
94
  @spec ||= Pod::Specification.from_file("../#{plugin_name}.podspec")
87
95
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.15"
4
+ VERSION = "0.7.16"
5
5
  end
@@ -1,4 +1,4 @@
1
- platform :ios, '11.0'
1
+ platform :ios, '#{deployment_target}'
2
2
 
3
3
  source 'https://cdn.cocoapods.org/'
4
4
  source 'git@github.com:gonativeio/gonative-specs.git'
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.15
4
+ version: 0.7.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan