Skip to content

Commit 84618cf

Browse files
authored
Fix compile iOS issue (#12)
* fix ios compile
1 parent 001f688 commit 84618cf

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

ios/Classes/LiveKitPlugin.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#import <Flutter/Flutter.h>
2+
3+
@interface LiveKitPlugin : NSObject<FlutterPlugin>
4+
@end
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "LiveKitClientPlugin.h"
1+
#import "LiveKitPlugin.h"
22
#if __has_include(<livekit_client/livekit_client-Swift.h>)
33
#import <livekit_client/livekit_client-Swift.h>
44
#else
@@ -8,8 +8,8 @@
88
#import "livekit_client-Swift.h"
99
#endif
1010

11-
@implementation LiveKitClientPlugin
11+
@implementation LiveKitPlugin
1212
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
13-
[SwiftLiveKitClientPlugin registerWithRegistrar:registrar];
13+
[SwiftLiveKitPlugin registerWithRegistrar:registrar];
1414
}
1515
@end

ios/Classes/LivekitClientPlugin.h

Lines changed: 0 additions & 4 deletions
This file was deleted.

ios/Classes/SwiftLiveKitClientPlugin.swift renamed to ios/Classes/SwiftLiveKitPlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import Flutter
22
import UIKit
33
import WebRTC
44

5-
public class SwiftLiveKitClientPlugin: NSObject, FlutterPlugin {
5+
public class SwiftLiveKitPlugin: NSObject, FlutterPlugin {
66
public static func register(with registrar: FlutterPluginRegistrar) {
77
let channel = FlutterMethodChannel(name: "livekit_client", binaryMessenger: registrar.messenger())
8-
let instance = SwiftLiveKitClientPlugin()
8+
let instance = SwiftLiveKitPlugin()
99
registrar.addMethodCallDelegate(instance, channel: channel)
1010
}
1111

lib/src/room.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'dart:collection';
22

33
import 'package:collection/collection.dart';
4-
import 'package:flutter/foundation.dart';
54

65
import 'constants.dart';
76
import 'events.dart';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ flutter:
3333
plugin:
3434
platforms:
3535
ios:
36-
pluginClass: LiveKitClientPlugin
36+
pluginClass: LiveKitPlugin

0 commit comments

Comments
 (0)