Finally I got a custom Flutter Plugin's MethodChannel to do the hello-world.
But now, I would like to add a dependency explicitly to the iOS part of the Plugin Class (obviously not to the Android-part...).
However, this somehow bites the snake in its tale since the Plugin Class is itself part of the Flutter Pod. So how does this work ?
I added the following inside the /iOS/Podfile
target 'Runner' do
use_frameworks!
pod `MyPodDependency`
The code compiles.
But the import MyPodDependency
fails. (inside my Plugin Class where I also program the public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {...}
code, to be found under ../Pod/../../../../ios/Classes/MyPluginClass.swift)
My question: How do I import MyPodDependency inside the iOS part of the Flutter Plugin-Class?
In which of the Podfiles do I need to add my pod.
Can I use any imported Framework inside the Plugin Class (where the FlutterMethodCall's handle method sits)? And if yes, how ???
.framework
in flutter plugin. Did you find a solution? – Woodrum