From b8048484c73d3188cf6c1dd35034d525e25845d1 Mon Sep 17 00:00:00 2001 From: Sergei Semko <28645140+justSmK@users.noreply.github.com> Date: Tue, 27 Oct 2026 11:24:17 +0300 Subject: [PATCH 01/30] Merge pull request #827 from mindbox-cloud/feature/embedded-block-webview-cache MOBILE-0000: Follow the WebView cache toggle in embedded blocks --- .../webview/EmbeddedBlockWebViewHolder.kt | 2 +- .../webview/EmbeddedBlockWebViewHolderTest.kt | 55 ++++++++++++++++++- 2 files changed, 53 insertions(+), 4 deletions(-) diff --git a/sdk/src/main/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolder.kt b/sdk/src/main/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolder.kt index 3dd24460..61a9436a 100644 --- a/sdk/src/main/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolder.kt +++ b/sdk/src/main/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolder.kt @@ -416,7 +416,7 @@ internal class EmbeddedBlockWebViewHolder( val controller = WebViewController.create( context = context, isDebugEnabled = false, - isCacheEnabled = false, + isCacheEnabled = webViewCachePolicy.isCacheEnabled, log = { message -> mindboxLogI("[EmbeddedBlock][WebView] $message") } ) controller.view.layoutParams = FrameLayout.LayoutParams( diff --git a/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt b/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt index dff59c1e..8b1dab86 100644 --- a/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt +++ b/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt @@ -5,7 +5,11 @@ import kotlinx.coroutines.SupervisorJob import android.app.Activity import android.app.Application import android.content.Context +import android.net.Uri import android.os.Looper +import android.webkit.WebResourceRequest +import android.webkit.WebResourceResponse +import android.webkit.WebSettings import android.webkit.WebView import androidx.activity.ComponentActivity import androidx.test.core.app.ApplicationProvider @@ -71,6 +75,7 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.cancel import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse +import org.junit.Assert.assertNotSame import org.junit.Assert.assertNull import org.junit.Assert.assertTrue import org.junit.Before @@ -94,6 +99,9 @@ class EmbeddedBlockWebViewHolderTest { private val inAppMessageManager: InAppMessageManager = mockk(relaxUnitFun = true) private val webPageRegistry: MindboxWebPageRegistry = mockk(relaxUnitFun = true) private val inAppFailureTracker: InAppFailureTracker = mockk(relaxed = true) + private val webViewCachePolicy: InAppWebViewCachePolicy = mockk { + every { isCacheEnabled } returns false + } private var elapsed = 0L private val timeProvider: SystemTimeProvider = mockk { @@ -123,9 +131,7 @@ class EmbeddedBlockWebViewHolderTest { every { appContext } returns application every { inAppFailureTracker } returns this@EmbeddedBlockWebViewHolderTest.inAppFailureTracker every { timeProvider } returns this@EmbeddedBlockWebViewHolderTest.timeProvider - every { webViewCachePolicy } returns mockk { - every { isCacheEnabled } returns false - } + every { webViewCachePolicy } returns this@EmbeddedBlockWebViewHolderTest.webViewCachePolicy every { inAppMessageManager } returns this@EmbeddedBlockWebViewHolderTest.inAppMessageManager every { webPageRegistry } returns this@EmbeddedBlockWebViewHolderTest.webPageRegistry stubBridgeHelpers(application) @@ -220,6 +226,18 @@ class EmbeddedBlockWebViewHolderTest { private fun lastOutgoingPayload(): JsonObject? = lastOutgoingMessage()?.get("payload")?.asString?.let { JsonParser.parseString(it).asJsonObject } + private fun receiveScriptHttpError() { + val request = mockk { + every { url } returns Uri.parse("https://cdn.local/runtime.js") + every { isForMainFrame } returns false + } + val response = mockk { + every { statusCode } returns 404 + } + shadowOf(webView).webViewClient.onReceivedHttpError(webView, request, response) + shadowOf(Looper.getMainLooper()).idle() + } + @Test fun `a show requested just before the page was covered is refused at its final check`() { givenShowPathCapturesRequester() @@ -263,6 +281,37 @@ class EmbeddedBlockWebViewHolderTest { assertFalse(webView.isVerticalScrollBarEnabled) } + @Test + fun `block webview uses the http cache when the cache toggle is on`() { + every { webViewCachePolicy.isCacheEnabled } returns true + + startAndAwaitPageLoad() + + assertEquals(WebSettings.LOAD_DEFAULT, webView.settings.cacheMode) + } + + @Test + fun `block webview bypasses the http cache when the cache toggle is off`() { + startAndAwaitPageLoad() + + assertEquals(WebSettings.LOAD_NO_CACHE, webView.settings.cacheMode) + } + + @Test + fun `a script error before the page answers reloads the page once with the cache bypassed`() { + every { webViewCachePolicy.isCacheEnabled } returns true + startAndAwaitPageLoad() + val firstLoad = shadowOf(webView).lastLoadDataWithBaseURL + + receiveScriptHttpError() + + val reload = shadowOf(webView).lastLoadDataWithBaseURL + assertNotSame(firstLoad, reload) + assertEquals("block", reload?.data) + assertEquals(WebSettings.LOAD_NO_CACHE, webView.settings.cacheMode) + coVerify(exactly = 1) { gatewayManager.fetchWebViewContent(any()) } + } + @Test fun `ready response contains items as json array not string`() { startAndAwaitPageLoad() From bef28c57ae7540257684d7d0cd18589192a1aa3f Mon Sep 17 00:00:00 2001 From: Egor Kitselyuk Date: Tue, 27 Oct 2026 13:18:26 +0300 Subject: [PATCH 02/30] MOBILE-569: Add the SDK Console verification file to the push modules Google Play SDK Console verifies every Maven artifact separately, so each published module needs the token under META-INF/cloud/mindbox//. The token is the same account-wide one already shipped in cloud.mindbox:mobile-sdk. Covers mindbox-firebase, mindbox-huawei, mindbox-rustore, their starters and mindbox-sdk-starter-core. --- .../mindbox/mindbox-firebase-starter/verification.properties | 3 +++ .../cloud/mindbox/mindbox-firebase/verification.properties | 3 +++ .../mindbox/mindbox-huawei-starter/verification.properties | 3 +++ .../cloud/mindbox/mindbox-huawei/verification.properties | 3 +++ .../mindbox/mindbox-rustore-starter/verification.properties | 3 +++ .../cloud/mindbox/mindbox-rustore/verification.properties | 3 +++ .../mindbox/mindbox-sdk-starter-core/verification.properties | 3 +++ 7 files changed, 21 insertions(+) create mode 100644 mindbox-firebase-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase-starter/verification.properties create mode 100644 mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties create mode 100644 mindbox-huawei-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei-starter/verification.properties create mode 100644 mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties create mode 100644 mindbox-rustore-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore-starter/verification.properties create mode 100644 mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties create mode 100644 mindbox-sdk-starter-core/src/main/resources/META-INF/cloud/mindbox/mindbox-sdk-starter-core/verification.properties diff --git a/mindbox-firebase-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase-starter/verification.properties b/mindbox-firebase-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase-starter/verification.properties new file mode 100644 index 00000000..ff844443 --- /dev/null +++ b/mindbox-firebase-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase-starter/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-firebase-starter SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties b/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties new file mode 100644 index 00000000..e5e1b198 --- /dev/null +++ b/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-firebase SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-huawei-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei-starter/verification.properties b/mindbox-huawei-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei-starter/verification.properties new file mode 100644 index 00000000..cdbdd18b --- /dev/null +++ b/mindbox-huawei-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei-starter/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-huawei-starter SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties b/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties new file mode 100644 index 00000000..9420c0da --- /dev/null +++ b/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-huawei SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-rustore-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore-starter/verification.properties b/mindbox-rustore-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore-starter/verification.properties new file mode 100644 index 00000000..e3a40f2d --- /dev/null +++ b/mindbox-rustore-starter/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore-starter/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-rustore-starter SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties b/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties new file mode 100644 index 00000000..e3511864 --- /dev/null +++ b/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-rustore SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-sdk-starter-core/src/main/resources/META-INF/cloud/mindbox/mindbox-sdk-starter-core/verification.properties b/mindbox-sdk-starter-core/src/main/resources/META-INF/cloud/mindbox/mindbox-sdk-starter-core/verification.properties new file mode 100644 index 00000000..06fde752 --- /dev/null +++ b/mindbox-sdk-starter-core/src/main/resources/META-INF/cloud/mindbox/mindbox-sdk-starter-core/verification.properties @@ -0,0 +1,3 @@ +#This is the verification token for the cloud.mindbox:mindbox-sdk-starter-core SDK. +#Tue Oct 06 01:36:41 PDT 2026 +token=VBWHNG6EQFFC7JA5DNAVJCCUGQ From ccc00294d283d5359509093672699531c5cd6cf0 Mon Sep 17 00:00:00 2001 From: Egor Kitselyuk Date: Tue, 27 Oct 2026 13:31:42 +0300 Subject: [PATCH 03/30] MOBILE-569: Use the verification files issued by SDK Console Replaces the hand-made copies for mindbox-firebase, mindbox-huawei and mindbox-rustore with the files Google issued for these artifacts. Only the date comment changes; the token is the same. --- .../cloud/mindbox/mindbox-firebase/verification.properties | 2 +- .../cloud/mindbox/mindbox-huawei/verification.properties | 2 +- .../cloud/mindbox/mindbox-rustore/verification.properties | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties b/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties index e5e1b198..ad26421f 100644 --- a/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties +++ b/mindbox-firebase/src/main/resources/META-INF/cloud/mindbox/mindbox-firebase/verification.properties @@ -1,3 +1,3 @@ #This is the verification token for the cloud.mindbox:mindbox-firebase SDK. -#Tue Oct 06 01:36:41 PDT 2026 +#Tue Oct 27 03:23:48 PDT 2026 token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties b/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties index 9420c0da..3d05e2a7 100644 --- a/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties +++ b/mindbox-huawei/src/main/resources/META-INF/cloud/mindbox/mindbox-huawei/verification.properties @@ -1,3 +1,3 @@ #This is the verification token for the cloud.mindbox:mindbox-huawei SDK. -#Tue Oct 06 01:36:41 PDT 2026 +#Tue Oct 27 03:23:54 PDT 2026 token=VBWHNG6EQFFC7JA5DNAVJCCUGQ diff --git a/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties b/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties index e3511864..6fe144c7 100644 --- a/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties +++ b/mindbox-rustore/src/main/resources/META-INF/cloud/mindbox/mindbox-rustore/verification.properties @@ -1,3 +1,3 @@ #This is the verification token for the cloud.mindbox:mindbox-rustore SDK. -#Tue Oct 06 01:36:41 PDT 2026 +#Tue Oct 27 03:24:50 PDT 2026 token=VBWHNG6EQFFC7JA5DNAVJCCUGQ From b4c8f902da68d9a3d7acf3bc1f1655de3355e5de Mon Sep 17 00:00:00 2001 From: Egor Kitselyuk Date: Tue, 27 Oct 2026 13:50:00 +0300 Subject: [PATCH 04/30] MOBILE-569: Bump kmp-common-sdk to pick up the SDK Console verification file cloud.mindbox:mindbox-common-android is published from this submodule by the android-sdk release pipeline, so the token Google looks for only ships once the pointer includes mindbox-cloud/kmp-common-sdk#43. --- kmp-common-sdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmp-common-sdk b/kmp-common-sdk index b6707d96..c2d1dcf9 160000 --- a/kmp-common-sdk +++ b/kmp-common-sdk @@ -1 +1 @@ -Subproject commit b6707d96625547d5a43db2b852a3435574162b19 +Subproject commit c2d1dcf95dfe7466c8455ae7549a57f1b0b0c3aa From 1ab9c19b678859a307bc8faf9d89989a70638731 Mon Sep 17 00:00:00 2001 From: Sergei Semko <28645140+justSmK@users.noreply.github.com> Date: Wed, 28 Oct 2026 12:17:18 +0300 Subject: [PATCH 05/30] MOBILE-0000: Generate the API reference with Dokka (#831) ./gradlew :dokkaGenerate builds one HTML reference for the nine published Android modules into build/dokka/html; mindbox-common is internal and stays out. The plugin is applied from the root build because android-app builds these modules through modulesCommon.gradle with its own buildscript classpath, which has no Dokka. Dokka brings Gradle's base plugin to the root project, whose clean deletes the same directory as the custom task it replaces. Publishing is unchanged: AAR, sources jars and POMs are byte-identical before and after, and javadoc jars still come from AGP. --- build.gradle | 35 +++++++++++++++++++++++------------ gradle.properties | 1 + gradle/libs.versions.toml | 3 +++ 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 27a8054c..948a582a 100644 --- a/build.gradle +++ b/build.gradle @@ -40,17 +40,28 @@ project(':mindbox-common') { } apply plugin: 'org.jetbrains.kotlinx.kover' +apply plugin: 'org.jetbrains.dokka' -dependencies { - kover(project(':sdk')) - kover(project(':mindbox-firebase')) - kover(project(':mindbox-huawei')) - kover(project(':mindbox-rustore')) - kover(project(':mindbox-firebase-starter')) - kover(project(':mindbox-huawei-starter')) - kover(project(':mindbox-rustore-starter')) - kover(project(':mindbox-sdk-starter-core')) - kover(project(':mindbox-embedded-compose')) +def publishedAndroidModules = [ + ':sdk', + ':mindbox-firebase', + ':mindbox-huawei', + ':mindbox-rustore', + ':mindbox-firebase-starter', + ':mindbox-huawei-starter', + ':mindbox-rustore-starter', + ':mindbox-sdk-starter-core', + ':mindbox-embedded-compose', +] + +publishedAndroidModules.each { path -> + project(path) { + apply plugin: 'org.jetbrains.dokka' + } + dependencies { + kover(project(path)) + dokka(project(path)) + } } kover { @@ -59,6 +70,6 @@ kover { } } -tasks.register('clean', Delete) { - delete rootProject.getLayout().getBuildDirectory() +dokka { + moduleName.set('Mindbox Android SDK') } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 61f8d32c..e90590ef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,4 +24,5 @@ SDK_VERSION_NAME=2.15.5 USE_LOCAL_MINDBOX_COMMON=true android.nonTransitiveRClass=false kotlin.mpp.androidGradlePluginCompatibility.nowarn=true +org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 599d11a5..454f8cbe 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -43,6 +43,7 @@ ktlint-plugin = "12.1.1" ksp = "1.9.22-1.0.17" maven_publish = "0.32.0" kover = "0.8.3" +dokka = "2.2.0" detekt = "1.23.6" pushclient = "7.4.1" @@ -57,6 +58,7 @@ buildscript-plugins = [ "ksp_gradle_plugin", "maven_publish_plugin", "kover_gradle_plugin", + "dokka_gradle_plugin", "detekt_gradle_plugin", ] @@ -133,6 +135,7 @@ ktlint_gradle_plugin = { module = "org.jlleitschuh.gradle:ktlint-gradle", versio ksp_gradle_plugin = { module = "com.google.devtools.ksp:symbol-processing-gradle-plugin", version.ref = "ksp" } maven_publish_plugin = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "maven_publish" } kover_gradle_plugin = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", version.ref = "kover" } +dokka_gradle_plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" } detekt_gradle_plugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detekt" } detekt_api = { module = "io.gitlab.arturbosch.detekt:detekt-api", version.ref = "detekt" } detekt_test = { module = "io.gitlab.arturbosch.detekt:detekt-test", version.ref = "detekt" } From f7fd1ebe6a323ef377437e81dcde2eb267ca7b16 Mon Sep 17 00:00:00 2001 From: Sergei Semko <28645140+justSmK@users.noreply.github.com> Date: Wed, 28 Oct 2026 12:46:26 +0300 Subject: [PATCH 06/30] MOBILE-0000: Publish the API reference next to the test coverage (#832) GitHub Pages keeps one deployment per repo, so the site now carries both: a landing page at the root, the Kover report under /coverage/ and the Dokka reference of develop under /api/. The reference is built from develop because no release tag has the Dokka setup yet; ios-sdk shows how to build from the latest stable tag instead. It builds in its own job next to the unit tests, so a Dokka failure does not hold back coverage: the last good reference comes from the cache, and with none the deploy stops so the published site stays as it is. --- .github/pages/index.html | 25 +++++++ .github/workflows/lint_unitTests_build.yml | 81 +++++++++++++++++++++- 2 files changed, 103 insertions(+), 3 deletions(-) create mode 100644 .github/pages/index.html diff --git a/.github/pages/index.html b/.github/pages/index.html new file mode 100644 index 00000000..367340b0 --- /dev/null +++ b/.github/pages/index.html @@ -0,0 +1,25 @@ + + + + + +Mindbox Android SDK + + + +
+

Mindbox Android SDK

+API referencePublic API of the develop branch +Test coverageUnit test coverage of the develop branch +
+ + diff --git a/.github/workflows/lint_unitTests_build.yml b/.github/workflows/lint_unitTests_build.yml index efc250cd..55d46f1a 100644 --- a/.github/workflows/lint_unitTests_build.yml +++ b/.github/workflows/lint_unitTests_build.yml @@ -10,6 +10,7 @@ on: - opened - reopened - synchronize + workflow_dispatch: permissions: contents: read @@ -109,22 +110,96 @@ jobs: annotate_only: true - name: upload coverage report - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: github.ref == 'refs/heads/develop' with: + name: coverage-site path: build/reports/kover/htmlCoverage + retention-days: 1 - deploy-coverage: + api-reference: runs-on: ubuntu-latest - needs: unit if: github.ref == 'refs/heads/develop' + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + submodules: true + + - name: Set up JDK 17 + uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + with: + distribution: 'temurin' + java-version: '17' + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0 + + - name: Setup Android SDK + uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + with: + packages: 'platform-tools' + + - name: build the API reference + run: ./gradlew --no-daemon :dokkaGenerate + + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + with: + name: api-reference + path: build/dokka/html + retention-days: 1 + + pages: + runs-on: ubuntu-latest + needs: [unit, api-reference] + if: ${{ !cancelled() && github.ref == 'refs/heads/develop' && needs.unit.result == 'success' }} permissions: + contents: read pages: write id-token: write environment: name: github-pages url: ${{ steps.deploy.outputs.page_url }} steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: download coverage report + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: coverage-site + path: site/coverage + + - name: download API reference + if: needs.api-reference.result == 'success' + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: api-reference + path: api-reference + + - name: cache API reference + if: needs.api-reference.result == 'success' + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: api-reference + key: api-reference-${{ github.sha }} + + - name: restore the last API reference + if: needs.api-reference.result != 'success' + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: api-reference + key: api-reference-${{ github.sha }} + restore-keys: api-reference- + + - name: assemble site + run: | + cp .github/pages/index.html site/ + [ -d api-reference ] || { echo "::error::No API reference to deploy; the published site stays as it is"; exit 1; } + mv api-reference site/api + + - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 + with: + path: site + - name: deploy to GitHub Pages id: deploy uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 From 8cf444ad3fedcdaf70108222628aeaf265523268 Mon Sep 17 00:00:00 2001 From: Sergei Semko <28645140+justSmK@users.noreply.github.com> Date: Wed, 28 Oct 2026 14:12:44 +0300 Subject: [PATCH 07/30] MOBILE-0000: Use a GitHub App token instead of the PAT in release flows (#833) Release PRs and the master-to-develop merge-back were opened and merged with PAT_FOR_TRIGGERING_BRANCH_PROTECTION, a personal token of an org admin account, only because events made with GITHUB_TOKEN start no workflows. An installation token of the mindbox-mobile-ci App starts them the same way, covers only this repository and the permissions of its step, and expires within an hour. The key comes from the org secret MOBILE_CI_APP_PRIVATE_KEY and the client ID from the org variable MOBILE_CI_APP_CLIENT_ID. Release and merge-back PRs are now authored by mindbox-mobile-ci[bot]. --- .../workflows/manual-prepare_release_branch.yml | 10 +++++++++- .github/workflows/prepare_release_branch.yml | 11 ++++++++++- .../workflows/publish-from-master-or-support.yml | 2 +- .github/workflows/publish-manual.yml | 2 +- .github/workflows/publish-reusable.yml | 16 +++++++++++++--- 5 files changed, 34 insertions(+), 7 deletions(-) diff --git a/.github/workflows/manual-prepare_release_branch.yml b/.github/workflows/manual-prepare_release_branch.yml index 599e05a1..8b8f113b 100644 --- a/.github/workflows/manual-prepare_release_branch.yml +++ b/.github/workflows/manual-prepare_release_branch.yml @@ -142,9 +142,17 @@ jobs: runs-on: ubuntu-latest needs: [bump_and_branch, check_sdk_version] steps: + - name: Create App token + id: app-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.MOBILE_CI_APP_CLIENT_ID }} + private-key: ${{ secrets.MOBILE_CI_APP_PRIVATE_KEY }} + permission-contents: read + permission-pull-requests: write - name: Create PR via GitHub CLI env: - GH_TOKEN: ${{ secrets.PAT_FOR_TRIGGERING_BRANCH_PROTECTION }} + GH_TOKEN: ${{ steps.app-token.outputs.token }} SRC: ${{ needs.bump_and_branch.outputs.release_branch }} DST: ${{ github.event.inputs.target_branch }} REPO: ${{ github.repository }} diff --git a/.github/workflows/prepare_release_branch.yml b/.github/workflows/prepare_release_branch.yml index 628400ac..7f38f476 100644 --- a/.github/workflows/prepare_release_branch.yml +++ b/.github/workflows/prepare_release_branch.yml @@ -97,9 +97,18 @@ jobs: with: submodules: recursive + - name: Create App token + id: app-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.MOBILE_CI_APP_CLIENT_ID }} + private-key: ${{ secrets.MOBILE_CI_APP_PRIVATE_KEY }} + permission-contents: read + permission-pull-requests: write + - name: Create Pull Request env: - GH_TOKEN: ${{ secrets.PAT_FOR_TRIGGERING_BRANCH_PROTECTION }} + GH_TOKEN: ${{ steps.app-token.outputs.token }} REF_NAME: ${{ github.ref_name }} run: | gh pr create \ diff --git a/.github/workflows/publish-from-master-or-support.yml b/.github/workflows/publish-from-master-or-support.yml index f60e6957..3a07c5f9 100644 --- a/.github/workflows/publish-from-master-or-support.yml +++ b/.github/workflows/publish-from-master-or-support.yml @@ -25,4 +25,4 @@ jobs: SIGNINGKEYID: ${{ secrets.SIGNINGKEYID }} CENTER_PORTAL_USERNAME: ${{ secrets.CENTER_PORTAL_USERNAME }} CENTER_PORTAL_PASSWORD: ${{ secrets.CENTER_PORTAL_PASSWORD }} - PAT_FOR_TRIGGERING_BRANCH_PROTECTION: ${{ secrets.PAT_FOR_TRIGGERING_BRANCH_PROTECTION }} \ No newline at end of file + MOBILE_CI_APP_PRIVATE_KEY: ${{ secrets.MOBILE_CI_APP_PRIVATE_KEY }} \ No newline at end of file diff --git a/.github/workflows/publish-manual.yml b/.github/workflows/publish-manual.yml index 6c15a81d..9c6fb1cc 100644 --- a/.github/workflows/publish-manual.yml +++ b/.github/workflows/publish-manual.yml @@ -34,4 +34,4 @@ jobs: SIGNINGKEYID: ${{ secrets.SIGNINGKEYID }} CENTER_PORTAL_USERNAME: ${{ secrets.CENTER_PORTAL_USERNAME }} CENTER_PORTAL_PASSWORD: ${{ secrets.CENTER_PORTAL_PASSWORD }} - PAT_FOR_TRIGGERING_BRANCH_PROTECTION: ${{ secrets.PAT_FOR_TRIGGERING_BRANCH_PROTECTION }} + MOBILE_CI_APP_PRIVATE_KEY: ${{ secrets.MOBILE_CI_APP_PRIVATE_KEY }} diff --git a/.github/workflows/publish-reusable.yml b/.github/workflows/publish-reusable.yml index 68e9dd15..4a9efb9b 100644 --- a/.github/workflows/publish-reusable.yml +++ b/.github/workflows/publish-reusable.yml @@ -19,7 +19,7 @@ on: required: true CENTER_PORTAL_PASSWORD: required: true - PAT_FOR_TRIGGERING_BRANCH_PROTECTION: + MOBILE_CI_APP_PRIVATE_KEY: required: true permissions: @@ -178,16 +178,26 @@ jobs: startsWith(github.head_ref, 'release') && github.base_ref == 'master' runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.PAT_FOR_TRIGGERING_BRANCH_PROTECTION }} steps: + - name: Create App token + id: app-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + client-id: ${{ vars.MOBILE_CI_APP_CLIENT_ID }} + private-key: ${{ secrets.MOBILE_CI_APP_PRIVATE_KEY }} + permission-contents: write + permission-pull-requests: write - name: Checkout develop branch uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: develop - name: Create Pull Request + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} run: gh pr create --base develop --head master --title "Merge 'master' into 'develop' after release" --body "Automated Pull Request to merge 'master' into 'develop' after release" - name: Merge Pull Request + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | pr_number=$(gh pr list --base develop --head master --json number --jq '.[0].number') gh pr merge "$pr_number" --merge --auto From e63c8dd46e8c4b1ef76d6d6e3246e81c67d80765 Mon Sep 17 00:00:00 2001 From: sozinov Date: Wed, 28 Oct 2026 19:04:42 +0300 Subject: [PATCH 08/30] MOBILE-0000: fix flaky test --- .../webview/EmbeddedBlockWebViewHolderTest.kt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt b/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt index 8b1dab86..4bc4ec08 100644 --- a/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt +++ b/sdk/src/test/java/cloud/mindbox/mobile_sdk/embedded/webview/EmbeddedBlockWebViewHolderTest.kt @@ -1781,9 +1781,13 @@ class EmbeddedBlockWebViewHolderTest { @Test fun `a show waiting for the session check of the return does not go once the place lost its content meanwhile, and goes once content returns`() { val returnChecked = CompletableDeferred() + val returnCheckAwaited = CompletableDeferred() val isReturnCheckPending = MutableStateFlow(true) every { inAppInteractor.returnCheckPending } returns isReturnCheckPending - coEvery { inAppInteractor.awaitReturnChecked() } coAnswers { returnChecked.await() } + coEvery { inAppInteractor.awaitReturnChecked() } coAnswers { + returnCheckAwaited.complete(Unit) + returnChecked.await() + } val recordedSessions = ConcurrentLinkedQueue() every { inAppInteractor.recordBlockShow(any(), any(), any(), any(), any(), any()) } answers { recordedSessions.add(SessionEpoch(arg(5))) @@ -1792,6 +1796,7 @@ class EmbeddedBlockWebViewHolderTest { startAndAwaitPageLoad() postFromPage(request(action = "contentRendered", payload = """{"count":3}""")) await { states.lastOrNull() == EmbeddedBlockState.Ready } + await { returnCheckAwaited.isCompleted } holder.withholdShow(true) isReturnCheckPending.value = false @@ -1946,9 +1951,13 @@ class EmbeddedBlockWebViewHolderTest { @Test fun `a show waiting for the session check of the return does not go once the page renders nothing meanwhile, and goes once it renders content`() { val returnChecked = CompletableDeferred() + val returnCheckAwaited = CompletableDeferred() val isReturnCheckPending = MutableStateFlow(true) every { inAppInteractor.returnCheckPending } returns isReturnCheckPending - coEvery { inAppInteractor.awaitReturnChecked() } coAnswers { returnChecked.await() } + coEvery { inAppInteractor.awaitReturnChecked() } coAnswers { + returnCheckAwaited.complete(Unit) + returnChecked.await() + } val recordedSessions = ConcurrentLinkedQueue() every { inAppInteractor.recordBlockShow(any(), any(), any(), any(), any(), any()) } answers { recordedSessions.add(SessionEpoch(arg(5))) @@ -1957,6 +1966,7 @@ class EmbeddedBlockWebViewHolderTest { startAndAwaitPageLoad() postFromPage(request(action = "contentRendered", payload = """{"count":3}""")) await { states.lastOrNull() == EmbeddedBlockState.Ready } + await { returnCheckAwaited.isCompleted } pushDataTheShownPageRendersNothingFor() isReturnCheckPending.value = false From 71c85fe42d4e27036ccf1d331f8c0018619470a0 Mon Sep 17 00:00:00 2001 From: sozinov Date: Thu, 29 Oct 2026 13:25:24 +0300 Subject: [PATCH 09/30] MOBILE-0000: keep RoomDatabase constructors for AGP 9 R8 strict mode --- proguard/proguard-room.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proguard/proguard-room.pro b/proguard/proguard-room.pro index bd363c27..4dc68f43 100644 --- a/proguard/proguard-room.pro +++ b/proguard/proguard-room.pro @@ -1,4 +1,4 @@ # Room --keep class * extends androidx.room.RoomDatabase +-keep class * extends androidx.room.RoomDatabase { void (); } -keep @androidx.room.Entity class * -dontwarn androidx.room.paging.** \ No newline at end of file From a70c4a7e7d2cbdf61bac03929f72f0f1ba370f6a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Nov 2026 06:18:43 +0000 Subject: [PATCH 10/30] deps(deps): bump the github-actions group across 1 directory with 6 updates Bumps the github-actions group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/setup-java](https://github.com/actions/setup-java) | `5.7.0` | `6.1.0` | | [gradle/actions/setup-gradle](https://github.com/gradle/actions) | `6.4.0` | `6.4.1` | | [android-actions/setup-android](https://github.com/android-actions/setup-android) | `4.0.1` | `4.0.4` | | [mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report) | `6.4.2` | `6.6.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `7.0.1` | `7.0.2` | | [actions/deploy-pages](https://github.com/actions/deploy-pages) | `5.0.0` | `5.0.1` | Updates `actions/setup-java` from 5.7.0 to 6.1.0 - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/b6effb05e454b25005698d916606bdc6ffcbf961...b843ebf9b913146b38da2eaa7aeddf76074ae1ad) Updates `gradle/actions/setup-gradle` from 6.4.0 to 6.4.1 - [Release notes](https://github.com/gradle/actions/releases) - [Commits](https://github.com/gradle/actions/compare/3f5f9adaf7d9fecd50b5935e54106014257a94e6...8da46b539cd8fe6ab27ca75128919a18d757604c) Updates `android-actions/setup-android` from 4.0.1 to 4.0.4 - [Release notes](https://github.com/android-actions/setup-android/releases) - [Commits](https://github.com/android-actions/setup-android/compare/40fd30fb8d7440372e1316f5d1809ec01dcd3699...be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd) Updates `mikepenz/action-junit-report` from 6.4.2 to 6.6.1 - [Release notes](https://github.com/mikepenz/action-junit-report/releases) - [Commits](https://github.com/mikepenz/action-junit-report/compare/d9f48fc87bc235f7e214acf696ca5abc0a986f16...6ef3fdcfcd5f0b5d14df3e659ef19b8c6820f93d) Updates `actions/upload-artifact` from 7.0.1 to 7.0.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/043fb46d1a93c77aae656e7c1c64a875d1fc6a0a...cf430e030ddbb5b0abf93d22962f4752f3646cd9) Updates `actions/deploy-pages` from 5.0.0 to 5.0.1 - [Release notes](https://github.com/actions/deploy-pages/releases) - [Commits](https://github.com/actions/deploy-pages/compare/cd2ce8fcbc39b97be8ca5fce6e763baed58fa128...368f82528645a54fb793d4d04e342629a3f51346) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: gradle/actions/setup-gradle dependency-version: 6.4.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: android-actions/setup-android dependency-version: 4.0.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: mikepenz/action-junit-report dependency-version: 6.6.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/deploy-pages dependency-version: 5.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] --- .github/workflows/lint_unitTests_build.yml | 30 +++++++++---------- .github/workflows/publish-example-to-play.yml | 6 ++-- .github/workflows/publish-reusable.yml | 12 ++++---- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/lint_unitTests_build.yml b/.github/workflows/lint_unitTests_build.yml index 55d46f1a..0880b1fb 100644 --- a/.github/workflows/lint_unitTests_build.yml +++ b/.github/workflows/lint_unitTests_build.yml @@ -25,18 +25,18 @@ jobs: submodules: true - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' - name: Set up Gradle - uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0 + uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1 with: cache-read-only: ${{ github.ref != 'refs/heads/develop' && !startsWith(github.ref, 'refs/heads/mission/') }} - name: Setup Android SDK - uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4 with: packages: 'platform-tools' @@ -82,18 +82,18 @@ jobs: submodules: true - name: Set up JDK 21 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '21' - name: Set up Gradle - uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0 + uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1 with: cache-read-only: ${{ github.ref != 'refs/heads/develop' && !startsWith(github.ref, 'refs/heads/mission/') }} - name: Setup Android SDK - uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4 with: packages: 'platform-tools' @@ -101,7 +101,7 @@ jobs: run: ./gradlew --no-daemon --stacktrace testDebugUnitTest :koverHtmlReportCoverage - name: test report - uses: mikepenz/action-junit-report@d9f48fc87bc235f7e214acf696ca5abc0a986f16 # v6.4.2 + uses: mikepenz/action-junit-report@6ef3fdcfcd5f0b5d14df3e659ef19b8c6820f93d # v6.6.1 if: ${{ always() }} with: report_paths: '**/build/test-results/testDebugUnitTest/TEST-*.xml' @@ -110,7 +110,7 @@ jobs: annotate_only: true - name: upload coverage report - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: github.ref == 'refs/heads/develop' with: name: coverage-site @@ -126,23 +126,23 @@ jobs: submodules: true - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' - name: Set up Gradle - uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0 + uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1 - name: Setup Android SDK - uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4 with: packages: 'platform-tools' - name: build the API reference run: ./gradlew --no-daemon :dokkaGenerate - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: api-reference path: build/dokka/html @@ -202,7 +202,7 @@ jobs: - name: deploy to GitHub Pages id: deploy - uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1 build: runs-on: ubuntu-latest @@ -212,13 +212,13 @@ jobs: submodules: true - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' - name: Set up Gradle - uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0 + uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1 with: cache-read-only: ${{ github.ref != 'refs/heads/develop' && !startsWith(github.ref, 'refs/heads/mission/') }} diff --git a/.github/workflows/publish-example-to-play.yml b/.github/workflows/publish-example-to-play.yml index 88c08b03..6166b40d 100644 --- a/.github/workflows/publish-example-to-play.yml +++ b/.github/workflows/publish-example-to-play.yml @@ -48,13 +48,13 @@ jobs: echo "version_name=$version_name" >> "$GITHUB_OUTPUT" - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' - name: Setup Android SDK - uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4 with: packages: 'platform-tools' @@ -89,7 +89,7 @@ jobs: -PEXAMPLE_VERSION_CODE="$VERSION_CODE" - name: Attach AAB to workflow run - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: example-release-bundle path: example/app/build/outputs/bundle/release/app-release.aab diff --git a/.github/workflows/publish-reusable.yml b/.github/workflows/publish-reusable.yml index 4a9efb9b..04ab68d3 100644 --- a/.github/workflows/publish-reusable.yml +++ b/.github/workflows/publish-reusable.yml @@ -35,12 +35,12 @@ jobs: submodules: recursive - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' - name: Setup Android SDK - uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4 with: packages: 'platform-tools' - name: lint check @@ -55,12 +55,12 @@ jobs: submodules: recursive - name: Set up JDK 21 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '21' - name: Setup Android SDK - uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1 + uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4 with: packages: 'platform-tools' - name: unit tests @@ -76,7 +76,7 @@ jobs: submodules: recursive - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' @@ -120,7 +120,7 @@ jobs: ref: ${{ inputs.branch }} submodules: recursive - name: Set up JDK 17 - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: distribution: 'temurin' java-version: '17' From 07337af0bcc2af5bcc0fdc52242129efb52fa3b9 Mon Sep 17 00:00:00 2001 From: sozinov Date: Thu, 5 Nov 2026 11:10:27 +0300 Subject: [PATCH 11/30] MOBILE-631: Raise minSdk to 23 --- example/app/build.gradle | 2 +- example/app/src/main/res/values-night/themes.xml | 4 ++-- example/app/src/main/res/values/themes.xml | 4 ++-- gradle/libs.versions.toml | 2 +- kmp-common-sdk | 2 +- mindbox-embedded-compose/gradle.properties | 2 +- mindbox-firebase-starter/gradle.properties | 2 +- mindbox-firebase/gradle.properties | 2 +- mindbox-huawei-starter/gradle.properties | 2 +- mindbox-huawei/gradle.properties | 2 +- mindbox-rustore-starter/gradle.properties | 2 +- mindbox-rustore/gradle.properties | 2 +- mindbox-rustore/src/main/AndroidManifest.xml | 1 - mindbox-rustore/src/main/res/values-v23/bools.xml | 4 ---- mindbox-rustore/src/main/res/values/bools.xml | 2 +- mindbox-sdk-starter-core/gradle.properties | 2 +- sdk/src/main/AndroidManifest.xml | 1 - .../actions/PushActivationActivity.kt | 1 - .../mobile_sdk/pushes/PushNotificationManager.kt | 15 +-------------- .../handler/image/ApplyDefaultAndRetryStrategy.kt | 4 ---- .../pushes/handler/image/ImageRetryStrategy.kt | 4 ---- 21 files changed, 17 insertions(+), 45 deletions(-) delete mode 100644 mindbox-rustore/src/main/res/values-v23/bools.xml diff --git a/example/app/build.gradle b/example/app/build.gradle index 8556b6b0..ff65afe4 100644 --- a/example/app/build.gradle +++ b/example/app/build.gradle @@ -38,7 +38,7 @@ android { defaultConfig { applicationId "com.mindbox.example" - minSdk 21 + minSdk 23 targetSdk 36 versionCode EXAMPLE_VERSION_CODE.toInteger() // versionName is taken from SDK_VERSION_NAME in the android-sdk repo root diff --git a/example/app/src/main/res/values-night/themes.xml b/example/app/src/main/res/values-night/themes.xml index 6592f212..77204d7a 100644 --- a/example/app/src/main/res/values-night/themes.xml +++ b/example/app/src/main/res/values-night/themes.xml @@ -1,8 +1,8 @@ - +