gonative-cli 1.2.1 → 1.2.3

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: de98ab993a8962f18682d81561ffe9955b5820abb4ca6be4f3e07624d203aea2
4
- data.tar.gz: b374cefeca6c9329b4f3d531b6a0a331e6fa61edd25b66c19f1ed9d8deb6a36a
3
+ metadata.gz: ffea0596ed9168dd22544cfe9748e75d0e15dc1bfa1d4b9e0385c3dad884530d
4
+ data.tar.gz: a3d27c0624fa377508c73fb14fb970ec03d9616c0177d6a05f61e2315a5a4a3d
5
5
  SHA512:
6
- metadata.gz: ea85323ef9fea3dbbc95d614ac78b04e8c14dbedc5591dbe5af703478377f892e3ede539a3087287065afb9fc95106ca06df86f2850835172f623b40681c0d53
7
- data.tar.gz: 32bb8a22a19dc8d60bdb708c5f351c4a81821faa21748f6caec2049e905c5256dff801b5fc49f0c6feb1a0db9dee14542a6e9f55c58b42a9e3f0b3b796cd4713
6
+ metadata.gz: 69ced34a89481ded58730ea927bf463f838daab595bbef65b739b49ab78baefd495f6ff86ddc40bb92bb54b76f48aa7f292b22adc3be355b76c0dfba030aa175
7
+ data.tar.gz: 818b148f299d8e708d7899e5b70146201d0c74f13160817ee0cc25cfb39f778abab220e4db84fbf1f422cd9e39b493a69f9ba8fe9261561c105c1adb344bc63f
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.6
2
+ TargetRubyVersion: 3.1
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (1.2.1)
4
+ gonative-cli (1.2.3)
5
5
  activesupport (~> 6.0)
6
6
  cocoapods (~> 1.10)
7
7
  colorize (~> 0.8.0)
@@ -144,7 +144,7 @@ GEM
144
144
  colored2 (~> 3.1)
145
145
  nanaimo (~> 0.3.0)
146
146
  rexml (~> 3.2.4)
147
- zeitwerk (2.6.8)
147
+ zeitwerk (2.6.9)
148
148
 
149
149
  PLATFORMS
150
150
  arm64-darwin-21
@@ -20,7 +20,7 @@ module GoNative
20
20
  private
21
21
 
22
22
  def gradle_files
23
- @gradle_files ||= `find . -iname build.gradle`.split("\n")
23
+ @gradle_files ||= `find . -maxdepth 2 -iname build.gradle`.split("\n")
24
24
  end
25
25
 
26
26
  def version
@@ -1,4 +1,3 @@
1
-
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module GoNative
@@ -7,8 +6,9 @@ module GoNative
7
6
  def call(...)
8
7
  super(...)
9
8
  rescue Error => e
10
- warn e.message
9
+ Utils::UI.error e.message
10
+ exit 1
11
11
  end
12
12
  end
13
13
  end
14
- end
14
+ end
@@ -8,4 +8,4 @@ module GoNative
8
8
  end
9
9
  end
10
10
  end
11
- end
11
+ end
@@ -55,7 +55,8 @@ module GoNative
55
55
  add_frameworks(target, main_group)
56
56
  add_headers(target, main_group)
57
57
  target.build_configurations.each do |config|
58
- config.build_settings['GENERATE_INFOPLIST_FILE'] = 'YES'
58
+ config.build_settings['INFOPLIST_FILE'] = 'Info.plist'
59
+ config.build_settings['MARKETING_VERSION'] = spec.version
59
60
  config.build_settings['MODULEMAP_FILE'] = "#{plugin_name}.modulemap"
60
61
  config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = "org.cocoapods.#{plugin_name}"
61
62
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # frozen_string_literal: true\
2
4
 
3
5
  require 'colorize'
@@ -13,6 +15,10 @@ module GoNative
13
15
  def output(msg)
14
16
  puts msg
15
17
  end
18
+
19
+ def error(msg)
20
+ puts msg.colorize(:red)
21
+ end
16
22
  end
17
23
  end
18
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.3'
5
5
  end
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>${PODS_DEVELOPMENT_LANGUAGE}</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>${PRODUCT_NAME}</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>FMWK</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>${MARKETING_VERSION}</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>${CURRENT_PROJECT_VERSION}</string>
23
+ <key>NSPrincipalClass</key>
24
+ <string></string>
25
+ </dict>
26
+ </plist>
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.1
4
+ version: 1.2.3
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-05-03 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -218,6 +218,7 @@ files:
218
218
  - lib/gonative/utils/template_inflator.rb
219
219
  - lib/gonative/utils/ui.rb
220
220
  - lib/gonative/version.rb
221
+ - templates/build/ios/Info.plist
221
222
  - templates/build/ios/PLUGIN_NAME-umbrella.h.tpl
222
223
  - templates/build/ios/PLUGIN_NAME.modulemap.tpl
223
224
  - templates/build/ios/Podfile.tpl