Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozRatej committed Feb 1, 2023
1 parent 4d2e59a commit 92cec25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ 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')
def flutterVersionCode = '1'
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
def flutterVersionName = '1.0.0'
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
Expand Down Expand Up @@ -55,8 +55,8 @@ android {
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 19
targetSdkVersion flutter.targetSdkVersion
versionCode 1
versionName '1.0.0'
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

signingConfigs {
Expand Down

0 comments on commit 92cec25

Please sign in to comment.