Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prevostc/ion-catan
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0
Choose a base ref
...
head repository: prevostc/ion-catan
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jan 10, 2015

  1. Copy the full SHA
    e769eac View commit details
  2. Copy the full SHA
    63deff4 View commit details
  3. Copy the full SHA
    9e09a5c View commit details
  4. add hexagon type hierarchy

    prevostc committed Jan 10, 2015
    Copy the full SHA
    5678b68 View commit details
  5. Copy the full SHA
    cbf4a4f View commit details
  6. Copy the full SHA
    5dcecf5 View commit details
  7. Copy the full SHA
    6b96cdb View commit details
  8. Copy the full SHA
    2612d54 View commit details
  9. Android exception

    prevostc committed Jan 10, 2015
    Copy the full SHA
    227fcaa View commit details
  10. removed console.log

    prevostc committed Jan 10, 2015
    Copy the full SHA
    7c72680 View commit details
  11. fixed jshint warnings

    prevostc committed Jan 10, 2015
    Copy the full SHA
    474d642 View commit details
  12. Copy the full SHA
    8f80bc6 View commit details
  13. prepare to release 1.0.0

    prevostc committed Jan 10, 2015
    Copy the full SHA
    990167d View commit details

Commits on Jan 11, 2015

  1. Update sources version

    prevostc committed Jan 11, 2015
    Copy the full SHA
    9e9e5f4 View commit details
  2. Updated app name

    prevostc committed Jan 11, 2015
    Copy the full SHA
    201f9b9 View commit details
  3. Copy the full SHA
    49982c1 View commit details
  4. Copy the full SHA
    278a524 View commit details
  5. Copy the full SHA
    7686cf9 View commit details
  6. Copy the full SHA
    4275e66 View commit details

Commits on Jan 12, 2015

  1. integrate pixi ui framework

    prevostc committed Jan 12, 2015
    Copy the full SHA
    048e229 View commit details

Commits on Jan 14, 2015

  1. New UI system

    prevostc committed Jan 14, 2015
    Copy the full SHA
    24afcd6 View commit details

Commits on Jan 18, 2015

  1. Copy the full SHA
    4252cb8 View commit details

Commits on Jan 22, 2015

  1. Copy the full SHA
    9b96882 View commit details
  2. optimise for small screens

    prevostc committed Jan 22, 2015
    Copy the full SHA
    b45261f View commit details
  3. Copy the full SHA
    677389c View commit details
  4. Copy the full SHA
    93bd792 View commit details
  5. Copy the full SHA
    8d5fb21 View commit details

Commits on Mar 2, 2015

  1. Added favorites tab

    prevostc committed Mar 2, 2015
    Copy the full SHA
    4566ac1 View commit details
  2. Copy the full SHA
    058d87e View commit details
  3. fix high def ui states

    prevostc committed Mar 2, 2015
    Copy the full SHA
    1434cdb View commit details
  4. fix header button

    prevostc committed Mar 2, 2015
    Copy the full SHA
    fdf5288 View commit details
  5. version upgrade: favorites

    prevostc committed Mar 2, 2015
    Copy the full SHA
    d7585b2 View commit details
  6. Copy the full SHA
    7ba7e9b View commit details

Commits on Mar 4, 2015

  1. Copy the full SHA
    0258208 View commit details
  2. Copy the full SHA
    64f6bcc View commit details
  3. V1.1.1

    prevostc committed Mar 4, 2015
    Copy the full SHA
    2c38de6 View commit details
  4. Copy the full SHA
    69b5f9c View commit details

Commits on Mar 6, 2015

  1. Copy the full SHA
    027b721 View commit details
  2. bottom tabs everywhere

    prevostc committed Mar 6, 2015
    Copy the full SHA
    a9f7392 View commit details
  3. add a home screen tutorial

    prevostc committed Mar 6, 2015
    Copy the full SHA
    1e6079a View commit details

Commits on Mar 7, 2015

  1. minify everything

    prevostc committed Mar 7, 2015
    Copy the full SHA
    32051fb View commit details
  2. minify everything

    prevostc committed Mar 7, 2015
    Copy the full SHA
    a0e9a45 View commit details
  3. Copy the full SHA
    cc63f8d View commit details
  4. remove commited libs

    prevostc committed Mar 7, 2015
    Copy the full SHA
    ddcdf58 View commit details
  5. add build system

    prevostc committed Mar 7, 2015
    Copy the full SHA
    a8262ee View commit details
  6. Copy the full SHA
    d098258 View commit details
  7. smoother favorites screen

    prevostc committed Mar 7, 2015
    Copy the full SHA
    2654768 View commit details
  8. concatenate html templates

    prevostc committed Mar 7, 2015
    Copy the full SHA
    9ebba5b View commit details
  9. Copy the full SHA
    3ee5c1f View commit details
  10. remove favorite from map

    prevostc committed Mar 7, 2015
    Copy the full SHA
    314ecff View commit details
Showing with 2,174 additions and 130,288 deletions.
  1. +11 −0 .gitignore
  2. +26 −0 README.md
  3. +13 −5 bower.json
  4. +53 −17 config.xml
  5. +14 −0 features/generate.feature
  6. +15 −0 features/helpers/appium-servers.js
  7. +7 −0 features/helpers/apps.js
  8. +46 −0 features/helpers/capabilities.js
  9. +18 −0 features/helpers/logging.js
  10. +13 −0 features/helpers/setup.js
  11. +32 −0 features/step_definition/global.js
  12. +31 −0 features/step_definition/ionic.js
  13. +103 −0 features/support/world.js
  14. +13 −0 features/tabs.feature
  15. +134 −35 gulpfile.js
  16. 0 hooks/README.md
  17. +28 −0 hooks/after_prepare/020_remove_sass_from_platforms.js
  18. +34 −0 hooks/after_prepare/025_remove_non_dist_from_platforms.js
  19. +23 −0 hooks/before_platform_add/init_directories.js
  20. +72 −0 hooks/before_prepare/02_jshint.js
  21. +9 −0 hooks/before_prepare/15_run_gulp_build_tasks.js
  22. BIN icon.png
  23. BIN icons.xcf
  24. +6 −3 ionic.project
  25. +32 −9 package.json
  26. BIN resources/android/icon/drawable-hdpi-icon.png
  27. BIN resources/android/icon/drawable-ldpi-icon.png
  28. BIN resources/android/icon/drawable-mdpi-icon.png
  29. BIN resources/android/icon/drawable-xhdpi-icon.png
  30. BIN resources/android/icon/drawable-xxhdpi-icon.png
  31. BIN resources/android/icon/drawable-xxxhdpi-icon.png
  32. BIN resources/android/splash/drawable-port-hdpi-screen.png
  33. BIN resources/android/splash/drawable-port-ldpi-screen.png
  34. BIN resources/android/splash/drawable-port-mdpi-screen.png
  35. BIN resources/android/splash/drawable-port-xhdpi-screen.png
  36. BIN resources/icon.png
  37. BIN resources/ios/icon/icon-40.png
  38. BIN resources/ios/icon/icon-50.png
  39. BIN resources/ios/icon/icon-60.png
  40. BIN resources/ios/icon/icon-72.png
  41. BIN resources/ios/icon/icon-76.png
  42. BIN resources/ios/icon/icon-small.png
  43. BIN resources/ios/icon/icon.png
  44. BIN resources/ios/splash/Default-568h@2x~iphone.png
  45. BIN resources/ios/splash/Default-667h.png
  46. BIN resources/ios/splash/Default-Portrait~ipad.png
  47. BIN resources/ios/splash/Default@2x~iphone.png
  48. BIN resources/ios/splash/Default~iphone.png
  49. BIN resources/splash.png
  50. +39 −0 www/css/style.css
  51. BIN www/img/desert.png
  52. BIN www/img/empty.png
  53. BIN www/img/field.png
  54. BIN www/img/forest.png
  55. BIN www/img/hills.png
  56. BIN www/img/mountain.png
  57. BIN www/img/number.png
  58. BIN www/img/ocean.png
  59. BIN www/img/pasture.png
  60. +9 −25 www/index.html
  61. +87 −54 www/js/app.js
  62. +10 −1 www/js/catan/js/Position.js
  63. +1 −25 www/js/catan/js/catan.js
  64. +111 −0 www/js/catan/js/generator/generator.harbor.js
  65. +31 −0 www/js/catan/js/generator/generator.js
  66. +92 −0 www/js/catan/js/generator/generator.land.js
  67. +173 −0 www/js/catan/js/generator/generator.number.js
  68. +69 −7 www/js/catan/js/hexagon.js
  69. +73 −349 www/js/catan/js/map.js
  70. +12 −5 www/js/catan/js/tools.js
  71. +187 −17 www/js/catan/js/ui.js
  72. +228 −28 www/js/controllers.js
  73. +223 −11 www/js/services.js
  74. +0 −19 www/lib/angular-animate/.bower.json
  75. +0 −77 www/lib/angular-animate/README.md
  76. +0 −2,137 www/lib/angular-animate/angular-animate.js
  77. +0 −33 www/lib/angular-animate/angular-animate.min.js
  78. +0 −8 www/lib/angular-animate/angular-animate.min.js.map
  79. +0 −9 www/lib/angular-animate/bower.json
  80. +0 −26 www/lib/angular-animate/package.json
  81. +0 −41 www/lib/angular-local-storage/.bower.json
  82. +0 −3 www/lib/angular-local-storage/.bowerrc
  83. +0 −1 www/lib/angular-local-storage/.gitattributes
  84. +0 −8 www/lib/angular-local-storage/.gitignore
  85. +0 −9 www/lib/angular-local-storage/.travis.yml
  86. +0 −8 www/lib/angular-local-storage/CHANGELOG.md
  87. +0 −8 www/lib/angular-local-storage/LICENSE
  88. +0 −357 www/lib/angular-local-storage/README.md
  89. +0 −31 www/lib/angular-local-storage/bower.json
  90. +0 −27 www/lib/angular-local-storage/demo/demo-app.js
  91. +0 −15 www/lib/angular-local-storage/demo/demo-style.css
  92. +0 −154 www/lib/angular-local-storage/demo/demo.html
  93. +0 −455 www/lib/angular-local-storage/dist/angular-local-storage.js
  94. +0 −7 www/lib/angular-local-storage/dist/angular-local-storage.min.js
  95. +0 −38 www/lib/angular-local-storage/package.json
  96. +0 −19 www/lib/angular-sanitize/.bower.json
  97. +0 −77 www/lib/angular-sanitize/README.md
  98. +0 −680 www/lib/angular-sanitize/angular-sanitize.js
  99. +0 −16 www/lib/angular-sanitize/angular-sanitize.min.js
  100. +0 −8 www/lib/angular-sanitize/angular-sanitize.min.js.map
  101. +0 −9 www/lib/angular-sanitize/bower.json
  102. +0 −26 www/lib/angular-sanitize/package.json
  103. +0 −33 www/lib/angular-ui-router/.bower.json
  104. +0 −197 www/lib/angular-ui-router/CHANGELOG.md
  105. +0 −65 www/lib/angular-ui-router/CONTRIBUTING.md
  106. +0 −21 www/lib/angular-ui-router/LICENSE
  107. +0 −243 www/lib/angular-ui-router/README.md
  108. +0 −126 www/lib/angular-ui-router/api/angular-ui-router.d.ts
  109. +0 −23 www/lib/angular-ui-router/bower.json
  110. +0 −4,232 www/lib/angular-ui-router/release/angular-ui-router.js
  111. +0 −7 www/lib/angular-ui-router/release/angular-ui-router.min.js
  112. +0 −292 www/lib/angular-ui-router/src/common.js
  113. +0 −252 www/lib/angular-ui-router/src/resolve.js
  114. +0 −1,373 www/lib/angular-ui-router/src/state.js
  115. +0 −268 www/lib/angular-ui-router/src/stateDirectives.js
  116. +0 −39 www/lib/angular-ui-router/src/stateFilters.js
  117. +0 −110 www/lib/angular-ui-router/src/templateFactory.js
  118. +0 −1,036 www/lib/angular-ui-router/src/urlMatcherFactory.js
  119. +0 −413 www/lib/angular-ui-router/src/urlRouter.js
  120. +0 −71 www/lib/angular-ui-router/src/view.js
  121. +0 −302 www/lib/angular-ui-router/src/viewDirective.js
  122. +0 −52 www/lib/angular-ui-router/src/viewScroll.js
  123. +0 −17 www/lib/angular/.bower.json
  124. +0 −67 www/lib/angular/README.md
  125. +0 −13 www/lib/angular/angular-csp.css
  126. +0 −26,000 www/lib/angular/angular.js
  127. +0 −250 www/lib/angular/angular.min.js
  128. BIN www/lib/angular/angular.min.js.gzip
  129. +0 −8 www/lib/angular/angular.min.js.map
  130. +0 −8 www/lib/angular/bower.json
  131. +0 −25 www/lib/angular/package.json
  132. +0 −46 www/lib/ionic/.bower.json
  133. +0 −15 www/lib/ionic/README.md
  134. +0 −37 www/lib/ionic/bower.json
  135. +0 −7,013 www/lib/ionic/css/ionic.css
  136. +0 −18 www/lib/ionic/css/ionic.min.css
  137. BIN www/lib/ionic/fonts/ionicons.eot
  138. +0 −1,899 www/lib/ionic/fonts/ionicons.svg
  139. BIN www/lib/ionic/fonts/ionicons.ttf
  140. BIN www/lib/ionic/fonts/ionicons.woff
  141. +0 −11,483 www/lib/ionic/js/ionic-angular.js
  142. +0 −18 www/lib/ionic/js/ionic-angular.min.js
  143. +0 −52,387 www/lib/ionic/js/ionic.bundle.js
  144. +0 −386 www/lib/ionic/js/ionic.bundle.min.js
  145. +0 −7,811 www/lib/ionic/js/ionic.js
  146. +0 −17 www/lib/ionic/js/ionic.min.js
  147. +0 −92 www/lib/ionic/scss/_action-sheet.scss
  148. +0 −48 www/lib/ionic/scss/_animations.scss
  149. +0 −24 www/lib/ionic/scss/_backdrop.scss
  150. +0 −62 www/lib/ionic/scss/_badge.scss
  151. +0 −373 www/lib/ionic/scss/_bar.scss
  152. +0 −54 www/lib/ionic/scss/_button-bar.scss
  153. +0 −252 www/lib/ionic/scss/_button.scss
  154. +0 −176 www/lib/ionic/scss/_checkbox.scss
  155. +0 −310 www/lib/ionic/scss/_form.scss
  156. +0 −143 www/lib/ionic/scss/_grid.scss
  157. +0 −821 www/lib/ionic/scss/_items.scss
  158. +0 −125 www/lib/ionic/scss/_list.scss
  159. +0 −50 www/lib/ionic/scss/_loading.scss
  160. +0 −64 www/lib/ionic/scss/_menu.scss
  161. +0 −624 www/lib/ionic/scss/_mixins.scss
  162. +0 −94 www/lib/ionic/scss/_modal.scss
  163. +0 −59 www/lib/ionic/scss/_platform.scss
  164. +0 −168 www/lib/ionic/scss/_popover.scss
  165. +0 −105 www/lib/ionic/scss/_popup.scss
  166. +0 −11 www/lib/ionic/scss/_progress.scss
  167. +0 −57 www/lib/ionic/scss/_radio.scss
  168. +0 −122 www/lib/ionic/scss/_range.scss
  169. +0 −365 www/lib/ionic/scss/_reset.scss
  170. +0 −365 www/lib/ionic/scss/_scaffolding.scss
  171. +0 −141 www/lib/ionic/scss/_select.scss
  172. +0 −56 www/lib/ionic/scss/_slide-box.scss
  173. +0 −29 www/lib/ionic/scss/_split-pane.scss
  174. +0 −494 www/lib/ionic/scss/_tabs.scss
  175. +0 −138 www/lib/ionic/scss/_toggle.scss
  176. +0 −163 www/lib/ionic/scss/_transitions.scss
  177. +0 −163 www/lib/ionic/scss/_type.scss
  178. +0 −250 www/lib/ionic/scss/_util.scss
  179. +0 −722 www/lib/ionic/scss/_variables.scss
  180. +0 −51 www/lib/ionic/scss/ionic.scss
  181. +0 −77 www/lib/ionic/scss/ionicons/_ionicons-animation.scss
  182. +0 −27 www/lib/ionic/scss/ionicons/_ionicons-font.scss
  183. +0 −1,209 www/lib/ionic/scss/ionicons/_ionicons-icons.scss
  184. +0 −609 www/lib/ionic/scss/ionicons/_ionicons-variables.scss
  185. +0 −11 www/lib/ionic/scss/ionicons/ionicons.scss
  186. +9 −0 www/templates/tab-favorites-view.html
  187. +30 −0 www/templates/tab-favorites.html
  188. +21 −3 www/templates/tab-map.html
  189. +23 −1 www/templates/tab-settings.html
  190. +13 −10 www/templates/tabs.html
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -3,5 +3,16 @@

node_modules/
platforms/
platforms.bck/
plugins/
.idea
*.key
*.keystore
*.apk
icon*x*.png
build_release.sh

www/lib/*
www/fonts/*
www/dist/*
.io-config.json
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

## Catan: Simple Map Generator

This app is a lightweight generator for the Catan board game.

Features:
- Ad free
- Map generation
- Frictionless User Interface
- Various generation options
- Open source

## License

Icon build thanks to ryanschenk's work: https://www.flickr.com/photos/ryanschenk/sets/72157625243997903/detail/
Thus, icon is under Creative Common license: https://creativecommons.org/licenses/by-nc-sa/2.0/deed.en

The application sources (located in www/css, www/js, www/templates and index.html) are under the I Don't Care License: http://dev.bukkit.org/licenses/1257-i-dont-care-license/




TESTS
-----
./node_modules/.bin/appium --command-timeout 7
./node_modules/.bin/cucumber-js
18 changes: 13 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
{
"name": "myApp",
"name": "SettlersEasyMap",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.0.0-beta.14"
},
"dependencies": {
"angular-local-storage": "~0.1.5"
"ionic": "driftyco/ionic-bower#1.0.0-rc.0",
"angular-local-storage": "~0.1.5",
"pixi": "~2.2.3",
"Faker": "~2.1.2",
"ionic-platform-web-client": "^0.2.1"
},
"overrides": {
"ionic-platform-web-client": {
"main": [
"./dist/ionic.io.bundle.min.js"
]
}
}
}
70 changes: 53 additions & 17 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,58 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.myapp587762" version="0.0.1" xmlns="http://www.w3.org/ns/widgets"
xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Catan Buddy</name>
<description>
The catan bro to help you generate a map
<widget id="com.prevostc.settlerseasymap" version="1.2.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Settlers: Easy Map</name>
<description>
Generate maps for The Settlers of Catan Board game
</description>
<author email="prevostclement@gmail.com" href="https://github.com/prevostc">
<author email="prevostclement@gmail.com" href="https://github.com/prevostc">
Clément Prévost
</author>
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="orientation" value="portrait"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<icon src="icon.png" />
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="orientation" value="portrait"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
<platform name="android">
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
</platform>
<platform name="ios">
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
<icon src="resources/ios/icon/icon@2x.png" width="114" height="114"/>
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
<icon src="resources/ios/icon/icon-40@2x.png" width="80" height="80"/>
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
<icon src="resources/ios/icon/icon-50@2x.png" width="100" height="100"/>
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
<icon src="resources/ios/icon/icon-60@2x.png" width="120" height="120"/>
<icon src="resources/ios/icon/icon-60@3x.png" width="180" height="180"/>
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
<icon src="resources/ios/icon/icon-72@2x.png" width="144" height="144"/>
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
<icon src="resources/ios/icon/icon-76@2x.png" width="152" height="152"/>
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
<icon src="resources/ios/icon/icon-small@2x.png" width="58" height="58"/>
<icon src="resources/ios/icon/icon-small@3x.png" width="87" height="87"/>
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" height="1136"/>
<splash src="resources/ios/splash/Default-667h.png" width="750" height="1334"/>
<splash src="resources/ios/splash/Default-Portrait~ipad.png" width="768" height="1024"/>
<splash src="resources/ios/splash/Default@2x~iphone.png" width="640" height="960"/>
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480"/>
</platform>
</widget>
14 changes: 14 additions & 0 deletions features/generate.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Feature: Generate button
Test if the generate button is present and is working as expected

Scenario: App is loaded
Given I load the app
Then I should see "Map Generator" as the page title
Then I should see "Generate" in "button.ion-shuffle"

Scenario: Generate button present
Given I load the app
Then I should see "Map Generator" as the page title
Then I click on "button.ion-shuffle"
Then I should not see "Map Generator" as the page title

15 changes: 15 additions & 0 deletions features/helpers/appium-servers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*jslint node: true */

'use strict';

exports.local = {
host: 'localhost',
port: 4723
};

exports.sauce = {
host: 'ondemand.saucelabs.com',
port: 80,
username: process.env.SAUCE_USERNAME,
password: process.env.SAUCE_ACCESS_KEY
};
7 changes: 7 additions & 0 deletions features/helpers/apps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*jslint node: true */

'use strict';

// paths relative to appium executable directory + '/../../'
exports.android = "platforms/android/ant-build/CordovaApp-debug.apk";
exports.ios = 'platforms/ios/build/emulator/Settlers:\ Easy\ Map.app';
46 changes: 46 additions & 0 deletions features/helpers/capabilities.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*jslint node: true */

'use strict';

exports.ios = {
browserName: '',
'appium-version': '1.1',
platformName: 'iOS',
platformVersion: '8.2',
deviceName: 'iPhone 4s',
app: undefined // will be set later
};

exports.android = {
browserName: '',
'appium-version': '1.1',
platformName: 'Android',
platformVersion: '4.4',
deviceName: 'Android Emulator',
automationName: 'selendroid',
deviceType: "phone",
androidUseRunningApp: false,
app: undefined, // will be set later
};

exports.android18 = {
browserName: '',
'appium-version': '1.1',
platformName: 'Android',
platformVersion: '4.3',
deviceName: 'Android Emulator',
automationName: 'selendroid',
deviceType: "phone",
androidUseRunningApp: false,
app: undefined // will be set later
};

exports.selendroid16 = {
browserName: '',
'appium-version': '1.1',
platformName: 'Android',
platformVersion: '4.1',
automationName: 'selendroid',
deviceName: 'Android Emulator',
app: undefined // will be set later
};
18 changes: 18 additions & 0 deletions features/helpers/logging.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*jslint node: true */

'use strict';

exports.configure = function (driver) {
// See whats going on
driver.on('status', function (info) {
console.log(info.cyan);
});

driver.on('command', function (meth, path, data) {
console.log('[command] > ' + meth.yellow, path.grey, data || '');
});

driver.on('http', function (meth, path, data) {
console.log('[http] > ' + meth.magenta, path, (data || '').grey);
});
};
13 changes: 13 additions & 0 deletions features/helpers/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var wd = require("wd");

//require('colors');

var chai = require("chai"),
chaiAsPromised = require("chai-as-promised");

chai.use(chaiAsPromised);

var should = chai.should();
chaiAsPromised.transferPromiseness = wd.transferPromiseness;

exports.should = should;
32 changes: 32 additions & 0 deletions features/step_definition/global.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// features/step_definitions/myStepDefinitions.js

var myStepDefinitionsWrapper = function () {
this.World = require("../support/world.js").World; // overwrite default World constructor

this.Given(/^I load the app$/, function (callback) {
// nothing to do here
callback();
});

this.Then(/^I should see "([^"]*)" in "([^"]*)"$/, function (arg1, arg2, callback) {
this.driver
.waitForElementByCss(arg2, 5000)
.should.eventually.exist
.waitForElementByCss(arg2, 5000)
.text().should.eventually.include(arg1)
.notify(callback)
;
});

this.Given(/^I click on "([^"]*)"$/, function (arg1, callback) {
this.driver
.waitForElementByCss(arg1, 5000)
.should.eventually.exist
.waitForElementByCss(arg1, 5000)
.click()
.should.notify(callback)
;
});
};

module.exports = myStepDefinitionsWrapper;
31 changes: 31 additions & 0 deletions features/step_definition/ionic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// features/step_definitions/myStepDefinitions.js

var myStepDefinitionsWrapper = function () {
this.World = require("../support/world.js").World; // overwrite default World constructor

this.Then(/^I should see "([^"]*)" as the page title$/, function (arg1, callback) {
this.driver
.waitForElementByCss('div[nav-bar=active] .title.title-center', 5000)
.text().should.eventually.include(arg1)
.notify(callback)
;
});

this.Then(/^I should not see "([^"]*)" as the page title$/, function (arg1, callback) {
this.driver
.waitForElementByCss('div[nav-bar=active] .title.title-center', 5000)
.text().should.eventually.not.include(arg1)
.notify(callback)
;
});

this.Then(/^I click on the "([^"]*)" tab$/, function (arg1, callback) {
this.driver
.waitForElementByCss('ion-tabs ' + arg1, 5000)
.click()
.should.notify(callback)
;
});
};

module.exports = myStepDefinitionsWrapper;
Loading