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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ab042efeee71821aba3c8ff7f29c8b105b45bb54f0c3711fdacf6b4917dfa3d
4
- data.tar.gz: 8f82f2570bd5e161704ab3aa55275ee1d174964aa689261b09e148a56ef5f8cf
3
+ metadata.gz: c9448c80c2d7e7d3b728e8ef8c78e192466c5e8e90426db993e71cc1c9a77392
4
+ data.tar.gz: 3d8f81f771da0fbc1a71fdbb00ba8bbbb9d46d7c117fc27aa148019eb4871dee
5
5
  SHA512:
6
- metadata.gz: 4324577a90f436715e39696526556f006f9716a15853e5fd04bd65618424ff093a3106f22019112b015cdc5f613041a00d8be67381e25c905a196eabb55ece8f
7
- data.tar.gz: 7a91ebdeb8f509c0eedbfe3d1bd0688a8d01cc959da4e2c404dfc9b00fd20692b5d65784cea5e43176dd17f18f13680b0fad1e0aae308e07125a915ea6ec77ec
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.2.4)
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.12.1)
32
+ cocoapods (1.13.0)
33
33
  addressable (~> 2.8)
34
34
  claide (>= 1.0.2, < 2.0)
35
- cocoapods-core (= 1.12.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.21.0, < 2.0)
50
- cocoapods-core (1.12.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.22.0)
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.9)
147
+ zeitwerk (2.6.11)
148
148
 
149
149
  PLATFORMS
150
150
  arm64-darwin-21
@@ -127,7 +127,7 @@ module GoNative
127
127
  end
128
128
 
129
129
  def deployment_target
130
- spec.deployment_target('ios') || '11.0'
130
+ spec.deployment_target('ios') || '13.0'
131
131
  end
132
132
 
133
133
  def spec
@@ -31,34 +31,36 @@ module GoNative
31
31
  end
32
32
 
33
33
  def embed_in_project
34
- proj = Xcodeproj::Project.open('GoNativeIOS.xcodeproj')
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
- '11.0')
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 { |path|
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'] = "$(TARGET_NAME)"
53
- config.build_settings['INFOPLIST_FILE'] = "#{extension['name']}/#{extension['info']}"
54
- config.build_settings['CODE_SIGN_ENTITLEMENTS'] =
55
- "#{extension['name']}/#{extension['entitlements']}" if extension['entitlements']
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['name']}.appex" }
59
- embed_phase = app_target.build_phases.find { |phase|
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['name']}' do"
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['name']}', '#{dep['requirement']}'"
78
+ f.puts "\tpod '#{dep["name"]}', '#{dep["requirement"]}'"
77
79
  end
78
- f.puts "end"
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 GoNativeIOS.xcodeproj #{proj_path}")
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('GoNativeIOS.xcworkspace')
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('./GoNativeIOS.xcodeproj')
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '1.2.4'
4
+ VERSION = '1.3.1'
5
5
  end
@@ -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.2.4
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-08-22 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli