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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8845cae52c317cbed1805f7c9a207becd51cab6c2eddb9ca23c8dc73b6a20f15
|
4
|
+
data.tar.gz: d8e9992df4197715a0df5861d21ce073cda34cf1f8891c7ac6349b2f8d87ec75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, '
|
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}") }
|
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 ARCHS="x86_64 arm64
|
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
|
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
|
|