Добавление частного модуля в пакет Flutter ⇐ IOS
-
Anonymous
Добавление частного модуля в пакет Flutter
I am trying to get a private Cocoapods repo - VPTEngine - set up on the ios side of a Flutter Package I am building - vpt_engine_plugin.
I created the repo and pushed it, following these instructions... pod search VPTEngine shows:
-> VPTEngine (0.0.1) Performance Optimized Workings. pod 'VPTEngine', '~> 0.0.1' Homepage: http://github/VisualPT/VPTEngine Source: https://github.com/VisualPT/VPTEngine.git Versions: 0.0.1 [VPTEngine repo] In the package path vpt_engine_plugin/ios/vpt_engine_plugin.podspec, I add:
s.dependency 'VPTEngine', '0.0.1' s.source = { :git => "https://github.com/VisualPT/VPTEngine.git", :tag => s.version.to_s } However, when I run pod install in the project depending on this plugin, I get...
[!] Unable to find a specification for VPTEngine (= 0.0.1) depended upon by vpt_engine_plugin It works when I add this in the vpt_engine_plugin/example/ios/Podfile...
source 'https://github.com/VisualPT/VPTEngine.git' source 'https://cdn.cocoapods.org/' pod 'VPTEngine', '0.0.1' But I dont see that being done for any of the other packages I currently depend on in my Flutter Application, which tells me that is not the correct way to do it.
My goal is to only have to add:
vpt_engine_plugin: git: url: https://github.com/VisualPT/vpt_engine_plugin.git branch: master to my project pubspec.yaml and have it connect to the VPTEngine pod without additional configuration within the project, as most other dependencies work?
Источник: https://stackoverflow.com/questions/781 ... er-package
I am trying to get a private Cocoapods repo - VPTEngine - set up on the ios side of a Flutter Package I am building - vpt_engine_plugin.
I created the repo and pushed it, following these instructions... pod search VPTEngine shows:
-> VPTEngine (0.0.1) Performance Optimized Workings. pod 'VPTEngine', '~> 0.0.1' Homepage: http://github/VisualPT/VPTEngine Source: https://github.com/VisualPT/VPTEngine.git Versions: 0.0.1 [VPTEngine repo] In the package path vpt_engine_plugin/ios/vpt_engine_plugin.podspec, I add:
s.dependency 'VPTEngine', '0.0.1' s.source = { :git => "https://github.com/VisualPT/VPTEngine.git", :tag => s.version.to_s } However, when I run pod install in the project depending on this plugin, I get...
[!] Unable to find a specification for VPTEngine (= 0.0.1) depended upon by vpt_engine_plugin It works when I add this in the vpt_engine_plugin/example/ios/Podfile...
source 'https://github.com/VisualPT/VPTEngine.git' source 'https://cdn.cocoapods.org/' pod 'VPTEngine', '0.0.1' But I dont see that being done for any of the other packages I currently depend on in my Flutter Application, which tells me that is not the correct way to do it.
My goal is to only have to add:
vpt_engine_plugin: git: url: https://github.com/VisualPT/vpt_engine_plugin.git branch: master to my project pubspec.yaml and have it connect to the VPTEngine pod without additional configuration within the project, as most other dependencies work?
Источник: https://stackoverflow.com/questions/781 ... er-package
Мобильная версия