From f79ef3675fc3f92e844d8ee4c1675227e1131060 Mon Sep 17 00:00:00 2001 From: GuilhermeWerner <26710260+GuilhermeWerner@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:26:46 -0300 Subject: [PATCH] Update TribuFu.kt --- lib/src/main/kotlin/tribufu/TribuFu.kt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/src/main/kotlin/tribufu/TribuFu.kt b/lib/src/main/kotlin/tribufu/TribuFu.kt index 1f8fc36..298372b 100644 --- a/lib/src/main/kotlin/tribufu/TribuFu.kt +++ b/lib/src/main/kotlin/tribufu/TribuFu.kt @@ -4,15 +4,12 @@ package tribufu class TribuFu { /** - * A native method that is implemented by the 'TribuFu' native library, which is packaged with - * this library. + * A native method that is implemented by the 'TribuFu' native library. */ // external fun Hello(): Int - companion object { - // Used to load the 'TribuFu' library on application startup. - init { - //System.loadLibrary("TribuFu") - } + // Used to load the 'TribuFu' library on application startup. + fun LoadLibrary() { + System.loadLibrary("TribuFu") } }