Skip to content

Commit e9cf272

Browse files
authored
Merge pull request #627 from mindbox-cloud/release/2.14.0
Release 2.14.0
2 parents e116e47 + 0ee8e52 commit e9cf272

File tree

121 files changed

+3997
-518
lines changed

Some content is hidden

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

121 files changed

+3997
-518
lines changed

.github/workflows/distribute-release-support.yml

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

.github/workflows/publish-reusable.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Android SDK
2525
uses: android-actions/setup-android@v2
2626
- name: lint check
27-
run: ./gradlew --no-daemon check
27+
run: ./gradlew --no-daemon lintDebug
2828

2929
unit-tests:
3030
runs-on: ubuntu-latest
@@ -96,14 +96,15 @@ jobs:
9696
echo '${{secrets.GPGKEYCONTENTS}}' | base64 -d > /tmp/publish_key.gpg
9797
gpg --quiet --batch --yes --decrypt --passphrase="${{secrets.SECRETPASSPHRASE}}" \
9898
--output /tmp/secret.gpg /tmp/publish_key.gpg
99-
echo "signing.password=${{secrets.signingpassword}}" >> gradle.properties
100-
echo "signing.keyId=${{secrets.signingkeyId}}" >> gradle.properties
99+
echo "" >> gradle.properties
100+
echo "signing.password=${{secrets.SIGNINGPASSWORD}}" >> gradle.properties
101+
echo "signing.keyId=${{secrets.SIGNINGKEYID}}" >> gradle.properties
101102
echo "signing.secretKeyRingFile=/tmp/secret.gpg" >> gradle.properties
102103
echo "mavenCentralUsername=${{secrets.CENTER_PORTAL_USERNAME}}" >> gradle.properties
103104
echo "mavenCentralPassword=${{secrets.CENTER_PORTAL_PASSWORD}}" >> gradle.properties
104105
env:
105-
signingpassword: ${{secrets.signingpassword}}
106-
signingkeyId: ${{secrets.signingkeyId}}
106+
signingpassword: ${{secrets.SIGNINGPASSWORD}}
107+
signingkeyId: ${{secrets.SIGNINGKEYID}}
107108
SECRETPASSPHRASE: ${{secrets.SECRETPASSPHRASE}}
108109
GPGKEYCONTENTS: ${{secrets.GPGKEYCONTENTS}}
109110
SONATYPE_CONNECT_TIMEOUT_SECONDS: 60

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ buildscript {
22
repositories {
33
google()
44
mavenCentral()
5-
maven { url("https://plugins.gradle.org/m2/") }
6-
maven { url("https://developer.huawei.com/repo/") }
5+
maven { url "https://plugins.gradle.org/m2/" }
6+
maven { url "https://developer.huawei.com/repo/" }
77
maven { url "https://artifactory-external.vkpartner.ru/artifactory/maven" }
88
}
99
dependencies {
@@ -15,8 +15,9 @@ allprojects {
1515
repositories {
1616
google()
1717
mavenCentral()
18-
maven { url 'https://developer.huawei.com/repo/' }
18+
maven { url "https://developer.huawei.com/repo/" }
1919
maven { url "https://artifactory-external.vkpartner.ru/artifactory/maven" }
20+
maven { url "https://central.sonatype.com/repository/maven-snapshots/" }
2021
mavenLocal()
2122
}
2223
}

example/.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,17 @@
1515
.cxx
1616
local.properties
1717
/app/agconnect-services.json
18-
/app/google-services.json
18+
/app/google-services.json
19+
*.apk
20+
*.aab
21+
*.ap_
22+
*.a_
23+
*.apks
24+
*.dex
25+
*.class
26+
*.jar
27+
*.so
28+
*.zip
29+
*.keystore
30+
keystore.properties
31+
*.jks

example/app/build.gradle

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ plugins {
55
id 'com.huawei.agconnect'
66
}
77

8+
def keystorePropertiesFile = rootProject.file("keystore.properties")
9+
def keystoreProperties = new Properties()
10+
if (keystorePropertiesFile.exists()) {
11+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
12+
}
13+
814
android {
915
namespace 'com.mindbox.example'
10-
compileSdk 34
16+
compileSdk 35
1117

1218
defaultConfig {
1319
applicationId "com.mindbox.example"
1420
minSdk 21
15-
targetSdk 34
16-
versionCode 1
17-
versionName "1.0"
21+
targetSdk 35
22+
versionCode 7
23+
versionName "2.5"
1824
multiDexEnabled true
1925
}
2026

@@ -31,9 +37,27 @@ android {
3137
buildFeatures {
3238
buildConfig = true
3339
}
40+
signingConfigs {
41+
debug {
42+
storeFile file('debug.keystore')
43+
storePassword 'android'
44+
keyAlias 'androiddebugkey'
45+
keyPassword 'android'
46+
}
47+
48+
release {
49+
if (keystorePropertiesFile.exists()) {
50+
storeFile file(keystoreProperties['storeFile'])
51+
storePassword keystoreProperties['storePassword']
52+
keyAlias keystoreProperties['keyAlias']
53+
keyPassword keystoreProperties['keyPassword']
54+
}
55+
}
56+
}
57+
3458
buildTypes {
3559
release {
36-
signingConfig signingConfigs.debug
60+
signingConfig signingConfigs.release
3761
minifyEnabled true
3862
shrinkResources true
3963
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
@@ -42,14 +66,7 @@ android {
4266
signingConfig signingConfigs.debug
4367
}
4468
}
45-
signingConfigs {
46-
debug {
47-
storeFile file('debug.keystore')
48-
storePassword 'android'
49-
keyAlias 'androiddebugkey'
50-
keyPassword 'android'
51-
}
52-
}
69+
5370
}
5471
// If the version of firebase-bom used in the sdk is higher, then it will be applied
5572
// To change the dependency resolution strategy use the code below
@@ -75,7 +92,7 @@ dependencies {
7592
implementation 'com.google.code.gson:gson:2.11.0'
7693

7794
//Mindbox
78-
implementation 'cloud.mindbox:mobile-sdk:2.13.5'
95+
implementation 'cloud.mindbox:mobile-sdk:2.14.0'
7996
implementation 'cloud.mindbox:mindbox-firebase'
8097
implementation 'cloud.mindbox:mindbox-huawei'
8198
implementation 'cloud.mindbox:mindbox-rustore'

example/app/proguard-rules.pro

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
-dontwarn android.telephony.HwTelephonyManager
23+
-dontwarn com.huawei.android.os.BuildEx$VERSION
24+
-dontwarn com.huawei.android.telephony.ServiceStateEx
25+
-dontwarn com.huawei.hianalytics.process.HiAnalyticsConfig$Builder
26+
-dontwarn com.huawei.hianalytics.process.HiAnalyticsConfig
27+
-dontwarn com.huawei.hianalytics.process.HiAnalyticsInstance$Builder
28+
-dontwarn com.huawei.hianalytics.process.HiAnalyticsInstance
29+
-dontwarn com.huawei.hianalytics.process.HiAnalyticsManager
30+
-dontwarn com.huawei.hianalytics.util.HiAnalyticTools
31+
-dontwarn com.huawei.libcore.io.ExternalStorageFile
32+
-dontwarn com.huawei.libcore.io.ExternalStorageFileInputStream
33+
-dontwarn com.huawei.libcore.io.ExternalStorageFileOutputStream
34+
-dontwarn com.huawei.libcore.io.ExternalStorageRandomAccessFile
35+
36+
-keep class com.mindbox.example.PushPayload { *; }

example/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
android:name=".ExampleApp"
1515
android:allowBackup="true"
1616
android:icon="@mipmap/ic_launcher"
17+
android:label="@string/app_name"
1718
android:networkSecurityConfig="@xml/network_security_config"
1819
android:roundIcon="@mipmap/ic_launcher_round"
1920
android:theme="@style/Theme.MindboxAndroidSdkExample">

example/app/src/main/java/com/mindbox/example/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class MainActivity : AppCompatActivity() {
4545
binding.btnSyncOperation.setOnClickListener {
4646
//https://developers.mindbox.ru/docs/android-integration-of-actions
4747
sendSync(type = SyncOperationType.OPERATION_BODY_WITH_CUSTOM_RESPONSE, context = this)
48+
showToast(context = this, message = "Sync operation was sent")
4849
}
4950
binding.btnOpenActivity.setOnClickListener {
5051
val intent = Intent(this, ActivityTransitionByPush::class.java)

example/app/src/main/java/com/mindbox/example/NotificationAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ class NotificationAdapter(private val onItemClick:(MindboxRemoteMessage) -> Unit
6565
}
6666
}
6767

68-
}
68+
}

example/app/src/main/java/com/mindbox/example/Operations.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ private fun getProductRecoSyncWithCustomClassOnResponse(context: Context) {
107107
)
108108
),
109109
classOfV = OperationResponse::class.java,
110-
onSuccess = { response -> handleSuccess(context, response, null) },
111-
onError = { error -> handleError(context, error) }
110+
onSuccess = { },
111+
onError = { }
112112
)
113113
}
114114

0 commit comments

Comments
 (0)