fastlane-plugin-ravn_mobile 0.1.7 → 0.1.9

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: c10b779b2b4898a458e59239552d5de55c015595395307e02f4755c9b51a4801
4
- data.tar.gz: ca06d23f56b6855488028e63ebabaa5b149e518fc4e06c1848a16538b69d0df7
3
+ metadata.gz: 20b98520b34dab3641137e0a4b3d2951f49b244f5457d4c493ffd2e37b56a25e
4
+ data.tar.gz: 6ecf8b4816b230575b23b3e03135b10ae94aa703fc956f6b8c0f15e4ea8b0e01
5
5
  SHA512:
6
- metadata.gz: b6acad24d06be1b1aec159843436786797e3b566ad08a9ab89a50e4a2dd71158bcf24c4c613f422734a747fe57071f785607fbe34a3b4097b07c46ef91dea23c
7
- data.tar.gz: 33e6bd5b937b49717ba7cb1bba80d7ba70bbff5aede13c6469d35f6b7c6dd1244509615e3cee3d11d1c85b6032238f0386660024b825a94e5c12d7a19ac121ea
6
+ metadata.gz: 34680326a916d62fc2477034acffca8bdb4b8e76909335fb8e1ea967e8137bb87ba33bb362067dddaf93aa9d2009c5868f337d9b755c8608c6bc40ef1ab3a7e6
7
+ data.tar.gz: 848e50868b99b41ab31b226007d7674cdb2606ac141c9d7bf0b725f337f1711e1ccdd49d7cd8e6cd96053d2d49d31d3ff4d65ad23f43e0fdb28308c568617829
@@ -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,22 @@
1
+ require 'fastlane'
2
+ require 'tmpdir'
3
+ require_relative '../util/util'
4
+
5
+ module Fastlane
6
+ class FastFile
7
+ # @param [String] platform Either 'android' or 'ios'
8
+ # @param [String] version Same syntax as `import_from_git`
9
+ def import_ravn_lanes(platform, version = nil)
10
+ UI.user_error!("Invalid platform value #{platform}") unless %w[android ios].include?(platform)
11
+
12
+ default_version = '~> 0.2'
13
+ version = default_version if blank?(version)
14
+ url = 'https://github.com/ravnhq/mobile-cicd'
15
+ path = platform == 'android' ? 'lanes/android.rb' : 'lanes/ios.rb'
16
+ dependencies = %w[lanes/util.rb]
17
+ cache_path = Dir.mktmpdir('ravn_lanes')
18
+
19
+ import_from_git(url: url, path: path, version: version, dependencies: dependencies, cache_path: cache_path)
20
+ end
21
+ end
22
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RavnMobile
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.9'
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.9
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