KMMBridge icon indicating copy to clipboard operation
KMMBridge copied to clipboard

Allowing multiple packages in the same package.swift file

Open faogustavo opened this issue 7 months ago • 0 comments

Issue: https://github.com/touchlab/KMMBridge/issues/168

Summary

  • We must support having multiple framework declarations in the same Package.swift file

Fix

  • Created an extra property to the SPM configuration called perModuleVariablesBlock
    • This parameter works together with the useCustomPackageFile
    • When it's set to true, each configuration block will mention the package name it's publishing so it knows which block should be updated.
      • Check withMultipleModules test case

Testing

  • ./gradlew test
  • ./gradlew build

faogustavo avatar Jul 30 '24 19:07 faogustavo