Skip to content

Commit c700d92

Browse files
committed
windows
1 parent 9d837d3 commit c700d92

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

docs/WINDOWS_GUIDE.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Kraken Mobile on Windows
2+
3+
## Prerequisites
4+
5+
- Ruby at least version 2.3.1
6+
- Java JDK
7+
- Android SDK
8+
- Git Bash (Run as administrator)
9+
- Chromedriver (Version ~83 recommended) or Geckodriver (Only if you use Kraken web)
10+
11+
You need to have configured ANDROID_HOME, ANDROID_HOME/platform_tools and JAVA_HOME in your environment variables in order to use ADB and JAVA.
12+
13+
## Installation
14+
15+
We recommend to use Bundler to manage your dependencies including kraken-mobile and calabash-android. To install Kraken follow these steps:
16+
17+
1. Install bundler
18+
19+
```bash
20+
gem install bundler
21+
```
22+
23+
2. Create directory where all test files are going to be saved
24+
25+
```bash
26+
mkdir test && cd ./test
27+
```
28+
29+
3. Inside your new directory create Gemfile where all your gems are going to be specified
30+
31+
```bash
32+
bundle init
33+
```
34+
35+
4. Change Gemfile content to have the required dependencies
36+
37+
```bash
38+
# Contents of Gemfile
39+
source "https://rubygems.org"
40+
41+
gem 'rubyzip', '1.2.1' # Required version for running calabas-android in Windows
42+
gem 'kraken-mobile'
43+
```
44+
45+
Windows has an issue with the latest rubyzip versions not letting sign your APK's. Look at calabash-android issue [#802](https://github.com/calabash/calabash-android/issues/802)
46+
47+
5. Install dependencies
48+
49+
```bash
50+
bundle install
51+
```
52+
53+
6. Generate Kraken skeleton directory
54+
55+
```bash
56+
bundle exec kraken-mobile gen
57+
```
58+
59+
7. Resign your APK
60+
61+
```bash
62+
bundle exec kraken-mobile resign <my_apk_path>
63+
```
64+
65+
8. Run Kraken
66+
67+
```bash
68+
bundle exec kraken-mobile run <my_apk_path>
69+
```
70+
71+
## Troubleshooting
72+
73+
### No signature files found in META-INF
74+
75+
If when running Kraken or resigning your application you see this error, then you need to make sure:
76+
77+
1. You have signed your APK with the following command.
78+
79+
```bash
80+
bundle exec kraken-mobile resign <my_apk_path>
81+
```
82+
83+
2. You have your keystore configured.
84+
85+
To configure your keystore calabash-android provides a nice guide to generate and configure your keystore path and calabash settings. To achieve this you will need to install calabash-android directly with the following command.
86+
87+
```bash
88+
gem install calabash-android
89+
```
90+
91+
Once calabash-android is installed follow this [guide.](https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android)

0 commit comments

Comments
 (0)