gonative-cli 0.7.8 → 0.7.12

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: 20ef04291ff98d256cec0890d872bf64cc00ffd4135f4e29a2463bbe093e3198
4
- data.tar.gz: 7f1bac97b7ffac995b6dfe0e31f5ef946b67ddc98824170f0aba4098d52d8dc5
3
+ metadata.gz: 8845cae52c317cbed1805f7c9a207becd51cab6c2eddb9ca23c8dc73b6a20f15
4
+ data.tar.gz: d8e9992df4197715a0df5861d21ce073cda34cf1f8891c7ac6349b2f8d87ec75
5
5
  SHA512:
6
- metadata.gz: 1df2d10d28e2e20e28cd15800c3adc4e08bb5b9152834c0d0ead487eb19c896585189a210e1bd6131a6c1828cfb52d19901f55922d830d1b089f6747f06753c9
7
- data.tar.gz: 6bd8375afe80ef178c36c94656a7f3b4b2889acbefef9338f59b2a73b73553a114b7db9ccffe5dc3fae52df2f07a9e8f4776cbbc28e60f3cb0e037c7595b268c
6
+ metadata.gz: 5162ec5829c885bdb35ce51a17906ac7be4bf7fa3de007cea99ef14349e41d5e9dcaa8b510493470ed8e9c28f404bc3c517410fc778061457723847ea4fe224c
7
+ data.tar.gz: 216750144e5eb51d8d3703b00738592cff090a0491124133dfebdbfe31c8f8737a196cbfac23fb5ae9d1ee0583271ec5e4602593ab65e7d8729f1cd212916845
@@ -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
@@ -41,7 +42,7 @@ module GoNative
41
42
 
42
43
  def create_framework_proj
43
44
  proj = Xcodeproj::Project.new(FileUtils.pwd)
44
- target = proj.new_target(:framework, "#{plugin_name}", :ios, '12.0')
45
+ target = proj.new_target(:framework, "#{plugin_name}", :ios, '11.0')
45
46
  main_group = proj.new_group(plugin_name, plugin_name)
46
47
  classes_group = main_group.new_group('Classes', 'Classes')
47
48
  references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = "0.7.8"
4
+ VERSION = "0.7.12"
5
5
  end
@@ -1,4 +1,4 @@
1
- platform :ios, '10.0'
1
+ platform :ios, '11.0'
2
2
 
3
3
  source 'https://cdn.cocoapods.org/'
4
4
  source 'git@github.com:gonativeio/gonative-specs.git'
@@ -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="x86_64 arm64" -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,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.8
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan