gonative-cli 0.7.6 → 0.7.10

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: c265dfc0e9ca844e98d4635061d673c381b88150354a39c65d5a8199d61e8f94
4
- data.tar.gz: b68aa740b1c28ac400dac354b156e3af327574ae5d166a673fb617de7be91848
3
+ metadata.gz: 31fad5d79eb36ce733d7c9c979bad4a81966fdd6d1f7818c714824d35e53fae9
4
+ data.tar.gz: cf56c07f704a5ebfda29bd05a7299bd004ea58dee0d8ce68d08792b60d8b37ba
5
5
  SHA512:
6
- metadata.gz: a31725f60d90942b56c47e32c0a15d1d64418b392cc33135955ff3a54357c5cf680ab0642b2597473bd8477e24e048a7ddc7b840679b2ae94ded536a05a2e25f
7
- data.tar.gz: 128c9c5cdacdc872e1d51476799da4e7770530e08747c54bfbdfc98f05c539c9fa4a8a50cc65c2d55d5059cb4e916137eab41c68a2e8f0f1b4cc9b5d659cac44
6
+ metadata.gz: 42c162e484360849708cc13ba8273f99b6a4d98f00778470d5a150cc1d6487f055c7d4172bcec135c24c2e12ae9f4031ea8faece3d12ba283982c335485a2d83
7
+ data.tar.gz: 4a6f235bffffc52bf2eaa34c032fb601d775a6ce2a86fc2b2df139bb95cb53a26dc6867f189c89d8def1895b810e1d8dc275c76c098b7db62b3c5fe4963af6e2
@@ -7,10 +7,11 @@ module GoNative
7
7
  desc 'Verify, build and release a new version'
8
8
  argument :name, required: true, desc: 'Name of the plugin'
9
9
  option :skip_build, type: :boolean, default: false
10
+ option :debug, type: :boolean, default: false
10
11
 
11
12
  def call(name:, skip_build:, **)
12
13
  Plugins::IOS::Verify.call
13
- Plugins::IOS::BuildFramework.call(name) unless skip_build
14
+ Plugins::IOS::BuildFramework.call(name, debug) unless skip_build
14
15
  Plugins::IOS::Release.call
15
16
  end
16
17
  end
@@ -14,10 +14,11 @@ module GoNative
14
14
 
15
15
  BUILD_TEMPLATE_DIRECTORY_PATH = File.expand_path(File.join(__dir__, '../../../..', 'templates', 'build', 'ios'))
16
16
 
17
- attr_reader :plugin_name
17
+ attr_reader :plugin_name, :persist_build_dir
18
18
 
19
- def initialize(plugin_name)
19
+ def initialize(plugin_name, persist_build_dir)
20
20
  @plugin_name = plugin_name
21
+ @persist_build_dir = persist_build_dir
21
22
  end
22
23
 
23
24
  def call
@@ -30,7 +31,7 @@ module GoNative
30
31
  move_framework_file
31
32
  ensure
32
33
  FileUtils.cd('..')
33
- FileUtils.rm_rf('build')
34
+ FileUtils.rm_rf('build') unless persist_build_dir
34
35
  end
35
36
 
36
37
  def setup_dirs
@@ -41,7 +42,7 @@ module GoNative
41
42
 
42
43
  def create_framework_proj
43
44
  proj = Xcodeproj::Project.new(FileUtils.pwd)
44
- target = proj.new_target(:framework, "#{plugin_name}", :ios, '10.0')
45
+ target = proj.new_target(:framework, "#{plugin_name}", :ios, '11.0')
45
46
  main_group = proj.new_group(plugin_name, plugin_name)
46
47
  classes_group = main_group.new_group('Classes', 'Classes')
47
48
  references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.6"
4
+ VERSION = "0.7.10"
5
5
  end
@@ -1,4 +1,4 @@
1
- platform :ios, '10.0'
1
+ platform :ios, '11.0'
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.6
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan