8000 chore: adjust Application ios/android getters · NativeScript/NativeScript@65eb4e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 65eb4e2

Browse files
committed
chore: adjust Application ios/android getters
1 parent 4aca7eb commit 65eb4e2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

packages/core/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export type { NativeScriptConfig } from './config';
99
export { iOSApplication, AndroidApplication } from './application';
1010
export type { ApplicationEventData, LaunchEventData, OrientationChangedEventData, UnhandledErrorEventData, DiscardedErrorEventData, CssChangedEventData, LoadAppCSSEventData, AndroidActivityEventData, AndroidActivityBundleEventData, AndroidActivityRequestPermissionsEventData, AndroidActivityResultEventData, AndroidActivityNewIntentEventData, AndroidActivityBackPressedEventData, SystemAppearanceChangedEventData } from './application';
11-
import { systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged } from './application';
11+
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';
1212
export declare const Application: {
1313
launchEvent: string;
1414
displayedEvent: string;
@@ -41,8 +41,8 @@ export declare const Application: {
4141
hasLaunched: typeof hasLaunched;
4242
systemAppearance: typeof systemAppearance;
4343
setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
44-
android: import('./application').AndroidApplication;
45-
ios: import('./application').iOSApplication;
44+
android: AndroidApplication;
45+
ios: iOSApplication;
4646
};
4747
import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
4848
export declare const ApplicationSettings: {

packages/core/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ export const Application = {
3939
hasLaunched,
4040
systemAppearance,
4141
setAutoSystemAppearanceChanged,
42-
43-
android: appAndroid,
44-
ios: iosApp,
42+
get android() {
43+
return appAndroid;
44+
},
45+
get ios() {
46+
return iosApp;
47+
},
4548
};
4649

4750
// Export all methods from "application-settings" as ApplicationSettings

0 commit comments

Comments
 (0)
0