Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"yaml.schemas": {
"https://json.schemastore.org/dart-build": [
"build.yaml",
"*.build.yaml",
"build.*.yaml"
]
},
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
}
},
}
13 changes: 13 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
targets:
$default:
builders:
drift_dev:
enabled: false
drift_dev:analyzer:
enabled: true
options: &options
named_parameters: true
store_date_time_values_as_text: true
drift_dev:modular:
enabled: true
options: *options
1 change: 1 addition & 0 deletions example/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ android {
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86_64'
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ class RecoveryRegions extends StatelessWidget {
borderColor: e.key.toColor(),
borderStrokeWidth: 2,
label: region.label,
labelPlacement: PolygonLabelPlacement.polylabel,
labelPlacementCalculator:
const PolygonLabelPlacementCalculator
.polylabel(),
),
),
)
Expand Down
3 changes: 3 additions & 0 deletions example/windows/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@

#include <objectbox_flutter_libs/objectbox_flutter_libs_plugin.h>
#include <share_plus/share_plus_windows_plugin_c_api.h>
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>

void RegisterPlugins(flutter::PluginRegistry* registry) {
ObjectboxFlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("ObjectboxFlutterLibsPlugin"));
SharePlusWindowsPluginCApiRegisterWithRegistrar(
registry->GetRegistrarForPlugin("SharePlusWindowsPluginCApi"));
Sqlite3FlutterLibsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("Sqlite3FlutterLibsPlugin"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}
1 change: 1 addition & 0 deletions example/windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
list(APPEND FLUTTER_PLUGIN_LIST
objectbox_flutter_libs
share_plus
sqlite3_flutter_libs
url_launcher_windows
)

Expand Down
6 changes: 4 additions & 2 deletions lib/src/backend/export_external.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
// A full license can be found at .\LICENSE

export 'errors/errors.dart';
export 'impls/web_noop/backend.dart'
if (dart.library.ffi) 'impls/objectbox/backend/backend.dart';
export 'impls/drift/web/backend.dart'
if (dart.library.ffi) 'impls/drift/native/backend/backend.dart';
export 'impls/objectbox/web_noop/backend.dart'
if (dart.library.ffi) 'impls/objectbox/native/backend/backend.dart';
export 'interfaces/backend/backend.dart';
export 'interfaces/backend/internal.dart';
export 'interfaces/backend/internal_thread_safe.dart';
Loading