mPaaS support for targetSdkVersion 30

更新时间:
复制 MD 格式

mPaaS baseline 10.1.68 supports a targetSdkVersion up to 29. To upgrade your application's targetSdkVersion to 30, use the mPaaS plugin to update the SDK to baseline 10.2.3, and then adapt your application and perform regression testing as described below.

Prerequisites

You have completed the adaptations for targetSdkVersion 28 and 29. For more information, see mPaaS support for targetSdkVersion 28 and mPaaS support for targetSdkVersion 29.

Procedure

  1. Modify targetSdkVersion.

    • AAR connection type

      In the build.gradle file of your project's main module, change the targetSdkVersion property to 30.

    • Portal & Bundle connection type

      In the build.gradle file of the Portal project's main module, change the targetSdkVersion property to 30. You do not need to change the targetSdkVersion in the Bundle project, but it must not exceed the targetSdkVersion of the Portal project.

  2. General configurations.

    In the build.gradle file of your project's main module (the Portal project for the Portal & Bundle connection type), explicitly enable v1 and v2 signing:

     android {
       ...
       signingConfigs {
         release {
           storeFile file("myreleasekey.keystore")
           storePassword "password"
           keyAlias "MyReleaseKey"
           keyPassword "password"
           v2SigningEnabled true // Enable v2 signing
           v1SigningEnabled true // Enable v1 signing
         }
       }
     }
    
  3. (Optional) Use the Mini Program video playback feature.

    If your application uses the Mini Program video playback feature and requires 64-bit CPU architecture support, add the following property under the application node in the AndroidManifest.xml file of the main project:

    android:allowNativeHeapPointerTagging="false"
  4. Regression testing.

    Ensure the devices used for full regression testing include devices running Android 11 or later.

    If you use any of the following components, pay close attention to their behavior during regression testing:

    Component

    Items to validate

    H5 Container

    Offline package downloads and updates work correctly.

    Mobile Analysis

    All types of monitoring logs are written to local storage and reported correctly.

    Mini Program

    Mini Program package downloads and updates work correctly.

    The Take Photo API works correctly.

    The video playback and recording APIs work correctly.

    The Map API works correctly.

    OCR

    The detection feature works correctly.

    Location

    The location feature works correctly.

    Share

    Sharing to all platforms works correctly.

    Device ID

    The device ID feature works correctly.