Adds remote-settings to taskcluster iOS releases

This commit is contained in:
Tarik Eshaq 2023-05-18 16:58:14 -04:00
Родитель f75ed23bb8
Коммит 286fed91ff
7 изменённых файлов: 11 добавлений и 5 удалений

1
Cargo.lock сгенерированный
Просмотреть файл

@ -2057,6 +2057,7 @@ dependencies = [
"error-support",
"nimbus-sdk",
"rc_log_ffi",
"remote_settings",
"viaduct",
"viaduct-reqwest",
]

Просмотреть файл

@ -242,7 +242,7 @@ the details of which are reproduced below.
</license>
<license>
<name>Apache License 2.0: libc</name>
<url>https://github.com/rust-lang/libc/blob/master/LICENSE-APACHE</url>
<url>https://github.com/rust-lang/libc/blob/main/LICENSE-APACHE</url>
</license>
<license>
<name>Apache License 2.0: linux-raw-sys</name>

Просмотреть файл

@ -145,10 +145,12 @@ mkdir -p "$COMMON/Headers"
cp "$WORKING_DIR/$FRAMEWORK_NAME.h" "$COMMON/Headers"
cp "$REPO_ROOT/components/rc_log/ios/RustLogFFI.h" "$COMMON/Headers"
cp "$REPO_ROOT/components/viaduct/ios/RustViaductFFI.h" "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/remote_settings/src/remote_settings.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/nimbus/src/nimbus.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/support/error/src/errorsupport.udl" -l swift -o "$COMMON/Headers"
# We now only move/generate the rest of the headers if we are generating a full
# iOS megazord
if [ -z $IS_FOCUS ]; then
@ -164,7 +166,6 @@ if [ -z $IS_FOCUS ]; then
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/push/src/push.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/tabs/src/tabs.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/places/src/places.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/remote_settings/src/remote_settings.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/sync_manager/src/syncmanager.udl" -l swift -o "$COMMON/Headers"
$CARGO uniffi-bindgen generate "$REPO_ROOT/components/sync15/src/sync15.udl" -l swift -o "$COMMON/Headers"
fi

Просмотреть файл

@ -14,4 +14,4 @@ viaduct = { path = "../../../components/viaduct" }
viaduct-reqwest = { path = "../../../components/support/viaduct-reqwest" }
nimbus-sdk = { path = "../../../components/nimbus" }
error-support = { path = "../../../components/support/error" }
remote_settings = { path = "../../../components/remote_settings" }

Просмотреть файл

@ -9,3 +9,4 @@
#import "RustViaductFFI.h"
#import "nimbusFFI.h"
#import "errorFFI.h"
#import "remote_settingsFFI.h"

Просмотреть файл

@ -8,4 +8,5 @@
pub use error_support;
pub use nimbus;
pub use rc_log_ffi;
pub use remote_settings;
pub use viaduct_reqwest;

Просмотреть файл

@ -11,20 +11,22 @@ ROOT_DIR = pathlib.Path(__file__).parent.parent.parent
# List of udl_paths to generate bindings for
BINDINGS_UDL_PATHS = [
"components/autofill/src/autofill.udl",
"components/support/error/src/errorsupport.udl",
"components/fxa-client/src/fxa_client.udl",
"components/logins/src/logins.udl",
"components/nimbus/src/nimbus.udl",
"components/places/src/places.udl",
"components/push/src/push.udl",
"components/remote_settings/src/remote_settings.udl",
"components/support/error/src/errorsupport.udl",
"components/sync15/src/sync15.udl",
"components/sync_manager/src/syncmanager.udl",
"components/tabs/src/tabs.udl",
"components/sync15/src/sync15.udl",
]
# List of udl_paths to generate bindings for
FOCUS_UDL_PATHS = [
"components/nimbus/src/nimbus.udl",
"components/remote_settings/src/remote_settings.udl",
"components/support/error/src/errorsupport.udl",
]