Skip to content

Instantly share code, notes, and snippets.

@NimzyMaina
Created December 13, 2018 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NimzyMaina/80a5068e6c998f1d1aea1d4a84a97bb1 to your computer and use it in GitHub Desktop.
Save NimzyMaina/80a5068e6c998f1d1aea1d4a84a97bb1 to your computer and use it in GitHub Desktop.
This is a custom gradle modification for Ionic
ext.postBuildExtras = {
dependencies {
// Multidex lib for Android v4
compile 'com.android.support:multidex:1.0.3'
}
android {
dexOptions {
jumboMode true
javaMaxHeapSize "4g"
}
defaultConfig {
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
}
# Add this to the respective name file in ionic android folder
org.gradle.jvmargs=-Xmx4608M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment