Skip to content

Commit 9c25a9b

Browse files
committed
fix
1 parent 672b45c commit 9c25a9b

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

app/build.gradle

+7-13
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44

55
android {
6-
compileSdkVersion 29
7-
buildToolsVersion "29.0.3"
6+
compileSdkVersion 31
7+
buildToolsVersion "31.0.0"
88

99
defaultConfig {
1010
applicationId "com.hoc081098.stateflowsample"
1111
minSdkVersion 23
12-
targetSdkVersion 29
12+
targetSdkVersion 31
1313
versionCode 1
1414
versionName "1.0"
1515

@@ -23,20 +23,14 @@ android {
2323
}
2424
}
2525

26-
// To inline the bytecode built with JVM target 1.8 into
27-
// bytecode that is being built with JVM target 1.6. (e.g. navArgs)
28-
29-
3026
compileOptions {
31-
sourceCompatibility JavaVersion.VERSION_1_8
32-
targetCompatibility JavaVersion.VERSION_1_8
27+
sourceCompatibility JavaVersion.VERSION_11
28+
targetCompatibility JavaVersion.VERSION_11
3329
}
3430
kotlinOptions {
35-
jvmTarget = "1.8"
36-
}
37-
viewBinding {
38-
enabled = true
31+
jvmTarget = JavaVersion.VERSION_11.toString()
3932
}
33+
buildFeatures { viewBinding true }
4034
}
4135

4236
dependencies {

app/src/main/AndroidManifest.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
<activity
1313
android:name=".MainActivity"
1414
android:label="@string/app_name"
15-
android:theme="@style/AppTheme">
15+
android:theme="@style/AppTheme"
16+
android:exported="true">
1617
<intent-filter>
1718
<action android:name="android.intent.action.MAIN" />
1819

0 commit comments

Comments
 (0)