diff --git a/src/mirror/Jni.hx b/src/mirror/Jni.hx index 94fa8df..8836582 100644 --- a/src/mirror/Jni.hx +++ b/src/mirror/Jni.hx @@ -77,15 +77,15 @@ class Jni + ' :: signature '+$v{jniSignature}); #end - #if (openfl || nme) + #if (openfl || lime || nme) if ($v{isStaticMethod}) { - $i{fieldName} = openfl.utils.JNI.createStaticMethod( + $i{fieldName} = #if openfl openfl.utils#else lime.system#end.JNI.createStaticMethod( $v{jniPackage}, $v{jniPrimitive}, $v{jniSignature}); } else { - $i{fieldName} = openfl.utils.JNI.createMemberMethod( + $i{fieldName} = #if openfl openfl.utils#else lime.system#end.JNI.createMemberMethod( $v{jniPackage}, $v{jniPrimitive}, $v{jniSignature}); } #end diff --git a/src/mirror/Mirror.hx b/src/mirror/Mirror.hx index cdba9d5..f6fc187 100644 --- a/src/mirror/Mirror.hx +++ b/src/mirror/Mirror.hx @@ -31,7 +31,7 @@ class Mirror var isIos = #if munit true #else Context.defined("ios") #end; var isAndroid = #if munit true #else Context.defined("android") #end; var isOpenFl = Context.defined("openfl") || Context.defined("nme"); - var isEnabled = #if (openfl || munit) true #else false #end; + var isEnabled = #if (openfl || lime || munit) true #else false #end; var fieldDisabled:Bool; var func:Function;