kopia lustrzana https://gitlab.com/mysocialportal/relatica
Configure tweaks to get ObjectBox working on iOS and macOS
rodzic
fa1609bdc3
commit
0577f14a9a
|
@ -43,6 +43,10 @@ PODS:
|
|||
- FMDB/standard (2.7.5)
|
||||
- image_picker_ios (0.0.1):
|
||||
- Flutter
|
||||
- ObjectBox (1.8.1-rc)
|
||||
- objectbox_flutter_libs (0.0.1):
|
||||
- Flutter
|
||||
- ObjectBox (= 1.8.1-rc)
|
||||
- path_provider_ios (0.0.1):
|
||||
- Flutter
|
||||
- SDWebImage (5.13.2):
|
||||
|
@ -66,6 +70,7 @@ DEPENDENCIES:
|
|||
- flutter_file_dialog (from `.symlinks/plugins/flutter_file_dialog/ios`)
|
||||
- flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
|
||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||
- objectbox_flutter_libs (from `.symlinks/plugins/objectbox_flutter_libs/ios`)
|
||||
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
|
||||
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`)
|
||||
- sqflite (from `.symlinks/plugins/sqflite/ios`)
|
||||
|
@ -77,6 +82,7 @@ SPEC REPOS:
|
|||
- DKImagePickerController
|
||||
- DKPhotoGallery
|
||||
- FMDB
|
||||
- ObjectBox
|
||||
- SDWebImage
|
||||
- SwiftyGif
|
||||
|
||||
|
@ -91,6 +97,8 @@ EXTERNAL SOURCES:
|
|||
:path: ".symlinks/plugins/flutter_secure_storage/ios"
|
||||
image_picker_ios:
|
||||
:path: ".symlinks/plugins/image_picker_ios/ios"
|
||||
objectbox_flutter_libs:
|
||||
:path: ".symlinks/plugins/objectbox_flutter_libs/ios"
|
||||
path_provider_ios:
|
||||
:path: ".symlinks/plugins/path_provider_ios/ios"
|
||||
shared_preferences_foundation:
|
||||
|
@ -111,6 +119,8 @@ SPEC CHECKSUMS:
|
|||
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
|
||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
||||
image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabb
|
||||
ObjectBox: 7615cc462f2976cb45127d301a17cb473edf3f9e
|
||||
objectbox_flutter_libs: 55835e03ff76bf9d5ce0a41a2ef3902d2e8c1f20
|
||||
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
|
||||
SDWebImage: 72f86271a6f3139cc7e4a89220946489d4b9a866
|
||||
shared_preferences_foundation: 297b3ebca31b34ec92be11acd7fb0ba932c822ca
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:logging/logging.dart';
|
||||
import 'package:objectbox/objectbox.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
@ -5,6 +6,7 @@ import 'package:path_provider/path_provider.dart';
|
|||
import '../../objectbox.g.dart';
|
||||
|
||||
class ObjectBoxCache {
|
||||
static final _logger = Logger('ObjectBoxCache');
|
||||
late final Store store;
|
||||
|
||||
ObjectBoxCache._create(this.store);
|
||||
|
@ -13,7 +15,9 @@ class ObjectBoxCache {
|
|||
final docsDir = await getApplicationSupportDirectory();
|
||||
|
||||
final path = p.join(docsDir.path, 'objectboxcache');
|
||||
final store = await openStore(directory: path);
|
||||
_logger.info('ObjectBoxCache path: $path');
|
||||
final store = await openStore(
|
||||
directory: path, macosApplicationGroup: 'friendica_portal');
|
||||
return ObjectBoxCache._create(store);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,10 @@ PODS:
|
|||
- FMDB (2.7.5):
|
||||
- FMDB/standard (= 2.7.5)
|
||||
- FMDB/standard (2.7.5)
|
||||
- ObjectBox (1.8.1-rc)
|
||||
- objectbox_flutter_libs (0.0.1):
|
||||
- FlutterMacOS
|
||||
- ObjectBox (= 1.8.1-rc)
|
||||
- path_provider_macos (0.0.1):
|
||||
- FlutterMacOS
|
||||
- shared_preferences_foundation (0.0.1):
|
||||
|
@ -22,6 +26,7 @@ DEPENDENCIES:
|
|||
- desktop_window (from `Flutter/ephemeral/.symlinks/plugins/desktop_window/macos`)
|
||||
- flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`)
|
||||
- FlutterMacOS (from `Flutter/ephemeral`)
|
||||
- objectbox_flutter_libs (from `Flutter/ephemeral/.symlinks/plugins/objectbox_flutter_libs/macos`)
|
||||
- path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
|
||||
- shared_preferences_foundation (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_foundation/macos`)
|
||||
- sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/macos`)
|
||||
|
@ -30,6 +35,7 @@ DEPENDENCIES:
|
|||
SPEC REPOS:
|
||||
trunk:
|
||||
- FMDB
|
||||
- ObjectBox
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
desktop_window:
|
||||
|
@ -38,6 +44,8 @@ EXTERNAL SOURCES:
|
|||
:path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos
|
||||
FlutterMacOS:
|
||||
:path: Flutter/ephemeral
|
||||
objectbox_flutter_libs:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/objectbox_flutter_libs/macos
|
||||
path_provider_macos:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
|
||||
shared_preferences_foundation:
|
||||
|
@ -52,6 +60,8 @@ SPEC CHECKSUMS:
|
|||
flutter_secure_storage_macos: 75c8cadfdba05ca007c0fa4ea0c16e5cf85e521b
|
||||
FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811
|
||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
||||
ObjectBox: 7615cc462f2976cb45127d301a17cb473edf3f9e
|
||||
objectbox_flutter_libs: 6c6e858d1df4a7cd5cb664c2108e6fa0b412be38
|
||||
path_provider_macos: 05fb0ef0cedf3e5bd179b9e41a638682b37133ea
|
||||
shared_preferences_foundation: 297b3ebca31b34ec92be11acd7fb0ba932c822ca
|
||||
sqflite: a5789cceda41d54d23f31d6de539d65bb14100ea
|
||||
|
|
|
@ -8,5 +8,9 @@
|
|||
<true/>
|
||||
<key>keychain-access-groups</key>
|
||||
<array/>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>friendica_portal</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
@ -12,5 +12,9 @@
|
|||
<true/>
|
||||
<key>keychain-access-groups</key>
|
||||
<array/>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>friendica_portal</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
Ładowanie…
Reference in New Issue