Skip to content

Commit 622e656

Browse files
Merge pull request #385 from mindbox-cloud/release/2.7.0
Release 2.7.0
2 parents 5519e11 + 933e5d2 commit 622e656

File tree

70 files changed

+1397
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+1397
-98
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: SDK Distribute
2+
3+
on:
4+
pull_request:
5+
types: [ closed ]
6+
branches:
7+
- develop
8+
push:
9+
branches:
10+
- 'release/*'
11+
12+
jobs:
13+
update_on_merge:
14+
if: github.event.pull_request.merged == true || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/'))
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: trigger build & send to FAD
18+
uses: benc-uk/workflow-dispatch@v1
19+
with:
20+
workflow: 61033697
21+
repo: mindbox-cloud/android-app
22+
ref: develop
23+
token: ${{ secrets.GITHUBACCESSTOKEN }}
24+

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- 'master'
7+
- 'support/*'
78
paths-ignore:
89
- '**.md'
910
tags-ignore:

.idea/codeStyles/Project.xml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dependencies.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ext {
2424
koin_test: 'io.insert-koin:koin-test:3.2.2',
2525
koin_junit4: 'io.insert-koin:koin-test-junit4:3.2.2',
2626
constraint_layout: 'androidx.constraintlayout:constraintlayout:2.1.4',
27-
jdk_libs: 'com.android.tools:desugar_jdk_libs:1.2.2'
27+
threetenapb: 'com.jakewharton.threetenabp:threetenabp:1.4.6'
2828
]
2929

3030
testDependencies = [
@@ -35,7 +35,9 @@ ext {
3535
turbine: 'app.cash.turbine:turbine:0.12.1',
3636
mockk: 'io.mockk:mockk:1.13.3',
3737
mockk_android: 'io.mockk:mockk-android:1.13.3',
38-
mockk_agent: 'io.mockk:mockk-agent:1.13.3'
38+
mockk_agent: 'io.mockk:mockk-agent:1.13.3',
39+
robolectric: 'org.robolectric:robolectric:4.9',
40+
test_core: 'androidx.test:core:1.5.0'
3941
]
4042

4143
}

git-release-branch.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Check if the parameter is provided
4+
if [ $# -eq 0 ]; then
5+
echo "Please provide the release version number as a parameter."
6+
exit 1
7+
fi
8+
9+
# Check if the version number matches the semver format
10+
if ! [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then
11+
echo "The release version number does not match the semver format (X.Y.Z or X.Y.Z-rc)."
12+
exit 1
13+
fi
14+
15+
# Check the current Git branch
16+
current_branch=$(git symbolic-ref --short HEAD)
17+
18+
if [[ $current_branch != "develop" && ! $current_branch =~ ^release/[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then
19+
echo "The current Git branch ($current_branch) is not 'develop' or in the format 'release/X.Y.Z' or 'release/X.Y.Z-rc'."
20+
exit 1
21+
fi
22+
23+
# Create a branch with the version name
24+
version=$1
25+
branch_name="release/$version"
26+
git branch $branch_name
27+
git checkout $branch_name
28+
29+
# Add changelog to the index and create a commit
30+
properties_file="gradle.properties"
31+
current_version=$(grep -E '^SDK_VERSION_NAME=' gradle.properties | cut -d'=' -f2)
32+
sed -i '' "s/^SDK_VERSION_NAME=.*/SDK_VERSION_NAME=$version/" $properties_file
33+
34+
echo "Bump SDK version from $current_version to $version."
35+
36+
git add $properties_file
37+
git commit -m "Bump SDK version to $version"
38+
39+
echo "Branch $branch_name has been created."

git-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
version=$(cat gradle.properties | grep SDK_VERSION_NAME | cut -f2 -d"=")
44
token=$1
55
user=$2
6-
branch=${GITHUB_REF##*/}
6+
branch=release/${GITHUB_REF##*/}
77
repo_full_name=$(git config --get remote.origin.url | sed 's/.*:\/\/github.com\///;s/.git$//' | cut -f2 -d":")
88
generate_post_data() {
99
cat <<EOF

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ android.enableJetifier=true
2121
kotlin.code.style=official
2222

2323
# SDK version property
24-
SDK_VERSION_NAME=2.7.0-rc
24+
SDK_VERSION_NAME=2.7.0

mindbox-firebase/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies {
1414

1515
implementation sdkDependencies.androidx_core_ktx
1616
implementation sdkDependencies.kotlinx_coroutines_core
17-
coreLibraryDesugaring sdkDependencies.jdk_libs
1817

1918
implementation sdkDependencies.gson
2019

mindbox-huawei/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ dependencies {
1717
implementation sdkDependencies.hms_ads_identifier
1818
implementation sdkDependencies.gson
1919
implementation sdkDependencies.androidx_annotations
20-
coreLibraryDesugaring sdkDependencies.jdk_libs
2120
}

modulesCommon.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ android {
3535
}
3636

3737
compileOptions {
38-
coreLibraryDesugaringEnabled true
3938

4039
sourceCompatibility JavaVersion.VERSION_1_8
4140
targetCompatibility JavaVersion.VERSION_1_8
@@ -112,6 +111,14 @@ afterEvaluate {
112111
}
113112

114113
signing {
115-
sign publishing.publications.release
114+
def signingKeyId = findProperty("signing.keyId")
115+
def signingKey = findProperty("signing.secretKeyRingFile")
116+
def signingPassword = findProperty("signing.password")
117+
if (signingKeyId && signingKey && signingPassword) {
118+
println("Signing applied")
119+
sign publishing.publications.release
120+
} else {
121+
println("Signing not applied")
122+
}
116123
}
117124
}

0 commit comments

Comments
 (0)