Permalink
Browse files

enable multidex support

  • Loading branch information...
frogermcs committed Nov 2, 2014
1 parent 54798a1 commit 233544b79ec22ac52feac46590e61ab06e0506d2
View
@@ -19,6 +19,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
preDexLibraries = false
}
}
repositories {
@@ -60,3 +64,15 @@ dependencies {
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.facebook.rebound:rebound:0.3.6'
}
afterEvaluate {
tasks.matching {
it.name.startsWith('dex')
}.each { dx ->
if (dx.additionalParameters == null) {
dx.additionalParameters = []
}
dx.additionalParameters += '--multi-dex'
// dx.additionalParameters += "--main-dex-list=$projectDir/multidex.keep".toString()
}
}
Binary file not shown.
@@ -6,7 +6,8 @@
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
android:theme="@style/AppTheme"
android:name=".HelloMultiDexApplication">
<activity
android:name="io.github.froger.hellomultidex.MainActivity"
android:label="@string/app_name" >
@@ -0,0 +1,13 @@
package io.github.froger.hellomultidex;
import android.support.multidex.MultiDexApplication;
/**
* Created by froger_mcs on 02.11.14.
*/
public class HelloMultiDexApplication extends MultiDexApplication {
@Override
public void onCreate() {
super.onCreate();
}
}

0 comments on commit 233544b

Please sign in to comment.