1
0
mirror of https://github.com/etesync/android synced 2024-12-22 22:58:29 +00:00

Build: disable kotlin assertions for release builds.

This is so it doesn't crash for users when it sholudn't until
we complete the migration.
This commit is contained in:
Tom Hacohen 2019-01-05 12:52:21 +00:00
parent d98d91a67f
commit c75f2fa7d5

View File

@ -49,6 +49,15 @@ android {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
buildConfigField 'String', 'DEBUG_REMOTE_URL', 'null'
// Configure Kotlin compiler optimisations for releases
kotlinOptions {
freeCompilerArgs = [
'-Xno-param-assertions',
'-Xno-call-assertions',
'-Xno-receiver-assertions'
]
}
}
}