diff --git a/.gitignore b/.gitignore index 61b7ab0..d4c34b4 100644 --- a/.gitignore +++ b/.gitignore @@ -43,4 +43,4 @@ app.*.map.json # Exceptions to above rules. !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages -android/app/key.properties +**/key.properties diff --git a/android/app/build.gradle b/android/app/build.gradle index 8a55890..d2e4cd1 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -6,12 +6,6 @@ if (localPropertiesFile.exists()) { } } -def keystoreProperties = new Properties() - def keystorePropertiesFile = rootProject.file('key.properties') - if (keystorePropertiesFile.exists()) { - keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) - } - 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.") @@ -31,6 +25,12 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + android { compileSdkVersion 28 @@ -42,6 +42,14 @@ android { disable 'InvalidPackage' } + defaultConfig { + applicationId "garg.akshit.hackathons.Flunk" + minSdkVersion 16 + targetSdkVersion 28 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + signingConfigs { release { keyAlias keystoreProperties['keyAlias'] @@ -51,19 +59,12 @@ android { } } - defaultConfig { - applicationId "garg.akshit.hackathons.Flunk" - minSdkVersion 16 - targetSdkVersion 28 - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName - } + buildTypes { + release { + signingConfig signingConfigs.release + } + } - buildTypes { - release { - signingConfig signingConfigs.release - } - } } flutter { diff --git a/build.sh b/build.sh index 90986bb..4da1e83 100644 --- a/build.sh +++ b/build.sh @@ -1,3 +1,5 @@ echo "Building for android..." -flutter build apk --release --split-per-abi +flutter build apk --target-platform android-arm --split-per-abi +flutter build apk --target-platform android-x64 --split-per-abi +flutter build apk --target-platform android-arm64 --split-per-abi echo "Done" \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 897822b..5eefc07 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: Flunk -description: A new Flutter project. +description: Analyze you GitHub profile in a cyberpunk way publish_to: "none" version: 1.0.0+1