gonative-cli 1.2.4 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/lib/gonative/plugins/ios/build_framework.rb +1 -1
- data/lib/gonative/plugins/ios/embed_extensions.rb +16 -14
- data/lib/gonative/plugins/ios/rename.rb +2 -2
- data/lib/gonative/plugins/ios/set_bundle_id.rb +1 -1
- data/lib/gonative/version.rb +1 -1
- data/templates/build/ios/Info.plist +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9448c80c2d7e7d3b728e8ef8c78e192466c5e8e90426db993e71cc1c9a77392
|
4
|
+
data.tar.gz: 3d8f81f771da0fbc1a71fdbb00ba8bbbb9d46d7c117fc27aa148019eb4871dee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ddde02e555ca85340c00e2387faac84f367e97f08cff929b20b1fcf8d54cae601fbe0ed6f56ea03e0423b71bf372c8382a173b62a30cccbb188677caef37227
|
7
|
+
data.tar.gz: 108b46e0213133bb6e154ee14be0a04d7c24e0212987966d7d262fc1941d151efaae264c6f692a035a137832119d749bfdf925bd37577c93cfad2af478e9e84b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gonative-cli (1.
|
4
|
+
gonative-cli (1.3.1)
|
5
5
|
activesupport (~> 6.0)
|
6
6
|
cocoapods (~> 1.10)
|
7
7
|
colorize (~> 0.8.0)
|
@@ -29,10 +29,10 @@ GEM
|
|
29
29
|
atomos (0.1.3)
|
30
30
|
byebug (11.1.3)
|
31
31
|
claide (1.1.0)
|
32
|
-
cocoapods (1.
|
32
|
+
cocoapods (1.13.0)
|
33
33
|
addressable (~> 2.8)
|
34
34
|
claide (>= 1.0.2, < 2.0)
|
35
|
-
cocoapods-core (= 1.
|
35
|
+
cocoapods-core (= 1.13.0)
|
36
36
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
37
37
|
cocoapods-downloader (>= 1.6.0, < 2.0)
|
38
38
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
@@ -46,8 +46,8 @@ GEM
|
|
46
46
|
molinillo (~> 0.8.0)
|
47
47
|
nap (~> 1.0)
|
48
48
|
ruby-macho (>= 2.3.0, < 3.0)
|
49
|
-
xcodeproj (>= 1.
|
50
|
-
cocoapods-core (1.
|
49
|
+
xcodeproj (>= 1.23.0, < 2.0)
|
50
|
+
cocoapods-core (1.13.0)
|
51
51
|
activesupport (>= 5.0, < 8)
|
52
52
|
addressable (~> 2.8)
|
53
53
|
algoliasearch (~> 1.0)
|
@@ -137,14 +137,14 @@ GEM
|
|
137
137
|
tzinfo (2.0.5)
|
138
138
|
concurrent-ruby (~> 1.0)
|
139
139
|
unicode-display_width (2.0.0)
|
140
|
-
xcodeproj (1.
|
140
|
+
xcodeproj (1.23.0)
|
141
141
|
CFPropertyList (>= 2.3.3, < 4.0)
|
142
142
|
atomos (~> 0.1.3)
|
143
143
|
claide (>= 1.0.2, < 2.0)
|
144
144
|
colored2 (~> 3.1)
|
145
145
|
nanaimo (~> 0.3.0)
|
146
146
|
rexml (~> 3.2.4)
|
147
|
-
zeitwerk (2.6.
|
147
|
+
zeitwerk (2.6.11)
|
148
148
|
|
149
149
|
PLATFORMS
|
150
150
|
arm64-darwin-21
|
@@ -31,34 +31,36 @@ module GoNative
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def embed_in_project
|
34
|
-
proj = Xcodeproj::Project.open('
|
34
|
+
proj = Xcodeproj::Project.open('MedianIOS.xcodeproj')
|
35
35
|
app_target = proj.native_targets.first
|
36
36
|
extensions.each do |extension|
|
37
37
|
extension_target = proj.new_target(:app_extension,
|
38
38
|
extension['name'],
|
39
39
|
:ios,
|
40
|
-
'
|
40
|
+
'13.0')
|
41
41
|
extension_group = proj.new_group(extension['name'], extension['name'])
|
42
42
|
|
43
43
|
extension['headers'].each { |path| extension_group.new_file(path) }
|
44
|
-
extension_target.add_file_references(extension['source_files'].map
|
44
|
+
extension_target.add_file_references(extension['source_files'].map do |path|
|
45
45
|
extension_group.new_file(path)
|
46
|
-
|
46
|
+
end)
|
47
47
|
extension_target.add_resources(extension['resources'].map { |path| extension_group.new_file(path) })
|
48
48
|
extension_target.add_system_frameworks(extension['system_frameworks'])
|
49
49
|
extension_group.new_file(extension['info'])
|
50
50
|
extension_group.new_file(extension['entitlements']) if extension['entitlements']
|
51
51
|
extension_target.build_configurations.each do |config|
|
52
|
-
config.build_settings['PRODUCT_NAME'] =
|
53
|
-
config.build_settings['INFOPLIST_FILE'] = "#{extension[
|
54
|
-
|
55
|
-
|
52
|
+
config.build_settings['PRODUCT_NAME'] = '$(TARGET_NAME)'
|
53
|
+
config.build_settings['INFOPLIST_FILE'] = "#{extension["name"]}/#{extension["info"]}"
|
54
|
+
if extension['entitlements']
|
55
|
+
config.build_settings['CODE_SIGN_ENTITLEMENTS'] =
|
56
|
+
"#{extension["name"]}/#{extension["entitlements"]}"
|
57
|
+
end
|
56
58
|
end
|
57
59
|
app_target.add_dependency(extension_target)
|
58
|
-
extension_file = proj.files.find { |f| f.path == "#{extension[
|
59
|
-
embed_phase = app_target.build_phases.find
|
60
|
+
extension_file = proj.files.find { |f| f.path == "#{extension["name"]}.appex" }
|
61
|
+
embed_phase = app_target.build_phases.find do |phase|
|
60
62
|
phase.class.method_defined?(:name) && phase.name == 'Embed App Extensions'
|
61
|
-
|
63
|
+
end
|
62
64
|
embed_phase.add_file_reference(extension_file, true)
|
63
65
|
app_config = proj.files.find { |f| f.path == 'appConfig.json' }
|
64
66
|
extension_target.resources_build_phase.add_file_reference(app_config, true)
|
@@ -70,12 +72,12 @@ module GoNative
|
|
70
72
|
def modify_podfile
|
71
73
|
extensions.each do |extension|
|
72
74
|
open('Podfile', 'a') do |f|
|
73
|
-
f.puts "target '#{extension[
|
75
|
+
f.puts "target '#{extension["name"]}' do"
|
74
76
|
f.puts "\tuse_frameworks!"
|
75
77
|
extension['dependencies'].each do |dep|
|
76
|
-
f.puts "\tpod '#{dep[
|
78
|
+
f.puts "\tpod '#{dep["name"]}', '#{dep["requirement"]}'"
|
77
79
|
end
|
78
|
-
f.puts
|
80
|
+
f.puts 'end'
|
79
81
|
end
|
80
82
|
end
|
81
83
|
end
|
@@ -15,7 +15,7 @@ module GoNative
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def call
|
18
|
-
system("mv
|
18
|
+
system("mv MedianIOS.xcodeproj #{proj_path}")
|
19
19
|
@proj = Xcodeproj::Project.open(proj_path)
|
20
20
|
rename_target!
|
21
21
|
recreate_scheme!
|
@@ -44,7 +44,7 @@ module GoNative
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def fix_workspace_refs!
|
47
|
-
FileUtils.rm_rf('
|
47
|
+
FileUtils.rm_rf('MedianIOS.xcworkspace')
|
48
48
|
proj_ref = Xcodeproj::Workspace::FileReference.new(proj_path)
|
49
49
|
pods_ref = Xcodeproj::Workspace::FileReference.new('Pods/Pods.xcodeproj')
|
50
50
|
workspace = Xcodeproj::Workspace.new(nil, proj_ref, pods_ref)
|
@@ -22,7 +22,7 @@ module GoNative
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def update_project
|
25
|
-
proj = Xcodeproj::Project.open('./
|
25
|
+
proj = Xcodeproj::Project.open('./MedianIOS.xcodeproj')
|
26
26
|
proj.targets.each do |target|
|
27
27
|
case target.product_type
|
28
28
|
when Xcodeproj::Constants::PRODUCT_TYPE_UTI[:application]
|
data/lib/gonative/version.rb
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
<string>FMWK</string>
|
17
17
|
<key>CFBundleShortVersionString</key>
|
18
18
|
<string>${MARKETING_VERSION}</string>
|
19
|
+
<key>GNLibraryVersion</key>
|
20
|
+
<string>${MARKETING_VERSION}</string>
|
19
21
|
<key>CFBundleSignature</key>
|
20
22
|
<string>????</string>
|
21
23
|
<key>CFBundleVersion</key>
|
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: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hunaid Hassan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-cli
|