diff --git a/android/app/build.gradle b/android/app/build.gradle index a30d8a3..3faa9fd 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -22,12 +22,6 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } - def keystoreProperties = new Properties() - def keystorePropertiesFile = rootProject.file('key.properties') - if (keystorePropertiesFile.exists()) { - keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) - } - android { namespace "com.example.my_app" compileSdkVersion flutter.compileSdkVersion @@ -58,19 +52,13 @@ android { versionName flutterVersionName } - signingConfigs { - release { - keyAlias keystoreProperties['keyAlias'] - keyPassword keystoreProperties['keyPassword'] - storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null - storePassword keystoreProperties['storePassword'] - } - } - buildTypes { - release { - signingConfig signingConfigs.release - } - } + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } } diff --git a/android/gradle.properties b/android/gradle.properties index 94adc3a..a07ceb8 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,3 +1,4 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true +org.gradle.java.home=D:/JDK-19 \ No newline at end of file