Create activity for online and offline camera swap information

CameraSwapInfoActivity is shown from CameraSwapNotification if
ModuleDetect detects that a camera module has been replaced.

By default a WebView of the support article at fairphone.com/camera-swap
is shown. In case of error, some basic offline information is displayed.

FPIIM-1467

Change-Id: I012fefedfdaad5a1a0d0f9894c42fea686c24acb
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d1a486f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+/.idea
diff --git a/Android.mk b/Android.mk
new file mode 100644
index 0000000..e19386d
--- /dev/null
+++ b/Android.mk
@@ -0,0 +1,46 @@
+#
+# Copyright (C) 2016 Fairphone B.V.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+LOCAL_PATH := $(call my-dir)
+
+#
+# Build app code.
+#
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_SRC_FILES := $(call all-java-files-under, app/src/main/java)
+
+LOCAL_JAVA_LIBRARIES := android-common\
+
+LOCAL_STATIC_JAVA_LIBRARIES :=  \
+  android-support-v7-appcompat \
+  android-support-v4
+
+LOCAL_MANIFEST_FILE = app/src/main/AndroidManifest.xml
+LOCAL_AAPT_FLAGS := --auto-add-overlay
+LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
+
+LOCAL_RESOURCE_DIR := \
+                  frameworks/support/v7/appcompat/res \
+                  $(LOCAL_PATH)/app/src/main/res
+
+LOCAL_SDK_VERSION := current
+
+LOCAL_PACKAGE_NAME := CameraSwapInfo
+
+include $(BUILD_PACKAGE)
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..f602b47
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,29 @@
+apply plugin: 'com.android.application'
+
+android {
+    compileSdkVersion 23
+    buildToolsVersion "23.0.2"
+    defaultConfig {
+        applicationId "com.fairphone.com.fairphone.cameraswapinfo"
+        minSdkVersion 22
+        targetSdkVersion 23
+        versionCode 1
+        versionName "1.0"
+        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+    }
+    buildTypes {
+        release {
+            minifyEnabled false
+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+        }
+    }
+}
+
+dependencies {
+    compile fileTree(dir: 'libs', include: ['*.jar'])
+    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
+        exclude group: 'com.android.support', module: 'support-annotations'
+    })
+    compile 'com.android.support:appcompat-v7:23.4.0'
+    testCompile 'junit:junit:4.12'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..08548ce
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /home/dirk/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 *;
+#}
diff --git a/app/src/androidTest/java/com/fairphone/cameraswapinfo/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/fairphone/cameraswapinfo/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..068baac
--- /dev/null
+++ b/app/src/androidTest/java/com/fairphone/cameraswapinfo/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.fairphone.cameraswapinfo;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumentation test, which will execute on an Android device.
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+    @Test
+    public void useAppContext() throws Exception {
+        // Context of the app under test.
+        Context appContext = InstrumentationRegistry.getTargetContext();
+
+        assertEquals("com.fairphone.com.fairphone.cameraswapinfo", appContext.getPackageName());
+    }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..1aebbf1
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="com.fairphone.cameraswapinfo"
+    android:versionCode="1"
+    android:versionName="1.0.0">
+
+    <uses-permission android:name="android.permission.INTERNET" />
+
+    <application
+        android:allowBackup="true"
+        android:icon="@mipmap/ic_launcher_camera_swap"
+        android:label="@string/app_name"
+        android:supportsRtl="true"
+        android:theme="@style/AppTheme">
+
+        <activity android:name=".CameraSwapDetailsActivity"
+            android:enabled="true"
+            android:theme="@style/Theme.Setup">
+            <intent-filter android:priority="1">
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+        </activity>
+    </application>
+
+</manifest>
diff --git a/app/src/main/java/com/fairphone/cameraswapinfo/CameraSwapDetailsActivity.java b/app/src/main/java/com/fairphone/cameraswapinfo/CameraSwapDetailsActivity.java
new file mode 100644
index 0000000..5d61236
--- /dev/null
+++ b/app/src/main/java/com/fairphone/cameraswapinfo/CameraSwapDetailsActivity.java
@@ -0,0 +1,106 @@
+package com.fairphone.cameraswapinfo;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.view.ViewGroup;
+import android.webkit.WebResourceError;
+import android.webkit.WebResourceRequest;
+import android.webkit.WebView;
+import android.webkit.WebViewClient;
+import android.widget.Button;
+import android.widget.CompoundButton;
+
+/**
+ * Display information and instructions what to do after a camera replacement.
+ *
+ * Defaults to loading a support article in a WebView. Shows limited information in case of
+ * lacking internet connection.
+ */
+public class CameraSwapDetailsActivity extends Activity implements View.OnClickListener,
+        CompoundButton.OnCheckedChangeListener {
+
+    private static final String MODULE_DETECT_PACKAGE = "com.fairphone.moduledetect";
+    private static final String CAMERA_SWAP_INTENT_SERVICE_CLASS =
+            "com.fairphone.moduledetect.CameraSwapIntentService";
+    private static final String NOTIFICATION_DISMISS_ACTION =
+            "com.fairphone.moduledetect.notification_dismiss";
+
+    Button mButtonClose;
+    CompoundButton mDontShowAgainCheckbox;
+    boolean mDontShowAgain = false;
+
+    @Override
+    protected void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+
+        /* Try loading an online support article by default. */
+        setContentView(R.layout.camera_swap_details_activity);
+        WebView webview = (WebView) findViewById(R.id.camera_swap_webview);
+
+        webview.setWebViewClient(new WebViewClient() {
+            private boolean shouldDismissNotification = true;
+
+            @Override
+            public void onPageFinished(WebView view, String url) {
+                super.onPageFinished(view, url);
+
+                if (shouldDismissNotification) {
+                    /* We do not want to bother users again if they have seen the information.
+                       Do not show notification again if support article has successfully loaded. */
+                    dismissNotification();
+                }
+            }
+
+            @Override
+            public void onReceivedError(WebView view, WebResourceRequest request,
+                                        WebResourceError error) {
+                shouldDismissNotification = false;
+                /* Show a limited offline view in case of connectivity problems. */
+                replaceWithOfflineContent();
+            }
+        });
+
+        webview.loadUrl(getString(R.string.camera_swap_url));
+    }
+
+    @Override
+    public void onClick(View view) {
+        if (view == mButtonClose) {
+            if (mDontShowAgain) {
+                dismissNotification();
+            }
+            finish();
+        }
+    }
+
+    @Override
+    public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
+        if (compoundButton == mDontShowAgainCheckbox) {
+            mDontShowAgain = b;
+        }
+    }
+
+    private void replaceWithOfflineContent() {
+        View view = findViewById(R.id.camera_swap_webview_fragment);
+        ViewGroup parent = (ViewGroup) view.getParent();
+        int index = parent.indexOfChild(view);
+        parent.removeView(view);
+
+        View replacement = getLayoutInflater().inflate(R.layout.offline_details_fragment,
+                parent, false);
+        parent.addView(replacement, index);
+
+        mButtonClose = (Button) findViewById(R.id.button_close);
+        mButtonClose.setOnClickListener(CameraSwapDetailsActivity.this);
+        mDontShowAgainCheckbox = (CompoundButton) findViewById(R.id.dont_show_again_checkbox);
+        mDontShowAgainCheckbox.setOnCheckedChangeListener(CameraSwapDetailsActivity.this);
+    }
+
+    private void dismissNotification() {
+        Intent dismissIntent = new Intent(NOTIFICATION_DISMISS_ACTION);
+        dismissIntent.setClassName(MODULE_DETECT_PACKAGE, CAMERA_SWAP_INTENT_SERVICE_CLASS);
+        startService(dismissIntent);
+    }
+}
diff --git a/app/src/main/res/drawable/button_blue_background.xml b/app/src/main/res/drawable/button_blue_background.xml
new file mode 100644
index 0000000..5adfbd8
--- /dev/null
+++ b/app/src/main/res/drawable/button_blue_background.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <item android:drawable="@color/blue_light" android:state_enabled="false"/>
+    <item android:drawable="@color/blue_dark" android:state_pressed="true"/>
+    <item android:drawable="@color/blue"/>
+
+</selector>
diff --git a/app/src/main/res/drawable/button_grey_background.xml b/app/src/main/res/drawable/button_grey_background.xml
new file mode 100644
index 0000000..57c942f
--- /dev/null
+++ b/app/src/main/res/drawable/button_grey_background.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <item android:drawable="@color/grey_transparent" android:state_enabled="false"/>
+    <item android:drawable="@color/grey" android:state_pressed="true"/>
+    <item android:drawable="@color/grey_light"/>
+
+</selector>
\ No newline at end of file
diff --git a/app/src/main/res/drawable/button_pink_transparent_background.xml b/app/src/main/res/drawable/button_pink_transparent_background.xml
new file mode 100644
index 0000000..0ea5c09
--- /dev/null
+++ b/app/src/main/res/drawable/button_pink_transparent_background.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+    <item android:drawable="@color/transparent" android:state_enabled="false"/>
+    <item android:drawable="@color/pink_dark" android:state_pressed="true"/>
+    <item android:drawable="@color/pink_light"/>
+
+</selector>
diff --git a/app/src/main/res/drawable/ic_stat_camera_swap.xml b/app/src/main/res/drawable/ic_stat_camera_swap.xml
new file mode 100644
index 0000000..541a2bf
--- /dev/null
+++ b/app/src/main/res/drawable/ic_stat_camera_swap.xml
@@ -0,0 +1,4 @@
+<vector android:height="24dp" android:viewportHeight="48.0"
+    android:viewportWidth="48.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
+    <path android:fillColor="#FF000000" android:pathData="m41.71,9.8h-6.15l-4.37,-4.78h-14.39l-4.37,4.78h-6.15c-1.52,0 -2.75,1.23 -2.75,2.75v25.21c0,1.52 1.23,2.75 2.75,2.75h35.44c1.52,0 2.75,-1.23 2.75,-2.75v-25.21c0,-1.52 -1.23,-2.75 -2.75,-2.75zM35.97,35.93l-2.58,-2.58c-2.44,2.55 -5.84,4.05 -9.47,4.05 -7.22,0 -13.08,-5.87 -13.08,-13.08h2.5c0,5.84 4.75,10.58 10.58,10.58 2.95,0 5.72,-1.23 7.69,-3.32l-2.59,-2.6h6.94v6.94zM20.28,24.3c0,-2.02 1.64,-3.66 3.66,-3.66 2.02,0 3.65,1.64 3.65,3.66s-1.64,3.65 -3.65,3.65c-2.02,0 -3.66,-1.63 -3.66,-3.65zM34.52,24.32c0,-5.84 -4.75,-10.58 -10.59,-10.58 -2.96,0 -5.75,1.25 -7.73,3.36l2.63,2.63h-6.94v-6.95l2.54,2.54c2.44,-2.57 5.86,-4.09 9.5,-4.09 7.22,0 13.08,5.87 13.08,13.09h-2.5z"/>
+</vector>
diff --git a/app/src/main/res/layout/camera_swap_details_activity.xml b/app/src/main/res/layout/camera_swap_details_activity.xml
new file mode 100644
index 0000000..cf96fe7
--- /dev/null
+++ b/app/src/main/res/layout/camera_swap_details_activity.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/camera_swap_details_activity"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    tools:context="com.fairphone.cameraswapinfo.CameraSwapDetailsActivity"
+    android:orientation="vertical">
+
+    <include layout="@layout/webview_fragment" />
+
+</LinearLayout>
diff --git a/app/src/main/res/layout/header_fragment.xml b/app/src/main/res/layout/header_fragment.xml
new file mode 100644
index 0000000..a3b7f34
--- /dev/null
+++ b/app/src/main/res/layout/header_fragment.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="match_parent"
+    android:background="@color/background_header"
+    android:layout_height="175dp"
+    android:paddingLeft="10dp"
+    android:paddingRight="10dp">
+
+    <TextView
+        style="@style/TitleLightPrimary"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:ellipsize="end"
+        android:gravity="center_vertical|center_horizontal"
+        android:lines="3"
+        android:text="@string/camera_swap_instructions"
+        android:textAppearance="@style/TitleLight"
+        android:lineSpacingExtra="10sp"
+        android:textSize="30sp" />
+</RelativeLayout>
diff --git a/app/src/main/res/layout/offline_details_fragment.xml b/app/src/main/res/layout/offline_details_fragment.xml
new file mode 100644
index 0000000..0d63536
--- /dev/null
+++ b/app/src/main/res/layout/offline_details_fragment.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/offline_details_fragment"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical">
+
+    <include layout="@layout/header_fragment" />
+
+    <RelativeLayout
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:background="@color/background"
+        android:gravity="center_horizontal"
+        android:orientation="vertical"
+        android:padding="@dimen/main_padding">
+
+        <Button
+            android:id="@+id/button_close"
+            style="@style/ButtonWhiteBlue"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_alignParentBottom="true"
+            android:layout_centerHorizontal="true"
+            android:text="@string/camera_swap_close" />
+
+        <TextView
+            android:id="@+id/instructions"
+            style="@style/TextRegular14BlueDark"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:text="@string/camera_swap_long_text"
+            android:layout_alignParentTop="true"
+            android:layout_marginLeft="5dp"
+            android:layout_marginRight="5dp"
+            android:layout_marginBottom="10sp"
+            android:lineSpacingExtra="4sp" />
+
+        <TextView
+            android:id="@+id/url"
+            style="@style/TextRegular14BlueDark"
+            android:autoLink="web"
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:text="@string/camera_swap_url"
+            android:layout_below="@+id/instructions"
+            android:layout_alignStart="@+id/instructions" />
+
+        <CheckBox
+            style="@style/TextRegular14BlueDark"
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:id="@+id/dont_show_again_checkbox"
+            android:checked="false"
+            android:text="@string/camera_swap_dont_show_again"
+            android:layout_above="@+id/button_close"
+            android:layout_marginBottom="5dp" />
+
+    </RelativeLayout>
+
+</LinearLayout>
diff --git a/app/src/main/res/layout/webview_fragment.xml b/app/src/main/res/layout/webview_fragment.xml
new file mode 100644
index 0000000..b233545
--- /dev/null
+++ b/app/src/main/res/layout/webview_fragment.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:id="@+id/camera_swap_webview_fragment"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    android:orientation="vertical">
+
+    <TextView
+        android:id="@+id/location_bar"
+        android:layout_width="match_parent"
+        android:layout_height="wrap_content"
+        android:text="@string/camera_swap_url"
+        style="@style/LocationBar" />
+
+    <WebView
+        android:id="@+id/camera_swap_webview"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"></WebView>
+
+</LinearLayout>
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_camera_swap.png b/app/src/main/res/mipmap-hdpi/ic_launcher_camera_swap.png
new file mode 100644
index 0000000..2aa1e08
--- /dev/null
+++ b/app/src/main/res/mipmap-hdpi/ic_launcher_camera_swap.png
Binary files differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_camera_swap.png b/app/src/main/res/mipmap-mdpi/ic_launcher_camera_swap.png
new file mode 100644
index 0000000..9dd5dc3
--- /dev/null
+++ b/app/src/main/res/mipmap-mdpi/ic_launcher_camera_swap.png
Binary files differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_camera_swap.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_camera_swap.png
new file mode 100644
index 0000000..19dcdc7
--- /dev/null
+++ b/app/src/main/res/mipmap-xhdpi/ic_launcher_camera_swap.png
Binary files differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_camera_swap.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_camera_swap.png
new file mode 100644
index 0000000..80c3b3e
--- /dev/null
+++ b/app/src/main/res/mipmap-xxhdpi/ic_launcher_camera_swap.png
Binary files differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_camera_swap.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_camera_swap.png
new file mode 100644
index 0000000..646c316
--- /dev/null
+++ b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_camera_swap.png
Binary files differ
diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml
new file mode 100644
index 0000000..d0df714
--- /dev/null
+++ b/app/src/main/res/values-de/strings.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="camera_swap_instructions">Kameramodul erfolgreich ausgetauscht</string>
+    <string name="camera_swap_dont_show_again">Nicht wieder anzeigen</string>
+    <string name="camera_swap_close">Schließen</string>
+    <string name="camera_swap_long_text">Wähle die passende Auflösung dieses Kameramoduls in deiner Kamera-App bevor du Fotos machst.\n\nBesuche folgende Seite um zu erfahren, wie du das Beste aus deiner Kamera holst:</string>
+    <string name="camera_swap_url">https://fairphone.com/camera-swap-de</string>
+</resources>
\ No newline at end of file
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
new file mode 100644
index 0000000..8347961
--- /dev/null
+++ b/app/src/main/res/values-es/strings.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="camera_swap_instructions">Cámara reemplazada con éxito</string>
+    <string name="camera_swap_dont_show_again">No mostrar de nuevo</string>
+    <string name="camera_swap_close">Cerrar</string>
+    <string name="camera_swap_long_text">"Antes de hacer fotos, asegúrate de seleccionar la resolución adecuada para este módulo de cámara en tu aplicación de cámara.\n\nLee el siguiente artículo para más información y para sacar el máximo provecho a tu nueva cámara. "</string>
+    <string name="camera_swap_url">https://fairphone.com/camera-swap-es</string>
+</resources>
\ No newline at end of file
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
new file mode 100644
index 0000000..80cfb23
--- /dev/null
+++ b/app/src/main/res/values-fr/strings.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="camera_swap_instructions">Le module caméra a bien été remplacé</string>
+    <string name="camera_swap_dont_show_again">Ne plus afficher</string>
+    <string name="camera_swap_close">Fermer</string>
+    <string name="camera_swap_long_text">Avant de commencer à prendre des photos, vérifiez que vous avez sélectionné la bonne résolution pour ce module d’appareil-photo à partir de l’appli.\n\nPour plus d’informations sur le sujet, reportez-vous à l’article ci-dessous qui vous explique comment tirer le meilleur parti de votre appareil-photo :</string>
+    <string name="camera_swap_url">https://fairphone.com/camera-swap-fr</string>
+</resources>
\ No newline at end of file
diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml
new file mode 100644
index 0000000..52a2feb
--- /dev/null
+++ b/app/src/main/res/values-it/strings.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="camera_swap_instructions">Cámara reemplazada con éxito</string>
+    <string name="camera_swap_dont_show_again">Non mostrarlo di nuovo</string>
+    <string name="camera_swap_close">Chiudi</string>
+    <string name="camera_swap_long_text">Assicurarsi di selezionare la corretta risoluzione per questo modulo della fotocamera nell\'applicazione della fotocamera prima di iniziare a scattare foto.\n\nVai al seguente articolo per queste e per altre informazioni su come ottenere il meglio dalla fotocamera:</string>
+    <string name="camera_swap_url">https://fairphone.com/camera-swap-it</string>
+</resources>
\ No newline at end of file
diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml
new file mode 100644
index 0000000..70edb6c
--- /dev/null
+++ b/app/src/main/res/values-nl/strings.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <string name="camera_swap_instructions">Cameramodule succesvol vervangen</string>
+    <string name="camera_swap_dont_show_again">Niet meer laten zien</string>
+    <string name="camera_swap_close">Sluiten</string>
+    <string name="camera_swap_long_text">Selecteer de juiste resolutie voor deze cameramodule in je camera app voordat je foto’s begint met foto’s nemen.\n\nBekijk hiervoor het volgende artikel en lees meer over hoe je het beste uit je camera kunt halen:</string>
+    <string name="camera_swap_url">https://fairphone.com/camera-swap-nl</string>
+</resources>
\ No newline at end of file
diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+<resources>
+    <!-- Example customization of dimensions originally defined in res/values/dimens.xml
+         (such as screen margins) for screens with more than 820dp of available width. This
+         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
+    <dimen name="activity_horizontal_margin">64dp</dimen>
+</resources>
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..c5874ba
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <color name="colorPrimary">#03a9f4</color>
+    <color name="colorPrimaryDark">#b3e5fc</color>
+    <color name="colorAccent">#FF4081</color>
+
+    <!-- Palette colors referenced by top-level themes.-->
+
+    <color name="theme_primary">#2aa8e0</color>
+    <color name="theme_primary_dark">#000000</color>
+    <color name="theme_accent">#f286b6</color>
+
+    <!-- BACKGROUND -->
+    <color name="background_header">#F7F7F7</color>
+    <color name="background">#F0F0F0</color>
+
+
+    <!-- MAIN COLORS -->
+    <color name="transparent">#00000000</color>
+    <color name="white">#FFFFFF</color>
+    <color name="white_transparent">#55FFFFFF</color>
+    <color name="grey">#5B5B5B</color>
+    <color name="grey_light">#999999</color>
+    <color name="grey_dark">#333333</color>
+    <color name="grey_transparent">#66999999</color>
+    <color name="blue">#2AA9E0</color>
+    <color name="blue_dark">#123C59</color>
+    <color name="blue_light">#AADCF2</color>
+    <color name="blue_light_transparent">#DBEAF0</color>
+    <color name="green">#6BC1A3</color>
+    <color name="green_dark">#17717A</color>
+    <color name="green_light">#A0D7C4</color>
+    <color name="green_light_transparent">#D8E8E2</color>
+    <color name="pink">#C1454A</color>
+    <color name="pink_dark">#823A3D</color>
+    <color name="pink_light">#F286B6</color>
+    <color name="pink_light_transparent">#F0DBE4</color>
+    <color name="red">#C3474C</color>
+
+</resources>
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..a5293df
--- /dev/null
+++ b/app/src/main/res/values/dimens.xml
@@ -0,0 +1,20 @@
+<resources>
+    <!-- Default screen margins, per the Android Design guidelines. -->
+    <dimen name="activity_horizontal_margin">16dp</dimen>
+    <dimen name="activity_vertical_margin">16dp</dimen>
+    <!-- HEADER -->
+    <dimen name="header_big_height">100dp</dimen>
+    <dimen name="header_small_height">56dp</dimen>
+    <dimen name="header_big_text_size">30sp</dimen>
+    <dimen name="header_small_text_size">20sp</dimen>
+    <dimen name="header_padding">8sp</dimen>
+
+    <!-- MAIN -->
+    <dimen name="main_margin">32dp</dimen>
+    <dimen name="main_margin_small">20dp</dimen>
+    <dimen name="main_padding">32dp</dimen>
+    <dimen name="main_padding_small">20dp</dimen>
+    <dimen name="main_small_text_margin_top">43dp</dimen>
+    <dimen name="main_small_text_below_heading_margin">20dp</dimen>
+    <dimen name="main_button_margin_top">8dp</dimen>
+</resources>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..ad6b4fa
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<resources>
+    <string name="app_name" translatable="false">Fairphone Camera Info</string>
+    <string name="camera_swap_instructions">Camera module successfully replaced</string>
+    <string name="camera_swap_url">https://fairphone.com/camera-swap</string>
+    <string name="camera_swap_dont_show_again">Don\'t show again</string>
+    <string name="camera_swap_close">Close</string>
+    <string name="camera_swap_long_text">Make sure to select the appropriate resolution for this camera module in your camera app before starting to take pictures.\n\nVisit the following article for this and more information on how to get the best out of your camera:</string>
+</resources>
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..387b640
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,224 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <style name="AppTheme" parent="@android:style/Theme.Material.Light.NoActionBar">
+        <!-- Customize your theme here. -->
+        <item name="colorPrimary">@color/colorPrimary</item>
+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+        <item name="colorAccent">@color/colorAccent</item>
+        <item name="android:statusBarColor">@color/colorPrimaryDark</item>
+    </style>
+
+
+    <style name="Theme.Setup" parent="@android:style/Theme.Material.Light">
+        <item name="android:windowActionBar">false</item>
+        <item name="android:windowNoTitle">true</item>
+        <item name="android:colorPrimary">@color/theme_primary</item>
+        <item name="android:colorPrimaryDark">@color/theme_primary_dark</item>
+        <item name="android:colorAccent">@color/theme_accent</item>
+    </style>
+
+    <!-- BUTTONS -->
+    <style name="Button" parent="@android:style/Widget.Button">
+        <item name="android:background">@drawable/button_grey_background</item>
+        <item name="android:textColor">@color/white</item>
+        <item name="android:textSize">24sp</item>
+        <item name="android:paddingTop">15dp</item>
+        <item name="android:paddingBottom">15dp</item>
+        <item name="android:paddingRight">15dp</item>
+        <item name="android:paddingLeft">15dp</item>
+        <item name="android:gravity">center</item>
+        <item name="android:fontFamily">sans-serif-medium</item>
+        <item name="android:textAllCaps">true</item>
+    </style>
+
+    <style name="ButtonWhiteBlue" parent="@style/Button">
+        <item name="android:background">@drawable/button_blue_background</item>
+        <item name="android:textColor">@color/white</item>
+    </style>
+
+    <style name="ButtonWhitePink" parent="@style/Button">
+        <item name="android:background">@drawable/button_pink_transparent_background</item>
+        <item name="android:textColor">@color/white</item>
+    </style>
+
+    <!-- TEXT REGULAR -->
+    <style name="TextRegular">
+        <item name="android:fontFamily">sans-serif</item>
+    </style>
+
+    <style name="TextRegular14" parent="@style/TextRegular">
+        <item name="android:textSize">14sp</item>
+    </style>
+
+    <style name="TextRegular16" parent="@style/TextRegular">
+        <item name="android:textSize">16sp</item>
+    </style>
+
+    <style name="TextRegular14BlueLight" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/blue_light</item>
+    </style>
+
+    <style name="TextRegular14BlueDark" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/blue_dark</item>
+    </style>
+
+    <style name="TextRegular14GreenLight" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/green_light</item>
+    </style>
+
+    <style name="TextRegular14GreenDark" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/green_dark</item>
+    </style>
+
+    <style name="TextRegular14GreyLight" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/grey_light</item>
+    </style>
+
+    <style name="TextRegular14GreyDark" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/grey_dark</item>
+    </style>
+
+    <style name="TextRegular14PinkLight" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/pink_light</item>
+    </style>
+
+    <style name="TextRegular14PinkDark" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/pink_dark</item>
+    </style>
+
+    <style name="TextRegular16BlueLight" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/blue_light</item>
+    </style>
+
+    <style name="TextRegular16BlueDark" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/blue_dark</item>
+    </style>
+
+    <style name="TextRegular16GreenLight" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/green_light</item>
+    </style>
+
+    <style name="TextRegular16GreenDark" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/green_dark</item>
+    </style>
+
+    <style name="TextRegular16GreyLight" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/grey_light</item>
+    </style>
+
+    <style name="TextRegular16GreyDark" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/grey_dark</item>
+    </style>
+
+    <style name="TextRegular16PinkLight" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/pink_light</item>
+    </style>
+
+    <style name="TextRegular16PinkDark" parent="@style/TextRegular16">
+        <item name="android:textColor">@color/pink_dark</item>
+    </style>
+
+    <!-- TEXT LIGHT -->
+    <style name="TextLight">
+        <item name="android:fontFamily">sans-serif-light</item>
+    </style>
+
+    <!-- TEXT BOLD -->
+    <style name="TextBold">
+        <item name="android:fontFamily">sans-serif</item>
+        <item name="android:textStyle">bold</item>
+    </style>
+
+    <style name="TextBold14" parent="@style/TextBold">
+        <item name="android:textSize">14sp</item>
+    </style>
+
+    <style name="TextBold16" parent="@style/TextBold">
+        <item name="android:textSize">16sp</item>
+    </style>
+
+    <style name="TextBold14BlueLight" parent="@style/TextBold14">
+        <item name="android:textColor">@color/blue_light</item>
+    </style>
+
+    <style name="TextBold14BlueDark" parent="@style/TextBold14">
+        <item name="android:textColor">@color/blue_dark</item>
+    </style>
+
+    <style name="TextBold14GreenLight" parent="@style/TextBold14">
+        <item name="android:textColor">@color/green_light</item>
+    </style>
+
+    <style name="TextBold14GreenDark" parent="@style/TextBold14">
+        <item name="android:textColor">@color/green_dark</item>
+    </style>
+
+    <style name="TextBold14GreyLight" parent="@style/TextBold14">
+        <item name="android:textColor">@color/grey_light</item>
+    </style>
+
+    <style name="TextBold14GreyDark" parent="@style/TextBold14">
+        <item name="android:textColor">@color/grey_dark</item>
+    </style>
+
+    <style name="TextBold14PinkLight" parent="@style/TextBold14">
+        <item name="android:textColor">@color/pink_light</item>
+    </style>
+
+    <style name="TextBold14PinkDark" parent="@style/TextBold14">
+        <item name="android:textColor">@color/pink_dark</item>
+    </style>
+
+    <style name="TextBold16BlueLight" parent="@style/TextBold16">
+        <item name="android:textColor">@color/blue_light</item>
+    </style>
+
+    <style name="TextBold16BlueDark" parent="@style/TextBold16">
+        <item name="android:textColor">@color/blue_dark</item>
+    </style>
+
+    <style name="TextBold16GreenLight" parent="@style/TextBold16">
+        <item name="android:textColor">@color/green_light</item>
+    </style>
+
+    <style name="TextBold16GreenDark" parent="@style/TextBold16">
+        <item name="android:textColor">@color/green_dark</item>
+    </style>
+
+    <style name="TextBold16GreyLight" parent="@style/TextBold16">
+        <item name="android:textColor">@color/grey_light</item>
+    </style>
+
+    <style name="TextBold16GreyDark" parent="@style/TextBold16">
+        <item name="android:textColor">@color/grey_dark</item>
+    </style>
+
+    <style name="TextBold16PinkLight" parent="@style/TextBold16">
+        <item name="android:textColor">@color/pink_light</item>
+    </style>
+
+    <style name="TextBold16PinkDark" parent="@style/TextBold16">
+        <item name="android:textColor">@color/pink_dark</item>
+    </style>
+
+    <!-- TITLE (HEADER) -->
+    <style name="TitleLight" parent="TextLight">
+        <item name="android:textSize">@dimen/header_big_text_size</item>
+    </style>
+
+    <style name="TitleLightPrimary" parent="TitleLight">
+        <item name="android:textColor">@color/theme_primary</item>
+    </style>
+
+    <!-- Mock location bar -->
+    <style name="LocationBar" parent="@style/TextRegular14">
+        <item name="android:textColor">@color/white</item>
+        <item name="android:background">@color/blue_dark</item>
+        <item name="android:textIsSelectable">true</item>
+        <item name="android:textAlignment">textStart</item>
+        <item name="android:layout_margin">0sp</item>
+        <item name="android:padding">15sp</item>
+    </style>
+
+</resources>
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..c6515c0
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+    <style name="Theme.SettingsBase" parent="@android:style/Theme.Material.Settings" />
+</resources>
diff --git a/app/src/test/java/com/fairphone/cameraswapinfo/ExampleUnitTest.java b/app/src/test/java/com/fairphone/cameraswapinfo/ExampleUnitTest.java
new file mode 100644
index 0000000..868b3ef
--- /dev/null
+++ b/app/src/test/java/com/fairphone/cameraswapinfo/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.fairphone.cameraswapinfo;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
+ */
+public class ExampleUnitTest {
+    @Test
+    public void addition_isCorrect() throws Exception {
+        assertEquals(4, 2 + 2);
+    }
+}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..c20bca1
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+    repositories {
+        jcenter()
+    }
+    dependencies {
+        classpath 'com.android.tools.build:gradle:2.2.2'
+
+        // NOTE: Do not place your application dependencies here; they belong
+        // in the individual module build.gradle files
+    }
+}
+
+allprojects {
+    repositories {
+        jcenter()
+    }
+}
+
+task clean(type: Delete) {
+    delete rootProject.buildDir
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..aac7c9b
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,17 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..13372ae
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..04e285f
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Mon Dec 28 10:00:20 PST 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
diff --git a/gradlew b/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+##  Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+    echo "$*"
+}
+
+die ( ) {
+    echo
+    echo "$*"
+    echo
+    exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+  CYGWIN* )
+    cygwin=true
+    ;;
+  Darwin* )
+    darwin=true
+    ;;
+  MINGW* )
+    msys=true
+    ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+        PRG="$link"
+    else
+        PRG=`dirname "$PRG"`"/$link"
+    fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+        # IBM's JDK on AIX uses strange locations for the executables
+        JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+        JAVACMD="$JAVA_HOME/bin/java"
+    fi
+    if [ ! -x "$JAVACMD" ] ; then
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+    fi
+else
+    JAVACMD="java"
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+    MAX_FD_LIMIT=`ulimit -H -n`
+    if [ $? -eq 0 ] ; then
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+            MAX_FD="$MAX_FD_LIMIT"
+        fi
+        ulimit -n $MAX_FD
+        if [ $? -ne 0 ] ; then
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
+        fi
+    else
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+    fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+    JAVACMD=`cygpath --unix "$JAVACMD"`
+
+    # We build the pattern for arguments to be converted via cygpath
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+    SEP=""
+    for dir in $ROOTDIRSRAW ; do
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
+        SEP="|"
+    done
+    OURCYGPATTERN="(^($ROOTDIRS))"
+    # Add a user-defined pattern to the cygpath arguments
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+    fi
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
+    i=0
+    for arg in "$@" ; do
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
+
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+        else
+            eval `echo args$i`="\"$arg\""
+        fi
+        i=$((i+1))
+    done
+    case $i in
+        (0) set -- ;;
+        (1) set -- "$args0" ;;
+        (2) set -- "$args0" "$args1" ;;
+        (3) set -- "$args0" "$args1" "$args2" ;;
+        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+    esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+    JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'