From a315b41e87b276904ad522012cce82adc4f16a30 Mon Sep 17 00:00:00 2001 From: n8fr8 Date: Sun, 30 Sep 2018 10:42:19 -0400 Subject: [PATCH] set minimum build memory to 2g --- build.gradle | 14 +++++++++++--- gradle.properties | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 93d7c01b..dff0a348 100644 --- a/build.gradle +++ b/build.gradle @@ -40,6 +40,13 @@ allprojects { targetSdkVersion = 28 } + /** + gradle.projectsEvaluated { + tasks.withType(JavaCompile) { + options.compilerArgs << "-Xlint:unchecked" + } + }**/ + } @@ -58,7 +65,7 @@ android { } dexOptions { - javaMaxHeapSize "1536m" + javaMaxHeapSize "2g" preDexLibraries true } @@ -109,7 +116,7 @@ dependencies { implementation 'androidx.preference:preference:1.0.0' implementation 'androidx.multidex:multidex:2.0.0' implementation 'androidx.annotation:annotation:1.0.0' - implementation 'com.google.android.material:material:1.0.0-rc02' + implementation 'com.google.android.material:material:1.0.0' implementation 'com.wdullaer:materialdatetimepicker:3.6.4' implementation 'com.github.guardianproject:signal-cli-android:v0.6.0-android-beta-1' implementation 'com.github.satyan:sugar:1.5' @@ -120,7 +127,8 @@ dependencies { implementation 'me.angrybyte.picker:picker:1.3.1' implementation 'com.github.stfalcon:frescoimageviewer:0.5.0' implementation 'com.facebook.fresco:fresco:1.10.0' - implementation 'com.github.derlio.waveform:library:1.0.3@aar' + // implementation 'com.github.derlio.waveform:library:1.0.3@aar' + implementation 'com.github.derlio:audio-waveform:v1.0.1' implementation 'org.firezenk:audiowaves:1.1@aar' implementation 'com.maxproj.simplewaveform:app:1.0.0' implementation 'com.googlecode.libphonenumber:libphonenumber:8.9.14' diff --git a/gradle.properties b/gradle.properties index cb0bf917..65f8789d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ - +org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 android.enableJetifier=true android.useAndroidX=true android.enableR8=true