mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-14 02:01:56 +00:00
Rename to Habitica - Part 2 (Namespaces) / Update Fabric
This commit is contained in:
parent
33239d8d24
commit
43086228d2
40 changed files with 85 additions and 131 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -64,4 +64,5 @@ local.properties
|
|||
|
||||
#Android keystore
|
||||
*.keystores
|
||||
signingrelease.properties
|
||||
signingrelease.properties
|
||||
fabric.properties
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.magicmicky.habitrpgmobileapp"
|
||||
package="com.habitrpg.android.habitica"
|
||||
android:versionCode="49"
|
||||
android:versionName="2.4.5" >
|
||||
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
android:name="com.magicmicky.habitrpgmobileapp.MainActivity"
|
||||
android:name="com.habitrpg.android.habitica.MainActivity"
|
||||
android:label="@string/app_name">
|
||||
|
||||
<intent-filter>
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name="com.magicmicky.habitrpgmobileapp.prefs.PrefsActivity"
|
||||
android:name="com.habitrpg.android.habitica.prefs.PrefsActivity"
|
||||
android:label="@string/PS_param_title">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
</activity>
|
||||
|
||||
<activity
|
||||
android:name="com.magicmicky.habitrpgmobileapp.LoginActivity"
|
||||
android:name="com.habitrpg.android.habitica.LoginActivity"
|
||||
android:label="@string/LoginActivityName"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<intent-filter>
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
<receiver
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="HabitRPG Simple Widget"
|
||||
android:name=".widget.SimpleWidget" >
|
||||
android:name="com.habitrpg.android.habitica.widget.SimpleWidget" >
|
||||
<intent-filter >
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
|
||||
</intent-filter>
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
android:name="android.appwidget.provider"
|
||||
android:resource="@xml/widget_info" />
|
||||
</receiver>
|
||||
<service android:name="com.magicmicky.habitrpgmobileapp.widget.UpdateWidgetService"/>
|
||||
<service android:name="com.habitrpg.android.habitica.widget.UpdateWidgetService"/>
|
||||
|
||||
<meta-data
|
||||
android:name="io.fabric.ApiKey"
|
||||
|
|
|
|||
|
|
@ -85,11 +85,12 @@
|
|||
<orderEntry type="library" exported="" name="support-v4-18.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="retrofit-1.6.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="crouton-1.8.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="crashlytics-2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="lib-1.7" level="project" />
|
||||
<orderEntry type="library" exported="" name="gson-2.2.4" level="project" />
|
||||
<orderEntry type="library" exported="" name="crashlytics-core-2.3.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="answers-1.2.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="appcompat-v7-18.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="fabric-1.3.1" level="project" />
|
||||
<orderEntry type="library" exported="" name="crashlytics-2.3.0" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
|
@ -28,7 +28,7 @@ dependencies {
|
|||
aarLinkSources 'com.magicmicky.habitrpgwrapper:lib:1.7:sources@jar'
|
||||
|
||||
compile 'com.android.support:appcompat-v7:18.0.+'
|
||||
compile('com.crashlytics.sdk.android:crashlytics:2.2.4@aar') {
|
||||
compile('com.crashlytics.sdk.android:crashlytics:2.3.0@aar') {
|
||||
transitive = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.magicmicky.habitrpgmobileapp.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.habitrpg.android.habitica.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/row_size"
|
||||
android:background="@drawable/drawer_activated_background"
|
||||
|
|
@ -71,4 +71,4 @@
|
|||
</FrameLayout>
|
||||
|
||||
|
||||
</com.magicmicky.habitrpgmobileapp.CheckableLinearLayout>
|
||||
</com.habitrpg.android.habitica.CheckableLinearLayout>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.magicmicky.habitrpgmobileapp.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.habitrpg.android.habitica.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/row_size"
|
||||
android:background="@drawable/item_background"
|
||||
|
|
@ -31,4 +31,4 @@
|
|||
android:gravity="left"/>
|
||||
|
||||
|
||||
</com.magicmicky.habitrpgmobileapp.CheckableLinearLayout>
|
||||
</com.habitrpg.android.habitica.CheckableLinearLayout>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.magicmicky.habitrpgmobileapp.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<com.habitrpg.android.habitica.CheckableLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/row_size"
|
||||
android:background="@drawable/item_background"
|
||||
|
|
@ -63,4 +63,4 @@
|
|||
<!-- android:paddingLeft="10dp" -->
|
||||
<!-- /> -->
|
||||
|
||||
</com.magicmicky.habitrpgmobileapp.CheckableLinearLayout>
|
||||
</com.habitrpg.android.habitica.CheckableLinearLayout>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">Habit AndroRPG</string>
|
||||
<string name="app_name">Habitica</string>
|
||||
<string name="action_settings">Settings</string>
|
||||
<string name="action_refresh">Refresh</string>
|
||||
<string name="hello_world">Hello world!</string>
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
<string name="ERR_pb_barcode">Prefs couldn\'t be loaded from the barcode</string>
|
||||
<string name="settings_changed">Settings were successfully updated!</string>
|
||||
<string name="pref_dialog_title">HabitRPG settings</string>
|
||||
<string name="string_pref_dialog_positive">Ok!</string>
|
||||
<string name="string_pref_dialog_positive">OK</string>
|
||||
<!-- Prefs -->
|
||||
<string name="PS_param_title">Params</string>
|
||||
<string name="PS_param_summary">Server config</string>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
<string name="task_value">Value:</string>
|
||||
<string name="task_up">Up</string>
|
||||
<string name="task_down">Down</string>
|
||||
<string name="dialog_confirm_button">Ok</string>
|
||||
<string name="dialog_confirm_button">OK</string>
|
||||
<string name="dialog_cancel_button">Cancel</string>
|
||||
<string name="task_value_hint">20</string>
|
||||
<string name="task_creation_fail">Task creation has failed: you need to provide a title</string>
|
||||
|
|
@ -105,7 +105,7 @@
|
|||
Try to be more careful with your dailies, and manage those bad habits!
|
||||
</string>
|
||||
<string name="string_revive">Revive</string>
|
||||
<string name="refreshing_widget">Refreshing widget...</string>
|
||||
<string name="refreshing_widget">Refreshing widget…</string>
|
||||
<string name="please_connect">Please connect through the application before using a widget</string>
|
||||
<!--<string name="upgrade_premium_widget">To use the widget, please upgrade to premium.</string>-->
|
||||
<string name="title_changelog">Change log</string>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:title="@string/PS_param_title">
|
||||
<com.magicmicky.habitrpgmobileapp.prefs.CustomListPreference
|
||||
<com.habitrpg.android.habitica.prefs.CustomListPreference
|
||||
android:key="@string/SP_address"
|
||||
android:title="@string/SP_address_title"
|
||||
android:dialogTitle="@string/SP_address_title"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<preference-headers
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<header android:fragment="com.magicmicky.habitrpgmobileapp.prefs.PrefsActivity$PrefsFragment"
|
||||
<header android:fragment="com.habitrpg.android.habitica.prefs.PrefsActivity$PrefsFragment"
|
||||
android:title="@string/PS_param_title"
|
||||
android:icon="@drawable/ic_action_computer"
|
||||
android:summary="@string/PS_param_summary">
|
||||
|
|
|
|||
|
|
@ -1,15 +1,10 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.HabitRPGUserCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskDeletionCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskScoringCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.HabitRPGUserCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskDeletionCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskScoringCallback;
|
||||
import com.magicmicky.habitrpgwrapper.lib.HabitRPGInteractor;
|
||||
import com.magicmicky.habitrpgwrapper.lib.api.HabitItemCallback;
|
||||
import com.magicmicky.habitrpgwrapper.lib.api.Server;
|
||||
import com.magicmicky.habitrpgwrapper.lib.api.TaskDirectionCallback;
|
||||
import com.magicmicky.habitrpgwrapper.lib.api.UserCallback;
|
||||
import com.magicmicky.habitrpgwrapper.lib.api.VoidCallback;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.TaskDirection;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.UserAuth;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.UserAuthResponse;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
|
@ -8,7 +8,6 @@ import android.app.DatePickerDialog.OnDateSetListener;
|
|||
import android.app.Dialog;
|
||||
import android.content.DialogInterface;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.DialogFragment;
|
||||
import android.util.Log;
|
||||
|
|
@ -32,9 +31,6 @@ import com.magicmicky.habitrpgwrapper.lib.models.tasks.Reward;
|
|||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.ToDo;
|
||||
import com.magicmicky.habitrpgwrapper.lib.utils.DaysUtils;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import static com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitType.*;
|
||||
import static com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitType.habit;
|
||||
|
||||
|
|
@ -1,13 +1,13 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskDeletionCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskScoringCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.prefs.PrefsActivity;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskDeletionCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskScoringCallback;
|
||||
import com.habitrpg.android.habitica.prefs.PrefsActivity;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitItem;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitType;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.Reward;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.AlertDialog;
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.Checkable;
|
||||
import android.widget.CheckedTextView;
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
import java.lang.String; /**
|
||||
* The configuration of the host<br />
|
||||
* Currently, the Port isn't used at all.
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.DialogInterface;
|
||||
|
|
@ -26,10 +26,10 @@ import android.widget.LinearLayout;
|
|||
import android.widget.ProgressBar;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.HabitRPGUserCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.prefs.PrefsActivity;
|
||||
import com.magicmicky.habitrpgmobileapp.prefs.scanner.IntentIntegrator;
|
||||
import com.magicmicky.habitrpgmobileapp.prefs.scanner.IntentResult;
|
||||
import com.habitrpg.android.habitica.callbacks.HabitRPGUserCallback;
|
||||
import com.habitrpg.android.habitica.prefs.PrefsActivity;
|
||||
import com.habitrpg.android.habitica.prefs.scanner.IntentIntegrator;
|
||||
import com.habitrpg.android.habitica.prefs.scanner.IntentResult;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.UserAuthResponse;
|
||||
|
||||
|
|
@ -1,23 +1,20 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import com.crashlytics.android.Crashlytics;
|
||||
import io.fabric.sdk.android.Fabric;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.HabitRPGUserCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskCreationCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskDeletionCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskScoringCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.TaskUpdateCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.prefs.PrefsActivity;
|
||||
import com.magicmicky.habitrpgmobileapp.userpicture.UserPicture;
|
||||
import com.magicmicky.habitrpgwrapper.lib.api.HabitItemCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.HabitRPGUserCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskCreationCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskDeletionCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskScoringCallback;
|
||||
import com.habitrpg.android.habitica.callbacks.TaskUpdateCallback;
|
||||
import com.habitrpg.android.habitica.prefs.PrefsActivity;
|
||||
import com.habitrpg.android.habitica.userpicture.UserPicture;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.TaskDirectionData;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.Daily;
|
||||
|
|
@ -29,9 +26,6 @@ import com.magicmicky.habitrpgwrapper.lib.models.tasks.ToDo;
|
|||
|
||||
import de.keyboardsurfer.android.widget.crouton.Crouton;
|
||||
import de.keyboardsurfer.android.widget.crouton.Style;
|
||||
import retrofit.Callback;
|
||||
import retrofit.RetrofitError;
|
||||
import retrofit.client.Response;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
|
|
@ -41,7 +35,6 @@ import android.content.SharedPreferences;
|
|||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.Bitmap;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.preference.PreferenceManager;
|
||||
|
|
@ -57,7 +50,6 @@ import android.text.TextWatcher;
|
|||
import android.text.method.LinkMovementMethod;
|
||||
import android.util.Log;
|
||||
import android.util.SparseArray;
|
||||
import android.util.TypedValue;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitItem;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.tasks.HabitItem;
|
||||
|
||||
|
|
@ -1,13 +1,9 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.Bundle;
|
||||
|
|
@ -1,13 +1,10 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.CheckedTextView;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.Tag;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp;
|
||||
package com.habitrpg.android.habitica;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -1,9 +1,8 @@
|
|||
package com.magicmicky.habitrpgmobileapp.callbacks;
|
||||
package com.habitrpg.android.habitica.callbacks;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import com.crashlytics.android.Crashlytics;
|
||||
import com.magicmicky.habitrpgwrapper.lib.HabitRPGInteractor;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||
|
||||
import retrofit.Callback;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.callbacks;
|
||||
package com.habitrpg.android.habitica.callbacks;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.callbacks;
|
||||
package com.habitrpg.android.habitica.callbacks;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.callbacks;
|
||||
package com.habitrpg.android.habitica.callbacks;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.callbacks;
|
||||
package com.habitrpg.android.habitica.callbacks;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
package com.magicmicky.habitrpgmobileapp.prefs;
|
||||
package com.habitrpg.android.habitica.prefs;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.R;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.DialogInterface.OnClickListener;
|
||||
|
|
@ -24,6 +22,8 @@ import android.widget.RadioButton;
|
|||
import android.widget.TextView;
|
||||
import android.app.AlertDialog.Builder;
|
||||
|
||||
import com.habitrpg.android.habitica.R;
|
||||
|
||||
public class CustomListPreference extends ListPreference
|
||||
{
|
||||
private CustomListPreferenceAdapter customListPreferenceAdapter = null;
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
package com.magicmicky.habitrpgmobileapp.prefs;
|
||||
package com.habitrpg.android.habitica.prefs;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.List;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.ChangeLogDialog;
|
||||
import com.magicmicky.habitrpgmobileapp.HostConfig;
|
||||
import com.magicmicky.habitrpgmobileapp.R;
|
||||
import com.habitrpg.android.habitica.ChangeLogDialog;
|
||||
import com.habitrpg.android.habitica.HostConfig;
|
||||
import com.habitrpg.android.habitica.R;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.annotation.TargetApi;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.prefs.scanner;
|
||||
package com.habitrpg.android.habitica.prefs.scanner;
|
||||
|
||||
/*
|
||||
* Copyright 2009 ZXing authors
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.prefs.scanner;
|
||||
package com.habitrpg.android.habitica.prefs.scanner;
|
||||
/*
|
||||
* Copyright 2009 ZXing authors
|
||||
*
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.userpicture;
|
||||
package com.habitrpg.android.habitica.userpicture;
|
||||
|
||||
public class UserObject {
|
||||
private String image;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.magicmicky.habitrpgmobileapp.userpicture;
|
||||
package com.habitrpg.android.habitica.userpicture;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.R;
|
||||
import com.habitrpg.android.habitica.R;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.Items;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.userpicture;
|
||||
package com.habitrpg.android.habitica.userpicture;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.widget;
|
||||
package com.habitrpg.android.habitica.widget;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.appwidget.AppWidgetManager;
|
||||
|
|
@ -6,30 +6,13 @@ import android.appwidget.AppWidgetProvider;
|
|||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Matrix;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.BitmapDrawable;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.RemoteViews;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.R;
|
||||
import com.magicmicky.habitrpgmobileapp.userpicture.UserPicture;
|
||||
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Locale;
|
||||
import com.habitrpg.android.habitica.R;
|
||||
|
||||
/**
|
||||
* Define a simple custom widget for the habitrpg client
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.magicmicky.habitrpgmobileapp.widget;
|
||||
package com.habitrpg.android.habitica.widget;
|
||||
|
||||
import android.app.PendingIntent;
|
||||
import android.app.Service;
|
||||
|
|
@ -13,22 +13,18 @@ import android.util.Log;
|
|||
import android.util.TypedValue;
|
||||
import android.widget.RemoteViews;
|
||||
|
||||
import com.magicmicky.habitrpgmobileapp.APIHelper;
|
||||
import com.magicmicky.habitrpgmobileapp.HostConfig;
|
||||
import com.magicmicky.habitrpgmobileapp.MainActivity;
|
||||
import com.magicmicky.habitrpgmobileapp.R;
|
||||
import com.magicmicky.habitrpgmobileapp.callbacks.HabitRPGUserCallback;
|
||||
import com.magicmicky.habitrpgmobileapp.prefs.PrefsActivity;
|
||||
import com.magicmicky.habitrpgmobileapp.userpicture.UserPicture;
|
||||
import com.habitrpg.android.habitica.APIHelper;
|
||||
import com.habitrpg.android.habitica.HostConfig;
|
||||
import com.habitrpg.android.habitica.MainActivity;
|
||||
import com.habitrpg.android.habitica.R;
|
||||
import com.habitrpg.android.habitica.callbacks.HabitRPGUserCallback;
|
||||
import com.habitrpg.android.habitica.prefs.PrefsActivity;
|
||||
import com.habitrpg.android.habitica.userpicture.UserPicture;
|
||||
import com.magicmicky.habitrpgwrapper.lib.models.HabitRPGUser;
|
||||
|
||||
import retrofit.Callback;
|
||||
import retrofit.RetrofitError;
|
||||
import retrofit.client.Response;
|
||||
|
||||
/**
|
||||
* The service that should update the simple widget
|
||||
* @see com.magicmicky.habitrpgmobileapp.widget.SimpleWidget
|
||||
* @see com.habitrpg.android.habitica.widget.SimpleWidget
|
||||
* Created by Mickael on 01/11/13.
|
||||
*/
|
||||
public class UpdateWidgetService extends Service implements HabitRPGUserCallback.OnUserReceived {
|
||||
Loading…
Reference in a new issue