android: set android:enableOnBackInvokedCallback="true"

This commit is contained in:
Harsh Shandilya 2022-08-06 01:30:25 +05:30
parent d8332d6b90
commit fe41c885e4
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 12 additions and 11 deletions

View file

@ -5,6 +5,7 @@
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<application <application
android:name=".ClawApplication" android:name=".ClawApplication"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher"

View file

@ -14,10 +14,10 @@ class AndroidCommonPlugin : Plugin<Project> {
override fun apply(project: Project) { override fun apply(project: Project) {
project.pluginManager.apply(AndroidCacheFixPlugin::class) project.pluginManager.apply(AndroidCacheFixPlugin::class)
project.extensions.findByType<TestedExtension>()?.run { project.extensions.findByType<TestedExtension>()?.run {
setCompileSdkVersion(32) setCompileSdkVersion(33)
defaultConfig { defaultConfig {
minSdk = 26 minSdk = 26
targetSdk = 32 targetSdk = 33
} }
sourceSets { sourceSets {