diff --git a/.metadata b/.metadata index e69514c706..00c95def60 100644 --- a/.metadata +++ b/.metadata @@ -4,8 +4,8 @@ # This file should be version controlled. version: - revision: 328545e5afcd2e4fb7c665af6b63627a6318aade - channel: master + revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + channel: main project_type: app @@ -13,14 +13,26 @@ project_type: app migration: platforms: - platform: root - create_revision: 328545e5afcd2e4fb7c665af6b63627a6318aade - base_revision: 328545e5afcd2e4fb7c665af6b63627a6318aade + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 - platform: android - create_revision: 328545e5afcd2e4fb7c665af6b63627a6318aade - base_revision: 328545e5afcd2e4fb7c665af6b63627a6318aade + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + - platform: ios + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + - platform: linux + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + - platform: macos + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + - platform: web + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 - platform: windows - create_revision: 2aa348b9407e96ffe4eca8e8f213c7984afad3f7 - base_revision: 2aa348b9407e96ffe4eca8e8f213c7984afad3f7 + create_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 + base_revision: f6b9c4da23f88394ae33a1915da47274a2d705d7 # User provided section diff --git a/android/app/build.gradle b/android/app/build.gradle index 717b6dcaed..61dc98adee 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,14 +22,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -// START: FlutterFire Configuration -apply plugin: 'com.google.gms.google-services' -apply plugin: 'com.google.firebase.firebase-perf' -apply plugin: 'com.google.firebase.crashlytics' -// END: FlutterFire Configuration -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') @@ -37,6 +30,7 @@ if (keystorePropertiesFile.exists()) { } android { + namespace "io.flutter.demo.gallery" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion @@ -68,11 +62,11 @@ android { storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null storePassword keystoreProperties['storePassword'] } - } + buildTypes { release { - // Uncomment to run flutter run --release locally + // Uncomment to run flutter build apk or flutter run --release locally // signingConfig signingConfigs.debug signingConfig signingConfigs.release diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index 3a750e76e2..399f6981d5 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,4 @@ - +