소스 검색

Disable leakCanary for CI builds

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
Álvaro Brey Vilas 3 년 전
부모
커밋
aa417537df
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      build.gradle

+ 3 - 1
build.gradle

@@ -338,7 +338,9 @@ dependencies {
         }
     }
 
-    debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
+    if (!ciBuild) {
+        debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
+    }
 
     // dependencies for local unit tests
     testImplementation 'junit:junit:4.13.2'