ios_android_toolbox 0.0.21 → 0.0.22
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.
@@ -39,28 +39,47 @@ module IosAndroidToolbox
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
# def app_id
|
43
|
+
# # <key>application-identifier</key>
|
44
|
+
# # <string>NDVAA33T9J.com.favequest.FFSApp.87.ircpa</string>
|
45
|
+
# if /<key>application-identifier<\/key>\s*<string>[A-Za-z0-9]+\.([^<]+)<\/string>/.match(contents)
|
46
|
+
# puts "Found app Id: #{$1}" if DEBUG
|
47
|
+
# app_id = $1
|
48
|
+
# else
|
49
|
+
# nil
|
50
|
+
# end
|
51
|
+
# end
|
52
|
+
|
42
53
|
def app_id
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
54
|
+
@app_id ||= begin
|
55
|
+
id = plist['Entitlements']['application-identifier']
|
56
|
+
id.gsub(/^[A-Z0-9]+\./,'')
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def app_id_name
|
61
|
+
plist['AppIDName']
|
62
|
+
end
|
63
|
+
|
64
|
+
def app_id_prefix
|
65
|
+
plist['ApplicationIdentifierPrefix']
|
51
66
|
end
|
52
67
|
|
68
|
+
# def creation_date
|
69
|
+
# # <key>CreationDate</key>
|
70
|
+
# # <date>2011-08-30T02:11:55Z</date>
|
71
|
+
# if /<key>CreationDate<\/key>\s*<date>([^<]+)<\/date>/.match(contents)
|
72
|
+
# #creation_date = Date.strptime($1, '%Y-%m-%dT%h:%M:%sZ')
|
73
|
+
# creation_date = Time.parse($1)
|
74
|
+
# puts "Found Creation date: #{creation_date.to_s}" if DEBUG
|
75
|
+
# creation_date
|
76
|
+
# else
|
77
|
+
# nil
|
78
|
+
# end
|
79
|
+
# end
|
80
|
+
|
53
81
|
def creation_date
|
54
|
-
|
55
|
-
# <date>2011-08-30T02:11:55Z</date>
|
56
|
-
if /<key>CreationDate<\/key>\s*<date>([^<]+)<\/date>/.match(contents)
|
57
|
-
#creation_date = Date.strptime($1, '%Y-%m-%dT%h:%M:%sZ')
|
58
|
-
creation_date = Time.parse($1)
|
59
|
-
puts "Found Creation date: #{creation_date.to_s}" if DEBUG
|
60
|
-
creation_date
|
61
|
-
else
|
62
|
-
nil
|
63
|
-
end
|
82
|
+
plist['CreationDate']
|
64
83
|
end
|
65
84
|
|
66
85
|
def has_provisioned_devices?
|
@@ -142,6 +161,12 @@ module IosAndroidToolbox
|
|
142
161
|
true
|
143
162
|
end
|
144
163
|
|
164
|
+
def self.loop_through_profiles_for_app_id(id, &block)
|
165
|
+
self.loop_through_existing_profiles do |p,path|
|
166
|
+
yield p if p.app_id == id
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
145
170
|
private
|
146
171
|
def self.loop_through_existing_profiles(&block)
|
147
172
|
# Look through each file in the list
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ios_android_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 51
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 22
|
10
|
+
version: 0.0.22
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Igor Sales
|