Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI:
- Cross-platform modules:
- Android Runtime:
- iOS Runtime:
- Plugin(s):
Describe the bug
When a plugin requires a different version of MaterialComponents than tns-core-modules-widgets there is an error on pod install step in the build proces.
To Reproduce
1 Create new project
2 Add /App_Resources/iOS/Podfile with content pod 'MaterialComponents/Tabs', '< 84.4'
Expected behavior
To have a way to resolve such conflicts without plugin modification.
Solution
A property overridePods has been introduced in nsconfig.json. This property will cause all plugin pods to be overridden by the pods in the /App_Resources/iOS/Podfile.
Acceptance Criteria
To cause a CocoaPod conflict use the attached to the issue plugin.
plugin.zip
Environment
Provide version numbers for the following components (information can be retrieved by running
tns infoin your project folder or by inspecting thepackage.jsonof the project):Describe the bug
When a plugin requires a different version of
MaterialComponentsthantns-core-modules-widgetsthere is an error onpod installstep in the build proces.To Reproduce
1 Create new project
2 Add
/App_Resources/iOS/Podfilewith contentpod 'MaterialComponents/Tabs', '< 84.4'Expected behavior
To have a way to resolve such conflicts without plugin modification.
Solution
A property
overridePodshas been introduced innsconfig.json. This property will cause all plugin pods to be overridden by the pods in the/App_Resources/iOS/Podfile.Acceptance Criteria
overridePodsinnsconfig.jsonshould regenerateplatforms/ios/Podfile/App_Resources/iOS/Podfileshould comment/uncomment a pod that is defined in a plugin in the final Podfile inplatforms/ios/Podfile(whenoverridePodsis enabled)./App_Resources/iOS/Podfilecommented in the final podfileplatforms/ios/Podfile(whenoverridePodsis enabled).nsconfig.jsonchange between runs.overridePodsis true and Podfile missing in/App-Resources/iOS/folderTo cause a CocoaPod conflict use the attached to the issue plugin.
plugin.zip