Skip to content

Commit 63f8fb3

Browse files
committed
fix(ios): try to fix build errors on iOS (caused by exported native class)
1 parent c069d66 commit 63f8fb3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"@commitlint/config-conventional": "^9.1.2",
5858
"@nativescript/core": "7.0.13",
5959
"@nativescript/types": "7.0.1",
60-
"@nativescript/webpack": "3.0.0",
60+
"@nativescript/webpack": "beta",
6161
"@types/node": "^14.6.2",
6262
"@typescript-eslint/eslint-plugin": "4.0.1",
6363
"@typescript-eslint/parser": "4.0.1",
@@ -69,7 +69,7 @@
6969
"rimraf": "^3.0.2",
7070
"ts-patch": "^1.3.0",
7171
"typedoc": "^0.19.2",
72-
"typescript": "~4.0.2"
72+
"typescript": "~4.3.2"
7373
},
7474
"dependencies": {
7575
"@nativescript-community/observable": "^2.0.8",

src/bluetooth.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export interface CBPeripheralWithDelegate extends CBPeripheral {
107107
* There are no required methods in this protocol.
108108
*/
109109
@NativeClass
110-
export class CBPeripheralDelegateImpl extends NSObject implements CBPeripheralDelegate {
110+
class CBPeripheralDelegateImpl extends NSObject implements CBPeripheralDelegate {
111111
public static ObjCProtocols = [CBPeripheralDelegate];
112112

113113
public onNotifyCallbacks: {
@@ -349,7 +349,7 @@ export class CBPeripheralDelegateImpl extends NSObject implements CBPeripheralDe
349349
* The only required method of the protocol indicates the availability of the central manager, and is called when the central manager’s state is updated.
350350
*/
351351
@NativeClass
352-
export class CBCentralManagerDelegateImpl extends NSObject implements CBCentralManagerDelegate {
352+
class CBCentralManagerDelegateImpl extends NSObject implements CBCentralManagerDelegate {
353353
static ObjCProtocols = [CBCentralManagerDelegate];
354354

355355
private _owner: WeakRef<Bluetooth>;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@nativescript-community/ble/*": ["src/*"],
2929
"*": ["node_modules/*"]
3030
},
31-
"plugins": [{ "transform": "./node_modules/@nativescript/webpack/transformers/ns-transform-native-classes.js", "type": "raw" }]
31+
"plugins": [{ "transform": "./node_modules/@nativescript/webpack/dist/transformers/NativeClass/index.js", "type": "raw" }]
3232
},
3333
"include": ["src/**/*", "./references.d.ts"],
3434
"exclude": ["node_modules", "platforms", "src/angular/**/*"],

0 commit comments

Comments
 (0)