fastlane-plugin-ravn_mobile 0.1.6 → 0.1.8

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: 34103e40b9cc1752f949b285ade69d853753863eeb07210b06b8972615beebe7
4
- data.tar.gz: cd794d5e20506e646aaf96cd985b6f9c6457e98b1ca4bfdd744e73f479abb242
3
+ metadata.gz: a67c0fc7edd29c77c9a5386c0d2bdc6065d0a257e5adef136e7a771e603e6446
4
+ data.tar.gz: e77f4a2876d64d653f39e5761d871263c55a5a0eaf41f59f6a7b4fb33b70c2c4
5
5
  SHA512:
6
- metadata.gz: 83f2a881d341edd04327cc11c639569c0f1e5e0ebb5f02ea882a210f030022646c4894db97be8bee532c9f72cab7b1c2c0e4320ae8dc87a7c64b88f16acd4d30
7
- data.tar.gz: 58405864946d506273af265d682848ef5cc0f81cef8a00f5cfe2d44ca2caa6f87994a46229678b9dbdf41c523ffd45e9c246ba16c9b68b21bbf75a81ceb0c0d0
6
+ metadata.gz: b96c7ae1f015c480e9bf1b4a314f66278f97d19f32d4c0f7f6b5e4bf08325bb0a8db6ec64e775b520d66af12f2aeaff20964e56e2a318ae3a22bd2d4b54257ee
7
+ data.tar.gz: 8f90586df4d1d3a1858e0f76b614280bfad09c0dd847b1069136ca793639c9041a452cc39a8c1755f9d35e290341361101f8d99aa94ba6573cc77e33b767e87c
@@ -1,25 +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
- dependencies = %w[lanes/util.rb]
20
- cache_path = Dir.mktmpdir("ravn_lanes")
21
-
22
- other_action.import_from_git(url: url, path: path, version: version, dependencies: dependencies, cache_path: cache_path)
7
+ # implemented in ../fastlane/import_ravn_lanes.rb
23
8
  end
24
9
 
25
10
  #####################################################
@@ -48,7 +33,7 @@ module Fastlane
48
33
  env_name: 'FL_IMPORT_RAVN_LANES_VERSION',
49
34
  description: 'Version to import',
50
35
  type: String,
51
- default_value: ImportRavnLanesAction::IMPORT_VERSION)
36
+ optional: true)
52
37
  ]
53
38
  end
54
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.6'
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.6
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