chore: adjust Application ios/android getters

This commit is contained in:
Nathan Walker
2022-01-07 14:29:00 -08:00
parent 4aca7eba11
commit 65eb4e2add
2 changed files with 9 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
export type { NativeScriptConfig } from './config';
export { iOSApplication, AndroidApplication } from './application';
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
import { systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application';
import { AndroidApplication, iOSApplication, systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application';
export declare const Application: {
launchEvent: string;
displayedEvent: string;
@@ -41,8 +41,8 @@ export declare const Application: {
hasLaunched: typeof hasLaunched;
systemAppearance: typeof systemAppearance;
setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
android: import('./application').AndroidApplication;
ios: import('./application').iOSApplication;
android: AndroidApplication;
ios: iOSApplication;
};
import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
export declare const ApplicationSettings: {

View File

@@ -39,9 +39,12 @@ export const Application = {
hasLaunched,
systemAppearance,
setAutoSystemAppearanceChanged,
android: appAndroid,
ios: iosApp,
get android() {
return appAndroid;
},
get ios() {
return iosApp;
},
};
// Export all methods from "application-settings" as ApplicationSettings