fastlane-plugin-find_firebase_app_id 0.1.1 → 0.1.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d7a2ee5db7eaacb134ce7c9609629d3f43f4c8604963ed35bc1a7de9c3f0799
|
4
|
+
data.tar.gz: e56044828e4a5e0b3fb89570f876d0addd227d8c49f7060235854f9d60b89afc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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
|
|
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.
|
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:
|
11
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|