Skip to content

Transition to Android 15 (API level 35)#188

Merged
kushti merged 18 commits intoergoplatform:v2.5.0from
advanpix:develop
Dec 23, 2025
Merged

Transition to Android 15 (API level 35)#188
kushti merged 18 commits intoergoplatform:v2.5.0from
advanpix:develop

Conversation

@advanpix
Copy link
Collaborator

@advanpix advanpix commented Nov 10, 2025

Various changes to support Android 15 (API level 35) and to update the project to a newer version of Kotlin and other components. Mostly build scripts are changed. Minor changes to source code - to fix incompatibilities with updated components, reduce warnings, etc. Resolves #185 and #187.

I tried to avoid any big jumps in versions. Only minimally required changes to support the Android 15.
Now project uses gradle 8.2.0, Kotlin 1.8.10. Compiled fine with Android Studio Ladybug Feature Drop | 2024.2.2 Patch 2.
Tested on Android 11 & 16.

iOS module has also been updated with higher component versions, incl. Java. Newest MobiVM 2.3.24 required to build wallet for iOS (it is successor to RoboVM). Wallet builds successfully using XCode 26.1.1 + Android Studio 2024.2.2. Patch 2 + MobiVM 2.3.24. Runs without issues on recent iOS versions.
Tested on iPhone 12 mini (iOS 18.6.2).

Close #187
Close #185
Close #189

@MrStahlfelge
Copy link
Member

Did you check for window inset changes and if everything still looking good on Android 15 with cutouts, nav bars and classic navigation?

We use platform-specific theme flag to opt out, restoring the legacy layout behavior where the app window starts correctly below the status bar.  Resolves ergoplatform#187
@advanpix
Copy link
Collaborator Author

advanpix commented Nov 11, 2025

Did you check for window inset changes and if everything still looking good on Android 15 with cutouts, nav bars and classic navigation?

Fixed the overlap with commit 0c5ed52
Now works properly, tested on Android 16 and 11

@advanpix
Copy link
Collaborator Author

advanpix commented Nov 12, 2025

I updated the workflow to compile PR - changed JDK from 11 to 17, updated verifications for packages, etc. Now PR passes the workflow successfully in my forked repository.

Please try running the workflow for PR again.

The release build was failing to establish external network connections due to a ProGuard/R8 issue that stripped generic type information required by Retrofit's CallAdapterFactory.

Adds '-keepattributes Signature' and other Retrofit-specific ProGuard/R8 rules to prevent code minification from stripping generic type information, resolving the 'Unable to create call adapter' error during API calls.
Resolves the final minification issue that prevented successful JSON deserialization in the signed release APK.

The issue was caused by ProGuard/R8 obfuscating the fields of network data models, resulting in Gson failing to map JSON keys to class fields.

Basically this disabled sending transactions from wallet
@kushti kushti changed the base branch from develop to v2.5.0 December 23, 2025 20:49
@kushti kushti changed the base branch from v2.5.0 to develop December 23, 2025 20:59
@kushti kushti changed the base branch from develop to v2.5.0 December 23, 2025 21:01
@kushti kushti merged commit 111f483 into ergoplatform:v2.5.0 Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants