Skip to content

Commit

Permalink
update versions to 0.1.0+preview
Browse files Browse the repository at this point in the history
  • Loading branch information
blagoev committed Apr 1, 2021
1 parent fa46ad0 commit e79e5f3
Show file tree
Hide file tree
Showing 16 changed files with 35 additions and 499 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.1.0-preview Release notes (2021-04-01)
0.1.0+preview Release notes (2021-04-01)
=============================================================
### Enhancements
* The initial preview version of the Realm SDK for Dart.
Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ For complete Realm documentation consult the documentation of the [Realm SDKs](h
* Realm Flutter Preview requires a custiom engine based on Flutter 2.0 with minimum changes. This will not be required in future versions of the SDK. More information can be found [here](https://github.com/realm/realm-dart/tree/preview/runtime).
* Realm Dart Preview package `realm_dart` can not be used with the Dart SDK 2.12.0 shippied with Flutter 2.0 since Flutter downloads a custom version of Dart SDK instead of using the official Dart SDK build and this custom version has issues loading native binaries. Instead an official Dart SDK 2.12.0 installation is needed in PATH.
* Realm Dart Preview package `realm_dart` can not be used with the Dart SDK 2.12 shippied with Flutter 2.0 since Flutter downloads a custom version of Dart SDK instead of using the official Dart SDK build and this custom version has issues loading native binaries. Instead an official Dart SDK 2.12 installation is needed in PATH.
* The preview version of Realm SDK for Flutter and Dart allows working with a local only (on device) Realm database in Flutter and Dart desktop. Realm Sync functionality is not implemented.
Expand Down Expand Up @@ -112,10 +112,11 @@ For complete Realm documentation consult the documentation of the [Realm SDKs](h
```
## Usage
* Add `realm` package dependency in the `pubspec.yaml` of the Flutter application.
```yaml
dependencies:
realm: ^0.1.0-preview
realm: ^0.1.0+preview
```
* Enable generation of RealmObjects.
Expand Down Expand Up @@ -235,7 +236,7 @@ For complete Realm documentation consult the documentation of the [Realm SDKs](h
```yaml
dependencies:
realm_dart: ^0.1.0-preview
realm_dart: ^0.1.0+preview
```
* [Windows only] Install the `realm_dart` package into the application.
Expand Down Expand Up @@ -280,11 +281,12 @@ For usage see the Realm Flutter usage above
### Build the native Android binary
/android> gradlew externalNativeBuildDebug
`/android> gradlew externalNativeBuildDebug`
## Realm Dart
### Buildign Realm Dart package for Windows
```
cmake.exe -A x64 -DCMAKE_CONFIGURATION_TYPES:STRING="Release" -S . -B out
cmake --build out --config Release
Expand All @@ -297,4 +299,14 @@ cmake -G Ninja -S . -B out
cmake --build out --config Release
```
### Versioning
Realm Flutter and Dart SDK packages follow [Semantic Versioning](https://semver.org/)
During the initial development the packages will be versioned according the scheme `0.major.minor+release stage` until the first stable version is reached then packages will be versioned with `major.minor.patch` scheme.
The first versions will follow `0.1.0+preview`, `0.1.1+preview` etc.
Then next release stage will pick up the next minor version `0.1.2+beta`, `0.1.3+beta`. This will ensure dependencies are updated on `pub get` with the new `beta` versions.
If an `alpha` version is released before `beta` and it needs to not be considered for `pub get` then it should be marked as `prerelease` with `-alpha` so `0.1.2-alpha` etc.
Updating the major version with every release stage is also possible - `0.2.0+beta`, `0.2.1+beta`.
##### The "Dart" name and logo and the "Flutter" name and logo are trademarks owned by Google.
4 changes: 2 additions & 2 deletions example/myapp/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ packages:
path: "../.."
relative: true
source: path
version: "0.1.0-preview"
version: "0.1.0+preview"
realm_generator:
dependency: transitive
description:
path: "../../generator"
relative: true
source: path
version: "0.1.0-preview"
version: "0.1.0+preview"
shelf:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion flutter/realm_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.1.0-preview Release notes (2021-04-01)
0.1.0+preview Release notes (2021-04-01)
=============================================================
### Enhancements
* The initial preview version of the Realm SDK for Flutter.
Expand Down
6 changes: 3 additions & 3 deletions flutter/realm_flutter/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,14 @@ packages:
path: ".."
relative: true
source: path
version: "0.1.0-preview"
version: "0.1.0+preview"
realm_generator:
dependency: transitive
description:
path: "../../../generator"
relative: true
source: path
version: "0.1.0-preview"
version: "0.1.0+preview"
shelf:
dependency: transitive
description:
Expand Down Expand Up @@ -459,4 +459,4 @@ packages:
version: "3.1.0"
sdks:
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.10.0"
flutter: ">=2.0.0"
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.1.0-preview
version: 0.1.0+preview
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none'
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 @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'realm'
s.version = '0.1.0-preview'
s.version = '0.1.0+preview'
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
2 changes: 1 addition & 1 deletion flutter/realm_flutter/ios/realm_dev.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ puts "Absolute realm directory: #{absolute_realm_dir}."
#
Pod::Spec.new do |s|
s.name = 'realm'
s.version = '0.1.0-preview'
s.version = '0.1.0+preview'
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
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.1.0-preview
version: 0.1.0+preview

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
2 changes: 1 addition & 1 deletion generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.1.0-preview Release notes (2021-04-01)
0.1.0+preview Release notes (2021-04-01)
=============================================================
### Enhancements
* The initial preview version of the Realm Generator for Realm Flutter and Realm Dart SDKs
2 changes: 1 addition & 1 deletion generator/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm_generator_example
description: Example app using realm generator
version: 0.1.0-preview
version: 0.1.0+preview

publish_to: none

Expand Down
2 changes: 1 addition & 1 deletion generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm_generator
description: Generates RealmObject classes from Realm data model classes. This package is part of the official Realm Flutter and Realm Dart SDKs
version: 0.1.0-preview
version: 0.1.0+preview

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

0 comments on commit e79e5f3

Please sign in to comment.