Skip to content

Commit 291cab6

Browse files
ryanwilsonpaulb777
authored andcommitted
Fix resources packaging. (#2567)
1 parent 9c3cb40 commit 291cab6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ZipBuilder/Sources/ZipBuilder/ZipBuilder.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,17 @@ struct ZipBuilder {
760760
fatalError("Cannot move Resource bundles for \(pod.name): \(error)")
761761
}
762762

763+
// Smart Reply packages Resources separately from other MLKit subspecs.
764+
if pod.name == "FirebaseMLNLSmartReply" {
765+
do {
766+
resourceBundles = try ResourcesManager.createBundleForFoldersInResourcesDirs(
767+
containedIn: pod.installedLocation, destinationDir: podResourceDir
768+
)
769+
} catch {
770+
fatalError("Could not generate Resource bundles for \(pod.name): \(error)")
771+
}
772+
}
773+
763774
// Special case for MLKit *Model subspecs, explicitly copy directories from
764775
// GoogleMobileVision. This should be fixed in the future to pull all compiled resources
765776
// from Xcode's build directory.

0 commit comments

Comments
 (0)