gonative-cli 0.7.3 → 0.7.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: a7fe385bb7b91cc2a04c38299a0303e95b1b662ed2107cefc55beb6c0963b833
4
- data.tar.gz: 3b6a4fb67df32ce8241b0f606799cdf9d4d40da95ba93b237a5a8fdb4ec934aa
3
+ metadata.gz: 783811d5eaf98d601428f045ba69abda08f8f6ea4f02875d9a790ed967ba5e59
4
+ data.tar.gz: 2a87c225115d86381982dec84c8cfd4a905b997cd772b8d626607be71bfd0455
5
5
  SHA512:
6
- metadata.gz: e0f823c2455d016c2f274c63ebaf786655095d03b95dd44bf02846d9e9a7f1873559940c2a8809da675104056d8fe292c3b1488ffd3fa0eaac27116fa37aa3c4
7
- data.tar.gz: 00b1ce09d6eba836fcdd56fc82338551809fe195efa5e092c7a547faaa9ea67a66ccd60e6562af4fe7fbf2a9557212d6732aaea447bcc26602fda04305d54a9e
6
+ metadata.gz: '087f3f1b3e4fb5732447915680e38a9a8c4ce970d89550a836498cdb2e004e16fa39fc44edb8d09bdeefc99ed53ba51fb5dab1085b13f9f1a494ef0d50bf0d39'
7
+ data.tar.gz: bf12167c53259d9e4f30cf258a48585580d6a9e2bbfbbeb38d1d7d83ef221bba5037de30c9eb1884fba9f0a6a578d48614b0b6f7da4b59dbcb69234d6bbed668
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.7.2)
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, '11.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}") }
@@ -6,6 +6,8 @@ module GoNative
6
6
  module Plugins
7
7
  module IOS
8
8
  class Create
9
+ autoload :FileUtils, 'fileutils'
10
+
9
11
  extend DSL::Serviceable
10
12
 
11
13
  TEMPLATE_DIRECTORY_PATH = File.expand_path(File.join(__dir__, '../../../..', 'templates', 'plugins', 'ios'))
@@ -24,8 +26,7 @@ module GoNative
24
26
  assert_not_exists!
25
27
  set_working_dir!
26
28
  cp_template_files!
27
- Utils::TemplateInflator.new(plugin_name: plugin_name).call
28
- chmod_frameworks_script!
29
+ Utils::TemplateInflator.new(plugin_name: plugin_name, repo_name: repo_name).call
29
30
  end
30
31
 
31
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.3"
4
+ VERSION = "0.7.7"
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.3
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-07 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