[Android] DexOptions to speed up build

Geoffrey Métais git at videolan.org
Tue Jan 10 13:48:25 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 10 13:12:32 2017 +0100| [5b47ad96aa26e5e20b5330210470cae1ffb4fe8e] | committer: Geoffrey Métais

DexOptions to speed up build

> https://code.videolan.org/videolan/vlc-android/commit/5b47ad96aa26e5e20b5330210470cae1ffb4fe8e
---

 vlc-android/build.gradle | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 9b84ea5..297230c 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -13,6 +13,12 @@ android {
         pickFirst 'lib/mips64/libc++_shared.so'
     }
 
+    dexOptions {
+        maxProcessCount 8
+        javaMaxHeapSize "1g"
+        preDexLibraries true
+    }
+
     compileSdkVersion rootProject.ext.compileSdkVersion
     buildToolsVersion rootProject.ext.buildToolsVersion
 



More information about the Android mailing list