From ab0af740d0f0b23441ea1099333acdd698a5404f Mon Sep 17 00:00:00 2001 From: lougeniac64 Date: Mon, 28 Mar 2022 18:39:01 -0400 Subject: [PATCH] Added tabs generation logic --- generate.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/generate.sh b/generate.sh index 92dfb96c..1e50bc5b 100755 --- a/generate.sh +++ b/generate.sh @@ -79,7 +79,7 @@ cp -r "$APP_SERVICES_DIR/components/logins/ios/Logins" "$OUT_DIR" # Autofill # ### -## Not of our consumers currently use autofill, and the swift code has a name conflict with +## None of our consumers currently use autofill, and the swift code has a name conflict with ## another component, so for now, commented out. # "${UNIFFI_BINDGEN[@]}" generate -l swift -o "$OUT_DIR/Generated" "$APP_SERVICES_DIR/components/autofill/src/autofill.udl" @@ -98,10 +98,11 @@ cp -r "$APP_SERVICES_DIR/components/logins/ios/Logins" "$OUT_DIR" # Tabs # ### -## Not of our consumers currently use tabs, and the swift code has a name conflict with -## another component, so for now, commented out. -# "${UNIFFI_BINDGEN[@]}" generate -l swift -o "$OUT_DIR/Generated" "$APP_SERVICES_DIR/components/tabs/src/tabs.udl" +"${UNIFFI_BINDGEN[@]}" generate -l swift -o "$OUT_DIR/Generated" "$APP_SERVICES_DIR/components/tabs/src/tabs.udl" + +# Copy the hand-written Swift, since it all needs to be together in one directory. +cp -r "$APP_SERVICES_DIR/components/tabs/ios/Tabs" "$OUT_DIR" ### #