Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed Sep 4, 2023
1 parent 76ee8c9 commit d842c82
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 41 deletions.
41 changes: 21 additions & 20 deletions packages/etebase/lib/src/gen/ffi/libetebase.ffi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,8 @@ class LibEtebaseFFI {

late final _etebase_collection_list_response_get_removed_membershipsPtr =
_lookup<
ffi.NativeFunction<
ffi
.NativeFunction<
ffi.Int32 Function(ffi.Pointer<EtebaseCollectionListResponse>,
ffi.Pointer<ffi.Pointer<EtebaseRemovedCollection>>)>>(
'etebase_collection_list_response_get_removed_memberships');
Expand Down Expand Up @@ -1172,8 +1173,8 @@ class LibEtebaseFFI {
}

late final _etebase_fetch_options_destroyPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Pointer<EtebaseFetchOptions>)>>(
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<EtebaseFetchOptions>)>>(
'etebase_fetch_options_destroy');
late final _etebase_fetch_options_destroy = _etebase_fetch_options_destroyPtr
.asFunction<void Function(ffi.Pointer<EtebaseFetchOptions>)>();
Expand Down Expand Up @@ -1420,8 +1421,8 @@ class LibEtebaseFFI {
}

late final _etebase_item_metadata_destroyPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Pointer<EtebaseItemMetadata>)>>(
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<EtebaseItemMetadata>)>>(
'etebase_item_metadata_destroy');
late final _etebase_item_metadata_destroy = _etebase_item_metadata_destroyPtr
.asFunction<void Function(ffi.Pointer<EtebaseItemMetadata>)>();
Expand Down Expand Up @@ -2345,8 +2346,8 @@ class LibEtebaseFFI {
}

late final _etebase_item_manager_destroyPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Pointer<EtebaseItemManager>)>>(
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<EtebaseItemManager>)>>(
'etebase_item_manager_destroy');
late final _etebase_item_manager_destroy = _etebase_item_manager_destroyPtr
.asFunction<void Function(ffi.Pointer<EtebaseItemManager>)>();
Expand Down Expand Up @@ -2385,9 +2386,9 @@ class LibEtebaseFFI {
}

late final _etebase_collection_verifyPtr = _lookup<
ffi.NativeFunction<
ffi.Bool Function(
ffi.Pointer<EtebaseCollection>)>>('etebase_collection_verify');
ffi
.NativeFunction<ffi.Bool Function(ffi.Pointer<EtebaseCollection>)>>(
'etebase_collection_verify');
late final _etebase_collection_verify = _etebase_collection_verifyPtr
.asFunction<bool Function(ffi.Pointer<EtebaseCollection>)>();

Expand Down Expand Up @@ -2561,9 +2562,9 @@ class LibEtebaseFFI {
}

late final _etebase_collection_deletePtr = _lookup<
ffi.NativeFunction<
ffi.Int32 Function(
ffi.Pointer<EtebaseCollection>)>>('etebase_collection_delete');
ffi
.NativeFunction<ffi.Int32 Function(ffi.Pointer<EtebaseCollection>)>>(
'etebase_collection_delete');
late final _etebase_collection_delete = _etebase_collection_deletePtr
.asFunction<int Function(ffi.Pointer<EtebaseCollection>)>();

Expand All @@ -2579,8 +2580,8 @@ class LibEtebaseFFI {
}

late final _etebase_collection_is_deletedPtr = _lookup<
ffi.NativeFunction<
ffi.Bool Function(ffi.Pointer<EtebaseCollection>)>>(
ffi
.NativeFunction<ffi.Bool Function(ffi.Pointer<EtebaseCollection>)>>(
'etebase_collection_is_deleted');
late final _etebase_collection_is_deleted = _etebase_collection_is_deletedPtr
.asFunction<bool Function(ffi.Pointer<EtebaseCollection>)>();
Expand Down Expand Up @@ -2714,9 +2715,9 @@ class LibEtebaseFFI {
}

late final _etebase_collection_destroyPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<EtebaseCollection>)>>('etebase_collection_destroy');
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<EtebaseCollection>)>>(
'etebase_collection_destroy');
late final _etebase_collection_destroy = _etebase_collection_destroyPtr
.asFunction<void Function(ffi.Pointer<EtebaseCollection>)>();

Expand Down Expand Up @@ -3036,8 +3037,8 @@ class LibEtebaseFFI {
}

late final _etebase_user_profile_destroyPtr = _lookup<
ffi.NativeFunction<
ffi.Void Function(ffi.Pointer<EtebaseUserProfile>)>>(
ffi
.NativeFunction<ffi.Void Function(ffi.Pointer<EtebaseUserProfile>)>>(
'etebase_user_profile_destroy');
late final _etebase_user_profile_destroy = _etebase_user_profile_destroyPtr
.asFunction<void Function(ffi.Pointer<EtebaseUserProfile>)>();
Expand Down
18 changes: 9 additions & 9 deletions packages/etebase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ platforms:
ios:

dependencies:
ffi: ^2.0.2
ffi: ^2.1.0
freezed_annotation: ^2.4.1
meta: ^1.9.1
synchronized: ^3.1.0

dev_dependencies:
analyzer: ^5.12.0
analyzer: ^6.2.0
build: ^2.4.1
build_config: ^1.1.1
build_runner: ^2.4.6
code_builder: ^4.5.0
custom_lint: ^0.5.0
dart_pre_commit: ^5.2.0+1
dart_test_tools: ^5.2.0
code_builder: ^4.6.0
custom_lint: ^0.5.3
dart_pre_commit: ^5.2.1
dart_test_tools: ^5.3.0
ffigen: ^9.0.1
freezed: ^2.4.1
mocktail: ">=0.3.0 <2.0.0"
freezed: ^2.4.2
mocktail: ^1.0.0
source_gen: ^1.4.0
source_helper: ^1.3.4
test: ^1.24.4
test: ^1.24.6
uuid: ^3.0.7

ffigen:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ClientClassBuilder {
..name = _ownerName
..type = Types.Object$.asNullable
..modifier = FieldModifier.final$,
)
),
])
..constructors.add(_buildConstructor())
..methods.addAll([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ClientMethodBodyBuilder {
final expression = Types.TransferableTypedData$.newInstanceNamed(
'fromList',
[
literalList([refer(param.name)])
literalList([refer(param.name)]),
],
);

Expand Down Expand Up @@ -212,7 +212,7 @@ class ClientMethodBodyBuilder {
isolateRef,
withOwner: true,
).code,
).closure
).closure,
])
.property('toList')
.call(const [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class IsolateBuilder {
'prefer_const_constructors',
'unused_element',
'unused_local_variable',
'public_member_api_docs'
'public_member_api_docs',
])
..directives.add(Directive.import('package:ffi/ffi.dart'))
..body.add(_buildHandler(methods))
Expand Down Expand Up @@ -87,7 +87,7 @@ class IsolateBuilder {
literalString('Method does not exist'),
])
.thrown
.statement
.statement,
]);

return Method(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class IsolateInParamBuilder {
refer('_${parameterType.name.lowerFirstChar()}ToNative').call([
IsolateBuilder.libEtebaseRef,
IsolateBuilder.poolRef,
argument
argument,
]),
)
.statement;
Expand Down Expand Up @@ -343,7 +343,7 @@ class IsolateInParamBuilder {
'should be 32 bytes long, '
'but has \$${sizeVariable.symbol} bytes',
),
literalString(parameter.name)
literalString(parameter.name),
])
.thrown
.statement,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class IsolateReturnBuilder {
if (thrown)
_buildErrorThrow().statement
else
_buildErrorReturn().statement
_buildErrorReturn().statement,
]);

Code _checkPointerSuccess(
Expand All @@ -138,7 +138,7 @@ class IsolateReturnBuilder {
if (thrown)
_buildErrorThrow().statement
else
_buildErrorReturn().statement
_buildErrorReturn().statement,
]);

Code _buildReturnStatement(Expression result, TypeRef type) =>
Expand Down Expand Up @@ -239,7 +239,7 @@ class IsolateReturnBuilder {
.property('cast')
.call(const [], const {}, [Types.Uint8$])
.property('asTypedList')
.call([length])
.call([length]),
]),
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class MethodParser {
];

static final _methodsWithLengthConstants = [
'etebase_utils_pretty_fingerprint'
'etebase_utils_pretty_fingerprint',
];

final ParamParser _paramParser;
Expand Down Expand Up @@ -223,7 +223,7 @@ class MethodParser {
methodName: method.name,
parameters: method.parameters,
typeDefs: typeDefs,
)
),
];

return MethodRef(
Expand Down

0 comments on commit d842c82

Please sign in to comment.