gonative-cli 0.7.14 → 0.7.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gonative/plugins/ios/build_framework.rb +8 -2
- data/lib/gonative/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8cbd3dfb5e0220eb4e44b188465bd36979f6b50bfd6328afc488c47600a6606
|
4
|
+
data.tar.gz: 5806aeb001afbc213a75322a688cc3bf44c1abb7b03926832b6ebb1af5db9c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638f535dd4e0ee2004f9b3c80e143b22d977f915c9fb8188968e4f4c3c426954c24f82ec6dba13e8a85b274369171d762b0ccc96ea33acaf9d6d520ed3926fa8
|
7
|
+
data.tar.gz: 8a1a52e957e2ec489bd0b142e758d4263336920976fd222dfa6944160b4d43fd58385084aa47e9143379a0a54c9cfd48011744be83bcf33126b4256778125305
|
@@ -43,7 +43,10 @@ module GoNative
|
|
43
43
|
|
44
44
|
def create_framework_proj
|
45
45
|
proj = Xcodeproj::Project.new(FileUtils.pwd)
|
46
|
-
target = proj.new_target(:framework,
|
46
|
+
target = proj.new_target(:framework,
|
47
|
+
"#{plugin_name}",
|
48
|
+
:ios,
|
49
|
+
spec.deployment_target('ios') || '11.0')
|
47
50
|
main_group = proj.new_group(plugin_name, plugin_name)
|
48
51
|
classes_group = main_group.new_group('Classes', 'Classes')
|
49
52
|
references = Dir.glob("../#{plugin_name}/Classes/**").map{ |file| classes_group.new_file("../../#{file}") }
|
@@ -55,7 +58,6 @@ module GoNative
|
|
55
58
|
end
|
56
59
|
|
57
60
|
def move_template_files
|
58
|
-
spec = Pod::Specification.from_file("../#{plugin_name}.podspec")
|
59
61
|
plugin_dependencies = spec.dependencies.map{|d| ["pod '#{d.name}'", "'#{d.requirement}'"].compact.join(', ') } * "\n\t"
|
60
62
|
FileUtils.cp_r("#{BUILD_TEMPLATE_DIRECTORY_PATH}/.", '.')
|
61
63
|
Utils::TemplateInflator.new(plugin_name: plugin_name, plugin_dependencies: plugin_dependencies, archs: archs).call
|
@@ -79,6 +81,10 @@ module GoNative
|
|
79
81
|
def move_framework_file
|
80
82
|
FileUtils.mv("XCFramework", '..', force: true)
|
81
83
|
end
|
84
|
+
|
85
|
+
def spec
|
86
|
+
@spec ||= Pod::Specification.from_file("../#{plugin_name}.podspec")
|
87
|
+
end
|
82
88
|
end
|
83
89
|
end
|
84
90
|
end
|
data/lib/gonative/version.rb
CHANGED