mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -04:00
Added proguard shrink disable multidex
This commit is contained in:
parent
976ff0eec0
commit
774d934bf4
@ -27,8 +27,6 @@ dependencies {
|
||||
compile 'com.android.support:support-v4:24.1.0'
|
||||
compile 'com.android.support:design:24.1.0'
|
||||
compile 'com.android.support:cardview-v7:24.1.0'
|
||||
compile 'com.android.support:multidex:1.0.1'
|
||||
|
||||
|
||||
|
||||
androidTestCompile 'com.android.support:support-annotations:24.1.0'
|
||||
@ -74,7 +72,6 @@ dependencies {
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 24
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
multiDexEnabled = true
|
||||
}
|
||||
|
||||
lintOptions {
|
||||
@ -91,6 +88,14 @@ dependencies {
|
||||
dexOptions {
|
||||
javaMaxHeapSize "4g"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
||||
'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
|
@ -1,8 +1,6 @@
|
||||
package org.kiwix.kiwixmobile;
|
||||
|
||||
import android.app.Application;
|
||||
import android.support.multidex.MultiDexApplication;
|
||||
|
||||
import okhttp3.OkHttpClient;
|
||||
import org.kiwix.kiwixmobile.network.KiwixService;
|
||||
import retrofit2.Retrofit;
|
||||
@ -10,7 +8,7 @@ import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
|
||||
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;
|
||||
import rx.schedulers.Schedulers;
|
||||
|
||||
public class KiwixApplication extends MultiDexApplication {
|
||||
public class KiwixApplication extends Application {
|
||||
|
||||
private static KiwixService service;
|
||||
private static OkHttpClient client = new OkHttpClient().newBuilder().followRedirects(true).followSslRedirects(true).build();
|
||||
|
Loading…
x
Reference in New Issue
Block a user