mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(ios): multi-window support (#10786)
This commit is contained in:
@@ -16,6 +16,14 @@ global.__APPLE__ = true;
|
||||
global.__COMMONJS__ = false;
|
||||
global.WeakRef.prototype.get = global.WeakRef.prototype.deref;
|
||||
global.NativeClass = function () {};
|
||||
global.NSBundle = {
|
||||
mainBundle: {
|
||||
bundleIdentifier: 'test',
|
||||
objectForInfoDictionaryKey(key: string) {
|
||||
return true;
|
||||
},
|
||||
},
|
||||
};
|
||||
global.NSTimer = class NSTimer {};
|
||||
global.NSObject = class NSObject {
|
||||
static new() {
|
||||
@@ -88,6 +96,7 @@ global.UIInterfaceOrientation = {
|
||||
LandscapeLeft: 4,
|
||||
LandscapeRight: 3,
|
||||
};
|
||||
global.UIWindowSceneDelegate = function () {};
|
||||
const cgColors = { CGColor: 1 };
|
||||
global.UIColor = {
|
||||
alloc() {
|
||||
|
||||
Reference in New Issue
Block a user