reset-sim 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/reset-sim +1 -36
- metadata +4 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5cb0c77b9b87ee0b36c616c245cdd06cc208df2
|
4
|
+
data.tar.gz: e831e81b8ec63b8dd956ca40233013b50bba6985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b772c6696f90f6fc2e5450fe4ac6a43c1f98de6740895f36e363fd2382af3baa6518bb6e2abb019c84974a7e86bb01703775ea72326ce093f53d19e7d4a871
|
7
|
+
data.tar.gz: d39df88ab7dd6bac75aee974450ebb8f027b66f290a1def11ec153afdb2e27dd98c8133f1c7b6ed072ee7d283c588efca0dc0e434d37cfa1f84c1cf131662e0c
|
data/bin/reset-sim
CHANGED
@@ -1,38 +1,3 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten
|
5
|
-
end
|
6
|
-
|
7
|
-
osascript <<-END
|
8
|
-
|
9
|
-
-- assume most people are on xcode7 or greater
|
10
|
-
-- so try that first
|
11
|
-
set simulator_app_name to missing value
|
12
|
-
try
|
13
|
-
tell application "Simulator" to activate
|
14
|
-
set simulator_app_name to "Simulator"
|
15
|
-
on error number -1728
|
16
|
-
log "Trying legacy iOS Simulator application..."
|
17
|
-
try
|
18
|
-
tell application "iOS Simulator" to activate
|
19
|
-
set simulator_app_name to "iOS Simulator"
|
20
|
-
on error number -1728
|
21
|
-
log "No Simulator application installed"
|
22
|
-
end try
|
23
|
-
end try
|
24
|
-
|
25
|
-
|
26
|
-
if simulator_app_name is not equal to missing value
|
27
|
-
tell application "System Events"
|
28
|
-
click menu item ¬
|
29
|
-
"Erase All Content and Settings…" of menu 1 of menu bar item ¬
|
30
|
-
"Hardware" of menu bar 1 of application process simulator_app_name
|
31
|
-
delay 0.5
|
32
|
-
tell process simulator_app_name
|
33
|
-
keystroke tab
|
34
|
-
keystroke return
|
35
|
-
end tell
|
36
|
-
end tell
|
37
|
-
end if
|
38
|
-
END
|
3
|
+
system 'killall "Simulator" 2> /dev/null && xcrun simctl erase all'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reset-sim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rickert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -33,19 +33,11 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- bin/reset-sim
|
36
|
-
homepage:
|
36
|
+
homepage: https://github.com/OTGApps/reset-sim
|
37
37
|
licenses:
|
38
38
|
- MIT
|
39
39
|
metadata: {}
|
40
|
-
post_install_message:
|
41
|
-
|
42
|
-
********* IMPORTANT *********
|
43
|
-
In order to work properly you must add your terminal application in
|
44
|
-
System Preferences -> Privacy -> Accessibility options.
|
45
|
-
|
46
|
-
Then run: reset-sim
|
47
|
-
*****************************
|
48
|
-
|
40
|
+
post_install_message:
|
49
41
|
rdoc_options: []
|
50
42
|
require_paths:
|
51
43
|
- lib
|