calabash-android 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,8 @@
1
- 0.2.0
1
+ 0.2.1:
2
+ Path to custom keystores can now be relative.
3
+ Setup only deals with custom keystores.
4
+
5
+ 0.2.0:
2
6
  No changes from 0.2.0.pre10.
3
7
 
4
8
  0.2.0.pre10:
@@ -19,9 +19,9 @@ def calabash_build(app)
19
19
  "package",
20
20
  "-Dtested.package_name=#{package_name(app)}",
21
21
  "-Dtested.main_activity=#{main_activity(app)}",
22
- "-Dtested.project.apk=#{app}",
22
+ "-Dtested.project.apk='#{app}'",
23
23
  "-Dandroid.api.level=#{api_level}",
24
- "-Dkey.store=#{keystore["keystore_location"]}",
24
+ "-Dkey.store='#{File.expand_path keystore["keystore_location"]}'",
25
25
  "-Dkey.store.password=#{keystore["keystore_password"]}",
26
26
  "-Dkey.alias=#{keystore["keystore_alias"]}",
27
27
  "-Dkey.alias.password=#{keystore["keystore_alias_password"]}",
@@ -18,13 +18,9 @@ def print_usage
18
18
  gen
19
19
  generate a features folder structure.
20
20
  setup
21
- sets up the current folder to run calabash against your
22
- application.
23
- Will ask you some questions about you application, development
24
- environment and key store to user for signing.
21
+ sets up a non-default keystore to use with this test project.
25
22
  build <apk>
26
23
  builds the test server that will be used when testing the app.
27
- You need to run this command every time you make changes to the app.
28
24
  run <apk>
29
25
  runs Cucumber in the current folder with the enviroment needed.
30
26
  submit
@@ -46,18 +42,3 @@ end
46
42
  def is_json?(str)
47
43
  str[0..0] == '{'
48
44
  end
49
-
50
- def run_setup_if_settings_does_not_exist
51
- unless File.exists?(".calabash_settings")
52
- puts "Could not find .calabash_settings."
53
- puts "Should I run calabash-android setup for you?"
54
- puts "Please answer yes (y) or no (n)"
55
- if ['yes', 'y'].include? STDIN.gets.chomp
56
- calabash_setup
57
- else
58
- puts "Please run: calabash-android setup"
59
- exit 1
60
- end
61
- end
62
- end
63
-
@@ -7,33 +7,13 @@ def calabash_setup
7
7
  end
8
8
  @settings = {}
9
9
 
10
- puts "To use Calabash-Android we need a bit of information about the app you want to test"
11
- puts "When you are through this setup your settings will be saved to .calabash_settings. You can edit this file if you have the need."
12
- ask_for_setting(:package_name, "What is the package name of the app? You can find the package name in AndroidManifest.xml")
13
-
14
- ask_for_setting(:activity_name, "What is the fully qualified name of the main activity?")
15
- ask_for_setting(:app_path, "What is the path to the app?")
16
- puts "Which api level do you want to use?"
17
- puts "It looks like you have the following versions installed:"
18
- ask_for_setting(:api_level, platform_versions.join(", "))
19
-
20
- @settings[:keystore_location] = "#{ENV["HOME"]}/.android/debug.keystore"
21
- @settings[:keystore_password] = "android"
22
- @settings[:keystore_alias] = "androiddebugkey"
23
- @settings[:keystore_alias_password] = "android"
24
-
25
- puts "Do you want to specify a keystore for signing the test app?"
26
- puts "If not we will be using #{@settings[:keystore_location]}"
27
- puts "Please answer yes (y) or no (n)"
28
-
29
- if ['yes', 'y'].include? STDIN.gets.chomp
30
- ask_for_setting(:keystore_location, "Please enter keystore location")
31
- ask_for_setting(:keystore_password, "Please enter the password for the keystore")
32
- ask_for_setting(:keystore_alias, "Please enter the alias")
33
- ask_for_setting(:keystore_alias_password, "Please enter the password for the alias")
34
- end
35
-
36
-
10
+ puts "Please enter keystore information to use a custom keystore instead of the default"
11
+
12
+ ask_for_setting(:keystore_location, "Please enter keystore location")
13
+ ask_for_setting(:keystore_password, "Please enter the password for the keystore")
14
+ ask_for_setting(:keystore_alias, "Please enter the alias")
15
+ ask_for_setting(:keystore_alias_password, "Please enter the password for the alias")
16
+
37
17
  open('.calabash_settings', 'w') do |f|
38
18
  f.puts @settings.to_json
39
19
  end
@@ -12,14 +12,10 @@ Usage: calabash-android <command-name> [parameters] [options]
12
12
  setting up calabash to ensure that the features folder contains
13
13
  the right step definitions and environment to run with cucumber.
14
14
 
15
- setup sets up the current folder to run calabash against your
16
- application.
17
- Will ask you some questions about you application, development
18
- environment and key store to user for signing.
15
+ setup sets up a non-default keystore to use with this test project.
19
16
 
20
17
  build builds the test server that will be used when testing the app.
21
- You need to run this command every time you make changes to the app.
22
-
18
+
23
19
  run runs Cucumber in the current folder with the enviroment needed.
24
20
 
25
21
  submit submits an apk along with your features to www.lesspainful.com
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.2.0"
4
- FRAMEWORK_VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
+ FRAMEWORK_VERSION = "0.2.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonas Maturana Larsen