calabash-android 0.2.0.pre2 → 0.2.0.pre3

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.
@@ -1,3 +1,7 @@
1
+ 0.2.0.pre3:
2
+ Reintroduced lib/calabash-android/management/app_installation.rb
3
+ to stay backwards compatible with generated skeletons.
4
+
1
5
  0.2.0.pre2:
2
6
  A HTTP server has been introduced in the test server so that we no
3
7
  longer use socket for communication.
@@ -22,10 +22,10 @@ def print_usage
22
22
  application.
23
23
  Will ask you some questions about you application, development
24
24
  environment and key store to user for signing.
25
- build
25
+ build <apk>
26
26
  builds the test server that will be used when testing the app.
27
27
  You need to run this command every time you make changes to the app.
28
- run
28
+ run <apk>
29
29
  runs Cucumber in the current folder with the enviroment needed.
30
30
  submit
31
31
  submits an apk along with your features to www.lesspainful.com
@@ -0,0 +1 @@
1
+ #Will be deleted. Only here because skeletons might refer to it.
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.2.0.pre2"
4
- FRAMEWORK_VERSION = "0.2.0.pre2"
3
+ VERSION = "0.2.0.pre3"
4
+ FRAMEWORK_VERSION = "0.2.0.pre3"
5
5
  end
6
6
  end
@@ -4,19 +4,13 @@ package sh.calaba.instrumentationbackend.actions.scrolling;
4
4
  import sh.calaba.instrumentationbackend.InstrumentationBackend;
5
5
  import sh.calaba.instrumentationbackend.Result;
6
6
  import sh.calaba.instrumentationbackend.actions.Action;
7
- import sh.calaba.instrumentationbackend.actions.Actions;
8
- import android.test.TouchUtils;
9
7
 
10
8
 
11
9
  public class ScrollDown implements Action {
12
10
 
13
11
  @Override
14
12
  public Result execute(String... args) {
15
- TouchUtils.dragQuarterScreenUp(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
16
- TouchUtils.dragQuarterScreenUp(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
17
- TouchUtils.dragQuarterScreenUp(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
18
- TouchUtils.dragQuarterScreenUp(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
19
-
13
+ InstrumentationBackend.solo.scrollDown();
20
14
  return Result.successResult();
21
15
  }
22
16
 
@@ -4,19 +4,13 @@ package sh.calaba.instrumentationbackend.actions.scrolling;
4
4
  import sh.calaba.instrumentationbackend.InstrumentationBackend;
5
5
  import sh.calaba.instrumentationbackend.Result;
6
6
  import sh.calaba.instrumentationbackend.actions.Action;
7
- import sh.calaba.instrumentationbackend.actions.Actions;
8
- import android.test.TouchUtils;
9
7
 
10
8
 
11
9
  public class ScrollUp implements Action {
12
10
 
13
11
  @Override
14
12
  public Result execute(String... args) {
15
- TouchUtils.dragQuarterScreenDown(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
16
- TouchUtils.dragQuarterScreenDown(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
17
- TouchUtils.dragQuarterScreenDown(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
18
- TouchUtils.dragQuarterScreenDown(Actions.parentTestCase, InstrumentationBackend.solo.getCurrentActivity());
19
-
13
+ InstrumentationBackend.solo.scrollUp();
20
14
  return Result.successResult();
21
15
  }
22
16
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3048859453
4
+ hash: 2063487833
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - pre
11
- - 2
12
- version: 0.2.0.pre2
11
+ - 3
12
+ version: 0.2.0.pre3
13
13
  platform: ruby
14
14
  authors:
15
15
  - Jonas Maturana Larsen
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-07-23 00:00:00 +02:00
20
+ date: 2012-07-30 00:00:00 +02:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -105,6 +105,7 @@ files:
105
105
  - lib/calabash-android/lib/AXMLPrinter2.jar
106
106
  - lib/calabash-android/lib/screenShotTaker.jar
107
107
  - lib/calabash-android/management/adb.rb
108
+ - lib/calabash-android/management/app_installation.rb
108
109
  - lib/calabash-android/operations.rb
109
110
  - lib/calabash-android/steps/additions_manual_steps.rb
110
111
  - lib/calabash-android/steps/app_steps.rb