Skip to content

Commit

Permalink
Prepare for 11.6.0 (#3470)
Browse files Browse the repository at this point in the history
* Prepare for 11.6.0

* Change how rules are created

---------

Co-authored-by: nirinchev <nirinchev@users.noreply.github.com>
Co-authored-by: nirinchev <irinchev@me.com>
  • Loading branch information
3 people committed Nov 4, 2023
1 parent b8dce53 commit a922b2a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## vNext (TBD)
## 11.6.0 (2023-11-03)

### Enhancements
* Added the `App.EmailPasswordAuth.RetryCustomConfirmationAsync` method to be able to run again the confirmation function on the server for a given email. (Issue [#3463](https://github.com/realm/realm-dotnet/issues/3463))
Expand Down
2 changes: 1 addition & 1 deletion Realm/AssemblyInfo.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Product Condition="'$(Product)' == ''">Realm .NET</Product>
<VersionPrefix>11.5.0</VersionPrefix>
<VersionPrefix>11.6.0</VersionPrefix>
<Description Condition="'$(Description)' == ''">Realm is a mobile database: a replacement for SQLite</Description>
<Company>Realm Inc.</Company>
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) Realm Inc.</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion Realm/Realm.Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "io.realm.unity",
"version": "11.5.0",
"version": "11.6.0",
"displayName": "Realm",
"description": "Realm is an embedded, object-oriented database that lets you build real-time, always-on applications. With Realm, data is directly exposed as objects and queryable by code, removing the need for ORM's riddled with performance & maintenance issues. Additionally, objects and collections in Realm are always live, meaning that they always reflect the latest data stored in the database. You can subscribe to changes, letting you keep your UI consistently up to date.\nThe .NET Realm SDK also provide access to Atlas App Services, a secure backend that can sync data between devices, authenticate and manage users, and run serverless JavaScript functions.",
"unity": "2021.1",
Expand Down
32 changes: 20 additions & 12 deletions Tools/DeployApps/BaasClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Net;
Expand Down Expand Up @@ -418,27 +419,34 @@ private async Task<BaasApp> CreateFlxApp(string name)
{
_output.WriteLine($"Creating FLX app {name}...");

var (app, _) = await CreateAppCore(name, new
var (app, mongoServiceId) = await CreateAppCore(name, new
{
flexible_sync = new
{
state = "enabled",
database_name = $"FLX_{Differentiator}",
queryable_fields_names = new[] { "Int64Property", "GuidProperty", "DoubleProperty", "Int", "Guid", "Id", "PartitionLike" },
permissions = new
}
});

await PostAsync<BsonDocument>($"groups/{_groupId}/apps/{app}/services/{mongoServiceId}/default_rule", new
{
roles = new[]
{
new
{
rules = new { },
defaultRoles = new[]
name = "all",
apply_when = new { },
read = true,
write = true,
insert = true,
delete = true,
document_filters = new
{
new
{
name = "all",
applyWhen = new { },
read = true,
write = true,
}
read = true,
write = true,
}
},
}
}
});

Expand Down

0 comments on commit a922b2a

Please sign in to comment.