From 0f03690ec78efbfc04fe4cada5807ab05ab1dd8c Mon Sep 17 00:00:00 2001 From: Specoolazius Date: Mon, 4 Oct 2021 14:51:08 +0200 Subject: [PATCH] basic project --- android/.gitignore | 2 ++ android/app/build.gradle | 11 ++++++++++- android/app/src/debug/AndroidManifest.xml | 2 +- android/app/src/main/AndroidManifest.xml | 4 ++-- .../kotlin/com/example/flutter_noise/MainActivity.kt | 6 ------ android/app/src/profile/AndroidManifest.xml | 2 +- android/build.gradle | 4 ++-- test/widget_test.dart | 2 +- 8 files changed, 19 insertions(+), 14 deletions(-) delete mode 100644 android/app/src/main/kotlin/com/example/flutter_noise/MainActivity.kt diff --git a/android/.gitignore b/android/.gitignore index 0a741cb..6f56801 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app key.properties +**/*.keystore +**/*.jks diff --git a/android/app/build.gradle b/android/app/build.gradle index 8a1f9de..cfb606d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -28,13 +28,22 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { compileSdkVersion 30 + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.flutter_noise" + applicationId "com.example.noise" minSdkVersion 16 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index 593d116..4c358aa 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,5 @@ + package="com.example.noise"> diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 460ad5d..a83efcf 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + package="com.example.noise"> + package="com.example.noise"> diff --git a/android/build.gradle b/android/build.gradle index 9b6ed06..ed45c65 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ buildscript { ext.kotlin_version = '1.3.50' repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -14,7 +14,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } } diff --git a/test/widget_test.dart b/test/widget_test.dart index 6bc8bba..7087101 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -13,7 +13,7 @@ import 'package:flutter_noise/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(MyApp()); + // await tester.pumpWidget(MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget);