diff --git a/app/build.gradle b/app/build.gradle index b7960ee..e37e6c9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -22,14 +22,14 @@ android { storePassword keystoreProperties['storePassword'] } } - compileSdk 31 + compileSdk 33 defaultConfig { applicationId "com.xtreak.notificationdictionary" minSdk 24 targetSdk 33 - versionCode 19 - versionName "0.0.19" + versionCode 20 + versionName "0.0.20" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 49c6b78..3a26e97 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,6 +3,7 @@ package="com.xtreak.notificationdictionary"> + = 33 && !notificationManager.areNotificationsEnabled()) { + ActivityCompat.requestPermissions( + this, + arrayOf(Manifest.permission.POST_NOTIFICATIONS), + NOTIFICATION_REQUEST_CODE + ) + } + } + fun sendMessage(view: View) { val wordEdit = findViewById(R.id.wordInput)