Skip to content

Commit

Permalink
Upgraded dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
prijindal committed Oct 15, 2023
1 parent c8df1ba commit 9ca68c8
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 126 deletions.
10 changes: 3 additions & 7 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ 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'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
Expand All @@ -35,6 +30,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
namespace "com.prijindal.habbit_tracker"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

Expand Down Expand Up @@ -65,7 +61,7 @@ android {
if ( item.contains("assembleRelease") || item.contains("bundleRelease")) {
value = 1;
}
def code = Integer.parseInt(versionProps['VERSION_CODE'] ?: "0" ).intValue() + value
def code = Integer.parseInt(versionProps['VERSION_CODE'] ?: "1" ).intValue() + value
for (String item : runTasks)
if ( item.contains("assembleRelease") || item.contains("bundleRelease")) {
versionProps['VERSION_CODE']=code.toString()
Expand All @@ -80,7 +76,7 @@ android {
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode code
versionName flutterVersionName
versionName flutterVersionName + "." + code.toString()
}

signingConfigs {
Expand Down
Loading

0 comments on commit 9ca68c8

Please sign in to comment.