Skip to content

Commit 1b0017d

Browse files
authored
Merge pull request #500 from mindbox-cloud/release/2.11.1
Release 2.11.1
2 parents b0b8ea4 + a25e5da commit 1b0017d

File tree

98 files changed

+6886
-326
lines changed

Some content is hidden

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

98 files changed

+6886
-326
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SDK Distribute
1+
name: Distribute PushOk
22

33
on:
44
pull_request:
@@ -14,11 +14,19 @@ jobs:
1414
if: github.event.pull_request.merged == true || (github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/'))
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Get last 3 commit messages
21+
run: |
22+
commits=$(git log -3 --pretty=format:"%s")
23+
echo "commits=$commits" >> $GITHUB_ENV
24+
1725
- name: trigger build & send to FAD
1826
uses: benc-uk/workflow-dispatch@v1
19-
with:
27+
with:
2028
workflow: 61033697
2129
repo: mindbox-cloud/android-app
2230
ref: develop
2331
token: ${{ secrets.GITHUBACCESSTOKEN }}
24-
32+
inputs: '{"branch": "${{ github.head_ref }}", "commits": "${{ env.commits }}"}'

build.gradle

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = "1.8.21"
43
repositories {
54
google()
65
mavenCentral()
76
maven { url("https://plugins.gradle.org/m2/") }
87
maven { url("https://developer.huawei.com/repo/") }
98
}
109
dependencies {
11-
classpath "com.android.tools.build:gradle:7.4.2"
12-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13-
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.10.1"
14-
classpath 'com.google.gms:google-services:4.3.10'
15-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
16-
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
17-
10+
classpath libs.bundles.buildscript.plugins
1811
// NOTE: Do not place your application dependencies here; they belong
1912
// in the individual module build.gradle files
2013
}
@@ -31,7 +24,4 @@ allprojects {
3124

3225
task clean(type: Delete) {
3326
delete rootProject.buildDir
34-
}
35-
36-
37-
apply from: 'dependencies.gradle'
27+
}

dependencies.gradle

Lines changed: 0 additions & 41 deletions
This file was deleted.

example/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies {
5555

5656

5757
//Mindbox
58-
implementation 'cloud.mindbox:mobile-sdk:2.11.0'
58+
implementation 'cloud.mindbox:mobile-sdk:2.11.1'
5959
implementation 'cloud.mindbox:mindbox-firebase'
6060
implementation 'cloud.mindbox:mindbox-huawei'
6161

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ android.enableJetifier=true
2020
# Kotlin code style for this project: "official" or "obsolete":
2121
kotlin.code.style=official
2222
# SDK version property
23-
SDK_VERSION_NAME=2.11.0
23+
SDK_VERSION_NAME=2.11.1

gradle/libs.versions.toml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
[versions]
2+
compile_sdk = "34"
3+
build_tools = "34.0.0"
4+
min_sdk = "19"
5+
target_sdk = "34"
6+
7+
firebase_bom = "32.7.2"
8+
hms_push = "6.11.0.300"
9+
room = "2.5.1"
10+
kotlin = "1.8.21"
11+
gradle_plugin = "7.4.2"
12+
gms_play_services_basement = "18.0.0"
13+
gms_play_services_base = "18.0.1"
14+
gms_play_services_ads_identifier = "18.0.1"
15+
google_services = "4.3.10"
16+
hms_ads_identifier = "3.4.39.302"
17+
kotlinx_coroutines_core = "1.4.2"
18+
kotlinx_coroutines_android = "1.5.0"
19+
volley = "1.2.1"
20+
gson = "2.8.9"
21+
work_manager = "2.7.1"
22+
androidx_lifecycle = "2.3.1"
23+
androidx_core_ktx = "1.7.0"
24+
androidx_annotations = "1.3.0"
25+
constraint_layout = "2.1.4"
26+
threetenapb = "1.4.6"
27+
glide = "4.15.1"
28+
29+
junit = "4.13.2"
30+
androidx_junit = "1.1.3"
31+
espresso = "3.4.0"
32+
mockk = "1.13.3"
33+
robolectric = "4.11"
34+
test_core = "1.5.0"
35+
turbine = "0.12.1"
36+
kotlinx_coroutines_test = "1.4.2"
37+
38+
agcp = "1.6.0.300"
39+
maven_plugin = "2.1"
40+
41+
[bundles]
42+
buildscript-plugins = [
43+
"android_tools_build_gradle",
44+
"kotlin_gradle_plugin",
45+
"google_services",
46+
"maven_plugin",
47+
"agcp"
48+
]
49+
50+
test = [
51+
"junit",
52+
"mockk",
53+
"robolectric",
54+
"test_core",
55+
"turbine",
56+
"kotlinx_coroutines_test"
57+
]
58+
59+
androidTest = [
60+
"androidx_junit",
61+
"espresso"
62+
]
63+
64+
[libraries]
65+
kotlin_stdlib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
66+
androidx_core_ktx = { group = "androidx.core", name = "core-ktx", version.ref = "androidx_core_ktx" }
67+
androidx_annotations = { group = "androidx.annotation", name = "annotation", version.ref = "androidx_annotations" }
68+
firebase_bom = { group = "com.google.firebase", name = "firebase-bom", version.ref = "firebase_bom" }
69+
firebase_messaging = { group = "com.google.firebase", name = "firebase-messaging" }
70+
gms_play_services_basement = { group = "com.google.android.gms", name = "play-services-basement", version.ref = "gms_play_services_basement" }
71+
gms_play_services_base = { group = "com.google.android.gms", name = "play-services-base", version.ref = "gms_play_services_base" }
72+
gms_play_services_ads_identifier = { group = "com.google.android.gms", name = "play-services-ads-identifier", version.ref = "gms_play_services_ads_identifier" }
73+
kotlinx_coroutines_core = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinx_coroutines_core" }
74+
kotlinx_coroutines_android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "kotlinx_coroutines_android" }
75+
volley = { group = "com.android.volley", name = "volley", version.ref = "volley" }
76+
gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
77+
room_runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" }
78+
room_ktx = { group = "androidx.room", name = "room-ktx", version.ref = "room" }
79+
room_compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
80+
work_manager = { group = "androidx.work", name = "work-runtime-ktx", version.ref = "work_manager" }
81+
androidx_lifecycle = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "androidx_lifecycle" }
82+
hms_push = { group = "com.huawei.hms", name = "push", version.ref = "hms_push" }
83+
hms_ads_identifier = { group = "com.huawei.hms", name = "ads-identifier", version.ref = "hms_ads_identifier" }
84+
constraint_layout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraint_layout" }
85+
threetenabp = { group = "com.jakewharton.threetenabp", name = "threetenabp", version.ref = "threetenapb" }
86+
glide = { group = "com.github.bumptech.glide", name = "glide", version.ref = "glide" }
87+
glide_compiler = { group = "com.github.bumptech.glide", name = "compiler", version.ref = "glide" }
88+
89+
# Test libraries
90+
junit = { group = "junit", name = "junit", version.ref = "junit" }
91+
androidx_junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidx_junit" }
92+
espresso = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso" }
93+
mockk = { group = "io.mockk", name = "mockk", version.ref = "mockk" }
94+
mockk_android = { group = "io.mockk", name = "mockk-android", version.ref = "mockk" }
95+
mockk_agent = { group = "io.mockk", name = "mockk-agent", version.ref = "mockk" }
96+
robolectric = { group = "org.robolectric", name = "robolectric", version.ref = "robolectric" }
97+
test_core = { group = "androidx.test", name = "core", version.ref = "test_core" }
98+
turbine = { group = "app.cash.turbine", name = "turbine", version.ref = "turbine" }
99+
kotlinx_coroutines_test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "kotlinx_coroutines_test" }
100+
101+
# Buildscript plugins
102+
android_tools_build_gradle = { module = "com.android.tools.build:gradle", version.ref = "gradle_plugin" }
103+
kotlin_gradle_plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
104+
google_services = { module = "com.google.gms:google-services", version.ref = "google_services" }
105+
maven_plugin = { module = "com.github.dcendents:android-maven-gradle-plugin", version.ref = "maven_plugin" }
106+
agcp = { module = "com.huawei.agconnect:agcp", version.ref = "agcp" }

mindbox-firebase/build.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ android {
1212
dependencies {
1313
implementation project(path: ':sdk')
1414

15-
implementation sdkDependencies.androidx_core_ktx
16-
implementation sdkDependencies.kotlinx_coroutines_core
15+
// Implementation dependencies
16+
implementation libs.androidx.core.ktx
17+
implementation libs.kotlinx.coroutines.core
1718

18-
implementation sdkDependencies.gson
19+
// GSON
20+
implementation libs.gson
1921

2022
// Firebase messaging
21-
implementation platform(sdkDependencies.firebase_bom)
22-
implementation sdkDependencies.firebase_messaging
23-
implementation sdkDependencies.gms_play_services_base
24-
implementation sdkDependencies.gms_play_services_basement
23+
implementation platform(libs.firebase.bom)
24+
implementation libs.firebase.messaging
25+
implementation libs.gms.play.services.base
26+
implementation libs.gms.play.services.basement
2527

2628
// Ads
27-
implementation sdkDependencies.gms_play_services_ads_identifier
28-
testImplementation testDependencies.junit
29-
testImplementation testDependencies.mockk
30-
testImplementation testDependencies.mockk_android
31-
testImplementation testDependencies.mockk_agent
32-
testImplementation testDependencies.test_core
29+
implementation libs.gms.play.services.ads.identifier
30+
31+
// Test dependencies
32+
testImplementation libs.bundles.test
3333

3434
}

mindbox-huawei/build.gradle

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ android {
1212
dependencies {
1313
implementation project(path: ':sdk')
1414

15-
implementation sdkDependencies.kotlinx_coroutines_core
16-
implementation sdkDependencies.hms_push
17-
implementation sdkDependencies.hms_ads_identifier
18-
implementation sdkDependencies.gson
19-
implementation sdkDependencies.androidx_annotations
20-
testImplementation testDependencies.junit
21-
testImplementation testDependencies.mockk
22-
testImplementation testDependencies.mockk_android
23-
testImplementation testDependencies.mockk_agent
24-
testImplementation testDependencies.test_core
15+
// Implementation dependencies
16+
implementation libs.kotlinx.coroutines.core
17+
18+
// HMS
19+
implementation libs.hms.push
20+
implementation libs.hms.ads.identifier
21+
22+
// GSON
23+
implementation libs.gson
24+
implementation libs.androidx.annotations
25+
26+
// Test dependencies
27+
testImplementation libs.bundles.test
28+
2529
}

modulesCommon.gradle

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-kapt'
4-
apply plugin: 'org.jetbrains.dokka'
54
apply plugin: 'signing'
65
apply plugin: 'maven-publish'
76

87
group = 'com.github.mindbox-cloud'
98

109
android {
11-
compileSdkVersion 34
12-
buildToolsVersion "34.0.0"
10+
compileSdkVersion libs.versions.compile.sdk.get().toInteger()
11+
buildToolsVersion libs.versions.build.tools.get()
1312

1413
defaultConfig {
15-
minSdkVersion 19
16-
targetSdkVersion 34
14+
minSdkVersion libs.versions.min.sdk.get().toInteger()
15+
targetSdkVersion libs.versions.target.sdk.get().toInteger()
1716
versionCode 1
1817
multiDexEnabled true
1918
versionName '"' + SDK_VERSION_NAME + '"'
@@ -44,11 +43,6 @@ android {
4443
jvmTarget = '1.8'
4544
}
4645

47-
dokka {
48-
outputFormat = 'javadoc'
49-
outputDirectory = "$buildDir/dokka"
50-
}
51-
5246
task androidSourcesJar(type: Jar) {
5347
archiveClassifier.set('sources')
5448
from android.sourceSets.main.java.srcDirs

0 commit comments

Comments
 (0)