forked from mirego/csgames17-competition
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 19266ff
Showing
60 changed files
with
2,737 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# OS X | ||
.DS_Store | ||
|
||
# Node.js | ||
node_modules/ | ||
|
||
# Xcode | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.profile | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcworkspace | ||
|
||
# Automatic backup files | ||
*~ | ||
*~.nib/ | ||
*.dat | ||
*.dep | ||
*.swp | ||
|
||
# Build products | ||
build/* | ||
*.hmap | ||
*.LinkFileList | ||
*.o | ||
|
||
gitignore/ | ||
|
||
# AppCode | ||
.idea/* | ||
.idea/ | ||
|
||
# Cocoapods | ||
Pods/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2013-2015, Mirego | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
- Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
- Neither the name of the Mirego nor the names of its contributors may | ||
be used to endorse or promote products derived from this software without | ||
specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# CS Games 2017 - Mobile | ||
|
||
Welcome to the **CS Games 2017 Mobile Competition**! | ||
|
||
In this repository, you will find the required projects to begin with: | ||
|
||
<table width="100%"> | ||
<thead> | ||
<tr> | ||
<th colspan="2">Mobile Applications</th> | ||
<th>Web Server</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td align="center"><a href="https://github.com/mirego/csgames17-competition/tree/master/ios" target="_blank"><br><img src="https://cloud.githubusercontent.com/assets/4378424/13625721/90d6d7de-e588-11e5-83d9-b16f14b6cfaa.png" height="100"><br><br>iOS Application</a></td> | ||
<td align="center"><a href="https://github.com/mirego/csgames17-competition/tree/master/android" target="_blank"><br><img src="https://cloud.githubusercontent.com/assets/4378424/13625718/90ca7e30-e588-11e5-9cd1-7fcc06d4a62a.png" height="100"><br><br>Android Application</a></td> | ||
<td align="center"><a href="https://github.com/mirego/csgames17-competition/tree/master/server" target="_blank"><br><img src="https://cloud.githubusercontent.com/assets/4378424/13625719/90d24cbe-e588-11e5-9e56-8f31ecf8c902.png" height="100"><br><br>Web Server</a></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
You will also find a digital version of the challenge description: | ||
|
||
<table width="100%"> | ||
<thead> | ||
<tr> | ||
<th width="50%">English</th> | ||
<th width="50%">Français</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td align="center"><a href="https://github.com/mirego/csgames17-competition/raw/master/MobileCompetition-EN.pdf" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4378424/13652341/a162a966-e619-11e5-8c66-e972657456b3.jpg" height="192"></a></td> | ||
<td align="center"><a href="https://github.com/mirego/csgames17-competition/raw/master/MobileCompetition-FR.pdf" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4378424/13652342/a16b2262-e619-11e5-8ef4-09af585228eb.jpg" height="192"></a></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
Every aspect of the competition should be covered in either the repository instructions or the challenge description. If you require any further assistance, please don't hesitate to reach out. | ||
|
||
## License | ||
|
||
This competition is © 2016 [Mirego](http://www.mirego.com) and may be freely | ||
distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). | ||
See the [`LICENSE.md`](https://github.com/mirego/csgames16-competition/blob/master/LICENSE.md) file. | ||
|
||
## About Mirego | ||
|
||
[Mirego](http://mirego.com) is a team of passionate people who believe that work is a place where you can innovate and have fun. We're a team of [talented people](http://life.mirego.com) who imagine and build beautiful Web and mobile applications. We come together to share ideas and [change the world](http://mirego.org). | ||
|
||
We also [love open-source software](http://open.mirego.com) and we try to give back to the community as much as we can. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# CS Games 2016 - Mobile - Solution | ||
|
||
## Team details | ||
|
||
- Team name: _`Name of your team`_ | ||
- Team code: _`Code used to identify your team`_ | ||
- University: _`Your university`_ | ||
- Participant 1: _`First name Last name`_ | ||
- Participant 2: _`First name Last name`_ | ||
|
||
## Solution details | ||
|
||
_Here, explain how the challenge went. Some examples of what we'd like to read here:_ | ||
|
||
- _What did you wanted to do at first?_ | ||
- _What did you end up doing?_ | ||
- _How did it go, overall? Do you think you have succeeded?_ | ||
- _Is there anything that **blocked** you?_ | ||
- _Is there anything that you are **proud of**?_ | ||
|
||
_A couple of lines should be enough, just make sure we have a clear idea of what you did, so we can rate your **whole participation** and not just your **final result**._ | ||
|
||
### Mobile application | ||
|
||
> **Platform choice:** _iOS or Android_ | ||
_Describe what you have added to the mobile project._ | ||
|
||
_If your solution now requires any deployment steps other than those listed in the original `README` file, please list them here._ | ||
|
||
### Server | ||
|
||
_Describe what you have added to the server project (if applicable)._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Copyright (c) 2013-2015, Mirego | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
- Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
- Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
- Neither the name of the Mirego nor the names of its contributors may | ||
be used to endorse or promote products derived from this software without | ||
specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# CS Games - Sample Android App | ||
|
||
This project will guide you setting up your environment to build and run a sample Android application on your local machine. | ||
|
||
## Prerequisites | ||
|
||
Make sure you have the following software installed before beginning: | ||
|
||
- Latest version of Android Studio (2.3) | ||
- Recent version of the Android SDK (at least API 23) | ||
|
||
You can download these from the [Android Developer website](http://developer.android.com/sdk/index.html). | ||
|
||
> **NOTE:** If you have a Mac computer running macOS 10.11.5 or later, you may also be interested in our [Sample iOS app](https://github.com/mirego/csgames-sample-ios/), which uses Xcode and the latest iOS SDK. | ||
## Getting started | ||
|
||
First, clone the project from Github: | ||
|
||
``` | ||
git clone [email protected]:mirego/csgames-sample-android.git | ||
``` | ||
|
||
Then, in Android Studio: | ||
|
||
- Select **Import project (Eclipse, ADT, Gradle, etc.)** in the Welcome Screen, go find the repository you just cloned, and click **OK**. | ||
- Once the project is open, click on **Sync Project with Gradle Files** in the main toolbar (or navigate to `Tools -> Android` in the application menu and select the same option). | ||
|
||
<p align="center"><img src="https://cloud.githubusercontent.com/assets/4378424/24182187/64981e3e-0e96-11e7-8fcb-f03f14d78c59.png" width="208"></p> | ||
|
||
Once you see a `BUILD SUCCESSFUL` notice in the Gradle Console, your environment should be ready to build and run the project. | ||
|
||
## Building the project | ||
|
||
The project should have already been configured as an Android project in Android Studio, therefore you should see a target named `app` in the main toolbar, with **Play** and **Debug** buttons on its right. | ||
|
||
Press on the **Debug** icon, and if you don't already have one, [create a new Android Virtual Device](https://developer.android.com/studio/run/managing-avds.html), then select it to run the project. | ||
|
||
Once the app appears running in your Virtual Device, your environment is ready for the competition. | ||
|
||
## Support | ||
|
||
If you have questions about the project or encounter any problem while configuring your environment, please don't hesistate to contact the [project author](https://github.com/ebelair) or submit an [issue](https://github.com/mirego/csgames-sample-android/issues). | ||
|
||
## License | ||
|
||
This sample app is © 2016 [Mirego](http://www.mirego.com) and may be freely | ||
distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). | ||
See the [`LICENSE.md`](https://github.com/mirego/csgames-sample-android/blob/master/LICENSE.md) file. | ||
|
||
## About Mirego | ||
|
||
[Mirego](http://mirego.com) is a team of passionate people who believe that work is a place where you can innovate and have fun. We're a team of [talented people](http://life.mirego.com) who imagine and build beautiful Web and mobile applications. We come together to share ideas and [change the world](http://mirego.org). | ||
|
||
We also [love open-source software](http://open.mirego.com) and we try to give back to the community as much as we can. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'com.jakewharton.butterknife' | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.2" | ||
|
||
defaultConfig { | ||
applicationId "com.mirego.sampleapp" | ||
minSdkVersion 23 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
lintOptions { | ||
disable 'InvalidPackage' | ||
} | ||
} | ||
|
||
ext.supportVersion = '25.3.0' | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
testCompile 'junit:junit:4.12' | ||
compile "com.android.support:appcompat-v7:${supportVersion}" | ||
compile 'com.jakewharton:butterknife:8.5.1' | ||
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' | ||
compile 'com.squareup.okhttp3:okhttp:3.6.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/ebelair/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.mirego.sampleapp"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity android:name=".activities.MainActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.