初始化
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import Flutter
|
||||
import UIKit
|
||||
|
||||
public final class M3u8DownloaderPlugin: NSObject, FlutterPlugin {
|
||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let channel = FlutterMethodChannel(
|
||||
name: "m3u8_downloader",
|
||||
binaryMessenger: registrar.messenger(),
|
||||
codec: FlutterJSONMethodCodec.sharedInstance()
|
||||
)
|
||||
let instance = M3u8DownloaderPlugin()
|
||||
registrar.addMethodCallDelegate(instance, channel: channel)
|
||||
}
|
||||
|
||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'm3u8_downloader'
|
||||
s.version = '1.3.0'
|
||||
s.summary = 'Minimal iOS stub for the m3u8_downloader Flutter plugin.'
|
||||
s.description = <<-DESC
|
||||
Provides an iOS registration stub so Flutter projects depending on the
|
||||
m3u8_downloader plugin can build for iOS simulators and devices.
|
||||
DESC
|
||||
s.homepage = 'https://example.invalid/m3u8_downloader'
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'Vincent' => 'vincent@example.invalid' }
|
||||
s.source = { :path => '.' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.dependency 'Flutter'
|
||||
s.platform = :ios, '13.0'
|
||||
s.swift_version = '5.0'
|
||||
s.pod_target_xcconfig = {
|
||||
'DEFINES_MODULE' => 'YES'
|
||||
}
|
||||
end
|
||||
Reference in New Issue
Block a user