Login helper

This commit is contained in:
stom79 2018-12-11 19:27:21 +01:00
parent 86dc89e764
commit bf570dfd5a
2 changed files with 16 additions and 2 deletions

View File

@ -11,6 +11,9 @@ android {
versionName "1.39.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
flavorDimensions "default"
buildTypes {
release {
@ -80,5 +83,6 @@ dependencies {
implementation 'com.github.stom79:SparkButton:1.0.10'
implementation 'com.github.GrenderG:Toasty:1.3.0'
implementation 'com.elconfidencial.bubbleshowcase:bubbleshowcase:1.3.1'
implementation 'com.android.support:multidex:1.0.3'
playstoreImplementation "io.github.kobakei:ratethisapp:$ratethisappLibraryVersion"
}

View File

@ -14,9 +14,11 @@ package fr.gouv.etalab.mastodon.activities;
* You should have received a copy of the GNU General Public License along with Mastalab; if not,
* see <http://www.gnu.org/licenses>. */
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.StrictMode;
import android.support.multidex.MultiDex;
import android.support.multidex.MultiDexApplication;
import com.evernote.android.job.JobManager;
import com.franmontiel.localechanger.LocaleChanger;
@ -37,7 +39,7 @@ import fr.gouv.etalab.mastodon.jobs.NotificationsSyncJob;
*/
public class MainApplication extends Application{
public class MainApplication extends MultiDexApplication {
@Override
@ -58,4 +60,12 @@ public class MainApplication extends Application{
}catch (Exception ignored){ignored.printStackTrace();}
Toasty.Config.getInstance().apply();
}
@Override
protected void attachBaseContext(Context base)
{
super.attachBaseContext(base);
MultiDex.install(MainApplication.this);
}
}