fastlane-plugin-simulator_add_root_cert 0.1.0 → 0.1.1
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: 2b2adbd098b4bf83605355dd239f29fa566f55eb56286194681de26151f8b302
|
4
|
+
data.tar.gz: d4dbfa5f2cf970e8a90d2be2a68a10287ff5afbd42d51fab52cfdfdafcbeccd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ff19bc79d0768bbf2d53ad8f579db0660249ce32242ffc9f53f2c857bd9e65de37e9ef5121ff8098340d01b291fdae9989d2c72439272a95a389bebfbf706f0
|
7
|
+
data.tar.gz: 6b21b1a6584b52862a816ff0c89ae22237fb8792c31b8797baf0821be59dbe34cdbd10823a75b84369533542f28d7868907c0e260ffd85a3e12758738edcf8cf
|
data/README.md
CHANGED
@@ -12,15 +12,29 @@ fastlane add_plugin simulator_add_root_cert
|
|
12
12
|
|
13
13
|
## About simulator_add_root_cert
|
14
14
|
|
15
|
-
Add a root cert to your simulators
|
15
|
+
Add a root cert to your Booted simulators using Fastlane.
|
16
16
|
|
17
|
-
|
17
|
+
This can be used to install a SSL proxying certificate like with [Charles Proxy](https://www.charlesproxy.com/) or [Proxyman](https://github.com/ProxymanApp/Proxyman) as well as for enabling simulator internet access in some corporate security setups.
|
18
18
|
|
19
19
|
## Example
|
20
20
|
|
21
21
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
22
22
|
|
23
|
-
|
23
|
+
### TL;DR
|
24
|
+
|
25
|
+
From your `Fastfile` call the action using
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
simulator_add_root_cert(certificate_path:)
|
29
|
+
```
|
30
|
+
|
31
|
+
or
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
simulator_add_root_cert
|
35
|
+
```
|
36
|
+
|
37
|
+
with `SIMULATOR_ADD_ROOT_CERT_PATH` set in your environment variables
|
24
38
|
|
25
39
|
## Run tests for this plugin
|
26
40
|
|
@@ -8,8 +8,6 @@ module Fastlane
|
|
8
8
|
uuid_regex = /[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}/
|
9
9
|
|
10
10
|
certificate_path = params[:certificate_path]
|
11
|
-
UI.user_error!("Couldn't find certificate") if certificate_path.nil?
|
12
|
-
UI.user_error!("Couldn't find certificate at path `#{certificate_path}`") unless File.exist?(certificate_path)
|
13
11
|
|
14
12
|
simulators = Actions.sh("xcrun simctl list | grep Booted", error_callback: ->(result) {
|
15
13
|
UI.crash!("Could not detect any Booted simulators. Check that `xcrun simctl list` is working.")
|