From 12e94d16c897b90ec55b991aed8b5fdb84b924ec Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Mon, 18 Mar 2024 18:09:28 +0000 Subject: [PATCH 1/4] - Copying missing binaries (Win/Linux) when releasing (#1694) - Building cinterop-jvm Linux shared library in Release mode --- .github/workflows/include-deploy-release.yml | 2 +- .github/workflows/pr.yml | 6 +++++- CHANGELOG.md | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/include-deploy-release.yml b/.github/workflows/include-deploy-release.yml index 730194e1c9..7141f919f1 100644 --- a/.github/workflows/include-deploy-release.yml +++ b/.github/workflows/include-deploy-release.yml @@ -108,5 +108,5 @@ jobs: "${{ secrets.DOCS_S3_ACCESS_KEY }}" "${{ secrets.DOCS_S3_SECRET_KEY }}" \ "${{ secrets.SLACK_URL_RELEASE }}" "${{ secrets.SLACK_URL_CI }}" \ "${{ secrets.GRADLE_PORTAL_KEY }}" "${{ secrets.GRADLE_PORTAL_SECRET }}" \ - '-PsignBuild=true -PsignSecretRingFileKotlin="${{ secrets.GPG_SIGNING_KEY_BASE_64_DBG }}" -PsignPasswordKotlin=${{ secrets.GPG_PASS_PHRASE_DBG }}' + '-PsignBuild=true -PsignSecretRingFileKotlin="${{ secrets.GPG_SIGNING_KEY_BASE_64_DBG }}" -PsignPasswordKotlin=${{ secrets.GPG_PASS_PHRASE_DBG }} -Prealm.kotlin.copyNativeJvmLibs=linux,windows' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f0a427b33a..22d6735f4f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -145,7 +145,11 @@ jobs: rm -rf realmLinuxBuild mkdir realmLinuxBuild cd realmLinuxBuild - cmake ../../src/jvm + cmake -DCMAKE_BUILD_TYPE=Release \ + -DREALM_ENABLE_SYNC=1 \ + -DREALM_NO_TESTS=1 \ + -DREALM_BUILD_LIB_ONLY=true \ + ../../src/jvm make -j8 - name: Upload artifacts diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ff5443096..a592815a2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ ### Enhancements -- None. +- Fixes missing binaries files for Windows and Linux platforms when releasing. (Issue [#1671](https://github.com/realm/realm-kotlin/issues/1690) [JIRA](https://jira.mongodb.org/browse/RKOTLIN-1037)) ### Fixed From 8783d19971641de17cb994fe49818a06bb3d85e4 Mon Sep 17 00:00:00 2001 From: Nabil Hachicha Date: Mon, 18 Mar 2024 18:21:16 +0000 Subject: [PATCH 2/4] Fixing doc mime type (#1696) --- packages/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/build.gradle.kts b/packages/build.gradle.kts index fcc0536eda..ce8f8bf2e6 100644 --- a/packages/build.gradle.kts +++ b/packages/build.gradle.kts @@ -185,6 +185,8 @@ tasks.register("uploadDokka") { commandLine = listOf( "s3cmd", "put", + "--no-mime-magic", + "--guess-mime-type", "--recursive", "--acl-public", "--access_key=$awsAccessKey", From 01850dd4e6a649f5e108a7a2608e1462f3f9fd06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20R=C3=B8rbech?= Date: Tue, 19 Mar 2024 09:37:45 +0100 Subject: [PATCH 3/4] Release 1.14.1 --- CHANGELOG.md | 8 ++------ buildSrc/src/main/kotlin/Config.kt | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a592815a2f..3a1110f25d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,15 @@ -## 1.14.1-SNAPSHOT (YYYY-MM-DD) +## 1.14.1 (2024-03-19) ### Breaking Changes - - None. ### Enhancements - - Fixes missing binaries files for Windows and Linux platforms when releasing. (Issue [#1671](https://github.com/realm/realm-kotlin/issues/1690) [JIRA](https://jira.mongodb.org/browse/RKOTLIN-1037)) ### Fixed - - None. ### Compatibility - - File format: Generates Realms with file format v23. - Realm Studio 13.0.0 or above is required to open Realms created by this version. - This release is compatible with the following Kotlin releases: @@ -29,9 +25,9 @@ - Minimum R8: 8.0.34. ### Internal - - None. + ## 1.14.0 (2024-03-08) ### Breaking Changes diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 95508209b5..801a655ea2 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -62,7 +62,7 @@ val HOST_OS: OperatingSystem = findHostOs() object Realm { val ciBuild = (System.getenv("JENKINS_HOME") != null || System.getenv("CI") != null) - const val version = "1.14.1-SNAPSHOT" + const val version = "1.14.1" const val group = "io.realm.kotlin" const val projectUrl = "https://realm.io" const val pluginPortalId = "io.realm.kotlin" From 80a565993bbdf1f397b6d72f700bce7b0d78c4be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20R=C3=B8rbech?= Date: Wed, 20 Mar 2024 09:32:48 +0100 Subject: [PATCH 4/4] Prepare next dev iteration --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ buildSrc/src/main/kotlin/Config.kt | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a1110f25d..20822fbadc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,33 @@ +## 1.14.2-SNAPSHOT (YYYY-MM-DD) + +### Breaking Changes +- None. + +### Enhancements +- None. + +### Fixed +- None. + +### Compatibility +- File format: Generates Realms with file format v23. +- Realm Studio 13.0.0 or above is required to open Realms created by this version. +- This release is compatible with the following Kotlin releases: + - Kotlin 1.9.0 and above. Support for experimental K2-compilation with `kotlin.experimental.tryK2=true`. + - Ktor 2.1.2 and above. + - Coroutines 1.7.0 and above. + - AtomicFu 0.18.3 and above. + - The new memory model only. See https://github.com/realm/realm-kotlin#kotlin-memory-model-and-coroutine-compatibility +- Minimum Kbson 0.3.0. +- Minimum Gradle version: 6.8.3. +- Minimum Android Gradle Plugin version: 4.1.3. +- Minimum Android SDK: 16. +- Minimum R8: 8.0.34. + +### Internal +- None. + + ## 1.14.1 (2024-03-19) ### Breaking Changes diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 801a655ea2..c59a29c2cc 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -62,7 +62,7 @@ val HOST_OS: OperatingSystem = findHostOs() object Realm { val ciBuild = (System.getenv("JENKINS_HOME") != null || System.getenv("CI") != null) - const val version = "1.14.1" + const val version = "1.14.2-SNAPSHOT" const val group = "io.realm.kotlin" const val projectUrl = "https://realm.io" const val pluginPortalId = "io.realm.kotlin"