[TIMOB-28472] Android: Target API Level 31 (Android 12) by default
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-09-03T09:20:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.1.0 |
Components | Android |
Labels | android, build, target |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-06-05T01:05:27.000+0000 |
Updated | 2021-09-03T09:20:30.000+0000 |
Description
*Summary:*
When building a Titanium app for Android, Titanium should target API Level 31 (aka: Android 12) by default.
Titanium currently targets API Level 30 (aka: Android 11).
*Note:*
Titanium currently does not target API Level 31 by default. This is a safety precaution until Titanium addresses all of Android 12's breaking changes. But a developer can opt-in to targeting the newest API Level (at their own risk) by adding the following to their "tiapp.xml" file.
<ti:app>
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="31"/>
</manifest>
</android>
</ti:app>
PR (titanium_mobile): https://github.com/appcelerator/titanium_mobile/pull/13052