gonative-cli 0.7.0 → 0.7.1

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: 55b0e7973184f8e9bc0ff3bc8bba55ef782da09c076b586b310f3ffbf53777d7
4
- data.tar.gz: 9857622f12a738bd94ea83f7a481acecbf2f18b47d64e02c07f6aacc4900ea18
3
+ metadata.gz: 4af471ce3d35ecf2570f943a4dfd18d26c531349cdef2ee760582df701847ccd
4
+ data.tar.gz: f288b0f03241d7e9be4868a94a3cffee602e9e98ecbbf0c578ed82013152e448
5
5
  SHA512:
6
- metadata.gz: e5ceef6920dd707f7e404be1ddae19020b0b20bb028fa49ed0c79e1094c5e7898d188e511b6988638be1b436f5ea8554b182aa14c62a45ed605cc6267e3c54b0
7
- data.tar.gz: 26ffb12906aa1fb7d03c4cd62247e7e1eeecb48dd58b8425d776c002fc3978808721c2dcbd68e87f2b0655299489db8a9d89e825bfc3c535de61181287f43ccd
6
+ metadata.gz: c9b45097ffb8e46cc425e8e4f85c69da22d03bf0b7fa657fd9b3ad83d1de1083dc9d4f20c0e2a1751526385bde7dfb3103c7355db7908cd034b0701e3a537ffe
7
+ data.tar.gz: eeca631c90a9d0d2a81d35a892a26c4a6b8b70a758f570f2a1f4a684bde4ed0a743360d67e3b3cd50f85d581b4406a9b32fef50625bc7aa5d122a378f43a1005
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.6.0)
4
+ gonative-cli (0.7.0)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -16,7 +16,7 @@ module GoNative
16
16
  attr_reader :plugin_name
17
17
 
18
18
  def initialize
19
- @plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios')
19
+ @plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios') + 'Plugin'
20
20
  end
21
21
 
22
22
  def call
@@ -26,13 +26,13 @@ module GoNative
26
26
  run_pod_install
27
27
  chmod_frameworks_script!
28
28
  build_framework!
29
+ move_framework_file
29
30
  ensure
30
31
  FileUtils.cd('..')
31
32
  FileUtils.rm_rf('build')
32
33
  end
33
34
 
34
35
  def setup_dirs
35
- FileUtils.cd(plugin_name)
36
36
  build_dir = File.join(FileUtils.pwd, 'build')
37
37
  FileUtils.mkdir(build_dir)
38
38
  FileUtils.cd(build_dir)
@@ -40,7 +40,7 @@ module GoNative
40
40
 
41
41
  def create_framework_proj
42
42
  proj = Xcodeproj::Project.new(FileUtils.pwd)
43
- target = proj.new_target(:framework, "#{plugin_name}Framework", :ios, '10.0')
43
+ target = proj.new_target(:framework, "#{plugin_name}", :ios, '10.0')
44
44
  main_group = proj.new_group(plugin_name, plugin_name)
45
45
  classes_group = main_group.new_group('Classes', 'Classes')
46
46
  references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
@@ -72,6 +72,10 @@ module GoNative
72
72
 
73
73
  raise Error, "Error building framework. Please run the create-framework file manually to fix any errors"
74
74
  end
75
+
76
+ def move_framework_file
77
+ FileUtils.mv("XCFramework/#{plugin_name}.xcframework", '..')
78
+ end
75
79
  end
76
80
  end
77
81
  end
@@ -7,15 +7,8 @@ module GoNative
7
7
  extend DSL::Serviceable
8
8
 
9
9
  def call
10
- assert_valid_plugin!
11
10
  assert_staging_clear!
12
11
  end
13
-
14
- def assert_valid_plugin!
15
- return if File.file?('create-framework.sh')
16
-
17
- raise Error, "File 'create-framework.sh' does not exist. Please make sure this is a valid GoNative plugin directory"
18
- end
19
12
 
20
13
  def assert_staging_clear!
21
14
  return if `git status --porcelain`.empty?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.0"
4
+ VERSION = "0.7.1"
5
5
  end
@@ -3,7 +3,7 @@ platform :ios, '10.0'
3
3
  source 'https://cdn.cocoapods.org/'
4
4
  source 'git@github.com:gonativeio/gonative-specs.git'
5
5
 
6
- target '#{plugin_name}Framework' do
6
+ target '#{plugin_name}' do
7
7
  use_frameworks!
8
8
 
9
9
  #{plugin_dependencies}
@@ -9,7 +9,7 @@ FRAMEWORK_NAME="#{plugin_name}"
9
9
 
10
10
  FRAMEWORK_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/${FRAMEWORK_NAME}.xcframework"
11
11
 
12
- BUILD_SCHEME="#{plugin_name}Framework"
12
+ BUILD_SCHEME="#{plugin_name}"
13
13
 
14
14
  SIMULATOR_ARCHIVE_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/simulator.xcarchive"
15
15
 
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.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan