Skip to content

Commit

Permalink
chore: 안드로이드 build.gradle 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nain93 committed Aug 17, 2023
1 parent d4e6974 commit 2c3fd78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
16 changes: 4 additions & 12 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,23 @@ if (localPropertiesFile.exists()) {
}
}

def flutterProperties = new Properties()
def flutterPropertiesFile = rootProject.file('flutter.properties')
if (flutterPropertiesFile.exists()) {
flutterPropertiesFile.withReader('UTF-8') { reader ->
flutterProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new FileNotFoundException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = flutterProperties.getProperty('flutter.versionCode')
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = flutterProperties.getProperty('flutter.versionName')
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

def flutterMinSdkVersion = flutterProperties.getProperty('flutter.minSdkVersion')
def flutterTargetSdkVersion = flutterProperties.getProperty('flutter.targetSdkVersion')
def flutterMinSdkVersion = localProperties.getProperty('flutter.minSdkVersion')
def flutterTargetSdkVersion = localProperties.getProperty('flutter.targetSdkVersion')

apply plugin: 'com.android.application'
// START: FlutterFire Configuration
Expand Down
4 changes: 0 additions & 4 deletions android/flutter.properties

This file was deleted.

0 comments on commit 2c3fd78

Please sign in to comment.