[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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user