mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 14:57:38 +03:00
Use MultiDex
This commit is contained in:
parent
7a6c7cf944
commit
f699340b7c
5 changed files with 14 additions and 4 deletions
|
@ -15,6 +15,7 @@ android {
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 2017001
|
versionCode 2017001
|
||||||
versionName "2.17.1"
|
versionName "2.17.1"
|
||||||
|
multiDexEnabled true
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +58,7 @@ android {
|
||||||
dependencies {
|
dependencies {
|
||||||
// Nextcloud SSO
|
// Nextcloud SSO
|
||||||
implementation "com.github.nextcloud:Android-SingleSignOn:0.5.3"
|
implementation "com.github.nextcloud:Android-SingleSignOn:0.5.3"
|
||||||
implementation 'com.github.stefan-niedermann.nextcloud-commons:sso-glide:0.0.3'
|
implementation 'com.github.stefan-niedermann.nextcloud-commons:sso-glide:0.0.5'
|
||||||
|
|
||||||
// Glide
|
// Glide
|
||||||
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
||||||
|
@ -76,6 +77,8 @@ dependencies {
|
||||||
implementation 'androidx.work:work-runtime:2.4.0'
|
implementation 'androidx.work:work-runtime:2.4.0'
|
||||||
implementation "com.google.android.material:material:1.2.1"
|
implementation "com.google.android.material:material:1.2.1"
|
||||||
|
|
||||||
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
testImplementation 'junit:junit:4.13'
|
testImplementation 'junit:junit:4.13'
|
||||||
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
|
androidTestImplementation 'com.android.support:support-annotations:28.0.0'
|
||||||
|
|
|
@ -11,6 +11,7 @@ import androidx.preference.PreferenceManager;
|
||||||
|
|
||||||
import it.niedermann.owncloud.notes.preferences.DarkModeSetting;
|
import it.niedermann.owncloud.notes.preferences.DarkModeSetting;
|
||||||
|
|
||||||
|
import static androidx.multidex.MultiDex.install;
|
||||||
import static androidx.preference.PreferenceManager.getDefaultSharedPreferences;
|
import static androidx.preference.PreferenceManager.getDefaultSharedPreferences;
|
||||||
|
|
||||||
public class NotesApplication extends Application {
|
public class NotesApplication extends Application {
|
||||||
|
@ -33,6 +34,12 @@ public class NotesApplication extends Application {
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void attachBaseContext(Context base) {
|
||||||
|
super.attachBaseContext(base);
|
||||||
|
install(this);
|
||||||
|
}
|
||||||
|
|
||||||
public static void setAppTheme(DarkModeSetting setting) {
|
public static void setAppTheme(DarkModeSetting setting) {
|
||||||
AppCompatDelegate.setDefaultNightMode(setting.getModeId());
|
AppCompatDelegate.setDefaultNightMode(setting.getModeId());
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
|
|
||||||
import it.niedermann.android.glidesso.SingleSignOnUrl;
|
import it.niedermann.nextcloud.sso.glide.SingleSignOnUrl;
|
||||||
import it.niedermann.owncloud.notes.R;
|
import it.niedermann.owncloud.notes.R;
|
||||||
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
|
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
|
||||||
import it.niedermann.owncloud.notes.shared.model.LocalAccount;
|
import it.niedermann.owncloud.notes.shared.model.LocalAccount;
|
||||||
|
|
|
@ -12,7 +12,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
|
|
||||||
import it.niedermann.android.glidesso.SingleSignOnUrl;
|
import it.niedermann.nextcloud.sso.glide.SingleSignOnUrl;
|
||||||
import it.niedermann.owncloud.notes.R;
|
import it.niedermann.owncloud.notes.R;
|
||||||
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
|
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
|
||||||
import it.niedermann.owncloud.notes.shared.model.LocalAccount;
|
import it.niedermann.owncloud.notes.shared.model.LocalAccount;
|
||||||
|
|
|
@ -8,7 +8,7 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
|
|
||||||
import it.niedermann.android.glidesso.SingleSignOnUrl;
|
import it.niedermann.nextcloud.sso.glide.SingleSignOnUrl;
|
||||||
import it.niedermann.owncloud.notes.R;
|
import it.niedermann.owncloud.notes.R;
|
||||||
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
|
import it.niedermann.owncloud.notes.databinding.ItemAccountChooseBinding;
|
||||||
import it.niedermann.owncloud.notes.shared.model.LocalAccount;
|
import it.niedermann.owncloud.notes.shared.model.LocalAccount;
|
||||||
|
|
Loading…
Reference in a new issue