Skip to content

Commit

Permalink
Merge pull request #253 from mindbox-cloud/release/2.7.0
Browse files Browse the repository at this point in the history
Release 2.7.0
  • Loading branch information
sergeysozinov authored Aug 11, 2023
2 parents 0237c52 + 26e716b commit 2fdee57
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Mindbox.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "Mindbox"
spec.version = "2.7.0-rc"
spec.version = "2.7.0"
spec.summary = "SDK for integration with Mindbox"
spec.description = "This library allows you to integrate data transfer to Mindbox Marketing Cloud"
spec.homepage = "https://github.com/mindbox-cloud/ios-sdk"
Expand Down
4 changes: 0 additions & 4 deletions Mindbox.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2840,7 +2840,6 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.6.4;
PRODUCT_BUNDLE_IDENTIFIER = cloud.Mindbox;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -2869,7 +2868,6 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.6.4;
PRODUCT_BUNDLE_IDENTIFIER = cloud.Mindbox;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -2934,7 +2932,6 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.6.4;
PRODUCT_BUNDLE_IDENTIFIER = cloud.MindboxNotifications;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -2963,7 +2960,6 @@
"@loader_path/Frameworks",
);
MARKETING_VERSION = 2.7.0;
MARKETING_VERSION = 2.6.4;
PRODUCT_BUNDLE_IDENTIFIER = cloud.MindboxNotifications;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 1 addition & 1 deletion Mindbox/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>4654</string>
<string>4657</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion MindboxNotifications.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "MindboxNotifications"
spec.version = "2.7.0-rc"
spec.version = "2.7.0"
spec.summary = "SDK for integration notifications with Mindbox"
spec.description = "This library allows you to integrate notifications and transfer them to Mindbox Marketing Cloud"
spec.homepage = "https://github.com/mindbox-cloud/ios-sdk"
Expand Down
2 changes: 1 addition & 1 deletion SDKVersionProvider/SDKVersionConfig.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MARKETING_VERSION = 2.5.0
MARKETING_VERSION = 2.7.0
45 changes: 45 additions & 0 deletions git-release-branch-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/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

#Add changelog to the index and create a commit
podspec_file="Mindbox.podspec"
notifivation_podspec_file="MindboxNotifications.podspec"
sdkversionprovider_file="SDKVersionProvider.swift"
current_version=$(grep -E '^\s+spec.version\s+=' "$podspec_file" | cut -d'"' -f2)
sed -i '' "s/^ spec.version = ."$/ spec.version = "$version"/" $podspec_file
sed -i '' "s/^ spec.version = ."$/ spec.version = "$version"/" $notifivation_podspec_file
sed -i '' "s/public static let sdkVersion = ".*"$/public static let sdkVersion = "$version"/" $sdkversionprovider_file

echo "Bump SDK version from $current_version to $version."

git add $podspec_file
git add $notifivation_podspec_file
git add $sdkversionprovider_file
git commit -m "Bump SDK version to $version"

echo "Branch $branch_name has been created."

0 comments on commit 2fdee57

Please sign in to comment.