Updated for Gradle and Android Studio.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	modified:   .classpath
#	deleted:    .idea/libraries/MixpanelAPI.xml
#	deleted:    .idea/libraries/android_support_v4.xml
#	deleted:    .idea/libraries/gcm.xml
#	modified:   .settings/org.eclipse.core.resources.prefs
#	modified:   .settings/org.eclipse.jdt.core.prefs
#	modified:   AndroidManifest.xml
#	modified:   Lovamimi.iml
#	new file:   build.gradle
#	new file:   libs/deploygatesdk.jar
#	new file:   libs/gcm.jar
#	new file:   lint.xml
#	modified:   project.properties
#	modified:   src/com/lovamimi/BaseActivity.java
#	modified:   src/com/lovamimi/GCMIntentService.java
#	modified:   src/com/lovamimi/LovamimiApplication.java
#	modified:   src/com/lovamimi/MainActivity.java
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	.idea/.name
#	.idea/checkstyle-idea.xml
#	.idea/compiler.xml
#	.idea/copyright/
#	.idea/encodings.xml
#	.idea/gradle.xml
#	.idea/libraries/
#	.idea/misc.xml
#	.idea/modules.xml
#	.idea/scopes/
#	.idea/uiDesigner.xml
#	.idea/vcs.xml
#	.idea/workspace.xml
#	build/
diff --git a/.classpath b/.classpath
index a4763d1..7bc01d9 100644
--- a/.classpath
+++ b/.classpath
@@ -3,6 +3,7 @@
 	<classpathentry kind="src" path="src"/>
 	<classpathentry kind="src" path="gen"/>
 	<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
-	<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+	<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
 	<classpathentry kind="output" path="bin/classes"/>
 </classpath>
diff --git a/.idea/libraries/MixpanelAPI.xml b/.idea/libraries/MixpanelAPI.xml
deleted file mode 100644
index f69552f..0000000
--- a/.idea/libraries/MixpanelAPI.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<component name="libraryTable">
-  <library name="MixpanelAPI">
-    <CLASSES>
-      <root url="jar://$USER_HOME$/Downloads/mixpanel-android-latest/MixpanelAPI.jar!/" />
-    </CLASSES>
-    <JAVADOC />
-    <SOURCES />
-  </library>
-</component>
\ No newline at end of file
diff --git a/.idea/libraries/android_support_v4.xml b/.idea/libraries/android_support_v4.xml
deleted file mode 100644
index 5f94234..0000000
--- a/.idea/libraries/android_support_v4.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<component name="libraryTable">
-  <library name="android-support-v4">
-    <CLASSES>
-      <root url="jar://$USER_HOME$/facebook-android-sdk-3.0.1/facebook/libs/android-support-v4.jar!/" />
-    </CLASSES>
-    <JAVADOC />
-    <SOURCES />
-  </library>
-</component>
\ No newline at end of file
diff --git a/.idea/libraries/gcm.xml b/.idea/libraries/gcm.xml
deleted file mode 100644
index e32b314..0000000
--- a/.idea/libraries/gcm.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<component name="libraryTable">
-  <library name="gcm">
-    <CLASSES>
-      <root url="jar://$USER_HOME$/adt-bundle-mac-x86_64-20130219/sdk/extras/google/gcm/gcm-client/dist/gcm.jar!/" />
-    </CLASSES>
-    <JAVADOC />
-    <SOURCES />
-  </library>
-</component>
\ No newline at end of file
diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs
index ea98178..0c36e16 100644
--- a/.settings/org.eclipse.core.resources.prefs
+++ b/.settings/org.eclipse.core.resources.prefs
@@ -1,3 +1,5 @@
 eclipse.preferences.version=1
+encoding//src/com/lovamimi/BaseActivity.java=UTF-8
 encoding//src/com/lovamimi/CommentActivity.java=UTF-8
+encoding//src/com/lovamimi/GCMIntentService.java=UTF-8
 encoding//src/com/lovamimi/MainActivity.java=UTF-8
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
index b080d2d..8000cd6 100644
--- a/.settings/org.eclipse.jdt.core.prefs
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -1,4 +1,11 @@
 eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
 org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
 org.eclipse.jdt.core.compiler.source=1.6
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 10f2b87..11f8b38 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.lovamimi"
-    android:versionCode="5"
-    android:versionName="1.5" >
+    android:versionCode="7"
+    android:versionName="1.7" >

     <uses-sdk
         android:minSdkVersion="12"
@@ -18,15 +18,15 @@
     <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
     <!-- Keeps the processor from sleeping when a message is received. -->
     <uses-permission android:name="android.permission.WAKE_LOCK"/>
+    <uses-permission android:name="android.permission.READ_LOGS" />

-    <service android:name=".GCMIntentService"></service>
     <application
         android:allowBackup="true"
         android:icon="@drawable/lovamimi_logo"
         android:label="@string/app_name"
         android:theme="@style/AppTheme" android:name=".LovamimiApplication">
-
+    	<service android:name=".GCMIntentService"></service>
         <receiver android:permission="com.google.android.c2dm.permission.SEND" android:name="com.google.android.gcm.GCMBroadcastReceiver">
             <intent-filter>
                 <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
diff --git a/Lovamimi.iml b/Lovamimi.iml
index ae56ceb..ef0684c 100644
--- a/Lovamimi.iml
+++ b/Lovamimi.iml
@@ -1,32 +1,77 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
-  <component name="EclipseModuleManager" forced_jdk="true">
-    <src_description expected_position="1">
-      <src_folder value="file://$MODULE_DIR$/src" expected_position="0" />
-      <src_folder value="file://$MODULE_DIR$/gen" expected_position="1" />
-      <src_folder value="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK" expected_position="2" />
-      <src_folder value="com.android.ide.eclipse.adt.LIBRARIES" expected_position="3" />
-    </src_description>
-  </component>
+<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="workspace" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
   <component name="FacetManager">
     <facet type="android" name="Android">
-      <configuration />
+      <configuration>
+        <option name="SELECTED_BUILD_VARIANT" value="debug" />
+        <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
+        <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugJava" />
+        <option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugTest" />
+        <option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
+        <option name="ALLOW_USER_CONFIGURATION" value="false" />
+        <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/res" />
+      </configuration>
+    </facet>
+    <facet type="android-gradle" name="Android-Gradle">
+      <configuration>
+        <option name="GRADLE_PROJECT_PATH" value=":Lovamimi" />
+      </configuration>
     </facet>
   </component>
   <component name="NewModuleRootManager" inherit-compiler-output="false">
-    <output url="file://$MODULE_DIR$/bin/classes" />
+    <output url="file://$MODULE_DIR$/build/classes/debug" />
     <exclude-output />
     <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/build/source/r/debug" isTestSource="false" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/aidl/debug" isTestSource="false" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/buildConfig/debug" isTestSource="false" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/rs/debug" isTestSource="false" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/res/rs/debug" type="java-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/r/test/debug" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/aidl/test/debug" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/buildConfig/test/debug" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/source/rs/test/debug" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/build/res/rs/test/debug" type="java-test-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/aidl" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/assets" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/java" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/jni" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/rs" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/res" type="java-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/build-types/debug/resources" type="java-resource" />
       <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/assets" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/src" type="java-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/aidl" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/assets" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/java" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/jni" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/rs" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/res" type="java-test-resource" />
+      <sourceFolder url="file://$MODULE_DIR$/tests/resources" type="java-test-resource" />
+      <excludeFolder url="file://$MODULE_DIR$/.git" />
+      <excludeFolder url="file://$MODULE_DIR$/.idea" />
+      <excludeFolder url="file://$MODULE_DIR$/.settings" />
+      <excludeFolder url="file://$MODULE_DIR$/build/apk" />
+      <excludeFolder url="file://$MODULE_DIR$/build/assets" />
+      <excludeFolder url="file://$MODULE_DIR$/build/bundles" />
+      <excludeFolder url="file://$MODULE_DIR$/build/classes" />
+      <excludeFolder url="file://$MODULE_DIR$/build/dependency-cache" />
+      <excludeFolder url="file://$MODULE_DIR$/build/incremental" />
+      <excludeFolder url="file://$MODULE_DIR$/build/libs" />
+      <excludeFolder url="file://$MODULE_DIR$/build/manifests" />
+      <excludeFolder url="file://$MODULE_DIR$/build/res" />
+      <excludeFolder url="file://$MODULE_DIR$/build/symbols" />
+      <excludeFolder url="file://$MODULE_DIR$/build/tmp" />
     </content>
-    <orderEntry type="jdk" jdkName="Android 4.2.2 Platform" jdkType="Android SDK" />
+    <orderEntry type="jdk" jdkName="Android API 18 Platform" jdkType="Android SDK" />
     <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="module" module-name="facebook" />
-    <orderEntry type="module" module-name="library" />
-    <orderEntry type="library" name="gcm" level="project" />
-    <orderEntry type="library" name="MixpanelAPI" level="project" />
-    <orderEntry type="library" name="android-support-v4" level="project" />
+    <orderEntry type="library" exported="" name="deploygatesdk" level="project" />
+    <orderEntry type="library" exported="" name="MixpanelAPI" level="project" />
+    <orderEntry type="library" exported="" name="gcm" level="project" />
+    <orderEntry type="module" module-name="library" exported="" />
   </component>
 </module>

diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..9cded62
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,35 @@
+apply plugin: 'android'
+
+dependencies {
+    compile fileTree(dir: 'libs', include: '*.jar')
+    compile project(':library')
+}
+
+android {
+    compileSdkVersion 18
+    buildToolsVersion "19.0.0"
+
+    sourceSets {
+        main {
+            manifest.srcFile 'AndroidManifest.xml'
+            java.srcDirs = ['src']
+            resources.srcDirs = ['src']
+            aidl.srcDirs = ['src']
+            renderscript.srcDirs = ['src']
+            res.srcDirs = ['res']
+            assets.srcDirs = ['assets']
+        }
+
+        // Move the tests to tests/java, tests/res, etc...
+        instrumentTest.setRoot('tests')
+
+        // Move the build types to build-types/<type>
+        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
+        // This moves them out of them default location under src/<type>/... which would
+        // conflict with src/ being used by the main source set.
+        // Adding new build types or product flavors should be accompanied
+        // by a similar customization.
+        debug.setRoot('build-types/debug')
+        release.setRoot('build-types/release')
+    }
+}
diff --git a/libs/deploygatesdk.jar b/libs/deploygatesdk.jar
new file mode 100644
index 0000000..12b38a8
Binary files /dev/null and b/libs/deploygatesdk.jar differ
diff --git a/libs/gcm.jar b/libs/gcm.jar
new file mode 100644
index 0000000..ac109a8
Binary files /dev/null and b/libs/gcm.jar differ
diff --git a/lint.xml b/lint.xml
new file mode 100644
index 0000000..ee0eead
--- /dev/null
+++ b/lint.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+</lint>
\ No newline at end of file
diff --git a/project.properties b/project.properties
index 318f1f3..e526fa9 100644
--- a/project.properties
+++ b/project.properties
@@ -11,7 +11,6 @@
 #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

 # Project target.
-target=android-17
-android.library.reference.1=../../../facebook-android-sdk-3.0.1/facebook
-android.library.reference.2=../library
+target=android-18
+

diff --git a/src/com/lovamimi/BaseActivity.java b/src/com/lovamimi/BaseActivity.java
index ec3e02e..4b9de19 100644
--- a/src/com/lovamimi/BaseActivity.java
+++ b/src/com/lovamimi/BaseActivity.java
@@ -76,6 +76,7 @@ public class BaseActivity extends Activity {
     }

     private void tryLogin(final Context context, final Class nextActivityClass) {
+    	/*
         dialog = ProgressDialog.show(this, "ロバ耳", "ログイン中");
         // Facebook login
         com.facebook.Session.openActiveSession(this, true, new com.facebook.Session.StatusCallback() {
@@ -86,6 +87,7 @@ public class BaseActivity extends Activity {
                 }
             }
         });
+       */
     }

     private void showLoginDialog(final Class nextActivityClass) {
diff --git a/src/com/lovamimi/GCMIntentService.java b/src/com/lovamimi/GCMIntentService.java
index b4946ee..0e9c1c6 100644
--- a/src/com/lovamimi/GCMIntentService.java
+++ b/src/com/lovamimi/GCMIntentService.java
@@ -1,11 +1,11 @@
 package com.lovamimi;

+import android.app.Notification;
 import android.app.NotificationManager;
 import android.app.PendingIntent;
 import android.app.TaskStackBuilder;
 import android.content.Context;
 import android.content.Intent;
-import android.support.v4.app.NotificationCompat;
 import android.util.Log;
 import com.google.android.gcm.GCMBaseIntentService;

@@ -19,7 +19,7 @@ public class GCMIntentService extends GCMBaseIntentService {

     @Override
     protected void onMessage(Context context, Intent intent) {
-        NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
+        Notification.Builder builder = new Notification.Builder(this)
                 .setSmallIcon(R.drawable.lovamimi_logo)
                 .setContentTitle("ロバ耳")
                 .setContentText(intent.getStringExtra("message"));
diff --git a/src/com/lovamimi/LovamimiApplication.java b/src/com/lovamimi/LovamimiApplication.java
index b9016a5..7797677 100644
--- a/src/com/lovamimi/LovamimiApplication.java
+++ b/src/com/lovamimi/LovamimiApplication.java
@@ -3,11 +3,13 @@ package com.lovamimi;
 import android.app.Application;
 import android.content.SharedPreferences;
 import android.util.Log;
+import com.deploygate.sdk.DeployGate;

 public class LovamimiApplication extends Application {
     @Override
     public void onCreate() {
         super.onCreate();
+        DeployGate.install(this, null, true);
         if (Config.forceLogin) {
             clearSession();
         }
diff --git a/src/com/lovamimi/MainActivity.java b/src/com/lovamimi/MainActivity.java
index ab0fe8d..0993829 100644
--- a/src/com/lovamimi/MainActivity.java
+++ b/src/com/lovamimi/MainActivity.java
@@ -8,7 +8,7 @@ import android.text.TextUtils;
 import android.view.*;
 import android.view.View.OnClickListener;
 import android.widget.*;
-import com.facebook.Session;
+//import com.facebook.Session;
 import com.google.android.gcm.GCMRegistrar;
 import com.handmark.pulltorefresh.library.PullToRefreshBase;
 import com.handmark.pulltorefresh.library.PullToRefreshBase.OnRefreshListener;
@@ -20,7 +20,9 @@ public class MainActivity extends BaseActivity {
     @Override
     public void onActivityResult(int requestCode, int resultCode, Intent data) {
         super.onActivityResult(requestCode, resultCode, data);
+        /*
         Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
+        */
     }

     @Override