Skip to content

Commit 9a5c612

Browse files
committed
chore: cleanup
1 parent e3625f5 commit 9a5c612

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

src/ble/index.android.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,26 @@ export function getBluetoothInstance() {
3838
return _bluetoothInstance;
3939
}
4040

41-
export * from './index.common';
41+
export {
42+
AdvertismentData,
43+
BluetoothError,
44+
BleTraceCategory,
45+
Characteristic,
46+
ConnectOptions,
47+
DisconnectOptions,
48+
DiscoverCharacteristicsOptions,
49+
DiscoverOptions,
50+
DiscoverServicesOptions,
51+
MtuOptions,
52+
Peripheral,
53+
ReadOptions,
54+
ReadResult,
55+
Service,
56+
StartNotifyingOptions,
57+
StartScanningOptions,
58+
StopNotifyingOptions,
59+
WriteOptions
60+
} from './index.common';
4261

4362
const sdkVersion = parseInt(Device.sdkVersion, 10);
4463
let context: android.content.Context;

src/ble/index.ios.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,29 @@ import {
2323
shortenUuidIfAssignedNumber
2424
} from './index.common';
2525

26-
export * from './index.common';
27-
export { Peripheral, ReadResult, Service };
26+
export {
27+
BluetoothError,
28+
BleTraceCategory,
29+
CallbackType,
30+
Characteristic,
31+
ConnectOptions,
32+
DisconnectOptions,
33+
DiscoverCharacteristicsOptions,
34+
DiscoverOptions,
35+
DiscoverServicesOptions,
36+
MatchMode,
37+
MatchNum,
38+
MtuOptions,
39+
Peripheral,
40+
ReadOptions,
41+
ReadResult,
42+
ScanMode,
43+
Service,
44+
StartNotifyingOptions,
45+
StartScanningOptions,
46+
StopNotifyingOptions,
47+
WriteOptions
48+
} from './index.common';
2849

2950
function nativeEncoding(encoding: string) {
3051
switch (encoding) {

0 commit comments

Comments
 (0)