@nativescript/core 8.5.3 → 8.5.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessibility/accessibility-css-helper.js +5 -6
- package/accessibility/accessibility-css-helper.js.map +1 -1
- package/accessibility/accessibility-service.android.js +24 -23
- package/accessibility/accessibility-service.android.js.map +1 -1
- package/accessibility/accessibility-service.ios.js +1 -1
- package/accessibility/accessibility-service.ios.js.map +1 -1
- package/accessibility/font-scale.android.js +1 -1
- package/accessibility/font-scale.android.js.map +1 -1
- package/accessibility/font-scale.ios.js +1 -1
- package/accessibility/font-scale.ios.js.map +1 -1
- package/accessibility/index.android.js +1 -1
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js +1 -1
- package/accessibility/index.ios.js.map +1 -1
- package/application/application-common.d.ts +197 -41
- package/application/application-common.js +411 -151
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +116 -28
- package/application/application-shims.d.ts +351 -0
- package/application/application-shims.js +353 -0
- package/application/application-shims.js.map +1 -0
- package/application/application.android.d.ts +75 -0
- package/application/application.android.js +445 -0
- package/application/application.android.js.map +1 -0
- package/application/application.d.ts +105 -0
- package/application/application.ios.d.ts +72 -0
- package/application/application.ios.js +375 -0
- package/application/application.ios.js.map +1 -0
- package/application/index.android.d.ts +2 -77
- package/application/index.android.js +2 -455
- package/application/index.android.js.map +1 -1
- package/application/index.d.ts +2 -759
- package/application/index.ios.d.ts +2 -65
- package/application/index.ios.js +2 -516
- package/application/index.ios.js.map +1 -1
- package/application-settings/index.android.js +2 -2
- package/application-settings/index.android.js.map +1 -1
- package/connectivity/index.android.js +4 -5
- package/connectivity/index.android.js.map +1 -1
- package/css/LICENSE +9 -0
- package/css/Readme.md +278 -0
- package/css-value/LICENSE +9 -0
- package/css-value/Readme.md +45 -0
- package/fetch/LICENSE +20 -0
- package/fetch/README.md +1 -0
- package/file-system/file-system-access.android.d.ts +18 -0
- package/file-system/file-system-access.android.js +205 -3
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.d.ts +67 -0
- package/file-system/file-system-access.ios.d.ts +9 -0
- package/file-system/file-system-access.ios.js +106 -0
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.d.ts +60 -0
- package/file-system/index.js +197 -3
- package/file-system/index.js.map +1 -1
- package/image-source/index.android.js +2 -2
- package/image-source/index.android.js.map +1 -1
- package/index.d.ts +22 -139
- package/index.js +15 -156
- package/index.js.map +1 -1
- package/js-libs/easysax/LICENSE +20 -0
- package/js-libs/easysax/README.md +46 -0
- package/module-name-resolver/index.js +5 -5
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js +2 -2
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/package.json +1 -1
- package/platform/index.android.js +5 -5
- package/platform/index.android.js.map +1 -1
- package/platforms/README.md +1 -0
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +7 -7
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +4 -4
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +4 -4
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/NSFileHandle+Async.h +22 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Headers/TNSWidgets.h +1 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +14 -3
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/ui/action-bar/index.android.js +5 -5
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/core/view/index.android.js +2 -2
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.js +5 -6
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/dialogs/index.ios.js +9 -3
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/frame/activity.android.js +2 -2
- package/ui/frame/activity.android.js.map +1 -1
- package/ui/frame/index.android.d.ts +1 -1
- package/ui/frame/index.android.js +45 -82
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.ios.js +2 -2
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/styling/background.android.js +3 -5
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/style-scope.js +5 -5
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/tab-view/index.android.js +2 -2
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/transition/shared-transition-helper.ios.js +19 -19
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.js +1 -2
- package/ui/transition/shared-transition.js.map +1 -1
- package/utils/android/index.d.ts +21 -0
- package/utils/android/index.js +157 -0
- package/utils/android/index.js.map +1 -0
- package/utils/index.android.d.ts +8 -3
- package/utils/index.android.js +15 -10
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +7 -7
- package/utils/index.ios.d.ts +8 -3
- package/utils/index.ios.js +13 -8
- package/utils/index.ios.js.map +1 -1
- package/utils/ios/index.d.ts +36 -0
- package/utils/ios/index.js +276 -0
- package/utils/ios/index.js.map +1 -0
- package/utils/layout-helper/index.android.js +3 -3
- package/utils/layout-helper/index.android.js.map +1 -1
- package/utils/mainthread-helper.android.js +2 -2
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/native-helper.android.d.ts +8 -23
- package/utils/native-helper.android.js +10 -169
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +272 -255
- package/utils/native-helper.ios.d.ts +8 -38
- package/utils/native-helper.ios.js +10 -295
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/platform-check.d.ts +4 -0
- package/utils/platform-check.js +21 -0
- package/utils/platform-check.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -6,77 +6,26 @@
|
|
|
6
6
|
* Once issue is resolve we can remove this index.d.ts from repo and go back to auto generation on tsc
|
|
7
7
|
*/
|
|
8
8
|
export type { NativeScriptConfig } from './config';
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exitEvent: string;
|
|
20
|
-
foregroundEvent: string;
|
|
21
|
-
backgroundEvent: string;
|
|
22
|
-
lowMemoryEvent: string;
|
|
23
|
-
orientationChangedEvent: string;
|
|
24
|
-
systemAppearanceChangedEvent: string;
|
|
25
|
-
fontScaleChangedEvent: string;
|
|
26
|
-
systemAppearanceChanged: typeof systemAppearanceChanged;
|
|
27
|
-
setMaxRefreshRate: typeof setMaxRefreshRate;
|
|
28
|
-
getMainEntry: typeof getMainEntry;
|
|
29
|
-
getRootView: typeof getRootView;
|
|
30
|
-
resetRootView: typeof _resetRootView;
|
|
31
|
-
getResources: typeof getResources;
|
|
32
|
-
setResources: typeof setResources;
|
|
33
|
-
setCssFileName: typeof setCssFileName;
|
|
34
|
-
getCssFileName: typeof getCssFileName;
|
|
35
|
-
loadAppCss: typeof loadAppCss;
|
|
36
|
-
addCss: typeof addCss;
|
|
37
|
-
on: typeof on;
|
|
38
|
-
off: typeof off;
|
|
39
|
-
notify: typeof notify;
|
|
40
|
-
hasListeners: typeof hasListeners;
|
|
41
|
-
run: typeof run;
|
|
42
|
-
orientation: typeof orientation;
|
|
43
|
-
getNativeApplication: typeof getNativeApplication;
|
|
44
|
-
hasLaunched: typeof hasLaunched;
|
|
45
|
-
systemAppearance: typeof systemAppearance;
|
|
46
|
-
setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
|
|
47
|
-
android: AndroidApplication;
|
|
48
|
-
ios: iOSApplication;
|
|
49
|
-
suspended: boolean;
|
|
50
|
-
inBackground: boolean;
|
|
51
|
-
};
|
|
52
|
-
import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
|
|
53
|
-
export declare const ApplicationSettings: {
|
|
54
|
-
clear: typeof clear;
|
|
55
|
-
flush: typeof flush;
|
|
56
|
-
hasKey: typeof hasKey;
|
|
57
|
-
remove: typeof remove;
|
|
58
|
-
setString: typeof setString;
|
|
59
|
-
getString: typeof getString;
|
|
60
|
-
getAllKeys: typeof getAllKeys;
|
|
61
|
-
getBoolean: typeof getBoolean;
|
|
62
|
-
setBoolean: typeof setBoolean;
|
|
63
|
-
getNumber: typeof getNumber;
|
|
64
|
-
setNumber: typeof setNumber;
|
|
65
|
-
};
|
|
66
|
-
export declare const AccessibilityEvents: {
|
|
67
|
-
accessibilityBlurEvent: string;
|
|
68
|
-
accessibilityFocusEvent: string;
|
|
69
|
-
accessibilityFocusChangedEvent: string;
|
|
70
|
-
};
|
|
9
|
+
|
|
10
|
+
export * from './application';
|
|
11
|
+
export * as ApplicationSettings from './application-settings';
|
|
12
|
+
import * as Accessibility from './accessibility';
|
|
13
|
+
export namespace AccessibilityEvents {
|
|
14
|
+
export const accessibilityBlurEvent = Accessibility.accessibilityBlurEvent;
|
|
15
|
+
export const accessibilityFocusEvent = Accessibility.accessibilityFocusEvent;
|
|
16
|
+
export const accessibilityFocusChangedEvent = Accessibility.accessibilityFocusChangedEvent;
|
|
17
|
+
export const accessibilityPerformEscapeEvent = Accessibility.accessibilityPerformEscapeEvent;
|
|
18
|
+
}
|
|
71
19
|
export { AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait, FontScaleCategory } from './accessibility';
|
|
72
20
|
export { Color } from './color';
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
21
|
+
export * as Connectivity from './connectivity';
|
|
22
|
+
// import { connectionType, getConnectionType, startMonitoring, stopMonitoring } from './connectivity';
|
|
23
|
+
// export declare const Connectivity: {
|
|
24
|
+
// connectionType: typeof connectionType;
|
|
25
|
+
// getConnectionType: typeof getConnectionType;
|
|
26
|
+
// startMonitoring: typeof startMonitoring;
|
|
27
|
+
// stopMonitoring: typeof stopMonitoring;
|
|
28
|
+
// };
|
|
80
29
|
export * from './core-types';
|
|
81
30
|
export { CSSUtils } from './css/system-classes';
|
|
82
31
|
export { ObservableArray, ChangeType } from './data/observable-array';
|
|
@@ -85,16 +34,9 @@ export { Observable, WrappedValue, fromObject, fromObjectRecursive } from './dat
|
|
|
85
34
|
export type { PropertyChangeData, EventData } from './data/observable';
|
|
86
35
|
export { VirtualArray } from './data/virtual-array';
|
|
87
36
|
export type { ItemsLoading } from './data/virtual-array';
|
|
88
|
-
export { File, FileSystemEntity, Folder, knownFolders, path, getFileAccess } from './file-system';
|
|
37
|
+
export { File, FileSystemEntity, Folder, knownFolders, path, getFileAccess, AndroidDirectory } from './file-system';
|
|
89
38
|
export type { HttpRequestOptions, HttpResponse, Headers, HttpResponseEncoding, HttpContent } from './http';
|
|
90
|
-
|
|
91
|
-
export declare const Http: {
|
|
92
|
-
getFile: typeof getFile;
|
|
93
|
-
getImage: typeof getImage;
|
|
94
|
-
getJSON: typeof getJSON;
|
|
95
|
-
getString: typeof httpGetString;
|
|
96
|
-
request: (options: import('./http').HttpRequestOptions) => Promise<import('./http').HttpResponse>;
|
|
97
|
-
};
|
|
39
|
+
export * as Http from './http';
|
|
98
40
|
export { ImageAsset } from './image-asset';
|
|
99
41
|
export type { ImageAssetOptions } from './image-asset';
|
|
100
42
|
export { ImageSource } from './image-source';
|
|
@@ -107,65 +49,6 @@ export type { InstrumentationMode, TimerInfo } from './profiling';
|
|
|
107
49
|
export { encoding } from './text';
|
|
108
50
|
export * from './trace';
|
|
109
51
|
export * from './ui';
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback, numberHasDecimals, numberIs64Bit } from './utils/types';
|
|
113
|
-
export declare const Utils: {
|
|
114
|
-
GC: typeof GC;
|
|
115
|
-
SDK_VERSION: typeof SDK_VERSION;
|
|
116
|
-
RESOURCE_PREFIX: string;
|
|
117
|
-
FILE_PREFIX: string;
|
|
118
|
-
queueMacrotask: typeof queueMacrotask;
|
|
119
|
-
queueGC: typeof queueGC;
|
|
120
|
-
debounce: typeof debounce;
|
|
121
|
-
throttle: typeof throttle;
|
|
122
|
-
isFontIconURI: typeof isFontIconURI;
|
|
123
|
-
isDataURI: typeof isDataURI;
|
|
124
|
-
isFileOrResourcePath: typeof isFileOrResourcePath;
|
|
125
|
-
getFileExtension: typeof getFileExtension;
|
|
126
|
-
executeOnMainThread: typeof executeOnMainThread;
|
|
127
|
-
executeOnUIThread: typeof executeOnUIThread;
|
|
128
|
-
mainThreadify: typeof mainThreadify;
|
|
129
|
-
isMainThread: typeof isMainThread;
|
|
130
|
-
dispatchToMainThread: typeof dispatchToMainThread;
|
|
131
|
-
releaseNativeObject: typeof releaseNativeObject;
|
|
132
|
-
escapeRegexSymbols: typeof escapeRegexSymbols;
|
|
133
|
-
convertString: typeof convertString;
|
|
134
|
-
getModuleName: typeof getModuleName;
|
|
135
|
-
openFile: typeof openFile;
|
|
136
|
-
openUrl: typeof openUrl;
|
|
137
|
-
isRealDevice: typeof isRealDevice;
|
|
138
|
-
layout: typeof layout;
|
|
139
|
-
android: typeof androidUtils;
|
|
140
|
-
ad: typeof androidUtils;
|
|
141
|
-
ios: typeof iosUtils;
|
|
142
|
-
dataSerialize: typeof dataSerialize;
|
|
143
|
-
dataDeserialize: typeof dataDeserialize;
|
|
144
|
-
numberHasDecimals: typeof numberHasDecimals;
|
|
145
|
-
numberIs64Bit: typeof numberIs64Bit;
|
|
146
|
-
setTimeout: typeof setTimeout;
|
|
147
|
-
setInterval: typeof setInterval;
|
|
148
|
-
clearInterval: typeof clearInterval;
|
|
149
|
-
clearTimeout: typeof clearTimeout;
|
|
150
|
-
Source: typeof Source;
|
|
151
|
-
ClassInfo: typeof ClassInfo;
|
|
152
|
-
getClass: typeof getClass;
|
|
153
|
-
getBaseClasses: typeof getBaseClasses;
|
|
154
|
-
getClassInfo: typeof getClassInfo;
|
|
155
|
-
isBoolean: typeof isBoolean;
|
|
156
|
-
isDefined: typeof isDefined;
|
|
157
|
-
isFunction: typeof isFunction;
|
|
158
|
-
isNullOrUndefined: typeof isNullOrUndefined;
|
|
159
|
-
isNumber: typeof isNumber;
|
|
160
|
-
isObject: typeof isObject;
|
|
161
|
-
isString: typeof isString;
|
|
162
|
-
isUndefined: typeof isUndefined;
|
|
163
|
-
toUIString: typeof toUIString;
|
|
164
|
-
verifyCallback: typeof verifyCallback;
|
|
165
|
-
dismissSoftInput: typeof dismissSoftInput;
|
|
166
|
-
dismissKeyboard: typeof dismissKeyboard;
|
|
167
|
-
copyToClipboard: typeof copyToClipboard;
|
|
168
|
-
isEmoji: typeof isEmoji;
|
|
169
|
-
getDurationWithDampingFromSpring: typeof getDurationWithDampingFromSpring;
|
|
170
|
-
};
|
|
52
|
+
export * as Utils from './utils';
|
|
53
|
+
|
|
171
54
|
export { XmlParser, ParserEventType, ParserEvent } from './xml';
|
package/index.js
CHANGED
|
@@ -1,105 +1,27 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
1
2
|
/// <reference path="./global-types.d.ts" />
|
|
2
3
|
// Init globals first (use import to ensure it's always at the top)
|
|
3
4
|
import './globals';
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exitEvent,
|
|
15
|
-
foregroundEvent,
|
|
16
|
-
backgroundEvent,
|
|
17
|
-
lowMemoryEvent,
|
|
18
|
-
orientationChangedEvent,
|
|
19
|
-
systemAppearanceChangedEvent,
|
|
20
|
-
systemAppearanceChanged,
|
|
21
|
-
fontScaleChangedEvent,
|
|
22
|
-
setMaxRefreshRate,
|
|
23
|
-
getMainEntry,
|
|
24
|
-
getRootView,
|
|
25
|
-
resetRootView: _resetRootView,
|
|
26
|
-
getResources,
|
|
27
|
-
setResources,
|
|
28
|
-
setCssFileName,
|
|
29
|
-
getCssFileName,
|
|
30
|
-
loadAppCss,
|
|
31
|
-
addCss,
|
|
32
|
-
on,
|
|
33
|
-
off,
|
|
34
|
-
notify,
|
|
35
|
-
hasListeners,
|
|
36
|
-
run,
|
|
37
|
-
orientation,
|
|
38
|
-
getNativeApplication,
|
|
39
|
-
hasLaunched,
|
|
40
|
-
systemAppearance,
|
|
41
|
-
setAutoSystemAppearanceChanged,
|
|
42
|
-
get android() {
|
|
43
|
-
ensureNativeApplication();
|
|
44
|
-
return appAndroid;
|
|
45
|
-
},
|
|
46
|
-
get ios() {
|
|
47
|
-
ensureNativeApplication();
|
|
48
|
-
return iosApp;
|
|
49
|
-
},
|
|
50
|
-
get suspended() {
|
|
51
|
-
return suspended;
|
|
52
|
-
},
|
|
53
|
-
get inBackground() {
|
|
54
|
-
return inBackground;
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
// Export all methods from "application-settings" as ApplicationSettings
|
|
58
|
-
import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
|
|
59
|
-
export const ApplicationSettings = {
|
|
60
|
-
clear,
|
|
61
|
-
flush,
|
|
62
|
-
hasKey,
|
|
63
|
-
remove,
|
|
64
|
-
setString,
|
|
65
|
-
getString,
|
|
66
|
-
getAllKeys,
|
|
67
|
-
getBoolean,
|
|
68
|
-
setBoolean,
|
|
69
|
-
getNumber,
|
|
70
|
-
setNumber,
|
|
71
|
-
};
|
|
72
|
-
import { accessibilityBlurEvent, accessibilityFocusEvent, accessibilityFocusChangedEvent, accessibilityPerformEscapeEvent } from './accessibility';
|
|
73
|
-
export const AccessibilityEvents = {
|
|
74
|
-
accessibilityBlurEvent,
|
|
75
|
-
accessibilityFocusEvent,
|
|
76
|
-
accessibilityFocusChangedEvent,
|
|
77
|
-
accessibilityPerformEscapeEvent,
|
|
78
|
-
};
|
|
5
|
+
export * from './application';
|
|
6
|
+
export * as ApplicationSettings from './application-settings';
|
|
7
|
+
import * as Accessibility from './accessibility';
|
|
8
|
+
export var AccessibilityEvents;
|
|
9
|
+
(function (AccessibilityEvents) {
|
|
10
|
+
AccessibilityEvents.accessibilityBlurEvent = Accessibility.accessibilityBlurEvent;
|
|
11
|
+
AccessibilityEvents.accessibilityFocusEvent = Accessibility.accessibilityFocusEvent;
|
|
12
|
+
AccessibilityEvents.accessibilityFocusChangedEvent = Accessibility.accessibilityFocusChangedEvent;
|
|
13
|
+
AccessibilityEvents.accessibilityPerformEscapeEvent = Accessibility.accessibilityPerformEscapeEvent;
|
|
14
|
+
})(AccessibilityEvents || (AccessibilityEvents = {}));
|
|
79
15
|
export { AccessibilityLiveRegion, AccessibilityRole, AccessibilityState, AccessibilityTrait, FontScaleCategory } from './accessibility';
|
|
80
16
|
export { Color } from './color';
|
|
81
|
-
|
|
82
|
-
export const Connectivity = {
|
|
83
|
-
connectionType,
|
|
84
|
-
getConnectionType,
|
|
85
|
-
startMonitoring,
|
|
86
|
-
stopMonitoring,
|
|
87
|
-
};
|
|
17
|
+
export * as Connectivity from './connectivity';
|
|
88
18
|
export * from './core-types';
|
|
89
19
|
export { CSSUtils } from './css/system-classes';
|
|
90
20
|
export { ObservableArray, ChangeType } from './data/observable-array';
|
|
91
21
|
export { Observable, WrappedValue, fromObject, fromObjectRecursive } from './data/observable';
|
|
92
22
|
export { VirtualArray } from './data/virtual-array';
|
|
93
|
-
export { File, FileSystemEntity, Folder, knownFolders, path, getFileAccess } from './file-system';
|
|
94
|
-
|
|
95
|
-
import { getFile, getImage, getJSON, getString as httpGetString, request } from './http';
|
|
96
|
-
export const Http = {
|
|
97
|
-
getFile,
|
|
98
|
-
getImage,
|
|
99
|
-
getJSON,
|
|
100
|
-
getString: httpGetString,
|
|
101
|
-
request,
|
|
102
|
-
};
|
|
23
|
+
export { File, FileSystemEntity, Folder, knownFolders, path, getFileAccess, AndroidDirectory } from './file-system';
|
|
24
|
+
export * as Http from './http';
|
|
103
25
|
export { ImageAsset } from './image-asset';
|
|
104
26
|
export { ImageSource } from './image-source';
|
|
105
27
|
export { ModuleNameResolver, _setResolver } from './module-name-resolver';
|
|
@@ -107,71 +29,8 @@ export { isAndroid, isIOS, Screen, Device, platformNames } from './platform';
|
|
|
107
29
|
// Profiling
|
|
108
30
|
export { profile, enable as profilingEnable, disable as profilingDisable, time as profilingTime, uptime as profilingUptime, start as profilingStart, stop as profilingStop, isRunning as profilingIsRunning, dumpProfiles as profilingDumpProfiles, resetProfiles as profilingResetProfiles, startCPUProfile as profilingStartCPU, stopCPUProfile as profilingStopCPU } from './profiling';
|
|
109
31
|
export { encoding } from './text';
|
|
110
|
-
// for developers to be explicit if they desire around globals (allows access via Utils below)
|
|
111
|
-
import { setTimeout, setInterval, clearInterval, clearTimeout } from './timer';
|
|
112
32
|
export * from './trace';
|
|
113
33
|
export * from './ui';
|
|
114
|
-
|
|
115
|
-
import { SDK_VERSION } from './utils/constants';
|
|
116
|
-
import { ClassInfo, getClass, getBaseClasses, getClassInfo, isBoolean, isDefined, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, toUIString, verifyCallback, numberHasDecimals, numberIs64Bit } from './utils/types';
|
|
117
|
-
export const Utils = {
|
|
118
|
-
GC,
|
|
119
|
-
SDK_VERSION,
|
|
120
|
-
RESOURCE_PREFIX,
|
|
121
|
-
FILE_PREFIX,
|
|
122
|
-
isFontIconURI,
|
|
123
|
-
isDataURI,
|
|
124
|
-
isFileOrResourcePath,
|
|
125
|
-
getFileExtension,
|
|
126
|
-
executeOnMainThread,
|
|
127
|
-
executeOnUIThread,
|
|
128
|
-
mainThreadify,
|
|
129
|
-
isMainThread,
|
|
130
|
-
dispatchToMainThread,
|
|
131
|
-
queueMacrotask,
|
|
132
|
-
queueGC,
|
|
133
|
-
debounce,
|
|
134
|
-
throttle,
|
|
135
|
-
releaseNativeObject,
|
|
136
|
-
convertString,
|
|
137
|
-
escapeRegexSymbols,
|
|
138
|
-
getModuleName,
|
|
139
|
-
openFile,
|
|
140
|
-
openUrl,
|
|
141
|
-
isRealDevice,
|
|
142
|
-
layout,
|
|
143
|
-
android: androidUtils,
|
|
144
|
-
// legacy (a lot of plugins use the shorthand "ad" Utils.ad instead of Utils.android)
|
|
145
|
-
ad: androidUtils,
|
|
146
|
-
ios: iosUtils,
|
|
147
|
-
dataSerialize,
|
|
148
|
-
dataDeserialize,
|
|
149
|
-
numberHasDecimals,
|
|
150
|
-
numberIs64Bit,
|
|
151
|
-
setTimeout,
|
|
152
|
-
setInterval,
|
|
153
|
-
clearInterval,
|
|
154
|
-
clearTimeout,
|
|
155
|
-
Source,
|
|
156
|
-
ClassInfo,
|
|
157
|
-
getClass,
|
|
158
|
-
getBaseClasses,
|
|
159
|
-
getClassInfo,
|
|
160
|
-
isBoolean,
|
|
161
|
-
isDefined,
|
|
162
|
-
isFunction,
|
|
163
|
-
isNullOrUndefined,
|
|
164
|
-
isNumber,
|
|
165
|
-
isObject,
|
|
166
|
-
isString,
|
|
167
|
-
isUndefined,
|
|
168
|
-
toUIString,
|
|
169
|
-
verifyCallback,
|
|
170
|
-
dismissSoftInput,
|
|
171
|
-
dismissKeyboard,
|
|
172
|
-
copyToClipboard,
|
|
173
|
-
isEmoji,
|
|
174
|
-
getDurationWithDampingFromSpring,
|
|
175
|
-
};
|
|
34
|
+
export * as Utils from './utils';
|
|
176
35
|
export { XmlParser, ParserEventType, ParserEvent } from './xml';
|
|
177
36
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/core/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,mEAAmE;AACnE,OAAO,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../packages/core/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,4CAA4C;AAC5C,mEAAmE;AACnE,OAAO,WAAW,CAAC;AACnB,cAAc,eAAe,CAAC;AAC9B,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,MAAM,KAAW,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IACtB,0CAAsB,GAAG,aAAa,CAAC,sBAAsB,CAAC;IAC9D,2CAAuB,GAAG,aAAa,CAAC,uBAAuB,CAAC;IAChE,kDAA8B,GAAG,aAAa,CAAC,8BAA8B,CAAC;IAC9E,mDAA+B,GAAG,aAAa,CAAC,+BAA+B,CAAC;AAC9F,CAAC,EALgB,mBAAmB,KAAnB,mBAAmB,QAKnC;AACD,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAExI,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAIpH,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG7E,YAAY;AACZ,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,OAAO,IAAI,gBAAgB,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,IAAI,eAAe,EAAE,KAAK,IAAI,cAAc,EAAE,IAAI,IAAI,aAAa,EAAE,SAAS,IAAI,kBAAkB,EAAE,YAAY,IAAI,qBAAqB,EAAE,aAAa,IAAI,sBAAsB,EAAE,eAAe,IAAI,iBAAiB,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3X,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright (c) 2012 Vopilovskii Constantine <flash.vkv@gmail.com>
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
the Software without restriction, including without limitation the rights to
|
|
7
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
8
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
9
|
+
so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
EASYSAX - pure javascript sax-style parser for xml
|
|
2
|
+
==================================================
|
|
3
|
+
Простой и быстрый SAX парсер XML файлов.
|
|
4
|
+
Реализован по принципу парсить только то что нужно и как можно быстрее.
|
|
5
|
+
Парсер не потоковый, и не расчитан на гиганские файлы. Весь XML должен быть в памяти.
|
|
6
|
+
Встроенный уникальный механизм работы с пространсвами имен.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Парсер был написан для RSS ридера http://zzreader.com
|
|
10
|
+
На конец 2012 года остается самым быстрым SAX парсером под NODE.JS
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
BENCHMARK
|
|
15
|
+
---------------------------------------------------
|
|
16
|
+
|
|
17
|
+
**benchmark/test.js, parse file #1**
|
|
18
|
+
```
|
|
19
|
+
sax-js: 12671ms
|
|
20
|
+
libxmljs: 11311ms
|
|
21
|
+
expat: 6118ms
|
|
22
|
+
expat buffer: 5278ms
|
|
23
|
+
easysax : 1739ms // namespace--on, attr()--on , entity_decode--on
|
|
24
|
+
easysax: 1035ms // namespace--off, attr()--on , entity_decode--on
|
|
25
|
+
easysax: 740ms // namespace--off, attr()--off , entity_decode--off
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
**benchmark/test.js, parse file #2 (много атрибутов)**
|
|
30
|
+
```
|
|
31
|
+
sax-js: 84060ms
|
|
32
|
+
libxmljs: 48919ms
|
|
33
|
+
expat: 39444ms
|
|
34
|
+
expat buffer: 35375ms
|
|
35
|
+
easysax: 14655ms // namespace--on, attr()--on , entity_decode--on
|
|
36
|
+
easysax: 9874ms // namespace--off, attr()--on , entity_decode--on
|
|
37
|
+
easysax: 3531ms // namespace--off, attr()--off , entity_decode--on
|
|
38
|
+
easysax: 2954ms // namespace--off, attr()--off , entity_decode--off
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
**demo/example.js, parse file #2**
|
|
43
|
+
```
|
|
44
|
+
1,000 pages for: 13335ms - attr()--all
|
|
45
|
+
1,000 pages for: 7300ms - attr()--on_request
|
|
46
|
+
```
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Screen, Device } from '../platform';
|
|
2
|
-
import * as appCommonModule from '../application/application-common';
|
|
3
2
|
import { findMatch, stripQualifiers } from './qualifier-matcher';
|
|
4
3
|
import { Trace } from '../trace';
|
|
4
|
+
import { Application } from '../application';
|
|
5
5
|
export class ModuleNameResolver {
|
|
6
6
|
constructor(context, moduleListProvider = global.getRegisteredModules) {
|
|
7
7
|
this.context = context;
|
|
8
8
|
this.moduleListProvider = moduleListProvider;
|
|
9
9
|
this._cache = {};
|
|
10
|
+
Application.on('livesync', (args) => clearCache());
|
|
11
|
+
Application.on('orientationChanged', (args) => {
|
|
12
|
+
resolverInstance = undefined;
|
|
13
|
+
});
|
|
10
14
|
}
|
|
11
15
|
resolveModuleName(path, ext) {
|
|
12
16
|
const key = path + ext;
|
|
@@ -72,8 +76,4 @@ export function clearCache() {
|
|
|
72
76
|
export function _setResolver(resolver) {
|
|
73
77
|
resolverInstance = resolver;
|
|
74
78
|
}
|
|
75
|
-
appCommonModule.on('livesync', (args) => clearCache());
|
|
76
|
-
appCommonModule.on('orientationChanged', (args) => {
|
|
77
|
-
resolverInstance = undefined;
|
|
78
|
-
});
|
|
79
79
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/core/module-name-resolver/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/core/module-name-resolver/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAmB,SAAS,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAElF,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAM7C,MAAM,OAAO,kBAAkB;IAG9B,YAAoB,OAAwB,EAAU,qBAAyC,MAAM,CAAC,oBAAoB;QAAtG,YAAO,GAAP,OAAO,CAAiB;QAAU,uBAAkB,GAAlB,kBAAkB,CAAkD;QAFlH,WAAM,GAAG,EAAE,CAAC;QAGnB,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,EAAE,CAAC,CAAC;QACnD,WAAW,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,EAAE;YAC7C,gBAAgB,GAAG,SAAS,CAAC;QAC9B,CAAC,CAAC,CAAC;IACJ,CAAC;IAEM,iBAAiB,CAAC,IAAY,EAAE,GAAW;QACjD,MAAM,GAAG,GAAG,IAAI,GAAG,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file-system';
|
|
2
|
-
import * as appCommonModule from '../application/application-common';
|
|
3
3
|
import { Trace } from '../trace';
|
|
4
4
|
const cache = new Set();
|
|
5
5
|
let initialized = false;
|
|
@@ -112,7 +112,7 @@ export function registerModulesFromFileSystem(moduleName) {
|
|
|
112
112
|
}
|
|
113
113
|
function initialize() {
|
|
114
114
|
if (!initialized) {
|
|
115
|
-
|
|
115
|
+
Application.on('livesync', (args) => cache.clear());
|
|
116
116
|
initialized = true;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"non-bundle-workflow-compat.js","sourceRoot":"","sources":["../../../../packages/core/module-name-resolver/non-bundle-workflow-compat.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"non-bundle-workflow-compat.js","sourceRoot":"","sources":["../../../../packages/core/module-name-resolver/non-bundle-workflow-compat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;AAChC,IAAI,WAAW,GAAG,KAAK,CAAC;AAExB,SAAS,QAAQ,CAAC,IAAY,EAAE,MAA+B;IAC9D,IAAI,KAAK,CAAC,SAAS,EAAE,EAAE;QACtB,KAAK,CAAC,KAAK,CAAC,6BAA6B,IAAI,EAAE,EAAE,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;KACtF;IACD,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAEpC,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;QACnC,MAAM,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAChE,IAAI,KAAK,CA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G,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;QACvG,IAAI,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE;YAC1C,aAAa,CAAC,mBAAmB,CAAC,CAAC;SACnC;KACD;AACF,CAAC;AAED,SAAS,UAAU;IAClB,IAAI,CAAC,WAAW,EAAE;QACjB,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QACpD,WAAW,GAAG,IAAI,CAAC;KACnB;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* tslint:disable:class-name */
|
|
2
|
-
import {
|
|
2
|
+
import { Application } from '../application';
|
|
3
3
|
import { SDK_VERSION } from '../utils/constants';
|
|
4
4
|
const MIN_TABLET_PIXELS = 600;
|
|
5
5
|
export const platformNames = {
|
|
@@ -14,14 +14,14 @@ class MainScreen {
|
|
|
14
14
|
this.initMetrics();
|
|
15
15
|
}
|
|
16
16
|
initMetrics() {
|
|
17
|
-
const nativeApp = getNativeApplication();
|
|
17
|
+
const nativeApp = Application.android.getNativeApplication();
|
|
18
18
|
nativeApp.getSystemService(android.content.Context.WINDOW_SERVICE).getDefaultDisplay().getRealMetrics(this._metrics);
|
|
19
19
|
}
|
|
20
20
|
get metrics() {
|
|
21
21
|
if (!this._metrics) {
|
|
22
22
|
// NOTE: This will be memory leak but we MainScreen is singleton
|
|
23
|
-
on('cssChanged', this.reinitMetrics, this);
|
|
24
|
-
on(orientationChangedEvent, this.reinitMetrics, this);
|
|
23
|
+
Application.on('cssChanged', this.reinitMetrics, this);
|
|
24
|
+
Application.on(Application.orientationChangedEvent, this.reinitMetrics, this);
|
|
25
25
|
this._metrics = new android.util.DisplayMetrics();
|
|
26
26
|
this.initMetrics();
|
|
27
27
|
}
|
|
@@ -91,7 +91,7 @@ class DeviceRef {
|
|
|
91
91
|
}
|
|
92
92
|
get uuid() {
|
|
93
93
|
if (!this._uuid) {
|
|
94
|
-
const nativeApp =
|
|
94
|
+
const nativeApp = Application.android.getNativeApplication();
|
|
95
95
|
this._uuid = android.provider.Settings.Secure.getString(nativeApp.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
|
|
96
96
|
}
|
|
97
97
|
return this._uuid;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/core/platform/index.android.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../packages/core/platform/index.android.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACV,CAAC;AAEF,MAAM,UAAU;IAGP,aAAa;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;SAClD;QACD,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;IAEO,WAAW;QAClB,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;QAC7D,SAAS,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,iBAAiB,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtH,CAAC;IAED,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