calabash-android 0.5.12 → 0.5.13.pre1

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
  SHA1:
3
- metadata.gz: dc65c44acedefae1c3508534d4557a6f4c698b60
4
- data.tar.gz: 49b3a48544b620c419347d65b37ddb02d37e883e
3
+ metadata.gz: a936fb7416c4c7acf1153a1cd062497a3f41a1f7
4
+ data.tar.gz: 87cc65e9872e1d93f0bf81f6e2e247501188a1fb
5
5
  SHA512:
6
- metadata.gz: 8e7cfba443489fa1b13a15428931a392919508d80446c32d33ef4ce8d4b5ad4140e69c3413c5b0278aaf33b8f6c95f7dc1eb5e1b56bdda5a1a0cd3f39bc2569f
7
- data.tar.gz: 32351fd93d35d8566885152c456ab6c56d3f987a5306a221b96e9baf18be744d19bd4f668360dd5de267e6b530bb9c0f49f76164c7330a4778e6e125ee0c009d
6
+ metadata.gz: fe170f2d0ca20077d696c5022d7a2e8300f6a1adf250381022dfa929397a7bba8d1c2d23056ac9b3966711446aa2eb41bd8de785b06ea927ff0a9545a664bd92
7
+ data.tar.gz: b632ce1f4b29e0e376136957ab85f9d058e1cdeabb2716d0a3aa177f84b1515a902bdc79b4237b8a9ee2a86734520cd85ea34f83cabba1fa801cf4f87b7a67c2
@@ -115,7 +115,25 @@ def resign_apk(app_path)
115
115
  end
116
116
 
117
117
  def unsign_apk(path)
118
- files_to_remove = `"#{Env.tools_dir}/aapt" list "#{path}"`.lines.collect(&:strip).grep(/^META-INF\//)
118
+ meta_files = `"#{Env.tools_dir}/aapt" list "#{path}"`.lines.collect(&:strip).grep(/^META-INF\//)
119
+
120
+ signing_file_names = ['.mf', '.rsa', '.dsa', '.ec', '.sf']
121
+
122
+ files_to_remove = meta_files.select do |file|
123
+ # other will be:
124
+ # META-INF/foo/bar
125
+ # other #=> bar
126
+ directory, file_name, other = file.split('/')
127
+
128
+ if other != nil || file_name.nil?
129
+ false
130
+ else
131
+ if signing_file_names.include?(File.extname(file_name).downcase)
132
+ true
133
+ end
134
+ end
135
+ end
136
+
119
137
  if files_to_remove.empty?
120
138
  log "App wasn't signed. Will not try to unsign it."
121
139
  else
@@ -9,6 +9,8 @@ module Calabash
9
9
  if result['outcome'] != 'SUCCESS'
10
10
  raise "Failed to perform gesture. #{result['reason']}"
11
11
  end
12
+
13
+ nil
12
14
  end
13
15
 
14
16
  def tap(mark, *args)
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.5.12"
3
+ VERSION = "0.5.13.pre1"
4
4
  end
5
5
  end
@@ -15,10 +15,27 @@
15
15
  android:stateNotNeeded="true"
16
16
  android:noHistory="false"
17
17
  android:excludeFromRecents="true"/>
18
+ <activity
19
+ android:name="sh.calaba.instrumentationbackend.StatusReporterActivity"
20
+ android:label="StatusReporterActivity"
21
+ android:exported="true"
22
+ android:finishOnTaskLaunch="true"
23
+ android:stateNotNeeded="true"
24
+ android:noHistory="true"
25
+ android:excludeFromRecents="true"/>
26
+ <activity
27
+ android:name="sh.calaba.instrumentationbackend.ResumeTaskActivity"
28
+ android:label="ResumeTaskActivity"
29
+ android:exported="true"
30
+ android:finishOnTaskLaunch="true"
31
+ android:stateNotNeeded="true"
32
+ android:noHistory="true"
33
+ android:excludeFromRecents="true"/>
18
34
  </application>
19
35
  <uses-sdk android:minSdkVersion="4" />
20
36
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner" />
21
37
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData" />
38
+ <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearAppData2" />
22
39
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.ClearPreferences" />
23
40
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.SetPreferences" />
24
41
  <instrumentation android:targetPackage="#targetPackage#" android:name="sh.calaba.instrumentationbackend.GetPreferences" />
@@ -28,5 +45,7 @@
28
45
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
29
46
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
30
47
  <uses-permission android:name="android.permission.INTERNET" />
48
+ <uses-permission android:name="android.permission.GET_TASKS" />
49
+ <uses-permission android:name="android.permission.REORDER_TASKS" />
31
50
 
32
51
  </manifest>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.13.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -265,9 +265,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  requirements:
268
- - - '>='
268
+ - - '>'
269
269
  - !ruby/object:Gem::Version
270
- version: '0'
270
+ version: 1.3.1
271
271
  requirements: []
272
272
  rubyforge_project:
273
273
  rubygems_version: 2.0.2