Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Lime without OpenFL. #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/mirror/Jni.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mirror/Mirror.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down