wiki/howto/onboarding.md
... ...
@@ -0,0 +1,187 @@
1
+# OnBoarding Information
2
+
3
+This document describes the onboarding process for a new team member (developer)
4
+
5
+First of all, make sure you've looked at http://www.amazon.de/Patterns-Elements-Reusable-Object-Oriented-Software/dp/0201633612. That's a great book, and knowing at least some of it will help you a great deal finding your way around our solution.
6
+
7
+### Race Analysis Development Setup
8
+
9
+#### Installations
10
+
11
+1. Eclipse (Eclipse IDE for Eclipse Committers, e.g. version 4.5.2 "Mars SR2"), http://www.eclipse.org
12
+2. Eclipse Extensions
13
+ * Install GWT Eclipse plugin for Eclipse (http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html)
14
+ * Install Eclipse debugger for GWT SuperDevMode (master version: http://p2.sapsailing.com/p2/sdbg; public release: http://sdbg.github.io/p2)
15
+3. Git (e.g. msysGit for Windows v2.9.2), http://git-scm.com
16
+4. MongoDB (e.g. Production Release 2.6.7), download: http://www.mongodb.org/
17
+5. RabbitMQ, download from http://www.rabbitmq.com/. Requires Erlang to be installed. RabbitMQ installer will assist in installing Erlang.
18
+6. JDK 1.7 (Java SE 7), http://jdk7.java.net
19
+7. JDK 1.8 (Java SE 8), http://jdk8.java.net
20
+8. Maven 3.1.1 (or higher), http://maven.apache.org
21
+9. GWT SDK 2.7.0 (http://www.gwtproject.org/download.html)
22
+10. Android Studio (https://developer.android.com/tools/studio/index.html) or IntelliJ IDEA (https://www.jetbrains.com/idea/download/)
23
+
24
+#### Automatic Eclipse plugin installation
25
+
26
+The necessary Eclipse plugins described above can be automatically be installed into a newly unzipped version of [Eclipse IDE for Eclipse Committers 4.5.2 "Mars SR2"](http://www.eclipse.org/downloads/packages/eclipse-ide-eclipse-committers-452/mars2) by using the script "configuration/installPluginsForEclipseMars.sh". In addition, the script applies some updates to plugins packaged with Eclipse itself. To start the plugin installation, run the following command using your Eclipse installation directory as command line parameter for the script:
27
+
28
+ ./installPluginsForEclipseMars.sh "/some/path/on/my/computer/eclipse"
29
+
30
+Be aware that with this script it's not possible to update the plugins to newer versions. Instead you can install a new version by unpacking the base package and executing the script.
31
+
32
+On Windows you need a Git Bash or Cygwin shell to run the script.
33
+
34
+On Mac OS, it's not sufficient to provide the path to the app, instead you need to get the path to the directory inside of the app package hosting the "eclipse" binary (.../Eclipse.app/Contents/MacOS).
35
+
36
+Be aware hat the installation may take several minutes depending on your Internet connection. When the script finished running, please check that no errors occurred (the installation process only logs errors but doesn't fail).
37
+
38
+__NOTE:__
39
+Beside the installation script for Eclipse Mars, there is also one for the new Eclipse Neon release (4.6.0). Due to a ECJ/JDT regression, this version will brake project functionality. If you've already installed Eclipse Neon, you can easily downgrade to Mars SR2, reusing your existing workspace. You just have to accept the warning you'll get during first startup and perform a workspace cleanup (`Project > Clean... > Clean all projects`). In rare cases, the target platform must be set again.
40
+
41
+#### Further optional but recommended installations
42
+
43
+1. Cygwin, http://www.cygwin.com/
44
+2. Eclipse Mylyn Bugzilla extension
45
+3. kdiff3 (git tool)
46
+4. Firebug (javascript & .css debugging)
47
+
48
+#### Accounts
49
+
50
+1. Git Account
51
+ * For access to the external git at ssh://trac@sapsailing.com/home/trac/git please send your SSH public key to Axel Uhl or Simon Marcel Pamies, requesting git access. Make sure to NOT generate the key using Putty. Putty keys don't work reliably under Linux and on Windows/Cygwin environments. Use ssh-keygen in a Cygwin or Linux or MacOS/X environment instead.
52
+ * Register yourself as a Git user in the SAP-Git under: https://git.wdf.sap.corp:8080/
53
+ * Ask the Git administrator (Axel Uhl) to get on the list of enabled committers
54
+2. Bugzilla
55
+ * Ask the Bugzilla administrator (Frank Mittag, Axel Uhl) to create a bugzilla account for you.
56
+ * Bugzilla url: http://bugzilla.sapsailing.com/bugzilla/
57
+3. Wiki
58
+ * Send a request to Axel Uhl or Simon Marcel Pamies that includes the SHA1 hash of your desired password. Obtain such an SHA1 hash for your password here: http://www.sha1-online.com/.
59
+4. Hudson
60
+ * Request a Hudson user by sending e-mail to Axel Uhl, Frank Mittag or Simon Marcel Pamies.
61
+
62
+#### Steps to build and run the Race Analysis Suite
63
+
64
+1. Get the content of the git repository
65
+ * Generate SSH Keys with "ssh-keygen -t rsa -C "" " command in Cygwin Terminal (Not with Putty!!!)
66
+ * Clone the repository to your local file system from `ssh://[SAP-User]@git.wdf.sap.corp:29418/SAPSail/sapsailingcapture.git` or `ssh://[user]@sapsailing.com/home/trac/git` User "trac" has all public ssh keys.
67
+2. Check out the 'master' branch from the git repository. The 'master' branch is the main development branch. Please check that you start your work on this branch.
68
+3. Setup and configure Eclipse
69
+ * Make absolutely sure to import CodeFormatter.xml (from $GIT_HOME/java) into your Eclipse preferences (Preferences->Java->Code Style->Fortmatter)
70
+ * Install the Eclipse GWT-Plugin (now called Google Plugin for Eclipse)
71
+ * Install the Google Android SDK from the same Google Plugin for Eclipse update site
72
+ * In Eclipse go to "Window->Preferences->Java->Build Path->Classpath Variables" and create a new classpath variable called ``ANDROID_HOME``. Set its value to the install location of your Android SDK, e.g., ``c:\apps\android-sdk-windows`` or ``/usr/local/android-sdk-linux``.
73
+ * Install GWT SDK and add the SDK in Eclipse (Preferences -> Google -> Web Toolkit -> Add...)
74
+ * Install Eclipse debugger for GWT SuperDevMode
75
+ * Install Eclipse eGit (optional)
76
+ * Check that JDK 1.8 is available and has been set for compilation in Eclipse
77
+ * Check that the both JDKs are available (Windows->Preferences->Java->Installed JREs)
78
+ * Check that JDK 1.7 has been matched to JavaSE-1.7 and that JDK 1.8 has been matched to JavaSE-1.8 (...>Installed JREs>Execution Environments)
79
+ * It is also possible to match the SAPJVM 7 or 8 to JavaSE-1.7 / JavaSE-1.8 (for profiling purposes)
80
+ * Go to Windows->Preferences->Google->Errors/Warnings and set "Missing SDK" to "Ignore"
81
+ * Import all Race Analysis projects from the `java/` subdirectory of the git main folder (make sure to import as a git project in eclipse)
82
+ * Import all projects from the `mobile/` subdirectory of the git main folder; this in particular contains the race committee app projects
83
+ * Set the Eclipse target platform to race-analysis-p2-remote.target (located in com.sap.sailing.targetplatform/definitions)
84
+ * Wait until the target platform has been resolved completely
85
+ * Rebuild all projects
86
+4. Run the Race Analysis Suite
87
+ * Start the MongoDB
88
+ * Start the appropriate Eclipse launch configuration (e.g. 'Sailing Server (Proxy)') You´ll find this in the debug dropdown
89
+ * Run "Security UI sdm" in the debug dropdown
90
+ * Run "SailingGWT" in the debug dropdown
91
+5. Import races within the Race Analysis Suite
92
+ * Choose "Security UI sdm" in the upper left corner of the "Development Mode" Tab in Eclipse and open "...Login.html" in your browser
93
+ * Default Login: user "admin", password "admin"
94
+ * Choose "Sailing GWT" in the "Development Mode" Tab and open "...AdminConsole.html..." (It is normal that the first try fails. Reload the page after the first try)
95
+ * For TracTrac Events: (Date 27.11.2012) Use Live URI tcp://10.18.22.156:4412, Stored URI tcp://10.18.22.156:4413, JSON URL http://germanmaster.traclive.dk/events/event_20120905_erEuropean/jsonservice.php
96
+ * Press List Races
97
+
98
+#### Maven Setup
99
+Copy the settings.xml from the top-level git folder to your ~/.m2 directory and adjust the proxy settings accordingly. Make sure the mvn executable you installed above is in your path. Open a shell (preferrably a git bash or a cygwin bash), cd to the git workspace's root folder and issue "./configuration/buildAndUpdateProduct.sh build". This should build the software and run all the tests. If you want to avoid the tests being executed, use the -t option. If you only want to build one GWT permutation (Chrome/English), use the -b option. When inside the SAP VPN, add the -p option for proxy use. Run the build script without arguments to get usage hints.
100
+
101
+#### Further hints
102
+- Configure Eclipse to use Chrome or Firefox as the default browser
103
+- Install the GWT Browser Plugin (Chrome or Firefox; as of this writing (2013-11-05), Firefox is the only platform where the plug-in runs stably) for the GWT Development mode
104
+
105
+#### Additional steps required for Android projects
106
+
107
+To ensure that all components of the Analysis Suite are working, you should also import all Android projects (mobile/) into your workspace. There are some additional requirements to enable the build process of these projects.
108
+
109
+1. Add the Android Development Tools (ADT) plugin to your Eclipse IDE
110
+ - In Eclipse click Help -> Install New Software -> Add and enter https://dl-ssl.google.com/android/eclipse/
111
+ - Select the Developer Tools and install
112
+ - After restarting Eclipse the "Welcome to Android Development" window should help you with installing the Android SDK
113
+ - It is also possible to download the Android SDK separately from http://developer.android.com/sdk/index.html ("Use an existing IDE")
114
+2. Setup the Android SDK
115
+ * In Eclipse press Window -> Android SDK Manager
116
+ * Ensure that everything of "Tools" is installed
117
+ * Install everything of "Android 3.2 API 13"
118
+ * Optional: it's a good idea to install the newest API Version
119
+ * Install "Android Support Library" (Extras), "Google Play Services" (Extras) and "Google USB Driver" (Extras)
120
+3. Import the Android projects into your workspace
121
+ * Android projects can be found in the /mobile subdirectory
122
+
123
+To deploy an Android project (for example com.sap.sailing.racecommittee.app) to a real device:
124
+
125
+1. Plug-in the device
126
+ * Development mode must be enabled on the device
127
+ * For certain device/OS combinations additional device drivers are needed
128
+ * You can check if the device is detected correctly by checking the "Devices" tab of the "DDMS" Eclipse perspective.
129
+2. Start a run configuration of the project
130
+3. Select your attached device in the device selection screen
131
+4. The app should be started after deployment
132
+
133
+#### Further hints
134
+
135
+If you are working with a linux-system and you get the error message `error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory` try to install lib32z1 and lib32stdc++6.
136
+
137
+####Steps to consider for using other modules
138
+1. For Eclipse Build
139
+ * MANIFEST.MF , add module names unter dependencies
140
+ * *.gwt.xml , add `<inherits name="-modulename-.-gwt.xml file name-" />`
141
+ * In DebugConfigurations => Classpaths, Add Sourcefolder where classes are you want to user from the module
142
+2. For Maven Build
143
+ * pom.xml , Add Dependency to used module ie.
144
+`<dependency>
145
+<groupId>com.sap.sailing</groupId>
146
+<artifactId>com.sap.sailing.domain.common</artifactId>
147
+<version>1.0.0-SNAPSHOT</version>
148
+<classifier>sources</classifier>
149
+</dependency>`
150
+
151
+#### Using Android Studio for Development
152
+
153
+The Android Apps can be built in Android Studio or gradle command line. Android Studio is built on top of IntelliJ IDEA, so it is possible to use IntelliJ IDEA as well.
154
+
155
+1. On the "Welcome Screen" choose "Import Project (Eclipse, ADT, Gradle, etc.)"
156
+2. Navigate to the project root folder and select the "build.gradle" file (all used modules are defined in "settings.gradle")
157
+ * it will download all necessary gradle runtime files
158
+ * you will see floating messages at the top right
159
+ * ignore "non-managed pom.xml file..."
160
+ * choose "add root" from "Unregistered VCS root detected" (you can add this later, if you missed it)
161
+3. Setup the Android SDK
162
+ * in Android Studio press Tools -> Android -> SDK Manager
163
+ * Install from section "Tools"
164
+ * Android SDK Tools
165
+ * Android SDK Platform-tools
166
+ * Android SDK Build-tools 22.0.1 (latest version at the time of writing)
167
+ * Install everything of "Android 5.1.1 (API 22)" (latest API at the time of writing)
168
+ * the "System Images" are optional and only needed for the emulators, which can't be fully used because of the missing Google Play Services (needed for location detection in the wind fragment)
169
+ * Install from section "Extras"
170
+ * Android Support Repository
171
+ * Google Repository
172
+ * Google USB Driver (only on Windows)
173
+4. To edit all (not only Android) modules, open the left window "1: Project" and switch the view from "Android" to "Project" (folder view)
174
+5. At the top is a drop down, where you can switch the mobile projects (com.sap.sailing.*) and start with buttons right to it
175
+ * Run (starts the app on a real device or emulator)
176
+ * Debug (starts the app with an attached debugger)
177
+ * Attach Debugger (useful, if the app is currently running and you want to start debugging against the correspond sources)
178
+
179
+If git is not in the Path system environment variable, the gradle build will not work.
180
+
181
+##### To enable missing git integration
182
+
183
+1. navigate to VCS -> Enable Version Control Integration
184
+2. choose git in the drop down
185
+3. if everything is correct, you'll see the current branch at the bottom line
186
+
187
+See [RaceCommittee App](racecommittee-app) for more information regarding the mobile app.
wiki/onboarding.md
... ...
@@ -1,187 +0,0 @@
1
-# OnBoarding Information
2
-
3
-This document describes the onboarding process for a new team member (developer)
4
-
5
-First of all, make sure you've looked at http://www.amazon.de/Patterns-Elements-Reusable-Object-Oriented-Software/dp/0201633612. That's a great book, and knowing at least some of it will help you a great deal finding your way around our solution.
6
-
7
-### Race Analysis Development Setup
8
-
9
-#### Installations
10
-
11
-1. Eclipse (Eclipse IDE for Eclipse Committers, e.g. version 4.5.2 "Mars SR2"), http://www.eclipse.org
12
-2. Eclipse Extensions
13
- * Install GWT Eclipse plugin for Eclipse (http://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html)
14
- * Install Eclipse debugger for GWT SuperDevMode (master version: http://p2.sapsailing.com/p2/sdbg; public release: http://sdbg.github.io/p2)
15
-3. Git (e.g. msysGit for Windows v2.9.2), http://git-scm.com
16
-4. MongoDB (e.g. Production Release 2.6.7), download: http://www.mongodb.org/
17
-5. RabbitMQ, download from http://www.rabbitmq.com/. Requires Erlang to be installed. RabbitMQ installer will assist in installing Erlang.
18
-6. JDK 1.7 (Java SE 7), http://jdk7.java.net
19
-7. JDK 1.8 (Java SE 8), http://jdk8.java.net
20
-8. Maven 3.1.1 (or higher), http://maven.apache.org
21
-9. GWT SDK 2.7.0 (http://www.gwtproject.org/download.html)
22
-10. Android Studio (https://developer.android.com/tools/studio/index.html) or IntelliJ IDEA (https://www.jetbrains.com/idea/download/)
23
-
24
-#### Automatic Eclipse plugin installation
25
-
26
-The necessary Eclipse plugins described above can be automatically be installed into a newly unzipped version of [Eclipse IDE for Eclipse Committers 4.5.2 "Mars SR2"](http://www.eclipse.org/downloads/packages/eclipse-ide-eclipse-committers-452/mars2) by using the script "configuration/installPluginsForEclipseMars.sh". In addition, the script applies some updates to plugins packaged with Eclipse itself. To start the plugin installation, run the following command using your Eclipse installation directory as command line parameter for the script:
27
-
28
- ./installPluginsForEclipseMars.sh "/some/path/on/my/computer/eclipse"
29
-
30
-Be aware that with this script it's not possible to update the plugins to newer versions. Instead you can install a new version by unpacking the base package and executing the script.
31
-
32
-On Windows you need a Git Bash or Cygwin shell to run the script.
33
-
34
-On Mac OS, it's not sufficient to provide the path to the app, instead you need to get the path to the directory inside of the app package hosting the "eclipse" binary (.../Eclipse.app/Contents/MacOS).
35
-
36
-Be aware hat the installation may take several minutes depending on your Internet connection. When the script finished running, please check that no errors occurred (the installation process only logs errors but doesn't fail).
37
-
38
-__NOTE:__
39
-Beside the installation script for Eclipse Mars, there is also one for the new Eclipse Neon release (4.6.0). Due to a ECJ/JDT regression, this version will brake project functionality. If you've already installed Eclipse Neon, you can easily downgrade to Mars SR2, reusing your existing workspace. You just have to accept the warning you'll get during first startup and perform a workspace cleanup (`Project > Clean... > Clean all projects`). In rare cases, the target platform must be set again.
40
-
41
-#### Further optional but recommended installations
42
-
43
-1. Cygwin, http://www.cygwin.com/
44
-2. Eclipse Mylyn Bugzilla extension
45
-3. kdiff3 (git tool)
46
-4. Firebug (javascript & .css debugging)
47
-
48
-#### Accounts
49
-
50
-1. Git Account
51
- * For access to the external git at ssh://trac@sapsailing.com/home/trac/git please send your SSH public key to Axel Uhl or Simon Marcel Pamies, requesting git access. Make sure to NOT generate the key using Putty. Putty keys don't work reliably under Linux and on Windows/Cygwin environments. Use ssh-keygen in a Cygwin or Linux or MacOS/X environment instead.
52
- * Register yourself as a Git user in the SAP-Git under: https://git.wdf.sap.corp:8080/
53
- * Ask the Git administrator (Axel Uhl) to get on the list of enabled committers
54
-2. Bugzilla
55
- * Ask the Bugzilla administrator (Frank Mittag, Axel Uhl) to create a bugzilla account for you.
56
- * Bugzilla url: http://bugzilla.sapsailing.com/bugzilla/
57
-3. Wiki
58
- * Send a request to Axel Uhl or Simon Marcel Pamies that includes the SHA1 hash of your desired password. Obtain such an SHA1 hash for your password here: http://www.sha1-online.com/.
59
-4. Hudson
60
- * Request a Hudson user by sending e-mail to Axel Uhl, Frank Mittag or Simon Marcel Pamies.
61
-
62
-#### Steps to build and run the Race Analysis Suite
63
-
64
-1. Get the content of the git repository
65
- * Generate SSH Keys with "ssh-keygen -t rsa -C "" " command in Cygwin Terminal (Not with Putty!!!)
66
- * Clone the repository to your local file system from `ssh://[SAP-User]@git.wdf.sap.corp:29418/SAPSail/sapsailingcapture.git` or `ssh://[user]@sapsailing.com/home/trac/git` User "trac" has all public ssh keys.
67
-2. Check out the 'master' branch from the git repository. The 'master' branch is the main development branch. Please check that you start your work on this branch.
68
-3. Setup and configure Eclipse
69
- * Make absolutely sure to import CodeFormatter.xml (from $GIT_HOME/java) into your Eclipse preferences (Preferences->Java->Code Style->Fortmatter)
70
- * Install the Eclipse GWT-Plugin (now called Google Plugin for Eclipse)
71
- * Install the Google Android SDK from the same Google Plugin for Eclipse update site
72
- * In Eclipse go to "Window->Preferences->Java->Build Path->Classpath Variables" and create a new classpath variable called ``ANDROID_HOME``. Set its value to the install location of your Android SDK, e.g., ``c:\apps\android-sdk-windows`` or ``/usr/local/android-sdk-linux``.
73
- * Install GWT SDK and add the SDK in Eclipse (Preferences -> Google -> Web Toolkit -> Add...)
74
- * Install Eclipse debugger for GWT SuperDevMode
75
- * Install Eclipse eGit (optional)
76
- * Check that JDK 1.8 is available and has been set for compilation in Eclipse
77
- * Check that the both JDKs are available (Windows->Preferences->Java->Installed JREs)
78
- * Check that JDK 1.7 has been matched to JavaSE-1.7 and that JDK 1.8 has been matched to JavaSE-1.8 (...>Installed JREs>Execution Environments)
79
- * It is also possible to match the SAPJVM 7 or 8 to JavaSE-1.7 / JavaSE-1.8 (for profiling purposes)
80
- * Go to Windows->Preferences->Google->Errors/Warnings and set "Missing SDK" to "Ignore"
81
- * Import all Race Analysis projects from the `java/` subdirectory of the git main folder (make sure to import as a git project in eclipse)
82
- * Import all projects from the `mobile/` subdirectory of the git main folder; this in particular contains the race committee app projects
83
- * Set the Eclipse target platform to race-analysis-p2-remote.target (located in com.sap.sailing.targetplatform/definitions)
84
- * Wait until the target platform has been resolved completely
85
- * Rebuild all projects
86
-4. Run the Race Analysis Suite
87
- * Start the MongoDB
88
- * Start the appropriate Eclipse launch configuration (e.g. 'Sailing Server (Proxy)') You´ll find this in the debug dropdown
89
- * Run "Security UI sdm" in the debug dropdown
90
- * Run "SailingGWT" in the debug dropdown
91
-5. Import races within the Race Analysis Suite
92
- * Choose "Security UI sdm" in the upper left corner of the "Development Mode" Tab in Eclipse and open "...Login.html" in your browser
93
- * Default Login: user "admin", password "admin"
94
- * Choose "Sailing GWT" in the "Development Mode" Tab and open "...AdminConsole.html..." (It is normal that the first try fails. Reload the page after the first try)
95
- * For TracTrac Events: (Date 27.11.2012) Use Live URI tcp://10.18.22.156:4412, Stored URI tcp://10.18.22.156:4413, JSON URL http://germanmaster.traclive.dk/events/event_20120905_erEuropean/jsonservice.php
96
- * Press List Races
97
-
98
-#### Maven Setup
99
-Copy the settings.xml from the top-level git folder to your ~/.m2 directory and adjust the proxy settings accordingly. Make sure the mvn executable you installed above is in your path. Open a shell (preferrably a git bash or a cygwin bash), cd to the git workspace's root folder and issue "./configuration/buildAndUpdateProduct.sh build". This should build the software and run all the tests. If you want to avoid the tests being executed, use the -t option. If you only want to build one GWT permutation (Chrome/English), use the -b option. When inside the SAP VPN, add the -p option for proxy use. Run the build script without arguments to get usage hints.
100
-
101
-#### Further hints
102
-- Configure Eclipse to use Chrome or Firefox as the default browser
103
-- Install the GWT Browser Plugin (Chrome or Firefox; as of this writing (2013-11-05), Firefox is the only platform where the plug-in runs stably) for the GWT Development mode
104
-
105
-#### Additional steps required for Android projects
106
-
107
-To ensure that all components of the Analysis Suite are working, you should also import all Android projects (mobile/) into your workspace. There are some additional requirements to enable the build process of these projects.
108
-
109
-1. Add the Android Development Tools (ADT) plugin to your Eclipse IDE
110
- - In Eclipse click Help -> Install New Software -> Add and enter https://dl-ssl.google.com/android/eclipse/
111
- - Select the Developer Tools and install
112
- - After restarting Eclipse the "Welcome to Android Development" window should help you with installing the Android SDK
113
- - It is also possible to download the Android SDK separately from http://developer.android.com/sdk/index.html ("Use an existing IDE")
114
-2. Setup the Android SDK
115
- * In Eclipse press Window -> Android SDK Manager
116
- * Ensure that everything of "Tools" is installed
117
- * Install everything of "Android 3.2 API 13"
118
- * Optional: it's a good idea to install the newest API Version
119
- * Install "Android Support Library" (Extras), "Google Play Services" (Extras) and "Google USB Driver" (Extras)
120
-3. Import the Android projects into your workspace
121
- * Android projects can be found in the /mobile subdirectory
122
-
123
-To deploy an Android project (for example com.sap.sailing.racecommittee.app) to a real device:
124
-
125
-1. Plug-in the device
126
- * Development mode must be enabled on the device
127
- * For certain device/OS combinations additional device drivers are needed
128
- * You can check if the device is detected correctly by checking the "Devices" tab of the "DDMS" Eclipse perspective.
129
-2. Start a run configuration of the project
130
-3. Select your attached device in the device selection screen
131
-4. The app should be started after deployment
132
-
133
-#### Further hints
134
-
135
-If you are working with a linux-system and you get the error message `error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory` try to install lib32z1 and lib32stdc++6.
136
-
137
-####Steps to consider for using other modules
138
-1. For Eclipse Build
139
- * MANIFEST.MF , add module names unter dependencies
140
- * *.gwt.xml , add `<inherits name="-modulename-.-gwt.xml file name-" />`
141
- * In DebugConfigurations => Classpaths, Add Sourcefolder where classes are you want to user from the module
142
-2. For Maven Build
143
- * pom.xml , Add Dependency to used module ie.
144
-`<dependency>
145
-<groupId>com.sap.sailing</groupId>
146
-<artifactId>com.sap.sailing.domain.common</artifactId>
147
-<version>1.0.0-SNAPSHOT</version>
148
-<classifier>sources</classifier>
149
-</dependency>`
150
-
151
-#### Using Android Studio for Development
152
-
153
-The Android Apps can be built in Android Studio or gradle command line. Android Studio is built on top of IntelliJ IDEA, so it is possible to use IntelliJ IDEA as well.
154
-
155
-1. On the "Welcome Screen" choose "Import Project (Eclipse, ADT, Gradle, etc.)"
156
-2. Navigate to the project root folder and select the "build.gradle" file (all used modules are defined in "settings.gradle")
157
- * it will download all necessary gradle runtime files
158
- * you will see floating messages at the top right
159
- * ignore "non-managed pom.xml file..."
160
- * choose "add root" from "Unregistered VCS root detected" (you can add this later, if you missed it)
161
-3. Setup the Android SDK
162
- * in Android Studio press Tools -> Android -> SDK Manager
163
- * Install from section "Tools"
164
- * Android SDK Tools
165
- * Android SDK Platform-tools
166
- * Android SDK Build-tools 22.0.1 (latest version at the time of writing)
167
- * Install everything of "Android 5.1.1 (API 22)" (latest API at the time of writing)
168
- * the "System Images" are optional and only needed for the emulators, which can't be fully used because of the missing Google Play Services (needed for location detection in the wind fragment)
169
- * Install from section "Extras"
170
- * Android Support Repository
171
- * Google Repository
172
- * Google USB Driver (only on Windows)
173
-4. To edit all (not only Android) modules, open the left window "1: Project" and switch the view from "Android" to "Project" (folder view)
174
-5. At the top is a drop down, where you can switch the mobile projects (com.sap.sailing.*) and start with buttons right to it
175
- * Run (starts the app on a real device or emulator)
176
- * Debug (starts the app with an attached debugger)
177
- * Attach Debugger (useful, if the app is currently running and you want to start debugging against the correspond sources)
178
-
179
-If git is not in the Path system environment variable, the gradle build will not work.
180
-
181
-##### To enable missing git integration
182
-
183
-1. navigate to VCS -> Enable Version Control Integration
184
-2. choose git in the drop down
185
-3. if everything is correct, you'll see the current branch at the bottom line
186
-
187
-See [RaceCommittee App](racecommittee-app) for more information regarding the mobile app.