Browse Source

set minimum build memory to 2g

n8fr8 7 months ago
parent
commit
a315b41e87
2 changed files with 12 additions and 4 deletions
  1. 11 3
      build.gradle
  2. 1 1
      gradle.properties

+ 11 - 3
build.gradle

@@ -40,6 +40,13 @@ allprojects {
40 40
         targetSdkVersion = 28
41 41
     }
42 42
 
43
+    /**
44
+    gradle.projectsEvaluated {
45
+        tasks.withType(JavaCompile) {
46
+            options.compilerArgs << "-Xlint:unchecked"
47
+        }
48
+    }**/
49
+
43 50
 }
44 51
 
45 52
 
@@ -58,7 +65,7 @@ android {
58 65
     }
59 66
 
60 67
     dexOptions {
61
-        javaMaxHeapSize "1536m"
68
+        javaMaxHeapSize "2g"
62 69
         preDexLibraries true
63 70
     }
64 71
 
@@ -109,7 +116,7 @@ dependencies {
109 116
     implementation 'androidx.preference:preference:1.0.0'
110 117
     implementation 'androidx.multidex:multidex:2.0.0'
111 118
     implementation 'androidx.annotation:annotation:1.0.0'
112
-    implementation 'com.google.android.material:material:1.0.0-rc02'
119
+    implementation 'com.google.android.material:material:1.0.0'
113 120
     implementation 'com.wdullaer:materialdatetimepicker:3.6.4'
114 121
     implementation 'com.github.guardianproject:signal-cli-android:v0.6.0-android-beta-1'
115 122
     implementation 'com.github.satyan:sugar:1.5'
@@ -120,7 +127,8 @@ dependencies {
120 127
     implementation 'me.angrybyte.picker:picker:1.3.1'
121 128
     implementation 'com.github.stfalcon:frescoimageviewer:0.5.0'
122 129
     implementation 'com.facebook.fresco:fresco:1.10.0'
123
-    implementation 'com.github.derlio.waveform:library:1.0.3@aar'
130
+   // implementation 'com.github.derlio.waveform:library:1.0.3@aar'
131
+    implementation 'com.github.derlio:audio-waveform:v1.0.1'
124 132
     implementation 'org.firezenk:audiowaves:1.1@aar'
125 133
     implementation 'com.maxproj.simplewaveform:app:1.0.0'
126 134
     implementation 'com.googlecode.libphonenumber:libphonenumber:8.9.14'

+ 1 - 1
gradle.properties

@@ -1,4 +1,4 @@
1
-
1
+org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
2 2
 android.enableJetifier=true
3 3
 android.useAndroidX=true
4 4
 android.enableR8=true