Enforce mainline modules to have latest target sdk version by default.
Due to GMS target SDK requirements (https://docs.partner.android.com/gms/policies/preview/mba#min-target-sdk) we need to ensure all the mainline packages to target latest API level. Currently, the team chases each module to bump their target API level. Updating the build code to make sure that mainline modules (i.e updatable modules) target the latest sdk version by default. It would be by default set to 10000 before SDK finalization and updated to the new API level after finalization. Effectively it would mean: 1. '10000' in aosp and internal master 2. Finalized number in development branches like "33" in "tm-dev" 3. As sdk hasn't been finalised in "udc-dev", it would be "10000" which would be automatically updated to finalized version after sdk finalization. For local development if the target sdk version is required to be set, users would need to set Updatable flag to false. Enforce_default_target_sdk_version flag needs to be used in bp file, if this feature needs to be tested locally when updatable: false. Bug: b/227460469 Test: m nothing Change-Id: I05e0ae74ae44fd73df75e91b926bcc924446253f
Loading
Please register or sign in to comment