Skip to content

Commit b6e32cc

Browse files
realm-cinirinchev
andauthored
Prepare for 0.3.0-beta (#645)
* Prepare for 0.3.0+alpha * Make the +alpha into -beta * Remove limitations from the readme, update alpha->beta Co-authored-by: nirinchev <[email protected]> Co-authored-by: Nikola Irinchev <[email protected]>
1 parent 7f6a515 commit b6e32cc

File tree

11 files changed

+25
-30
lines changed

11 files changed

+25
-30
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## x.x.x Release notes (yyyy-MM-dd)
1+
## 0.3.0-beta (2022-06-02)
22

33
**This project is in the Alpha stage. All API's might change without warning and no guarantees are given about stability. Do not use it in production.**
44

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Realm is a mobile database that runs directly inside phones, tablets or wearables.
66
This repository holds the source code for the Realm SDK for Flutter™ and Dart™.
77

8-
**This project is in the Alpha stage. All API's might change without warning and no guarantees are given about stability. Do not use it in production.**
8+
**This project is in the Beta stage. The API should be quite stable, but occasional breaking changes may be made.**
99

1010
## Getting Started
1111

@@ -82,12 +82,8 @@ For a complete documentation go to [Realm Flutter and Dart SDK Docs](https://doc
8282
8383
## Limitations
8484
85-
* This version of Realm Flutter and Dart SDK allows working with a local only (on device) Realm database in Flutter and Dart desktop. Atlas Device Sync functionality is not implemented.
86-
8785
* It provides the functionality for creating, retrieving, querying, sorting, filtering, updating Realm objects.
8886
89-
* Flutter Desktop on Linux is not supported yet.
90-
9187
* Migrations are not supported yet.
9288
9389
If you change your data models often and receive a migration exception be sure to delete the old `default.realm` file in your application directory. It will get recreated with the new schema the next time the Realm is opened.

common/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >-
33
Hosts the common code shared between realm, realm_dart and realm_generator packages.
44
This package is part of the official Realm Flutter and Realm Dart SDKs.
55
6-
version: 0.2.1+alpha
6+
version: 0.3.0-beta
77

88
homepage: https://www.realm.io
99
repository: https://github.com/realm/realm-dart

flutter/realm_flutter/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: realm_example
22
description: Demonstrates how to use the Realm SDK for Flutter.
3-
version: 0.2.0+alpha
3+
version: 0.3.0-beta
44

55
# The following line prevents the package from being accidentally published to
66
# pub.dev using `pub publish`. This is preferred for private packages.

flutter/realm_flutter/ios/realm.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ project_dir = File.expand_path("../../../../", realmPackageDir)
1212
# //TODO read the version from pubspec.yaml
1313
Pod::Spec.new do |s|
1414
s.name = 'realm'
15-
s.version = '0.2.1+alpha'
15+
s.version = '0.3.0-beta'
1616
s.summary = 'The official Realm SDK for Flutter'
1717
s.description = <<-DESC
1818
Realm is a mobile database - an alternative to SQLite and key-value stores.

flutter/realm_flutter/macos/realm.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ realmPackageDir = File.expand_path(__dir__)
1010

1111
Pod::Spec.new do |s|
1212
s.name = 'realm'
13-
s.version = '0.2.1+alpha'
13+
s.version = '0.3.0-beta'
1414
s.summary = 'The official Realm SDK for Flutter'
1515
s.description = <<-DESC
1616
Realm is a mobile database - an alternative to SQLite and key-value stores.
@@ -28,13 +28,13 @@ Pod::Spec.new do |s|
2828
s.resources = 'librealm_dart.dylib'
2929
s.prepare_command = "touch #{realmPackageDir}/librealm_dart.dylib" #librealm_dart.dylib is needed before the build is started
3030
s.script_phases = [
31-
{ :name => 'Download Realm Flutter iOS Binaries',
31+
{ :name => 'Download Realm Flutter iOS Binaries',
3232
#Use --debug to debug the install command
3333
:script => 'source "$PROJECT_DIR/../Flutter/ephemeral/flutter_export_environment.sh" && cd "$FLUTTER_APPLICATION_PATH" && "$FLUTTER_ROOT/bin/flutter" pub run realm install --target-os-type macos --package-name realm',
3434
:execution_position => :before_headers
3535
},
36-
{ :name => 'Report Metrics',
37-
:script => 'source "$PROJECT_DIR/../Flutter/ephemeral/flutter_export_environment.sh" && cd "$FLUTTER_APPLICATION_PATH" && "$FLUTTER_ROOT/bin/flutter" pub run realm metrics --flutter-root "$FLUTTER_ROOT" --target-os-type macos --target-os-version "$MACOSX_DEPLOYMENT_TARGET"',
36+
{ :name => 'Report Metrics',
37+
:script => 'source "$PROJECT_DIR/../Flutter/ephemeral/flutter_export_environment.sh" && cd "$FLUTTER_APPLICATION_PATH" && "$FLUTTER_ROOT/bin/flutter" pub run realm metrics --flutter-root "$FLUTTER_ROOT" --target-os-type macos --target-os-version "$MACOSX_DEPLOYMENT_TARGET"',
3838
:execution_position => :before_compile
3939
}
4040
]

flutter/realm_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: realm
22
description: The official Realm SDK for Flutter. Realm is a mobile database - an alternative to SQLite and key-value stores.
3-
version: 0.2.1+alpha
3+
version: 0.3.0-beta
44

55
homepage: https://www.realm.io
66
repository: https://github.com/realm/realm-dart

flutter/realm_flutter/tests/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A new Flutter project.
33

44
publish_to: "none"
55

6-
version: 1.0.0+1
6+
version: 0.3.0-beta
77

88
environment:
99
sdk: ">=2.17.0 <3.0.0"

generator/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >-
33
Generates RealmObject classes from Realm data model classes.
44
This package is part of the official Realm Flutter and Realm Dart SDKs.
55
6-
version: 0.2.1+alpha
6+
version: 0.3.0-beta
77

88
homepage: https://www.realm.io
99
repository: https://github.com/realm/realm-dart

lib/src/native/realm_core.dart

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class _RealmCore {
7070
return _instance ??= _RealmCore._();
7171
}
7272

73-
String get libraryVersion => '0.2.1+alpha';
73+
String get libraryVersion => '0.3.0-beta';
7474

7575
LastError? getLastError(Allocator allocator) {
7676
final error = allocator<realm_error_t>();
@@ -1570,19 +1570,18 @@ class _RealmCore {
15701570

15711571
static void _sessionWaitCompletionCallback(Pointer<Void> userdata, Pointer<realm_sync_error_code_t> errorCode) {
15721572
try {
1573-
final completer = userdata.toObject<Completer<void>>(isPersistent: true);
1574-
if (completer == null) {
1575-
return;
1576-
}
1573+
final completer = userdata.toObject<Completer<void>>(isPersistent: true);
1574+
if (completer == null) {
1575+
return;
1576+
}
15771577

1578-
if (errorCode != nullptr) {
1579-
// Throw RealmException instead of RealmError to be recoverable by the user.
1580-
completer.completeError(RealmException(errorCode.toSyncError().toString()));
1581-
} else {
1582-
completer.complete();
1583-
}
1584-
}
1585-
finally {
1578+
if (errorCode != nullptr) {
1579+
// Throw RealmException instead of RealmError to be recoverable by the user.
1580+
completer.completeError(RealmException(errorCode.toSyncError().toString()));
1581+
} else {
1582+
completer.complete();
1583+
}
1584+
} finally {
15861585
_realmLib.realm_free(errorCode.cast());
15871586
}
15881587
}

0 commit comments

Comments
 (0)