mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
chore: cleanup
This commit is contained in:
@ -1,7 +1,13 @@
|
||||
// @ts-nocheck
|
||||
global.__DEV__ = true;
|
||||
global.WeakRef.prototype.get = global.WeakRef.prototype.deref;
|
||||
global.NativeClass = function () {};
|
||||
global.NSObject = class NSObject {};
|
||||
global.NSTimer = class NSTimer {};
|
||||
global.NSObject = class NSObject {
|
||||
static new() {
|
||||
return new NSObject();
|
||||
}
|
||||
};
|
||||
global.NSString = {
|
||||
stringWithString() {
|
||||
return {
|
||||
@ -22,6 +28,16 @@ global.NSFileManager = {
|
||||
},
|
||||
},
|
||||
};
|
||||
global.NSNotificationCenter = {
|
||||
defaultCenter: {
|
||||
addObserverSelectorNameObject(
|
||||
observer: any,
|
||||
selector: any,
|
||||
name: any,
|
||||
object: any
|
||||
) {},
|
||||
},
|
||||
};
|
||||
global.interop = {
|
||||
Reference: class Reference {
|
||||
constructor(type: any, ref?: boolean) {}
|
||||
@ -96,6 +112,17 @@ global.NativeScriptGlobals = {
|
||||
global.CADisplayLink = function () {};
|
||||
global.NSNotification = function () {};
|
||||
global.UIApplicationDelegate = function () {};
|
||||
global.UIApplicationDidFinishLaunchingNotification =
|
||||
'UIApplicationDidFinishLaunchingNotification';
|
||||
global.UIApplicationDidBecomeActiveNotification =
|
||||
'UIApplicationDidBecomeActiveNotification';
|
||||
global.UIApplicationDidEnterBackgroundNotification =
|
||||
'UIApplicationDidEnterBackgroundNotification';
|
||||
global.UIApplicationWillTerminateNotification = 'UIApplicationWillTerminateNotification';
|
||||
global.UIApplicationDidReceiveMemoryWarningNotification =
|
||||
'UIApplicationDidReceiveMemoryWarningNotification';
|
||||
global.UIApplicationDidChangeStatusBarOrientationNotification =
|
||||
'UIApplicationDidChangeStatusBarOrientationNotification';
|
||||
global.UIResponder = function () {};
|
||||
global.UIResponder.extend = function () {};
|
||||
global.UIViewController = function () {};
|
||||
|
Reference in New Issue
Block a user