fastlane-plugin-find_firebase_app_id 0.1.1 → 0.1.2

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: 5fe08f6a657674c526e6507eecc88178676f817d0777a262833e3b0c745b89bd
4
- data.tar.gz: 6123f57263059a7ef3aa0cae514e4015cd74cd9f99b1e3076823d8990eb5ea83
3
+ metadata.gz: 2d7a2ee5db7eaacb134ce7c9609629d3f43f4c8604963ed35bc1a7de9c3f0799
4
+ data.tar.gz: e56044828e4a5e0b3fb89570f876d0addd227d8c49f7060235854f9d60b89afc
5
5
  SHA512:
6
- metadata.gz: 3a42ea11c8f3735589e56be77854393f4d4b469bffe3e2b4de41821e64a69e3cee9e42fabc0526a43e2e4ae9e549c6ebb781325e8f89b575db47252fb35618f1
7
- data.tar.gz: 7f2e5dc02e76bb2b5c7758fdbfc47b2d30406076f9a687c98085d1d30e2b3f43f346461efa5292005dae75e4f97ac7560209d2651ad57da8f34c3bad57afb6e0
6
+ metadata.gz: f6d2fd7e90c93d8d95ae635e3745c7efd5dcedde51382f612a7d4681908b9b63c4d85abbee0579c4db4b17ace0f0ac28dba257d6de456d369d816cf204c5441b
7
+ data.tar.gz: 0bdb675e19deb597aa1ba2803ff6a9cfda79e98aeda6e8310838d1888ddcad2c168dfedbe6c51a337d55172d232eba551ca03fd89aefe50449b8827c83702dad
data/README.md CHANGED
@@ -35,7 +35,7 @@ bundle exec fastlane ios test
35
35
  for iOS platform
36
36
 
37
37
  ```
38
- bundle exec faslane android test
38
+ bundle exec fastlane android test
39
39
  ```
40
40
 
41
41
  for Android.
@@ -79,4 +79,4 @@ We’d be really happy if you sent us links to your projects where you use our c
79
79
 
80
80
  ## License
81
81
 
82
- The plugin is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.
82
+ The plugin is available under the MIT license. See the [LICENSE](./LICENSE) file for more info.
@@ -29,14 +29,14 @@ module Fastlane
29
29
  end
30
30
 
31
31
  def self.find_ios_app_id(params)
32
- filename = "GoogleService-Info.plist"
33
- file_paths = Find.find('./').select { |p| p.include?(filename) }
34
- if file_paths.any?
35
- plist = file_paths.first
36
- GetInfoPlistValueAction.run(path: plist, key: 'GOOGLE_APP_ID')
37
- else
32
+
33
+ find_gsp_path(params)
34
+
35
+ if !params[:gsp_path]
38
36
  UI.user_error!("#{filename} file is missing, please make sure you have added.")
39
37
  end
38
+
39
+ GetInfoPlistValueAction.run(path: params[:gsp_path], key: 'GOOGLE_APP_ID')
40
40
  end
41
41
 
42
42
  def self.find_android_app_id(params)
@@ -62,6 +62,15 @@ module Fastlane
62
62
  end
63
63
  end
64
64
 
65
+ def self.find_gsp_path(params)
66
+ if params[:gsp_path].to_s.length > 0
67
+ params[:gsp_path] = File.expand_path(params[:gsp_path])
68
+ else
69
+ gsp_path = Dir["./**/GoogleService-Info.plist"].first
70
+ params[:gsp_path] = File.expand_path(gsp_path) unless gsp_path.nil?
71
+ end
72
+ end
73
+
65
74
  #####################################################
66
75
  # @!group Documentation
67
76
  #####################################################
@@ -95,7 +104,16 @@ module Fastlane
95
104
  env_name: "FIND_FIREBASE_APP_ID_APP_IDENTIFIER",
96
105
  description: "The app identifier to find Firebase App ID (Required: for Android platform)",
97
106
  optional: true,
98
- type: String)
107
+ type: String),
108
+ FastlaneCore::ConfigItem.new(key: :gsp_path,
109
+ env_name: "GOOGLE_SERVICES_INFO_PLIST_PATH",
110
+ code_gen_sensitive: true,
111
+ description: "Path to GoogleService-Info.plist (only for iOS platform)",
112
+ optional: true,
113
+ verify_block: proc do |value|
114
+ UI.user_error!("Couldn't find file at path '#{File.expand_path(value)}'") unless File.exist?(value)
115
+ UI.user_error!("No Path to GoogleService-Info.plist for Firebase Crashlytics given, pass using `gsp_path: 'path'`") if value.to_s.length == 0
116
+ end),
99
117
  ]
100
118
  end
101
119
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FindFirebaseAppId
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-find_firebase_app_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tigran Hambardzumyan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry