updating commons, gradle, kotlin, sdk to 29

This commit is contained in:
tibbi 2019-12-31 10:36:05 +01:00
parent 8aa787fba3
commit 21dfb0976d
3 changed files with 7 additions and 7 deletions

View File

@ -9,13 +9,13 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.simplemobiletools.flashlight"
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 29
versionCode 35
versionName "5.0.3"
setProperty("archivesBaseName", "flashlight")
@ -56,7 +56,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.17.17'
implementation 'com.simplemobiletools:commons:5.21.13'
implementation 'com.squareup:otto:1.3.8'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
}

View File

@ -53,7 +53,7 @@ class MyWidgetProvider : AppWidgetProvider() {
private fun toggleFlashlight(context: Context, intent: Intent) {
if (intent.extras?.containsKey(IS_ENABLED) == true) {
val enable = intent.extras.getBoolean(IS_ENABLED)
val enable = intent.extras!!.getBoolean(IS_ENABLED)
val widgetBgColor = context.config.widgetBgColor
val alpha = Color.alpha(widgetBgColor)
val selectedColor = if (enable) widgetBgColor else Color.WHITE

View File

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.50'
ext.kotlin_version = '1.3.61'
repositories {
google()
@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong