Skip to content

Commit 505839c

Browse files
committed
enable viewbinding
update compile sdk to 34 update kotlin version to 1.9.0
1 parent ebb4bf6 commit 505839c

4 files changed

Lines changed: 25 additions & 10 deletions

File tree

app/build.gradle

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
43

54
def keystorePropertiesFile = rootProject.file("keystore.properties")
65
def keystoreProperties = new Properties()
@@ -9,12 +8,13 @@ if (keystorePropertiesFile.exists()) {
98
}
109

1110
android {
12-
compileSdkVersion 33
11+
namespace "com.simplemobiletools.filemanager.pro"
12+
compileSdk 34
1313

1414
defaultConfig {
1515
applicationId "com.simplemobiletools.filemanager.pro"
16-
minSdkVersion 23
17-
targetSdkVersion 33
16+
minSdk 23
17+
targetSdk 34
1818
versionCode 135
1919
versionName "6.16.0"
2020
multiDexEnabled true
@@ -33,6 +33,11 @@ android {
3333
}
3434
}
3535

36+
buildFeatures {
37+
buildConfig true
38+
viewBinding true
39+
}
40+
3641
buildTypes {
3742
debug {
3843
applicationIdSuffix ".debug"
@@ -46,7 +51,16 @@ android {
4651
}
4752
}
4853

49-
flavorDimensions "variants"
54+
compileOptions {
55+
sourceCompatibility JavaVersion.VERSION_17
56+
targetCompatibility JavaVersion.VERSION_17
57+
}
58+
59+
kotlinOptions {
60+
jvmTarget = '17'
61+
}
62+
63+
flavorDimensions = ["variants"]
5064
productFlavors {
5165
core {}
5266
fdroid {}
@@ -64,7 +78,7 @@ android {
6478
}
6579

6680
dependencies {
67-
implementation 'com.github.SimpleMobileTools:Simple-Commons:ae8713396b'
81+
implementation 'com.github.fatihergin:Simple-Commons:fe7a01274a' // TODO: do not replace it with SimpleMobileTools
6882
implementation 'com.github.tibbi:AndroidPdfViewer:e6a533125b'
6983
implementation 'com.github.Stericson:RootTools:df729dcb13'
7084
implementation 'com.github.Stericson:RootShell:1.6'

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.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

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
android.enableJetifier=true
13+
android.nonTransitiveRClass=false
1314
android.useAndroidX=true
14-
org.gradle.jvmargs=-Xmx1536m
15+
org.gradle.jvmargs=-Xmx4g
1516

1617
# When configured, Gradle will run in incubating parallel mode.
1718
# This option should only be used with decoupled projects. More details, visit

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=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

0 commit comments

Comments
 (0)