diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..39fb081
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+*.iml
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..7ac24c7
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..5d19981
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..7763030
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
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..3270f66
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,30 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 26
+ buildToolsVersion "26.0.0"
+ defaultConfig {
+ applicationId "com.example.xinyichen.matchthemembers"
+ minSdkVersion 15
+ targetSdkVersion 26
+ 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:26.+'
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ testCompile 'junit:junit:4.12'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..431960b
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,25 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/xinyichen/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 *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/app/src/androidTest/java/com/example/xinyichen/matchthemembers/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/xinyichen/matchthemembers/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..80d0e2a
--- /dev/null
+++ b/app/src/androidTest/java/com/example/xinyichen/matchthemembers/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.xinyichen.matchthemembers;
+
+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 Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() throws Exception {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.example.xinyichen.matchthemembers", appContext.getPackageName());
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..d90fb3d
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/xinyichen/matchthemembers/GameScreen.java b/app/src/main/java/com/example/xinyichen/matchthemembers/GameScreen.java
new file mode 100644
index 0000000..d2b14b0
--- /dev/null
+++ b/app/src/main/java/com/example/xinyichen/matchthemembers/GameScreen.java
@@ -0,0 +1,423 @@
+package com.example.xinyichen.matchthemembers;
+
+import android.app.ActionBar;
+import android.content.DialogInterface;
+import android.content.Intent;
+import android.os.CountDownTimer;
+import android.provider.ContactsContract;
+import android.support.v7.app.AlertDialog;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.support.v7.view.CollapsibleActionView;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.ImageView;
+import android.widget.TextView;
+import android.widget.Toast;
+
+import org.w3c.dom.Text;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Random;
+
+import static java.security.AccessController.getContext;
+
+public class GameScreen extends AppCompatActivity {
+ TextView timeText;
+ CountDownTimer timer = new CountDownTimer(5100, 1000){
+ public void onTick(long millisUntilFinished) {
+ timeText.setText("00 : 0" + millisUntilFinished / 1000);
+ }
+ public void onFinish() {
+ turn++;
+ createQuestion(turn);
+ timer.start();
+ }
+ };
+ Button exitButton;
+
+ Button buttonAnswer1, buttonAnswer2, buttonAnswer3, buttonAnswer4;
+ ImageView memberPic;
+
+ List pairs;
+
+ Random random;
+
+ private int score = 0;
+ private TextView scoreChanger;
+
+ int turn = 1;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_game_screen);
+ timeText = (TextView)findViewById(R.id.timerTime);
+ exitButton = (Button) findViewById(R.id.exitButton);
+
+ random = new Random();
+
+ memberPic = (ImageView) findViewById(R.id.memberPic);
+
+ buttonAnswer1 = (Button) findViewById(R.id.choice1);
+ buttonAnswer2 = (Button) findViewById(R.id.choice2);
+ buttonAnswer3 = (Button) findViewById(R.id.choice3);
+ buttonAnswer4 = (Button) findViewById(R.id.choice4);
+
+ scoreChanger = (TextView) findViewById(R.id.scoreNum);
+ updateScore(score);
+
+ pairs = new ArrayList<>();
+ ImgNameDatabase imgNameDatabase = new ImgNameDatabase();
+
+ //adding image and name pairs to list
+ for (int i = 0; i < imgNameDatabase.cNames.length; i++) {
+ pairs.add(new ImgNamePairs(imgNameDatabase.cNames[i], imgNameDatabase.memberImages[i]));
+ }
+
+ //randomize the pairing order
+
+ Collections.shuffle(pairs);
+
+ createQuestion(turn);
+ timer.start(); //THIS IS THE LINE WHERE EVERYTHING BREAKS FOR SOME REASON
+
+
+
+ exitButton.setOnClickListener(new View.OnClickListener(){
+ @Override
+ public void onClick(View view) {
+
+ AlertDialog.Builder builder2=new AlertDialog.Builder(GameScreen.this);
+ builder2.setMessage("Are you sure you want to quit?");
+ builder2.setPositiveButton("Yes",new DialogInterface.OnClickListener() {
+
+ @Override
+ public void onClick(DialogInterface dialog, int which) {
+ Toast.makeText(getApplicationContext(), "Thanks for Playing!", Toast.LENGTH_LONG).show();
+ Intent intentReturn = new Intent(getApplicationContext(), StartScreen.class);
+ startActivity(intentReturn); //returns to the start screen
+ }
+
+ });
+
+ builder2.setNegativeButton("Nope", new DialogInterface.OnClickListener() {
+
+ @Override
+
+ public void onClick(DialogInterface dialog, int which) {
+ dialog.dismiss();
+
+ }
+
+ });
+
+ builder2.show();
+
+ /*AlertDialog alertDialog = new AlertDialog.Builder(GameScreen.this).create();
+ alertDialog.setTitle("Are you sure you want to quit?");
+ alertDialog.setMessage("All progress will be lost.");
+ alertDialog.setButton(1, "Yes!", new DialogInterface.OnClickListener()
+ {
+ @Override
+ public void onClick(DialogInterface dialog, int id)
+ {
+ Toast.makeText(GameScreen.this, "Thank You!", Toast.LENGTH_SHORT).show();
+ Intent intentReturn = new Intent(getApplicationContext(), StartScreen.class);
+ startActivity(intentReturn); //returns to the start screen
+ }
+ });
+ alertDialog.setButton(0, "Cancel", new DialogInterface.OnClickListener()
+ {
+ @Override
+ public void onClick(DialogInterface dialog, int id)
+ {
+ dialog.dismiss();
+ finish();//close the dialog window without doing anything
+ }
+ }
+ );
+ alertDialog.show();*/
+ }
+ });
+
+
+ memberPic.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ timer.cancel(); //don't penalize the player for creating a contact
+ //Creates a new Intent to insert a new contact
+ Intent contactIntent = new Intent(ContactsContract.Intents.Insert.ACTION);
+ contactIntent.setType(ContactsContract.RawContacts.CONTENT_TYPE);
+ // Gets the name of the currently displayed member
+ String memName = pairs.get(turn - 1).getMemberName();
+ // Executes the new contact creation
+ contactIntent.putExtra(ContactsContract.Intents.Insert.NAME, memName);
+ startActivityForResult(contactIntent, 1);
+ }
+ });
+
+ buttonAnswer1.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ //check correctness of answer, first check wrong then right
+ timer.cancel();
+ if (!(buttonAnswer1.getText().toString().equalsIgnoreCase(pairs.get(turn - 1).getMemberName()))) {
+ Toast.makeText(GameScreen.this, "Wrong Answer :(", Toast.LENGTH_SHORT).show();
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Toast.makeText(GameScreen.this, "Congrats! You've Finished!", Toast.LENGTH_SHORT).show();
+ }
+
+ } else {
+
+ score ++;
+ updateScore(score);
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Toast.makeText(GameScreen.this, "Congrats! You've Finished!", Toast.LENGTH_SHORT).show();
+
+ }
+
+ }
+ }
+ });
+
+ buttonAnswer2.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ timer.cancel();
+ //check correctness of answer, first check wrong then right
+ if (!(buttonAnswer2.getText().toString().equalsIgnoreCase(pairs.get(turn - 1).getMemberName()))) {
+ Toast.makeText(GameScreen.this, "Wrong Answer :(", Toast.LENGTH_SHORT).show();
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Toast.makeText(GameScreen.this, "Congrats! You've Finished!", Toast.LENGTH_SHORT).show();
+ }
+
+ } else {
+
+ score ++;
+ updateScore(score);
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Toast.makeText(GameScreen.this, "Congrats! You've Finished!", Toast.LENGTH_SHORT).show();
+ }
+
+ }
+ }
+ });
+
+ buttonAnswer3.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ timer.cancel();
+ //check correctness of answer, first check wrong then right
+ if (!(buttonAnswer3.getText().toString().equalsIgnoreCase(pairs.get(turn - 1).getMemberName()))) {
+ Toast.makeText(GameScreen.this, "Wrong Answer :(", Toast.LENGTH_SHORT).show();
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Collections.shuffle(pairs);
+ turn = 1;
+ }
+
+ } else {
+
+ score ++;
+ updateScore(score);
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Collections.shuffle(pairs);
+ turn = 1;
+ }
+
+ }
+ }
+ });
+
+ buttonAnswer4.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ //check correctness of answer, first check wrong then right
+ if (!(buttonAnswer4.getText().toString().equalsIgnoreCase(pairs.get(turn - 1).getMemberName()))) {
+ Toast.makeText(GameScreen.this, "Wrong Answer :(", Toast.LENGTH_SHORT).show();
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Collections.shuffle(pairs);
+ turn = 1;
+ }
+
+ } else {
+
+ score ++;
+ updateScore(score);
+
+ if (turn < pairs.size()) {
+ turn ++;
+ createQuestion(turn);
+ timer.start();
+ } else {
+ Collections.shuffle(pairs);
+ turn = 1;
+ }
+
+ }
+ }
+ });
+
+ }
+
+ private void createQuestion(int qNum) {
+ // chooses pic for the question
+ memberPic.setImageResource(pairs.get(qNum - 1).getImg());
+
+ //decides which button contains the correct answer
+ int correctAnswer = random.nextInt(4) + 1;
+
+ int firstButton = qNum - 1;
+ int secondButton;
+ int thirdButton;
+ int fourthButton;
+
+ // the variable names may be confusing as the logic is C&Ped.
+
+ switch (correctAnswer) {
+ case 1:
+ buttonAnswer1.setText(pairs.get(firstButton).getMemberName());
+
+ do {
+ secondButton = random.nextInt(pairs.size());
+ } while (secondButton == firstButton);
+
+ do {
+ thirdButton = random.nextInt(pairs.size());
+ } while (thirdButton == firstButton || thirdButton == secondButton);
+
+ do {
+ fourthButton = random.nextInt(pairs.size());
+ } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);
+
+ buttonAnswer2.setText(pairs.get(secondButton).getMemberName());
+ buttonAnswer3.setText(pairs.get(thirdButton).getMemberName());
+ buttonAnswer4.setText(pairs.get(fourthButton).getMemberName());
+
+ break;
+
+ case 2:
+ buttonAnswer2.setText(pairs.get(firstButton).getMemberName());
+
+ do {
+ secondButton = random.nextInt(pairs.size());
+ } while (secondButton == firstButton);
+
+ do {
+ thirdButton = random.nextInt(pairs.size());
+ } while (thirdButton == firstButton || thirdButton == secondButton);
+
+ do {
+ fourthButton = random.nextInt(pairs.size());
+ } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);
+
+ buttonAnswer1.setText(pairs.get(secondButton).getMemberName());
+ buttonAnswer3.setText(pairs.get(thirdButton).getMemberName());
+ buttonAnswer4.setText(pairs.get(fourthButton).getMemberName());
+ break;
+
+ case 3:
+ buttonAnswer3.setText(pairs.get(firstButton).getMemberName());
+
+ do {
+ secondButton = random.nextInt(pairs.size());
+ } while (secondButton == firstButton);
+
+ do {
+ thirdButton = random.nextInt(pairs.size());
+ } while (thirdButton == firstButton || thirdButton == secondButton);
+
+ do {
+ fourthButton = random.nextInt(pairs.size());
+ } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);
+
+ buttonAnswer2.setText(pairs.get(secondButton).getMemberName());
+ buttonAnswer1.setText(pairs.get(thirdButton).getMemberName());
+ buttonAnswer4.setText(pairs.get(fourthButton).getMemberName());
+
+ break;
+
+ case 4:
+ buttonAnswer4.setText(pairs.get(firstButton).getMemberName());
+
+ do {
+ secondButton = random.nextInt(pairs.size());
+ } while (secondButton == firstButton);
+
+ do {
+ thirdButton = random.nextInt(pairs.size());
+ } while (thirdButton == firstButton || thirdButton == secondButton);
+
+ do {
+ fourthButton = random.nextInt(pairs.size());
+ } while (fourthButton == firstButton || fourthButton == secondButton || fourthButton == thirdButton);
+
+ buttonAnswer2.setText(pairs.get(secondButton).getMemberName());
+ buttonAnswer3.setText(pairs.get(thirdButton).getMemberName());
+ buttonAnswer1.setText(pairs.get(fourthButton).getMemberName());
+
+ break;
+ }
+
+ }
+
+ private void updateScore(int newScore) {
+ scoreChanger.setText("Score: " + score);
+ }
+
+ public class MyCountDownTimer extends CountDownTimer {
+
+ public MyCountDownTimer(long millisInFuture, long countDownInterval) {
+ super(millisInFuture, countDownInterval);
+ }
+
+ @Override
+ public void onTick(long millisUntilFinished) {
+ int progress = (int) (millisUntilFinished / 1000);
+ timeText.setText(progress);
+ }
+
+ @Override
+ public void onFinish() {
+ Toast.makeText(GameScreen.this, "Time's Up! :(", Toast.LENGTH_SHORT).show();
+ }
+ }
+}
+
diff --git a/app/src/main/java/com/example/xinyichen/matchthemembers/ImgNameDatabase.java b/app/src/main/java/com/example/xinyichen/matchthemembers/ImgNameDatabase.java
new file mode 100644
index 0000000..388b6b7
--- /dev/null
+++ b/app/src/main/java/com/example/xinyichen/matchthemembers/ImgNameDatabase.java
@@ -0,0 +1,70 @@
+package com.example.xinyichen.matchthemembers;
+
+/**
+ * Created by xinyichen on 9/14/17.
+ */
+
+public class ImgNameDatabase {
+
+ Integer[] memberImages = {
+ R.drawable.aayushtyagi,
+ R.drawable.abhinavkoppu,
+ R.drawable.adhirajdatar,
+ R.drawable.akkshaykhoslaa,
+ R.drawable.amyshen,
+ R.drawable.aneeshjindal,
+ R.drawable.ashwinvaidyanathan,
+ R.drawable.bengoldberg,
+ R.drawable.billylu,
+ R.drawable.borisyue,
+ R.drawable.candiceye,
+ R.drawable.codyhsieh,
+ R.drawable.danielandrews,
+ R.drawable.edwardliu,
+ R.drawable.eliothan,
+ R.drawable.emaanhariri,
+ R.drawable.erickong,
+ R.drawable.jaredgutierrez,
+ R.drawable.jeffreyzhang,
+ R.drawable.jessicachen,
+ R.drawable.julialuo,
+ R.drawable.justinkim,
+ R.drawable.kevinjiang,
+ R.drawable.krishnanrajiyah,
+ R.drawable.kristinho,
+ R.drawable.leonkwak,
+ R.drawable.leviwalsh,
+ R.drawable.mohitkatyal,
+ R.drawable.muditmittal,
+ R.drawable.peterschafhalter,
+ R.drawable.radhikadhomse,
+ R.drawable.rochelleshen,
+ R.drawable.sahillamba,
+ R.drawable.sarahtang,
+ R.drawable.sayanpaul,
+ R.drawable.shariewang,
+ R.drawable.shivkushwah,
+ R.drawable.shreyareddy,
+ R.drawable.shubhamgoenka,
+ R.drawable.sumukhshivakumar,
+ R.drawable.tarunkhasnavis,
+ R.drawable.victorsun,
+ R.drawable.vidyaravikumar,
+ R.drawable.wilburshi,
+ R.drawable.younglin,
+ R.drawable.zachgovani,
+ };
+
+ String[] cNames = {"Aayush Tyagi", "Abhinav Koppu", "Adhiraj Datar",
+ "Akkshay Khoslaa", "Amy Shen", "Aneesh Jindal", "Ashwin Vaidyanathan",
+ "Ben Goldberg", "Billy Lu", "Boris Yue", "Candice Ye", "Cody Hsieh",
+ "Daniel Andrews", "Edward Liu", "Eliot Han", "Emaan Hariri", "Eric Kong",
+ "Jared Gutierrez", "Jeffrey Zhang", "Jessica Chen", "Julia Luo", "Justin Kim",
+ "Kevin Jiang", "Krishnan Rajiyah", "Kristin Ho", "Leon Kwak", "Levi Walsh",
+ "Mohit Katyal", "Mudit Mittal", "Peter Schafhalter", "Radhika Dhomse",
+ "Rochelle Shen", "Sahil Lamba", "Sarah Tang", "Sayan Paul", "Sharie Wang",
+ "Shiv Kushwah", "Shreya Reddy", "Shubham Goenka", "Sumukh Shivakumar",
+ "Tarun Khasnavis", "Victor Sun", "Vidya Ravikumar", "Wilbur Shi", "Young Lin",
+ "Zach Govani"
+ };
+}
diff --git a/app/src/main/java/com/example/xinyichen/matchthemembers/ImgNamePairs.java b/app/src/main/java/com/example/xinyichen/matchthemembers/ImgNamePairs.java
new file mode 100644
index 0000000..cf38ede
--- /dev/null
+++ b/app/src/main/java/com/example/xinyichen/matchthemembers/ImgNamePairs.java
@@ -0,0 +1,23 @@
+package com.example.xinyichen.matchthemembers;
+
+/**
+ * Created by xinyichen on 9/14/17.
+ */
+
+public class ImgNamePairs {
+ String memberName;
+ int img;
+
+ public ImgNamePairs(String name, int img){
+ this.memberName = name;
+ this.img = img;
+ }
+
+ public String getMemberName() {
+ return memberName;
+ }
+
+ public int getImg() {
+ return img;
+ }
+}
diff --git a/app/src/main/java/com/example/xinyichen/matchthemembers/StartScreen.java b/app/src/main/java/com/example/xinyichen/matchthemembers/StartScreen.java
new file mode 100644
index 0000000..d8f0e84
--- /dev/null
+++ b/app/src/main/java/com/example/xinyichen/matchthemembers/StartScreen.java
@@ -0,0 +1,40 @@
+package com.example.xinyichen.matchthemembers;
+
+import android.content.Intent;
+import android.net.Uri;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.ImageView;
+
+public class StartScreen extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_start_screen);
+
+ Button button = (Button)findViewById(R.id.startButton);
+
+ button.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Intent intent = new Intent(getApplicationContext(), GameScreen.class);
+ startActivity(intent);
+ }
+ });
+
+ ImageView logo = (ImageView)findViewById(R.id.logo);
+ logo.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ Uri uri = Uri.parse("http://www.mobiledevsberkeley.org/");
+ Intent intent = new Intent(Intent.ACTION_VIEW, uri);
+ startActivity(intent);
+ }
+ });
+
+ }
+
+}
diff --git a/app/src/main/res/drawable/aayushtyagi.jpg b/app/src/main/res/drawable/aayushtyagi.jpg
new file mode 100755
index 0000000..20c626a
Binary files /dev/null and b/app/src/main/res/drawable/aayushtyagi.jpg differ
diff --git a/app/src/main/res/drawable/abhinavkoppu.jpg b/app/src/main/res/drawable/abhinavkoppu.jpg
new file mode 100755
index 0000000..6bb665c
Binary files /dev/null and b/app/src/main/res/drawable/abhinavkoppu.jpg differ
diff --git a/app/src/main/res/drawable/adhirajdatar.png b/app/src/main/res/drawable/adhirajdatar.png
new file mode 100755
index 0000000..6056a8f
Binary files /dev/null and b/app/src/main/res/drawable/adhirajdatar.png differ
diff --git a/app/src/main/res/drawable/akkshaykhoslaa.png b/app/src/main/res/drawable/akkshaykhoslaa.png
new file mode 100755
index 0000000..a14cc33
Binary files /dev/null and b/app/src/main/res/drawable/akkshaykhoslaa.png differ
diff --git a/app/src/main/res/drawable/amyshen.png b/app/src/main/res/drawable/amyshen.png
new file mode 100755
index 0000000..56bafce
Binary files /dev/null and b/app/src/main/res/drawable/amyshen.png differ
diff --git a/app/src/main/res/drawable/aneeshjindal.jpg b/app/src/main/res/drawable/aneeshjindal.jpg
new file mode 100755
index 0000000..345e24d
Binary files /dev/null and b/app/src/main/res/drawable/aneeshjindal.jpg differ
diff --git a/app/src/main/res/drawable/ashwinvaidyanathan.jpg b/app/src/main/res/drawable/ashwinvaidyanathan.jpg
new file mode 100755
index 0000000..c27f61c
Binary files /dev/null and b/app/src/main/res/drawable/ashwinvaidyanathan.jpg differ
diff --git a/app/src/main/res/drawable/bengoldberg.jpg b/app/src/main/res/drawable/bengoldberg.jpg
new file mode 100755
index 0000000..c87647f
Binary files /dev/null and b/app/src/main/res/drawable/bengoldberg.jpg differ
diff --git a/app/src/main/res/drawable/billylu.jpg b/app/src/main/res/drawable/billylu.jpg
new file mode 100755
index 0000000..a03fe37
Binary files /dev/null and b/app/src/main/res/drawable/billylu.jpg differ
diff --git a/app/src/main/res/drawable/borisyue.png b/app/src/main/res/drawable/borisyue.png
new file mode 100755
index 0000000..b039809
Binary files /dev/null and b/app/src/main/res/drawable/borisyue.png differ
diff --git a/app/src/main/res/drawable/candiceye.jpg b/app/src/main/res/drawable/candiceye.jpg
new file mode 100755
index 0000000..ac1677a
Binary files /dev/null and b/app/src/main/res/drawable/candiceye.jpg differ
diff --git a/app/src/main/res/drawable/codyhsieh.png b/app/src/main/res/drawable/codyhsieh.png
new file mode 100755
index 0000000..c380790
Binary files /dev/null and b/app/src/main/res/drawable/codyhsieh.png differ
diff --git a/app/src/main/res/drawable/danielandrews.png b/app/src/main/res/drawable/danielandrews.png
new file mode 100755
index 0000000..4aa149f
Binary files /dev/null and b/app/src/main/res/drawable/danielandrews.png differ
diff --git a/app/src/main/res/drawable/edwardliu.jpg b/app/src/main/res/drawable/edwardliu.jpg
new file mode 100755
index 0000000..83de0b5
Binary files /dev/null and b/app/src/main/res/drawable/edwardliu.jpg differ
diff --git a/app/src/main/res/drawable/eliothan.jpg b/app/src/main/res/drawable/eliothan.jpg
new file mode 100755
index 0000000..8ec8398
Binary files /dev/null and b/app/src/main/res/drawable/eliothan.jpg differ
diff --git a/app/src/main/res/drawable/emaanhariri.jpg b/app/src/main/res/drawable/emaanhariri.jpg
new file mode 100755
index 0000000..d311b90
Binary files /dev/null and b/app/src/main/res/drawable/emaanhariri.jpg differ
diff --git a/app/src/main/res/drawable/erickong.png b/app/src/main/res/drawable/erickong.png
new file mode 100755
index 0000000..ed131ab
Binary files /dev/null and b/app/src/main/res/drawable/erickong.png differ
diff --git a/app/src/main/res/drawable/ic_exit_to_app_white_48dp.png b/app/src/main/res/drawable/ic_exit_to_app_white_48dp.png
new file mode 100644
index 0000000..e4cd8cf
Binary files /dev/null and b/app/src/main/res/drawable/ic_exit_to_app_white_48dp.png differ
diff --git a/app/src/main/res/drawable/jaredgutierrez.jpg b/app/src/main/res/drawable/jaredgutierrez.jpg
new file mode 100755
index 0000000..fc94eeb
Binary files /dev/null and b/app/src/main/res/drawable/jaredgutierrez.jpg differ
diff --git a/app/src/main/res/drawable/jeffreyzhang.png b/app/src/main/res/drawable/jeffreyzhang.png
new file mode 100755
index 0000000..5f223ae
Binary files /dev/null and b/app/src/main/res/drawable/jeffreyzhang.png differ
diff --git a/app/src/main/res/drawable/jessicachen.jpg b/app/src/main/res/drawable/jessicachen.jpg
new file mode 100755
index 0000000..6423e5a
Binary files /dev/null and b/app/src/main/res/drawable/jessicachen.jpg differ
diff --git a/app/src/main/res/drawable/julialuo.png b/app/src/main/res/drawable/julialuo.png
new file mode 100755
index 0000000..6337ef0
Binary files /dev/null and b/app/src/main/res/drawable/julialuo.png differ
diff --git a/app/src/main/res/drawable/justinkim.jpg b/app/src/main/res/drawable/justinkim.jpg
new file mode 100755
index 0000000..23ebd77
Binary files /dev/null and b/app/src/main/res/drawable/justinkim.jpg differ
diff --git a/app/src/main/res/drawable/kevinjiang.jpg b/app/src/main/res/drawable/kevinjiang.jpg
new file mode 100755
index 0000000..a225fb2
Binary files /dev/null and b/app/src/main/res/drawable/kevinjiang.jpg differ
diff --git a/app/src/main/res/drawable/krishnanrajiyah.jpg b/app/src/main/res/drawable/krishnanrajiyah.jpg
new file mode 100755
index 0000000..85d43c4
Binary files /dev/null and b/app/src/main/res/drawable/krishnanrajiyah.jpg differ
diff --git a/app/src/main/res/drawable/kristinho.jpg b/app/src/main/res/drawable/kristinho.jpg
new file mode 100755
index 0000000..0427487
Binary files /dev/null and b/app/src/main/res/drawable/kristinho.jpg differ
diff --git a/app/src/main/res/drawable/leonkwak.png b/app/src/main/res/drawable/leonkwak.png
new file mode 100755
index 0000000..786c8b6
Binary files /dev/null and b/app/src/main/res/drawable/leonkwak.png differ
diff --git a/app/src/main/res/drawable/leviwalsh.png b/app/src/main/res/drawable/leviwalsh.png
new file mode 100755
index 0000000..10adff4
Binary files /dev/null and b/app/src/main/res/drawable/leviwalsh.png differ
diff --git a/app/src/main/res/drawable/mdblogo.png b/app/src/main/res/drawable/mdblogo.png
new file mode 100644
index 0000000..721bf19
Binary files /dev/null and b/app/src/main/res/drawable/mdblogo.png differ
diff --git a/app/src/main/res/drawable/mohitkatyal.png b/app/src/main/res/drawable/mohitkatyal.png
new file mode 100755
index 0000000..327a27d
Binary files /dev/null and b/app/src/main/res/drawable/mohitkatyal.png differ
diff --git a/app/src/main/res/drawable/muditmittal.jpg b/app/src/main/res/drawable/muditmittal.jpg
new file mode 100755
index 0000000..c583e0b
Binary files /dev/null and b/app/src/main/res/drawable/muditmittal.jpg differ
diff --git a/app/src/main/res/drawable/peterschafhalter.jpg b/app/src/main/res/drawable/peterschafhalter.jpg
new file mode 100755
index 0000000..0e41b58
Binary files /dev/null and b/app/src/main/res/drawable/peterschafhalter.jpg differ
diff --git a/app/src/main/res/drawable/radhikadhomse.png b/app/src/main/res/drawable/radhikadhomse.png
new file mode 100755
index 0000000..efaa17a
Binary files /dev/null and b/app/src/main/res/drawable/radhikadhomse.png differ
diff --git a/app/src/main/res/drawable/rochelleshen.png b/app/src/main/res/drawable/rochelleshen.png
new file mode 100755
index 0000000..dbeb439
Binary files /dev/null and b/app/src/main/res/drawable/rochelleshen.png differ
diff --git a/app/src/main/res/drawable/sahillamba.png b/app/src/main/res/drawable/sahillamba.png
new file mode 100755
index 0000000..6a76b82
Binary files /dev/null and b/app/src/main/res/drawable/sahillamba.png differ
diff --git a/app/src/main/res/drawable/sarahtang.png b/app/src/main/res/drawable/sarahtang.png
new file mode 100755
index 0000000..0a15218
Binary files /dev/null and b/app/src/main/res/drawable/sarahtang.png differ
diff --git a/app/src/main/res/drawable/sayanpaul.jpg b/app/src/main/res/drawable/sayanpaul.jpg
new file mode 100755
index 0000000..32def54
Binary files /dev/null and b/app/src/main/res/drawable/sayanpaul.jpg differ
diff --git a/app/src/main/res/drawable/shariewang.jpg b/app/src/main/res/drawable/shariewang.jpg
new file mode 100755
index 0000000..3b0327c
Binary files /dev/null and b/app/src/main/res/drawable/shariewang.jpg differ
diff --git a/app/src/main/res/drawable/shivkushwah.png b/app/src/main/res/drawable/shivkushwah.png
new file mode 100755
index 0000000..1716d69
Binary files /dev/null and b/app/src/main/res/drawable/shivkushwah.png differ
diff --git a/app/src/main/res/drawable/shreyareddy.jpg b/app/src/main/res/drawable/shreyareddy.jpg
new file mode 100755
index 0000000..2c78bb6
Binary files /dev/null and b/app/src/main/res/drawable/shreyareddy.jpg differ
diff --git a/app/src/main/res/drawable/shubhamgoenka.jpg b/app/src/main/res/drawable/shubhamgoenka.jpg
new file mode 100755
index 0000000..6374bef
Binary files /dev/null and b/app/src/main/res/drawable/shubhamgoenka.jpg differ
diff --git a/app/src/main/res/drawable/sumukhshivakumar.png b/app/src/main/res/drawable/sumukhshivakumar.png
new file mode 100755
index 0000000..6a3fd32
Binary files /dev/null and b/app/src/main/res/drawable/sumukhshivakumar.png differ
diff --git a/app/src/main/res/drawable/tarunkhasnavis.png b/app/src/main/res/drawable/tarunkhasnavis.png
new file mode 100755
index 0000000..a822f05
Binary files /dev/null and b/app/src/main/res/drawable/tarunkhasnavis.png differ
diff --git a/app/src/main/res/drawable/victorsun.jpg b/app/src/main/res/drawable/victorsun.jpg
new file mode 100755
index 0000000..f1c77b8
Binary files /dev/null and b/app/src/main/res/drawable/victorsun.jpg differ
diff --git a/app/src/main/res/drawable/vidyaravikumar.jpg b/app/src/main/res/drawable/vidyaravikumar.jpg
new file mode 100755
index 0000000..5f07d30
Binary files /dev/null and b/app/src/main/res/drawable/vidyaravikumar.jpg differ
diff --git a/app/src/main/res/drawable/wilburshi.jpg b/app/src/main/res/drawable/wilburshi.jpg
new file mode 100755
index 0000000..ea96cc0
Binary files /dev/null and b/app/src/main/res/drawable/wilburshi.jpg differ
diff --git a/app/src/main/res/drawable/younglin.jpg b/app/src/main/res/drawable/younglin.jpg
new file mode 100755
index 0000000..828dcbd
Binary files /dev/null and b/app/src/main/res/drawable/younglin.jpg differ
diff --git a/app/src/main/res/drawable/zachgovani.png b/app/src/main/res/drawable/zachgovani.png
new file mode 100755
index 0000000..a90a699
Binary files /dev/null and b/app/src/main/res/drawable/zachgovani.png differ
diff --git a/app/src/main/res/layout/activity_game_screen.xml b/app/src/main/res/layout/activity_game_screen.xml
new file mode 100644
index 0000000..a7023a6
--- /dev/null
+++ b/app/src/main/res/layout/activity_game_screen.xml
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_start_screen.xml b/app/src/main/res/layout/activity_start_screen.xml
new file mode 100644
index 0000000..fac8fd6
--- /dev/null
+++ b/app/src/main/res/layout/activity_start_screen.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9a078e3
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..efc028a
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..3af2608
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9bec2e6
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..aee44e1
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..34947cd
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..9ad7e36
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3f51b5
+ #303F9F
+ #FF4081
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..b62097f
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,8 @@
+
+ Match the Members
+ 0
+ Quit
+ Score:
+ memberImage
+ MATCH THE MEMBERS
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..0eb88fe
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/app/src/test/java/com/example/xinyichen/matchthemembers/ExampleUnitTest.java b/app/src/test/java/com/example/xinyichen/matchthemembers/ExampleUnitTest.java
new file mode 100644
index 0000000..76c2675
--- /dev/null
+++ b/app/src/test/java/com/example/xinyichen/matchthemembers/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.xinyichen.matchthemembers;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+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..c2eea8e
--- /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.3.3'
+
+ // 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
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..7bc9812
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Thu Sep 14 20:24:36 PDT 2017
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-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..aec9973
--- /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'