gonative-cli 0.7.0 → 0.7.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4af471ce3d35ecf2570f943a4dfd18d26c531349cdef2ee760582df701847ccd
|
4
|
+
data.tar.gz: f288b0f03241d7e9be4868a94a3cffee602e9e98ecbbf0c578ed82013152e448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9b45097ffb8e46cc425e8e4f85c69da22d03bf0b7fa657fd9b3ad83d1de1083dc9d4f20c0e2a1751526385bde7dfb3103c7355db7908cd034b0701e3a537ffe
|
7
|
+
data.tar.gz: eeca631c90a9d0d2a81d35a892a26c4a6b8b70a758f570f2a1f4a684bde4ed0a743360d67e3b3cd50f85d581b4406a9b32fef50625bc7aa5d122a378f43a1005
|
data/Gemfile.lock
CHANGED
@@ -16,7 +16,7 @@ module GoNative
|
|
16
16
|
attr_reader :plugin_name
|
17
17
|
|
18
18
|
def initialize
|
19
|
-
@plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios')
|
19
|
+
@plugin_name = Utils::SanitizePluginName.call(FileUtils.pwd.split('/').last, 'ios') + 'Plugin'
|
20
20
|
end
|
21
21
|
|
22
22
|
def call
|
@@ -26,13 +26,13 @@ module GoNative
|
|
26
26
|
run_pod_install
|
27
27
|
chmod_frameworks_script!
|
28
28
|
build_framework!
|
29
|
+
move_framework_file
|
29
30
|
ensure
|
30
31
|
FileUtils.cd('..')
|
31
32
|
FileUtils.rm_rf('build')
|
32
33
|
end
|
33
34
|
|
34
35
|
def setup_dirs
|
35
|
-
FileUtils.cd(plugin_name)
|
36
36
|
build_dir = File.join(FileUtils.pwd, 'build')
|
37
37
|
FileUtils.mkdir(build_dir)
|
38
38
|
FileUtils.cd(build_dir)
|
@@ -40,7 +40,7 @@ module GoNative
|
|
40
40
|
|
41
41
|
def create_framework_proj
|
42
42
|
proj = Xcodeproj::Project.new(FileUtils.pwd)
|
43
|
-
target = proj.new_target(:framework, "#{plugin_name}
|
43
|
+
target = proj.new_target(:framework, "#{plugin_name}", :ios, '10.0')
|
44
44
|
main_group = proj.new_group(plugin_name, plugin_name)
|
45
45
|
classes_group = main_group.new_group('Classes', 'Classes')
|
46
46
|
references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
|
@@ -72,6 +72,10 @@ module GoNative
|
|
72
72
|
|
73
73
|
raise Error, "Error building framework. Please run the create-framework file manually to fix any errors"
|
74
74
|
end
|
75
|
+
|
76
|
+
def move_framework_file
|
77
|
+
FileUtils.mv("XCFramework/#{plugin_name}.xcframework", '..')
|
78
|
+
end
|
75
79
|
end
|
76
80
|
end
|
77
81
|
end
|
@@ -7,15 +7,8 @@ module GoNative
|
|
7
7
|
extend DSL::Serviceable
|
8
8
|
|
9
9
|
def call
|
10
|
-
assert_valid_plugin!
|
11
10
|
assert_staging_clear!
|
12
11
|
end
|
13
|
-
|
14
|
-
def assert_valid_plugin!
|
15
|
-
return if File.file?('create-framework.sh')
|
16
|
-
|
17
|
-
raise Error, "File 'create-framework.sh' does not exist. Please make sure this is a valid GoNative plugin directory"
|
18
|
-
end
|
19
12
|
|
20
13
|
def assert_staging_clear!
|
21
14
|
return if `git status --porcelain`.empty?
|
data/lib/gonative/version.rb
CHANGED
@@ -9,7 +9,7 @@ FRAMEWORK_NAME="#{plugin_name}"
|
|
9
9
|
|
10
10
|
FRAMEWORK_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/${FRAMEWORK_NAME}.xcframework"
|
11
11
|
|
12
|
-
BUILD_SCHEME="#{plugin_name}
|
12
|
+
BUILD_SCHEME="#{plugin_name}"
|
13
13
|
|
14
14
|
SIMULATOR_ARCHIVE_PATH="${WORKING_DIR}/${FRAMEWORK_FOLDER_NAME}/simulator.xcarchive"
|
15
15
|
|