diff --git a/CHANGELOG.md b/CHANGELOG.md index c1a7821..1835f74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ # Changelog -## [2.8.3] - 2024-03-28 +## [Unreleased] + +### Changes +- Added new in-app templates: a modal window and a snackbar, when clicked on, a system window opens to request push notifications. +- Added new targeting based on user login frequency. +- Upgrade iOS SDK dependency to v2.9.0. +- Upgrade Android SDK dependency to v2.9.1. + +### [2.8.4] - 2024-04-05 +- upgrade iOS SDK dependency to v2.8.6 ## [2.8.3] - 2024-03-28 diff --git a/MindboxSdk.podspec b/MindboxSdk.podspec index 7193395..0931dcc 100644 --- a/MindboxSdk.podspec +++ b/MindboxSdk.podspec @@ -17,6 +17,6 @@ Pod::Spec.new do |s| s.dependency "React-Core" - s.dependency "Mindbox", "2.8.5" - s.dependency "MindboxNotifications", "2.8.5" + s.dependency "Mindbox", "2.9.0" + s.dependency "MindboxNotifications", "2.9.0" end diff --git a/android/build.gradle b/android/build.gradle index 920ffbe..8513394 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -126,12 +126,5 @@ dependencies { // noinspection GradleDynamicVersion api 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - api 'cloud.mindbox:mobile-sdk:2.8.5' - - api 'cloud.mindbox:mindbox-huawei:2.8.5' - api 'com.huawei.hms:push:6.11.0.300' - - api 'cloud.mindbox:mindbox-firebase:2.8.5' - api platform('com.google.firebase:firebase-bom:32.6.0') - api 'com.google.firebase:firebase-messaging' + api 'cloud.mindbox:mobile-sdk:2.9.1' } diff --git a/git-release-branch.sh b/git-release-branch.sh new file mode 100755 index 0000000..ac20e58 --- /dev/null +++ b/git-release-branch.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +# Check if the parameter is provided +if [ $# -eq 0 ]; then + echo "Please provide the release version number as a parameter." + exit 1 +fi + +# Check if the version number matches the semver format +if ! [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then + echo "The release version number does not match the semver format (X.Y.Z or X.Y.Z-rc)." + exit 1 +fi + +# Check the current Git branch +current_branch=$(git symbolic-ref --short HEAD) + +if [[ $current_branch != "develop" && ! $current_branch =~ ^release/[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then + echo "The current Git branch ($current_branch) is not 'develop' or in the format 'release/X.Y.Z' or 'release/X.Y.Z-rc'." + exit 1 +fi + +# Create a branch with the version name +version=$1 +branch_name="release/$version" +git branch $branch_name +git checkout $branch_name + +package_json="package.json" +current_version=$(grep -Eo '"target-version": "[^"]+"' $package_json | cut -d '"' -f 4) +sed -i '' "s/\"target-version\": \".*\"/\"target-version\": \"$version\"/" $package_json + +echo "Bump SDK version from $current_version to $version." + +git add $package_json +git commit -m "Bump SDK version to $version" --no-verify + +echo "Branch $branch_name has been created." diff --git a/package.json b/package.json index 18bb502..883b09d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "mindbox-sdk", "version": "2.8.3", - "target-version": "2.8.3", + "target-version": "2.9.1", "description": "SDK for integration React Native mobile apps with Mindbox", "main": "lib/commonjs/index", "module": "lib/module/index",