Starting with the mPaaS international edition baseline mpaas-baseline-10.2.3.global:4, mPaaS now supports targetSdkVersion 36. To upgrade, use the mPaaS plugin to update the SDK to this baseline or a later version, and follow the instructions in this topic to complete the adaptation and perform a regression test.
This adaptation is currently only available for the international edition baseline and will be included in the main baseline in a future release.
Adapt to targetSdkVersion 36
Prerequisites
Before you begin, ensure you have adapted your application for previous targetSdkVersion versions by following these guides:
Modify targetSdkVersion
AAR method
In the build.gradle file of your project's main module, set targetSdkVersion to 36.
Portal & bundle method
Portal & Bundle integration method does not support targetSdkVersion 36. To adapt, you must switch to AAR integration method.
The maintenance cost for Portal & Bundle increases with each new Android version, and we may discontinue support for it in the future. We strongly recommend switching to AAR as soon as possible.
Adaptation details
Adaptive layout for large-screen devices
For applications that target Android 16 (API level 36), restrictions on screen orientation, resizability, and aspect ratio no longer apply on displays with the width ≥ 600dp. The application fills the entire display window, and letterbox mode is disabled, regardless of the aspect ratio or the user's preferred orientation. For more information, see the official documentation.
Please declare the PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY attribute in AndroidManifest.xml to temporarily disable this feature.
<application ...>
<property android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY" android:value="true" />
</application>Regression test
Your test devices must include at least one device running Android 16 or a later version.
During the regression test, pay special attention to the following components if your application uses them:
Component
Verification items
Mini Program
All features.
H5 container
All features.
Scan
Page back.
Open Platform Face Recognition
Full-screen display.
Private Cloud Face Recognition
Full-screen display.