Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
[Build] Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
gargakshit committed Jun 29, 2020
1 parent 586f5c0 commit 2064325
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
37 changes: 19 additions & 18 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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

Expand All @@ -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']
Expand All @@ -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 {
Expand Down
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 2064325

Please sign in to comment.