diff --git a/haxelib.json b/haxelib.json index 44f1fe6..473054c 100644 --- a/haxelib.json +++ b/haxelib.json @@ -4,7 +4,7 @@ "license": "BSD", "tags": ["hyperfiction", "macro","shoebox","openfl"], "description": "Essential macros for native extensions", - "version": "1.0.2", - "releasenote": "@iOS meta", + "version": "1.0.3", + "releasenote": "Replace dot by slash in JNI package name", "contributors": ["shoebox"] } \ No newline at end of file diff --git a/src/org/shoebox/macros/MacroMirrors.hx b/src/org/shoebox/macros/MacroMirrors.hx index 955683f..9f43937 100644 --- a/src/org/shoebox/macros/MacroMirrors.hx +++ b/src/org/shoebox/macros/MacroMirrors.hx @@ -125,6 +125,8 @@ class MacroMirrors{ */ static private function _jni( oField : Field , sPackage : String , ?sName : String ) : Field{ + sPackage = sPackage.split(".").join("/"); + //The function var f : Function = _getFunc( oField ); if(f.ret == null)