gonative-cli 0.7.10 → 0.7.14

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: 31fad5d79eb36ce733d7c9c979bad4a81966fdd6d1f7818c714824d35e53fae9
4
- data.tar.gz: cf56c07f704a5ebfda29bd05a7299bd004ea58dee0d8ce68d08792b60d8b37ba
3
+ metadata.gz: 1a7918620ecd9ee7454ec9be6755d1a0562a65f18aafb36422e23545ddd73796
4
+ data.tar.gz: ebaa9184f3fb12800a9a9876cfecf1b9d34b226d52201fc3369a9eb57cbdcbba
5
5
  SHA512:
6
- metadata.gz: 42c162e484360849708cc13ba8273f99b6a4d98f00778470d5a150cc1d6487f055c7d4172bcec135c24c2e12ae9f4031ea8faece3d12ba283982c335485a2d83
7
- data.tar.gz: 4a6f235bffffc52bf2eaa34c032fb601d775a6ce2a86fc2b2df139bb95cb53a26dc6867f189c89d8def1895b810e1d8dc275c76c098b7db62b3c5fe4963af6e2
6
+ metadata.gz: 96b47aa897a41530a74075fdc64cc2fa1d95c6bf4bd85424d7d237ff5e08a39ef57593bdec1019c075e490cae441fc4faf20c2283a97ff39b1f95914b69cbdae
7
+ data.tar.gz: 1aa82d8f75d76a3ed133c106ef1772e0bc39ce9f859e352a827322b55880d6f9c512d488b9f5c0c8d42c57841d88833483a0360d6fcb23926abc134ce0c95d5f
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)
@@ -8,10 +8,11 @@ module GoNative
8
8
  argument :name, required: true, desc: 'Name of the plugin'
9
9
  option :skip_build, type: :boolean, default: false
10
10
  option :debug, type: :boolean, default: false
11
+ option :archs, default: 'x86_64,arm64'
11
12
 
12
- def call(name:, skip_build:, **)
13
+ def call(name:, skip_build:, debug:, archs:, **)
13
14
  Plugins::IOS::Verify.call
14
- Plugins::IOS::BuildFramework.call(name, debug) unless skip_build
15
+ Plugins::IOS::BuildFramework.call(name, archs, debug) unless skip_build
15
16
  Plugins::IOS::Release.call
16
17
  end
17
18
  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, :persist_build_dir
17
+ attr_reader :plugin_name, :archs, :persist_build_dir
18
18
 
19
- def initialize(plugin_name, persist_build_dir)
19
+ def initialize(plugin_name, archs, persist_build_dir)
20
20
  @plugin_name = plugin_name
21
+ @archs = archs.gsub(',', ' ')
21
22
  @persist_build_dir = persist_build_dir
22
23
  end
23
24
 
@@ -57,7 +58,7 @@ module GoNative
57
58
  spec = Pod::Specification.from_file("../#{plugin_name}.podspec")
58
59
  plugin_dependencies = spec.dependencies.map{|d| ["pod '#{d.name}'", "'#{d.requirement}'"].compact.join(', ') } * "\n\t"
59
60
  FileUtils.cp_r("#{BUILD_TEMPLATE_DIRECTORY_PATH}/.", '.')
60
- Utils::TemplateInflator.new(plugin_name: plugin_name, plugin_dependencies: plugin_dependencies).call
61
+ Utils::TemplateInflator.new(plugin_name: plugin_name, plugin_dependencies: plugin_dependencies, archs: archs).call
61
62
  end
62
63
 
63
64
  def run_pod_install
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.10"
4
+ VERSION = "0.7.14"
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 ARCHS="#{archs}" -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.10
4
+ version: 0.7.14
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