feat(core): export additional properties for plugin usage (#8835)

This commit is contained in:
Nathan Walker
2020-09-09 09:15:57 -07:00
committed by GitHub
parent c7623839f9
commit a2e1aa246e
4 changed files with 26 additions and 27 deletions

View File

@@ -6,7 +6,7 @@ nsGlobals.initGlobal();
export { iOSApplication, AndroidApplication } from './application';
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
import { launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent, suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent, systemAppearanceChanged, systemAppearanceChangedEvent, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, run, orientation, getNativeApplication, hasLaunched, android as appAndroid, ios as iosApp, systemAppearance } from './application';
import { launchEvent, displayedEvent, uncaughtErrorEvent, discardedErrorEvent, suspendEvent, resumeEvent, exitEvent, lowMemoryEvent, orientationChangedEvent, systemAppearanceChanged, systemAppearanceChangedEvent, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, android as appAndroid, ios as iosApp, systemAppearance } from './application';
export const Application = {
launchEvent,
displayedEvent,
@@ -30,7 +30,9 @@ export const Application = {
loadAppCss,
addCss,
on,
off,
off,
notify,
hasListeners,
run,
orientation,
getNativeApplication,
@@ -103,7 +105,8 @@ export { profile, enable as profilingEnable, disable as profilingDisable, time a
export type { InstrumentationMode, TimerInfo } from './profiling';
export { encoding } from './text';
// for developers to be explicit if they desire around globals (allows access via Utils below)
import { setTimeout, setInterval, clearInterval, clearTimeout } from './timer';
export * from './trace';
export * from './ui';
@@ -133,7 +136,11 @@ export const Utils = {
android: androidUtils,
// legacy (a lot of plugins use the shorthand "ad" Utils.ad instead of Utils.android)
ad: androidUtils,
ios: iosUtils,
ios: iosUtils,
setTimeout,
setInterval,
clearInterval,
clearTimeout,
Source,
ClassInfo,
getClass,