Skip to content

Commit

Permalink
[Release 1.7.0] (#1484)
Browse files Browse the repository at this point in the history
* [Release 1.7.0]

* Missing dependency

* Don't publish tests directory with realm package

* Temporary tweak to publish-release.yml to allow re-run

* Replace path deps for realm_dart as well

---------

Co-authored-by: nielsenko <[email protected]>
Co-authored-by: Kasper Overgård Nielsen <[email protected]>
  • Loading branch information
3 people authored Jan 23, 2024
1 parent fc83540 commit 2b15b1e
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 28 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:
uses: jacobtomlinson/gha-find-replace@b76729678e8d52dadb12e0e16454a93e301a919d #! 2.0.0
if: ${{ github.event.inputs.environment == 'Production' }}
with:
find: " realm_(common|generator):(\\n|\\r\\n) path:.*"
find: " realm_(common|generator|dart):(\\n|\\r\\n) path:.*"
replace: " realm_$1: ${{ steps.get-version.outputs.version }}"
include: "**pubspec.yaml"

- name: Update realm_* path dependencies (Staging)
uses: jacobtomlinson/gha-find-replace@b76729678e8d52dadb12e0e16454a93e301a919d #! 2.0.0
if: ${{ github.event.inputs.environment != 'Production' }}
with:
find: " realm_(common|generator):(\\n|\\r\\n) path:.*"
find: " realm_(common|generator|dart):(\\n|\\r\\n) path:.*"
replace: " realm_$1:\n path: ../$1"
include: "**pubspec.yaml"

Expand Down Expand Up @@ -147,17 +147,6 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY }}
aws-region: us-east-1

- name: Upload release folder to S3
id: upload-to-s3
run: |
tar -zcvf packages.tar.gz common generator realm_dart realm ExtractedChangelog.md
rm -rf common generator realm_dart realm ExtractedChangelog.md
s3_folder="static.realm.io/downloads/dart/${{ steps.get-version.outputs.version }}"
aws s3 sync --acl public-read . "s3://$s3_folder"
echo "url=https://$s3_folder/packages.tar.gz" >> $GITHUB_OUTPUT
working-directory: release

publish-packages:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.environment == 'Production' }}
Expand Down Expand Up @@ -189,9 +178,6 @@ jobs:
mkdir -p $HOME/.config/dart
echo '${{ secrets.PUB_CREDENTIALS }}' >> $HOME/.config/dart/pub-credentials.json
dart pub publish --directory common --force
dart pub publish --directory generator --force
dart pub publish --directory realm_dart --force
dart pub publish --directory realm --force
working-directory: release

Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## vNext (TBD)
## 1.7.0 (2024-01-23)

### Enhancements
* Reworked how creating an `App` instance works across isolates:
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: 1.6.1
version: 1.7.0

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
4 changes: 4 additions & 0 deletions flutter/realm_flutter/.pubignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ ios/src/realm-core/**/*.pem

# Ignore realm-core doc
ios/src/realm-core/doc

# Ignore the special tests folder for the flutter driver tests
tests/
data/
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: 1.6.1
version: 1.7.0

# 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 @@ -19,7 +19,7 @@ puts "bundleId is #{bundleId}"

Pod::Spec.new do |s|
s.name = 'realm'
s.version = '1.6.1'
s.version = '1.7.0'
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/macos/realm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ puts "bundleId is #{bundleId}"

Pod::Spec.new do |s|
s.name = 'realm'
s.version = '1.6.1'
s.version = '1.7.0'
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: 1.6.1
version: 1.7.0

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.6.1
version: 1.7.0

environment:
sdk: ^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: 1.6.1
version: 1.7.0

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
2 changes: 1 addition & 1 deletion lib/src/cli/metrics/metrics_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import 'options.dart';
import '../common/utils.dart';

// stamped into the library by the build system (see prepare-release.yml)
const realmCoreVersion = '13.24.0';
const realmCoreVersion = '13.26.0';

class MetricsCommand extends Command<void> {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/native/realm_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ final _pluginLib = () {
}();

// stamped into the library by the build system (see prepare-release.yml)
const libraryVersion = '1.6.1';
const libraryVersion = '1.7.0';

_RealmCore realmCore = _RealmCore();

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: 1.6.1
version: 1.7.0

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
2 changes: 1 addition & 1 deletion src/realm_dart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ RLM_API void realm_dart_invoke_unlock_callback(realm_userdata_t error, void* unl
// Stamped into the library by the build system (see prepare-release.yml)
// Keep this method as it is written and do not format it.
// We have a github workflow that looks for and replaces this string as it is written here.
RLM_API const char* realm_dart_library_version() { return "1.6.1"; }
RLM_API const char* realm_dart_library_version() { return "1.7.0"; }

//for debugging only
// RLM_API void realm_dart_gc() {
Expand Down

0 comments on commit 2b15b1e

Please sign in to comment.