File tree Expand file tree Collapse file tree 9 files changed +27
-14
lines changed
src/main/kotlin/com/simplemobiletools/flashlight/activities Expand file tree Collapse file tree 9 files changed +27
-14
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,13 @@ if (keystorePropertiesFile.exists()) {
88}
99
1010android {
11- compileSdkVersion 33
11+ namespace " com.simplemobiletools.flashlight"
12+ compileSdk 34
1213
1314 defaultConfig {
1415 applicationId " com.simplemobiletools.flashlight"
15- minSdkVersion 23
16- targetSdkVersion 33
16+ minSdk 23
17+ targetSdk 34
1718 versionCode 64
1819 versionName " 5.9.2"
1920 setProperty(" archivesBaseName" , " flashlight" )
@@ -48,7 +49,16 @@ android {
4849 }
4950 }
5051
51- flavorDimensions " variants"
52+ compileOptions {
53+ sourceCompatibility JavaVersion . VERSION_17
54+ targetCompatibility JavaVersion . VERSION_17
55+ }
56+
57+ kotlinOptions {
58+ jvmTarget = ' 17'
59+ }
60+
61+ flavorDimensions = [" variants" ]
5262 productFlavors {
5363 core {}
5464 fdroid {}
@@ -66,7 +76,7 @@ android {
6676}
6777
6878dependencies {
69- implementation ' com.github.SimpleMobileTools:Simple-Commons:fa61be64d8 '
79+ implementation ' com.github.SimpleMobileTools:Simple-Commons:7c1e5b5777 '
7080 implementation ' org.greenrobot:eventbus:3.3.1'
7181 implementation ' androidx.constraintlayout:constraintlayout:2.1.4'
7282}
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ import android.view.WindowManager
77import com.simplemobiletools.commons.dialogs.ColorPickerDialog
88import com.simplemobiletools.commons.extensions.applyColorFilter
99import com.simplemobiletools.commons.extensions.getContrastColor
10+ import com.simplemobiletools.commons.extensions.viewBinding
1011import com.simplemobiletools.flashlight.databinding.ActivityBrightDisplayBinding
1112import com.simplemobiletools.flashlight.extensions.config
1213
1314class BrightDisplayActivity : SimpleActivity () {
14- private val binding by lazy( LazyThreadSafetyMode . NONE ) { ActivityBrightDisplayBinding . inflate(layoutInflater) }
15+ private val binding by viewBinding( ActivityBrightDisplayBinding :: inflate)
1516
1617 override fun onCreate (savedInstanceState : Bundle ? ) {
1718 window.addFlags(
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class MainActivity : SimpleActivity() {
3535 private const val STROBOSCOPE_STATE = " stroboscope_state"
3636 }
3737
38- private val binding by lazy( LazyThreadSafetyMode . NONE ) { ActivityMainBinding . inflate(layoutInflater) }
38+ private val binding by viewBinding( ActivityMainBinding :: inflate)
3939
4040 private var mBus: EventBus ? = null
4141 private var mCameraImpl: MyCameraImpl ? = null
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import java.util.Locale
1212import kotlin.system.exitProcess
1313
1414class SettingsActivity : SimpleActivity () {
15- private val binding by lazy( LazyThreadSafetyMode . NONE ) { ActivitySettingsBinding . inflate(layoutInflater) }
15+ private val binding by viewBinding( ActivitySettingsBinding :: inflate)
1616
1717 override fun onCreate (savedInstanceState : Bundle ? ) {
1818 isMaterialActivity = true
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import com.simplemobiletools.flashlight.extensions.config
1717import com.simplemobiletools.flashlight.helpers.MyWidgetBrightDisplayProvider
1818
1919class WidgetBrightDisplayConfigureActivity : SimpleActivity () {
20- private val binding by lazy( LazyThreadSafetyMode . NONE ) { WidgetBrightDisplayConfigBinding . inflate(layoutInflater) }
20+ private val binding by viewBinding( WidgetBrightDisplayConfigBinding :: inflate)
2121
2222 private var mWidgetAlpha = 0f
2323 private var mWidgetId = 0
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import com.simplemobiletools.flashlight.extensions.updateBrightDisplayWidget
1818import com.simplemobiletools.flashlight.helpers.MyWidgetTorchProvider
1919
2020class WidgetTorchConfigureActivity : SimpleActivity () {
21- private val binding by lazy( LazyThreadSafetyMode . NONE ) { WidgetTorchConfigBinding . inflate(layoutInflater) }
21+ private val binding by viewBinding( WidgetTorchConfigBinding :: inflate)
2222
2323 private var mWidgetAlpha = 0f
2424 private var mWidgetId = 0
Original file line number Diff line number Diff line change 11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
33buildscript {
4- ext. kotlin_version = ' 1.7.10 '
4+ ext. kotlin_version = ' 1.9.0 '
55
66 repositories {
77 google()
88 mavenCentral()
99 }
1010
1111 dependencies {
12- classpath ' com.android.tools.build:gradle:7.3.1 '
12+ classpath ' com.android.tools.build:gradle:8.1.0 '
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1414
1515 // NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 11android.enableJetifier =true
2- android.useAndroidX =true
2+ android.useAndroidX =true
3+ android.nonTransitiveRClass =false
4+ org.gradle.jvmargs =-Xmx4g
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-7.4 -bin.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.2.1 -bin.zip
You can’t perform that action at this time.
0 commit comments