diff --git a/source/funkin/mobile/external/android/CallbackUtil.hx b/source/funkin/mobile/external/android/CallbackUtil.hx index 440368ecf..fe04f27d7 100644 --- a/source/funkin/mobile/external/android/CallbackUtil.hx +++ b/source/funkin/mobile/external/android/CallbackUtil.hx @@ -9,6 +9,7 @@ import flixel.util.FlxSignal; @:unreflective class CallbackUtil { + #if android /** * The result code for `DATA_FOLDER_CLOSED` activity. */ @@ -41,6 +42,7 @@ class CallbackUtil initCallBackJNI(new CallbackHandler()); } } + #end } /** @@ -48,6 +50,7 @@ class CallbackUtil */ class CallbackHandler #if (lime >= "8.0.0") implements JNISafety #end { + #if android @:allow(funkin.mobile.external.android.CallbackUtil) function new():Void {} @@ -65,4 +68,5 @@ class CallbackHandler #if (lime >= "8.0.0") implements JNISafety #end { if (CallbackUtil.onActivityResult != null) CallbackUtil.onActivityResult.dispatch(requestCode, resultCode); } + #end } diff --git a/source/funkin/mobile/external/android/DataFolderUtil.hx b/source/funkin/mobile/external/android/DataFolderUtil.hx index 90b63ddd2..e18c2de64 100644 --- a/source/funkin/mobile/external/android/DataFolderUtil.hx +++ b/source/funkin/mobile/external/android/DataFolderUtil.hx @@ -6,6 +6,7 @@ package funkin.mobile.external.android; @:unreflective class DataFolderUtil { + #if android /** * Opens the data folder on an Android device using JNI. */ @@ -18,4 +19,5 @@ class DataFolderUtil openDataFolderJNI(CallbackUtil.DATA_FOLDER_CLOSED); } } + #end } diff --git a/source/funkin/mobile/external/android/ScreenUtil.hx b/source/funkin/mobile/external/android/ScreenUtil.hx index 966bc4a0f..54c6e8825 100644 --- a/source/funkin/mobile/external/android/ScreenUtil.hx +++ b/source/funkin/mobile/external/android/ScreenUtil.hx @@ -9,6 +9,7 @@ import lime.system.JNI; @:unreflective class ScreenUtil { + #if android /** * Retrieves the dimensions of display cutouts (such as notches) on Android devices. * @@ -47,4 +48,5 @@ class ScreenUtil return []; } + #end }