mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
Improve performance
This commit is contained in:
parent
3a257d745b
commit
c1c374407f
@ -186,6 +186,7 @@ dependencies {
|
|||||||
implementation "com.squareup.okhttp3:okhttp:3.12.1"
|
implementation "com.squareup.okhttp3:okhttp:3.12.1"
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
implementation "nl.komponents.kovenant:kovenant:$kovenant_version"
|
implementation "nl.komponents.kovenant:kovenant:$kovenant_version"
|
||||||
|
implementation "nl.komponents.kovenant:kovenant-android:$kovenant_version"
|
||||||
implementation "com.github.lelloman:android-identicons:$identicon_version"
|
implementation "com.github.lelloman:android-identicons:$identicon_version"
|
||||||
implementation "com.prof.rssparser:rssparser:$rss_parser_version"
|
implementation "com.prof.rssparser:rssparser:$rss_parser_version"
|
||||||
implementation "com.mixpanel.android:mixpanel-android:$mixpanel_version"
|
implementation "com.mixpanel.android:mixpanel-android:$mixpanel_version"
|
||||||
|
@ -104,6 +104,9 @@ import kotlin.Unit;
|
|||||||
import kotlin.jvm.functions.Function1;
|
import kotlin.jvm.functions.Function1;
|
||||||
import network.loki.messenger.BuildConfig;
|
import network.loki.messenger.BuildConfig;
|
||||||
|
|
||||||
|
import static nl.komponents.kovenant.android.KovenantAndroid.startKovenant;
|
||||||
|
import static nl.komponents.kovenant.android.KovenantAndroid.stopKovenant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will be called once when the TextSecure process is created.
|
* Will be called once when the TextSecure process is created.
|
||||||
*
|
*
|
||||||
@ -142,6 +145,7 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
LokiGroupChatAPI.Companion.setDebugMode(BuildConfig.DEBUG); // Loki - Set debug mode if needed
|
LokiGroupChatAPI.Companion.setDebugMode(BuildConfig.DEBUG); // Loki - Set debug mode if needed
|
||||||
|
startKovenant();
|
||||||
Log.i(TAG, "onCreate()");
|
Log.i(TAG, "onCreate()");
|
||||||
initializeSecurityProvider();
|
initializeSecurityProvider();
|
||||||
initializeLogging();
|
initializeLogging();
|
||||||
@ -198,6 +202,12 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc
|
|||||||
if (lokiLongPoller != null) { lokiLongPoller.stopIfNeeded(); }
|
if (lokiLongPoller != null) { lokiLongPoller.stopIfNeeded(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onTerminate() {
|
||||||
|
stopKovenant();
|
||||||
|
super.onTerminate();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void injectDependencies(Object object) {
|
public void injectDependencies(Object object) {
|
||||||
if (object instanceof InjectableType) {
|
if (object instanceof InjectableType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user