Skip to content

Commit

Permalink
Merge pull request #60 from mindbox-cloud/release/2.9.1
Browse files Browse the repository at this point in the history
Release v2.9.1
  • Loading branch information
enotniy authored May 3, 2024
2 parents d5c6061 + 946f20b commit 36fde16
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 12 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions MindboxSdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 1 addition & 8 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
38 changes: 38 additions & 0 deletions git-release-branch.sh
Original file line number Diff line number Diff line change
@@ -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."
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 36fde16

Please sign in to comment.