gonative-cli 0.7.4 → 0.7.8

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: de0fa406ef4825049a04def2bb32072130d53323c1b89be5237f94a9776b67ac
4
- data.tar.gz: 1d6caf03031a63381e05b503267c8976694a3adb846369ac60e86b5d5dde6dcc
3
+ metadata.gz: 20ef04291ff98d256cec0890d872bf64cc00ffd4135f4e29a2463bbe093e3198
4
+ data.tar.gz: 7f1bac97b7ffac995b6dfe0e31f5ef946b67ddc98824170f0aba4098d52d8dc5
5
5
  SHA512:
6
- metadata.gz: e60492959eb263f49f8d3afd5a992a777acb176591ccc8f5c1fd18bda354c175c46f8858c7ffc053fc454cd1467d788573c86e2cdbfc3d63d617a0ecca400e37
7
- data.tar.gz: 52070fd24c63032b3713d281006b0ce55d828fe4b6b653e590906984aea39b41e17d41cff30bade24c260b9011a609f71a1f566ca3759fba409cf0b88aeeca12
6
+ metadata.gz: 1df2d10d28e2e20e28cd15800c3adc4e08bb5b9152834c0d0ead487eb19c896585189a210e1bd6131a6c1828cfb52d19901f55922d830d1b089f6747f06753c9
7
+ data.tar.gz: 6bd8375afe80ef178c36c94656a7f3b4b2889acbefef9338f59b2a73b73553a114b7db9ccffe5dc3fae52df2f07a9e8f4776cbbc28e60f3cb0e037c7595b268c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.7.3)
4
+ gonative-cli (0.7.4)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -5,11 +5,12 @@ module GoNative
5
5
  module IOS
6
6
  class Publish < Base
7
7
  desc 'Verify, build and release a new version'
8
+ argument :name, required: true, desc: 'Name of the plugin'
8
9
  option :skip_build, type: :boolean, default: false
9
10
 
10
- def call(skip_build:, **)
11
+ def call(name:, skip_build:, **)
11
12
  Plugins::IOS::Verify.call
12
- Plugins::IOS::BuildFramework.call unless skip_build
13
+ Plugins::IOS::BuildFramework.call(name) unless skip_build
13
14
  Plugins::IOS::Release.call
14
15
  end
15
16
  end
@@ -16,8 +16,8 @@ module GoNative
16
16
 
17
17
  attr_reader :plugin_name
18
18
 
19
- def initialize
20
- @plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios').capitalize + 'Plugin'
19
+ def initialize(plugin_name)
20
+ @plugin_name = plugin_name
21
21
  end
22
22
 
23
23
  def call
@@ -41,7 +41,7 @@ module GoNative
41
41
 
42
42
  def create_framework_proj
43
43
  proj = Xcodeproj::Project.new(FileUtils.pwd)
44
- target = proj.new_target(:framework, "#{plugin_name}", :ios, '10.0')
44
+ target = proj.new_target(:framework, "#{plugin_name}", :ios, '12.0')
45
45
  main_group = proj.new_group(plugin_name, plugin_name)
46
46
  classes_group = main_group.new_group('Classes', 'Classes')
47
47
  references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
@@ -26,8 +26,7 @@ module GoNative
26
26
  assert_not_exists!
27
27
  set_working_dir!
28
28
  cp_template_files!
29
- Utils::TemplateInflator.new(plugin_name: plugin_name).call
30
- chmod_frameworks_script!
29
+ Utils::TemplateInflator.new(plugin_name: plugin_name, repo_name: repo_name).call
31
30
  end
32
31
 
33
32
  def assert_not_exists!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.4"
4
+ VERSION = "0.7.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-05 00:00:00.000000000 Z
11
+ date: 2022-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli