Skip to content

Commit

Permalink
fix: iOS build failed (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
LichKing-2234 committed Dec 14, 2021
1 parent 56aff53 commit 6a2e90f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 37 deletions.
25 changes: 0 additions & 25 deletions ios/RCTAgora/Base/RtcEnginePluginRegistrant.h

This file was deleted.

22 changes: 22 additions & 0 deletions ios/RCTAgora/Base/RtcEnginePluginRegistrant.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Foundation

/**
* Class for register the `RtcEnginePlugin`.
*/
@objc
public class RtcEnginePluginRegistrant: NSObject {
/**
* Register a `RtcEnginePlugin`. The `plugin` will be called when the `RtcEngine` is created from
* flutter side.
*/
@objc public static func register(_ plugin: RtcEnginePlugin) {
RtcEngineRegistry.shared.add(plugin)
}

/**
* Unregister a previously registered `RtcEnginePlugin`.
*/
@objc public static func unregister(_ plugin: RtcEnginePlugin) {
RtcEngineRegistry.shared.remove(plugin)
}
}
12 changes: 0 additions & 12 deletions ios/RCTAgora/Base/RtcEnginePluginRegistrantSwift.swift

This file was deleted.

0 comments on commit 6a2e90f

Please sign in to comment.