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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cd385a2175e46d88ecad3c15686d36108edf04100a48209cdc3ec851d65e24f
|
4
|
+
data.tar.gz: 999c91e4418e7d0111356580f4da689496f66354c30735551a425fbee31d5a76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 341d534c1ade7b837a0d49634bfc4c5ff26f4ce0939dadc3abea8bd299ab42e90551f4bf5a8cbf0daf9a3f76deefce30f83843619430d67585d92c2925d13afd
|
7
|
+
data.tar.gz: 1dcf7499557c94d106d778e6462802cba28183380748c2e0fb1c1ee1f779c74ccc586a852d2536fafb41ab1dd70829afabbb83b9029e43e806ba3b60df6b3b26
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/gonative/version.rb
CHANGED
@@ -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
|
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
|
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.
|
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-
|
11
|
+
date: 2022-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|