Skip to content

Commit 21dfb09

Browse files
committed
updating commons, gradle, kotlin, sdk to 29
1 parent 8aa787f commit 21dfb09

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ if (keystorePropertiesFile.exists()) {
99
}
1010

1111
android {
12-
compileSdkVersion 28
13-
buildToolsVersion "28.0.3"
12+
compileSdkVersion 29
13+
buildToolsVersion "29.0.2"
1414

1515
defaultConfig {
1616
applicationId "com.simplemobiletools.flashlight"
1717
minSdkVersion 21
18-
targetSdkVersion 28
18+
targetSdkVersion 29
1919
versionCode 35
2020
versionName "5.0.3"
2121
setProperty("archivesBaseName", "flashlight")
@@ -56,7 +56,7 @@ android {
5656
}
5757

5858
dependencies {
59-
implementation 'com.simplemobiletools:commons:5.17.17'
59+
implementation 'com.simplemobiletools:commons:5.21.13'
6060
implementation 'com.squareup:otto:1.3.8'
6161
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
6262
}

app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MyWidgetProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class MyWidgetProvider : AppWidgetProvider() {
5353

5454
private fun toggleFlashlight(context: Context, intent: Intent) {
5555
if (intent.extras?.containsKey(IS_ENABLED) == true) {
56-
val enable = intent.extras.getBoolean(IS_ENABLED)
56+
val enable = intent.extras!!.getBoolean(IS_ENABLED)
5757
val widgetBgColor = context.config.widgetBgColor
5858
val alpha = Color.alpha(widgetBgColor)
5959
val selectedColor = if (enable) widgetBgColor else Color.WHITE

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.3.50'
4+
ext.kotlin_version = '1.3.61'
55

66
repositories {
77
google()
88
jcenter()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.1'
12+
classpath 'com.android.tools.build:gradle:3.5.3'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

1515
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)