mirror of
https://github.com/etesync/android
synced 2025-05-21 16:28:52 +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:
parent
d98d91a67f
commit
c75f2fa7d5
@ -49,6 +49,15 @@ android {
|
|||||||
minifyEnabled true
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||||
buildConfigField 'String', 'DEBUG_REMOTE_URL', 'null'
|
buildConfigField 'String', 'DEBUG_REMOTE_URL', 'null'
|
||||||
|
|
||||||
|
// Configure Kotlin compiler optimisations for releases
|
||||||
|
kotlinOptions {
|
||||||
|
freeCompilerArgs = [
|
||||||
|
'-Xno-param-assertions',
|
||||||
|
'-Xno-call-assertions',
|
||||||
|
'-Xno-receiver-assertions'
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user