diff --git a/app/build.gradle b/app/build.gradle index d3367d4..67d5639 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ android { defaultConfig { applicationId "com.simplemobiletools.flashlight" - minSdkVersion 16 + minSdkVersion 21 targetSdkVersion 28 versionCode 31 versionName "4.2.0" @@ -41,7 +41,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:4.9.1' + implementation 'com.simplemobiletools:commons:5.0.14' implementation 'com.squareup:otto:1.3.8' implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2' } diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt index e07198c..da6de8d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/helpers/MarshmallowCamera.kt @@ -8,7 +8,6 @@ import android.os.Handler import com.simplemobiletools.flashlight.models.Events import com.squareup.otto.Bus -@TargetApi(Build.VERSION_CODES.LOLLIPOP) internal class MarshmallowCamera constructor(val context: Context) { private val manager = context.getSystemService(Context.CAMERA_SERVICE) as CameraManager diff --git a/build.gradle b/build.gradle index 452dc35..0b0dbc0 100644 --- a/build.gradle +++ b/build.gradle @@ -4,12 +4,12 @@ buildscript { ext.kotlin_version = '1.2.71' repositories { - jcenter() google() + jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:3.2.0' + classpath 'com.android.tools.build:gradle:3.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong @@ -19,8 +19,8 @@ buildscript { allprojects { repositories { - jcenter() google() + jcenter() maven { url "https://jitpack.io" } } }