Skip to content

Commit 48f3cfa

Browse files
committed
rename files again
1 parent 166c9f1 commit 48f3cfa

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed
File renamed without changes.
File renamed without changes.

src/events/EventManager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import {
33
NativeEventEmitter,
44
type NativeModule,
55
} from 'react-native';
6-
import OSNotification from '../OSNotification';
7-
import NotificationWillDisplayEvent from './NotificationWillDisplayEvent';
86
import {
97
IN_APP_MESSAGE_CLICKED,
108
IN_APP_MESSAGE_DID_DISMISS,
@@ -16,7 +14,9 @@ import {
1614
PERMISSION_CHANGED,
1715
SUBSCRIPTION_CHANGED,
1816
USER_STATE_CHANGED,
19-
} from './events';
17+
} from '../constants/events';
18+
import OSNotification from '../OSNotification';
19+
import NotificationWillDisplayEvent from './NotificationWillDisplayEvent';
2020

2121
const eventList = [
2222
PERMISSION_CHANGED,

src/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { NativeModules, Platform } from 'react-native';
22
import type { MockInstance } from 'vitest';
3-
import EventManager from './events/EventManager';
43
import {
54
IN_APP_MESSAGE_CLICKED,
65
IN_APP_MESSAGE_DID_DISMISS,
@@ -12,7 +11,8 @@ import {
1211
PERMISSION_CHANGED,
1312
SUBSCRIPTION_CHANGED,
1413
USER_STATE_CHANGED,
15-
} from './events/events';
14+
} from './constants/events';
15+
import EventManager from './events/EventManager';
1616
import * as helpers from './helpers';
1717
import { LogLevel, OneSignal, OSNotificationPermission } from './index';
1818

src/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { NativeModules, Platform } from 'react-native';
2-
import type { OSNotificationPermission } from './constants/Subscription2';
3-
import EventManager from './events/EventManager';
42
import {
53
IN_APP_MESSAGE_CLICKED,
64
IN_APP_MESSAGE_DID_DISMISS,
@@ -12,7 +10,9 @@ import {
1210
PERMISSION_CHANGED,
1311
SUBSCRIPTION_CHANGED,
1412
USER_STATE_CHANGED,
15-
} from './events/events';
13+
} from './constants/events';
14+
import type { OSNotificationPermission } from './constants/subscription';
15+
import EventManager from './events/EventManager';
1616
import NotificationWillDisplayEvent from './events/NotificationWillDisplayEvent';
1717
import { isNativeModuleLoaded, isValidCallback } from './helpers';
1818
import type {
@@ -24,18 +24,18 @@ import type {
2424
InAppMessageEventTypeMap,
2525
InAppMessageWillDismissEvent,
2626
InAppMessageWillDisplayEvent,
27-
} from './types/InAppMessage';
28-
import type { LiveActivitySetupOptions } from './types/LiveActivities';
27+
} from './types/inAppMessage';
28+
import type { LiveActivitySetupOptions } from './types/liveActivities';
2929
import type {
3030
NotificationClickEvent,
3131
NotificationEventName,
3232
NotificationEventTypeMap,
33-
} from './types/NotificationEvents';
33+
} from './types/notificationEvents';
3434
import type {
3535
PushSubscriptionChangedState,
3636
PushSubscriptionState,
37-
} from './types/Subscription';
38-
import type { UserChangedState, UserState } from './types/User';
37+
} from './types/subscription';
38+
import type { UserChangedState, UserState } from './types/user';
3939

4040
const RNOneSignal = NativeModules.OneSignal;
4141
const eventManager = new EventManager(RNOneSignal);
@@ -998,7 +998,7 @@ export namespace OneSignal {
998998
}
999999
}
10001000

1001-
export { OSNotificationPermission } from './constants/Subscription2';
1001+
export { OSNotificationPermission } from './constants/subscription';
10021002
export {
10031003
NotificationWillDisplayEvent,
10041004
type InAppMessage,
@@ -1015,5 +1015,5 @@ export {
10151015
};
10161016

10171017
export { default as OSNotification } from './OSNotification';
1018-
export type { InAppMessageClickResult } from './types/InAppMessage';
1019-
export type { NotificationClickResult } from './types/NotificationEvents';
1018+
export type { InAppMessageClickResult } from './types/inAppMessage';
1019+
export type { NotificationClickResult } from './types/notificationEvents';
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)