fastlane-plugin-ravn_mobile 0.1.7 → 0.1.8

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: c10b779b2b4898a458e59239552d5de55c015595395307e02f4755c9b51a4801
4
- data.tar.gz: ca06d23f56b6855488028e63ebabaa5b149e518fc4e06c1848a16538b69d0df7
3
+ metadata.gz: a67c0fc7edd29c77c9a5386c0d2bdc6065d0a257e5adef136e7a771e603e6446
4
+ data.tar.gz: e77f4a2876d64d653f39e5761d871263c55a5a0eaf41f59f6a7b4fb33b70c2c4
5
5
  SHA512:
6
- metadata.gz: b6acad24d06be1b1aec159843436786797e3b566ad08a9ab89a50e4a2dd71158bcf24c4c613f422734a747fe57071f785607fbe34a3b4097b07c46ef91dea23c
7
- data.tar.gz: 33e6bd5b937b49717ba7cb1bba80d7ba70bbff5aede13c6469d35f6b7c6dd1244509615e3cee3d11d1c85b6032238f0386660024b825a94e5c12d7a19ac121ea
6
+ metadata.gz: b96c7ae1f015c480e9bf1b4a314f66278f97d19f32d4c0f7f6b5e4bf08325bb0a8db6ec64e775b520d66af12f2aeaff20964e56e2a318ae3a22bd2d4b54257ee
7
+ data.tar.gz: 8f90586df4d1d3a1858e0f76b614280bfad09c0dd847b1069136ca793639c9041a452cc39a8c1755f9d35e290341361101f8d99aa94ba6573cc77e33b767e87c
@@ -1,27 +1,10 @@
1
1
  require 'fastlane'
2
- require 'tmpdir'
3
- require_relative '../util/util'
4
2
 
5
3
  module Fastlane
6
4
  module Actions
7
5
  class ImportRavnLanesAction < Action
8
- IMPORT_URL = 'https://github.com/ravnhq/mobile-cicd'
9
- IMPORT_VERSION = '~> 0.2'
10
-
11
6
  def self.run(params)
12
- platform = params[:platform]
13
-
14
- version = params[:version]
15
- version = blank?(version) ? ImportRavnLanesAction::IMPORT_VERSION : version
16
-
17
- url = ImportRavnLanesAction::IMPORT_URL
18
- path = platform == 'android' ? 'lanes/android.rb' : 'lanes/ios.rb'
19
- cache_path = Dir.mktmpdir("ravn_lanes")
20
-
21
- dependencies = %w[lanes/util.rb]
22
- dependencies.each { |dep_path| other_action.import_from_git(url: url, path: dep_path, version: version, cache_path: cache_path) }
23
-
24
- other_action.import_from_git(url: url, path: path, version: version, cache_path: cache_path)
7
+ # implemented in ../fastlane/import_ravn_lanes.rb
25
8
  end
26
9
 
27
10
  #####################################################
@@ -50,7 +33,7 @@ module Fastlane
50
33
  env_name: 'FL_IMPORT_RAVN_LANES_VERSION',
51
34
  description: 'Version to import',
52
35
  type: String,
53
- default_value: ImportRavnLanesAction::IMPORT_VERSION)
36
+ optional: true)
54
37
  ]
55
38
  end
56
39
 
@@ -0,0 +1,23 @@
1
+ require 'fastlane'
2
+ require 'tmpdir'
3
+ require_relative '../util/util'
4
+
5
+ module Fastlane
6
+ module FastFile
7
+
8
+ # @param [String] platform Either 'android' or 'ios'
9
+ # @param [String] version Same syntax as `import_from_git`
10
+ def import_ravn_lanes(platform, version = nil)
11
+ UI.user_error!("Invalid platform value #{platform}") unless %w[android ios].include?(platform)
12
+
13
+ default_version = '~> 0.2'
14
+ version = default_version if blank?(version)
15
+ url = 'https://github.com/ravnhq/mobile-cicd'
16
+ path = platform == 'android' ? 'lanes/android.rb' : 'lanes/ios.rb'
17
+ dependencies = %w[lanes/util.rb]
18
+ cache_path = Dir.mktmpdir('ravn_lanes')
19
+
20
+ import_from_git(url: url, path: path, version: version, dependencies: dependencies, cache_path: cache_path)
21
+ end
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RavnMobile
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
4
4
  end
5
5
  end
@@ -2,9 +2,9 @@ require_relative './ravn_mobile/version'
2
2
 
3
3
  module Fastlane
4
4
  module RavnMobile
5
- # Return all .rb files inside the "actions" and "helper" directory
5
+ # Return all .rb files inside the "actions", "helper" and "fastlane" directory
6
6
  def self.all_classes
7
- Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
7
+ Dir[File.expand_path('**/{actions,helper,fastlane}/*.rb', File.dirname(__FILE__))]
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ravn_mobile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ravnhq
@@ -167,6 +167,7 @@ files:
167
167
  - lib/fastlane/plugin/ravn_mobile/actions/is_flutter_action.rb
168
168
  - lib/fastlane/plugin/ravn_mobile/actions/is_react_native_action.rb
169
169
  - lib/fastlane/plugin/ravn_mobile/actions/setup_expo_project_action.rb
170
+ - lib/fastlane/plugin/ravn_mobile/fastlane/import_ravn_lanes.rb
170
171
  - lib/fastlane/plugin/ravn_mobile/helper/framework_helper.rb
171
172
  - lib/fastlane/plugin/ravn_mobile/util/util.rb
172
173
  - lib/fastlane/plugin/ravn_mobile/version.rb