mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-11 08:27:50 -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:support-v4:24.1.0'
|
||||||
compile 'com.android.support:design:24.1.0'
|
compile 'com.android.support:design:24.1.0'
|
||||||
compile 'com.android.support:cardview-v7: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'
|
androidTestCompile 'com.android.support:support-annotations:24.1.0'
|
||||||
@ -74,7 +72,6 @@ dependencies {
|
|||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 24
|
targetSdkVersion 24
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
multiDexEnabled = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
@ -92,6 +89,14 @@ dependencies {
|
|||||||
javaMaxHeapSize "4g"
|
javaMaxHeapSize "4g"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
minifyEnabled true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'),
|
||||||
|
'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
manifest.srcFile 'src/main/AndroidManifest.xml'
|
manifest.srcFile 'src/main/AndroidManifest.xml'
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
package org.kiwix.kiwixmobile;
|
package org.kiwix.kiwixmobile;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
import android.support.multidex.MultiDexApplication;
|
|
||||||
|
|
||||||
import okhttp3.OkHttpClient;
|
import okhttp3.OkHttpClient;
|
||||||
import org.kiwix.kiwixmobile.network.KiwixService;
|
import org.kiwix.kiwixmobile.network.KiwixService;
|
||||||
import retrofit2.Retrofit;
|
import retrofit2.Retrofit;
|
||||||
@ -10,7 +8,7 @@ import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
|
|||||||
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;
|
import retrofit2.converter.simplexml.SimpleXmlConverterFactory;
|
||||||
import rx.schedulers.Schedulers;
|
import rx.schedulers.Schedulers;
|
||||||
|
|
||||||
public class KiwixApplication extends MultiDexApplication {
|
public class KiwixApplication extends Application {
|
||||||
|
|
||||||
private static KiwixService service;
|
private static KiwixService service;
|
||||||
private static OkHttpClient client = new OkHttpClient().newBuilder().followRedirects(true).followSslRedirects(true).build();
|
private static OkHttpClient client = new OkHttpClient().newBuilder().followRedirects(true).followSslRedirects(true).build();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user