Dont compile the android classes on other targets.
This commit is contained in:
+2
-4
@@ -1,5 +1,6 @@
|
|||||||
package funkin.external.android;
|
package funkin.external.android;
|
||||||
|
|
||||||
|
#if android
|
||||||
import lime.system.JNI;
|
import lime.system.JNI;
|
||||||
import flixel.util.FlxSignal;
|
import flixel.util.FlxSignal;
|
||||||
|
|
||||||
@@ -9,7 +10,6 @@ import flixel.util.FlxSignal;
|
|||||||
@:unreflective
|
@:unreflective
|
||||||
class CallbackUtil
|
class CallbackUtil
|
||||||
{
|
{
|
||||||
#if android
|
|
||||||
/**
|
/**
|
||||||
* The result code for `DATA_FOLDER_CLOSED` activity.
|
* The result code for `DATA_FOLDER_CLOSED` activity.
|
||||||
*/
|
*/
|
||||||
@@ -42,7 +42,6 @@ class CallbackUtil
|
|||||||
initCallBackJNI(new CallbackHandler());
|
initCallBackJNI(new CallbackHandler());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -50,7 +49,6 @@ class CallbackUtil
|
|||||||
*/
|
*/
|
||||||
class CallbackHandler #if (lime >= "8.0.0") implements JNISafety #end
|
class CallbackHandler #if (lime >= "8.0.0") implements JNISafety #end
|
||||||
{
|
{
|
||||||
#if android
|
|
||||||
@:allow(funkin.external.android.CallbackUtil)
|
@:allow(funkin.external.android.CallbackUtil)
|
||||||
function new():Void {}
|
function new():Void {}
|
||||||
|
|
||||||
@@ -68,5 +66,5 @@ class CallbackHandler #if (lime >= "8.0.0") implements JNISafety #end
|
|||||||
{
|
{
|
||||||
if (CallbackUtil.onActivityResult != null) CallbackUtil.onActivityResult.dispatch(requestCode, resultCode);
|
if (CallbackUtil.onActivityResult != null) CallbackUtil.onActivityResult.dispatch(requestCode, resultCode);
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
|
|||||||
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
package funkin.external.android;
|
package funkin.external.android;
|
||||||
|
|
||||||
|
#if android
|
||||||
/**
|
/**
|
||||||
* A Utility class to manage the Application's Data folder on Android.
|
* A Utility class to manage the Application's Data folder on Android.
|
||||||
*/
|
*/
|
||||||
@:unreflective
|
@:unreflective
|
||||||
class DataFolderUtil
|
class DataFolderUtil
|
||||||
{
|
{
|
||||||
#if android
|
|
||||||
/**
|
/**
|
||||||
* Opens the data folder on an Android device using JNI.
|
* Opens the data folder on an Android device using JNI.
|
||||||
*/
|
*/
|
||||||
@@ -19,5 +19,5 @@ class DataFolderUtil
|
|||||||
openDataFolderJNI(CallbackUtil.DATA_FOLDER_CLOSED);
|
openDataFolderJNI(CallbackUtil.DATA_FOLDER_CLOSED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,6 @@
|
|||||||
package funkin.external.android;
|
package funkin.external.android;
|
||||||
|
|
||||||
|
#if android
|
||||||
import lime.math.Rectangle;
|
import lime.math.Rectangle;
|
||||||
import lime.system.JNI;
|
import lime.system.JNI;
|
||||||
|
|
||||||
@@ -9,7 +10,6 @@ import lime.system.JNI;
|
|||||||
@:unreflective
|
@:unreflective
|
||||||
class ScreenUtil
|
class ScreenUtil
|
||||||
{
|
{
|
||||||
#if android
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the dimensions of display cutouts (such as notches) on Android devices.
|
* Retrieves the dimensions of display cutouts (such as notches) on Android devices.
|
||||||
*
|
*
|
||||||
@@ -48,5 +48,5 @@ class ScreenUtil
|
|||||||
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
|
|||||||
Reference in New Issue
Block a user