gonative-cli 1.5.3 → 1.5.4

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: a8d858271a2edb3d7f244368729c4f21911cf8a0ad277232893d6745f15ade26
4
- data.tar.gz: 8a5eccdf07a83304eea17a9df44918baa916b9e8e4c28b055a1bb7631c145d01
3
+ metadata.gz: 517ac04343f66e32ef4b554ff846a11b87f594b41e1d77741209f90858244eb9
4
+ data.tar.gz: b032947e580320a96198e4fb6035b8bacc6a7fe3bab1b74b3704d50520ec7195
5
5
  SHA512:
6
- metadata.gz: e2406719d47e3118760bfc2b4ec257c9abc3c9cf0774ec8e53d553e611e51c2cac57304ca56f611be47c9dc72364c24a90244082d253e647c75dc62593d6a693
7
- data.tar.gz: 49fa3309ce9a6c7603c5c1fe16b765b5695333b634389693319a1f35103612ec7b10e7e5870a5c51f6c29fb6e8d16e058a8dca0e348d8b1be7d17c9015d23292
6
+ metadata.gz: 7de8510ad725a5f4b872945413bb62d4e67a9c3cb77a9f8babedb269d7314be82af5d7e95796b4bbfb9122514657b8e87c8e679ac8c5d1be0fca16b0801735a9
7
+ data.tar.gz: 7253a2f6258098214cc719e2e509c8e0596178e20e857d6a3a21b05e3aded945c0ff5de6ab1e7cfc3396066d23cf1ca1eba4a5ec6a3b58c0896894d0879e1114
@@ -0,0 +1,11 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5
+
6
+ version: 2
7
+ updates:
8
+ - package-ecosystem: "bundler" # See documentation for possible values
9
+ directory: "/" # Location of package manifests
10
+ schedule:
11
+ interval: "weekly"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (1.5.3)
4
+ gonative-cli (1.5.4)
5
5
  activesupport (~> 6.0)
6
6
  aws-sdk-s3 (~> 1)
7
7
  cocoapods (~> 1.10)
@@ -167,6 +167,7 @@ GEM
167
167
 
168
168
  PLATFORMS
169
169
  arm64-darwin-21
170
+ arm64-darwin-23
170
171
  x86_64-darwin-19
171
172
  x86_64-darwin-21
172
173
 
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GoNative
4
+ module Commands
5
+ module IOS
6
+ class SetMarketingVersion < Base
7
+ desc 'Sets marketing version for iOS project'
8
+
9
+ argument :version, required: true, desc: 'Marketing version for the app (e.g., 1.0.0)'
10
+
11
+ def call(version:, **)
12
+ Plugins::IOS::SetMarketingVersion.call(version)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -11,6 +11,7 @@ module GoNative
11
11
  register 'ios embed-extensions', IOS::EmbedExtensions
12
12
  register 'ios embed-scripts', IOS::EmbedScripts
13
13
  register 'ios set-bundle-id', IOS::SetBundleId
14
+ register 'ios set-marketing-version', IOS::SetMarketingVersion
14
15
  register 'ios rename', IOS::Rename
15
16
  register 'ios version', IOS::Version
16
17
  register 'ios add-language', IOS::AddLanguage
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'xcodeproj'
4
+
5
+ module GoNative
6
+ module Plugins
7
+ module IOS
8
+ class SetMarketingVersion
9
+ extend DSL::Serviceable
10
+
11
+ attr_reader :marketing_version
12
+
13
+ def initialize(marketing_version)
14
+ @marketing_version = marketing_version
15
+ end
16
+
17
+ def call
18
+ update_project
19
+ end
20
+
21
+ private
22
+
23
+ def update_project
24
+ proj = Xcodeproj::Project.open('./MedianIOS.xcodeproj')
25
+
26
+ proj.targets.each do |target|
27
+ # Skip test targets - only process main app and extensions
28
+ case target.product_type
29
+ when Xcodeproj::Constants::PRODUCT_TYPE_UTI[:application],
30
+ Xcodeproj::Constants::PRODUCT_TYPE_UTI[:app_extension]
31
+ set_target_marketing_version(target, marketing_version)
32
+ else
33
+ next
34
+ end
35
+ end
36
+
37
+ proj.save
38
+ end
39
+
40
+ def set_target_marketing_version(target, version)
41
+ target.build_configurations.each do |config|
42
+ config.build_settings['MARKETING_VERSION'] = version
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '1.5.3'
4
+ VERSION = '1.5.4'
5
5
  end
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.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-05 00:00:00.000000000 Z
11
+ date: 2025-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -200,6 +200,7 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
+ - ".github/dependabot.yml"
203
204
  - ".gitignore"
204
205
  - ".rspec"
205
206
  - ".rubocop.yml"
@@ -229,6 +230,7 @@ files:
229
230
  - lib/gonative/commands/ios/publish.rb
230
231
  - lib/gonative/commands/ios/rename.rb
231
232
  - lib/gonative/commands/ios/set_bundle_id.rb
233
+ - lib/gonative/commands/ios/set_marketing_version.rb
232
234
  - lib/gonative/commands/ios/version.rb
233
235
  - lib/gonative/commands/version.rb
234
236
  - lib/gonative/dsl/error_catchable.rb
@@ -246,6 +248,7 @@ files:
246
248
  - lib/gonative/plugins/ios/release.rb
247
249
  - lib/gonative/plugins/ios/rename.rb
248
250
  - lib/gonative/plugins/ios/set_bundle_id.rb
251
+ - lib/gonative/plugins/ios/set_marketing_version.rb
249
252
  - lib/gonative/plugins/ios/verify.rb
250
253
  - lib/gonative/plugins/ios/version.rb
251
254
  - lib/gonative/utils.rb