Skip to content

Commit 31db275

Browse files
committed
Switch to Java for Android
1 parent af93ff1 commit 31db275

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

android/app/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ android {
3838
targetCompatibility JavaVersion.VERSION_1_8
3939
}
4040

41-
kotlinOptions {
42-
jvmTarget = '1.8'
43-
}
44-
45-
sourceSets {
46-
main.java.srcDirs += 'src/main/kotlin'
47-
}
48-
4941
defaultConfig {
5042
applicationId "com.anaurelian.helloworldcounters"
5143
// You can update the following values to match your application needs.
@@ -75,5 +67,3 @@ android {
7567
flutter {
7668
source '../..'
7769
}
78-
79-
dependencies {}

android/app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
32

43
<application
54
android:label="Hello World Counters"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.anaurelian.helloworldcounters;
2+
3+
import io.flutter.embedding.android.FlutterActivity;
4+
5+
public class MainActivity extends FlutterActivity {
6+
}

android/app/src/main/kotlin/com/anaurelian/helloworldcounters/MainActivity.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pluginManagement {
2020
plugins {
2121
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
2222
id "com.android.application" version "7.3.0" apply false
23-
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
23+
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
2424
}
2525

2626
include ":app"

0 commit comments

Comments
 (0)