[K/N] Disable debug info in runtime by default

Bundle grows 200mb if debug info is enabled, it's too much.
But probably, this can be useful for debug, so we need gradle option.
This commit is contained in:
Pavel Kunyavskiy
2021-10-08 15:05:03 +03:00
committed by Space
parent 9a5058849e
commit 0bd4dbc0c1
4 changed files with 22 additions and 4 deletions
@@ -21,14 +21,16 @@ internal val goldValues = arrayOf(
"Exceptions.kt" to null,
"Exceptions.kt" to null,
"RuntimeUtils.kt" to null,
"Arrays.cpp" to null,
null,
"stack_trace_out_of_bounds.kt" to 7,
"stack_trace_out_of_bounds.kt" to 4,
"launcher.cpp" to null,
null,
)
internal fun checkFrame(value:String) {
val (pos, file, line) = regex.find(value)!!.destructured
val pos = value.split(" ")[0]
goldValues[pos.toInt()]?.let{
val (pos_, file, line) = regex.find(value)!!.destructured
assertEquals(pos_, pos)
assertEquals(it.first, file)
if (it.second != null) {
assertEquals(it.second, line.toInt())