gonative-cli 0.7.9 → 0.7.13

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: 38b17cc5da62d5659bc36fc9ee757de00c851aac06fac944856d24f8524ac495
4
- data.tar.gz: cee55ca0b7ece404ff2e9adbd80e9e9c4dbaeddee936464be8fed30a8a824e34
3
+ metadata.gz: 3cd385a2175e46d88ecad3c15686d36108edf04100a48209cdc3ec851d65e24f
4
+ data.tar.gz: 999c91e4418e7d0111356580f4da689496f66354c30735551a425fbee31d5a76
5
5
  SHA512:
6
- metadata.gz: fb493f284b05fd555d6a093a29bf7d4b2a154e6a115517fd95b2bdd29d23e02be91443f1c564a08b213a4079f986b08a24e16cfad75abd1678ae16158fc39e56
7
- data.tar.gz: 65f8757063d301a4dd2fee7c98bba92924f3e33dcdcf82b12b1cdcef717d7e1f409d4c2be8a852c6549739fa83923f0c1520a0b181233d4677fd325dd7d85008
6
+ metadata.gz: 341d534c1ade7b837a0d49634bfc4c5ff26f4ce0939dadc3abea8bd299ab42e90551f4bf5a8cbf0daf9a3f76deefce30f83843619430d67585d92c2925d13afd
7
+ data.tar.gz: 1dcf7499557c94d106d778e6462802cba28183380748c2e0fb1c1ee1f779c74ccc586a852d2536fafb41ab1dd70829afabbb83b9029e43e806ba3b60df6b3b26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (0.7.4)
4
+ gonative-cli (0.7.12)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -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
- def call(name:, skip_build:, **)
12
+ def call(name:, skip_build:, debug:, **)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.9"
4
+ VERSION = "0.7.13"
5
5
  end
@@ -21,9 +21,9 @@ mkdir "${FRAMEWORK_FOLDER_NAME}"
21
21
  echo "Created ${FRAMEWORK_FOLDER_NAME}"
22
22
  echo "Archiving ${FRAMEWORK_NAME}"
23
23
 
24
- xcodebuild -workspace "#{plugin_name}.xcworkspace" archive ONLY_ACTIVE_ARCH=NO ARCHS="x86_64 arm64 i386" -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS Simulator" -archivePath "${SIMULATOR_ARCHIVE_PATH}" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
24
+ xcodebuild -workspace "#{plugin_name}.xcworkspace" archive ONLY_ACTIVE_ARCH=NO -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS Simulator" -archivePath "${SIMULATOR_ARCHIVE_PATH}" -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
25
25
 
26
- xcodebuild archive -workspace "#{plugin_name}.xcworkspace" -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS" -archivePath "${IOS_DEVICE_ARCHIVE_PATH}" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
26
+ xcodebuild archive -workspace "#{plugin_name}.xcworkspace" -scheme ${BUILD_SCHEME} -destination="generic/platform=iOS" -archivePath "${IOS_DEVICE_ARCHIVE_PATH}" -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
27
27
 
28
28
  xcodebuild -create-xcframework -framework ${SIMULATOR_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework -framework ${IOS_DEVICE_ARCHIVE_PATH}/Products/Library/Frameworks/${FRAMEWORK_NAME}.framework -output "${FRAMEWORK_PATH}"
29
29
 
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.9
4
+ version: 0.7.13
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-06 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli