Skip to content

Commit

Permalink
Prepare for 0.3.0-beta (#645)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Jun 2, 2022
1 parent 7f6a515 commit b6e32cc
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 30 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## x.x.x Release notes (yyyy-MM-dd)
## 0.3.0-beta (2022-06-02)

**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.**

Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Realm is a mobile database that runs directly inside phones, tablets or wearables.
This repository holds the source code for the Realm SDK for Flutter™ and Dart™.

**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.**
**This project is in the Beta stage. The API should be quite stable, but occasional breaking changes may be made.**

## Getting Started

Expand Down Expand Up @@ -82,12 +82,8 @@ For a complete documentation go to [Realm Flutter and Dart SDK Docs](https://doc
## Limitations
* 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.
* It provides the functionality for creating, retrieving, querying, sorting, filtering, updating Realm objects.
* Flutter Desktop on Linux is not supported yet.
* Migrations are not supported yet.
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.
Expand Down
2 changes: 1 addition & 1 deletion common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >-
Hosts the common code shared between realm, realm_dart and realm_generator packages.
This package is part of the official Realm Flutter and Realm Dart SDKs.
version: 0.2.1+alpha
version: 0.3.0-beta

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
2 changes: 1 addition & 1 deletion flutter/realm_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm_example
description: Demonstrates how to use the Realm SDK for Flutter.
version: 0.2.0+alpha
version: 0.3.0-beta

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
Expand Down
2 changes: 1 addition & 1 deletion flutter/realm_flutter/ios/realm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ project_dir = File.expand_path("../../../../", realmPackageDir)
# //TODO read the version from pubspec.yaml
Pod::Spec.new do |s|
s.name = 'realm'
s.version = '0.2.1+alpha'
s.version = '0.3.0-beta'
s.summary = 'The official Realm SDK for Flutter'
s.description = <<-DESC
Realm is a mobile database - an alternative to SQLite and key-value stores.
Expand Down
8 changes: 4 additions & 4 deletions flutter/realm_flutter/macos/realm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ realmPackageDir = File.expand_path(__dir__)

Pod::Spec.new do |s|
s.name = 'realm'
s.version = '0.2.1+alpha'
s.version = '0.3.0-beta'
s.summary = 'The official Realm SDK for Flutter'
s.description = <<-DESC
Realm is a mobile database - an alternative to SQLite and key-value stores.
Expand All @@ -28,13 +28,13 @@ Pod::Spec.new do |s|
s.resources = 'librealm_dart.dylib'
s.prepare_command = "touch #{realmPackageDir}/librealm_dart.dylib" #librealm_dart.dylib is needed before the build is started
s.script_phases = [
{ :name => 'Download Realm Flutter iOS Binaries',
{ :name => 'Download Realm Flutter iOS Binaries',
#Use --debug to debug the install command
: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',
:execution_position => :before_headers
},
{ :name => 'Report Metrics',
: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"',
{ :name => 'Report Metrics',
: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"',
:execution_position => :before_compile
}
]
Expand Down
2 changes: 1 addition & 1 deletion flutter/realm_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm
description: The official Realm SDK for Flutter. Realm is a mobile database - an alternative to SQLite and key-value stores.
version: 0.2.1+alpha
version: 0.3.0-beta

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
2 changes: 1 addition & 1 deletion flutter/realm_flutter/tests/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A new Flutter project.

publish_to: "none"

version: 1.0.0+1
version: 0.3.0-beta

environment:
sdk: ">=2.17.0 <3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >-
Generates RealmObject classes from Realm data model classes.
This package is part of the official Realm Flutter and Realm Dart SDKs.
version: 0.2.1+alpha
version: 0.3.0-beta

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
25 changes: 12 additions & 13 deletions lib/src/native/realm_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _RealmCore {
return _instance ??= _RealmCore._();
}

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

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

static void _sessionWaitCompletionCallback(Pointer<Void> userdata, Pointer<realm_sync_error_code_t> errorCode) {
try {
final completer = userdata.toObject<Completer<void>>(isPersistent: true);
if (completer == null) {
return;
}
final completer = userdata.toObject<Completer<void>>(isPersistent: true);
if (completer == null) {
return;
}

if (errorCode != nullptr) {
// Throw RealmException instead of RealmError to be recoverable by the user.
completer.completeError(RealmException(errorCode.toSyncError().toString()));
} else {
completer.complete();
}
}
finally {
if (errorCode != nullptr) {
// Throw RealmException instead of RealmError to be recoverable by the user.
completer.completeError(RealmException(errorCode.toSyncError().toString()));
} else {
completer.complete();
}
} finally {
_realmLib.realm_free(errorCode.cast());
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm_dart
description: The official Realm SDK for Dart. Realm is a mobile database - an alternative to SQLite and key-value stores.
version: 0.2.1+alpha
version: 0.3.0-beta

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down

0 comments on commit b6e32cc

Please sign in to comment.