@@ -4,37 +4,22 @@ plugins {
44 // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
55 id " dev.flutter.flutter-gradle-plugin"
66}
7-
8- def localProperties = new Properties ()
9- def localPropertiesFile = rootProject. file(" local.properties" )
10- if (localPropertiesFile. exists()) {
11- localPropertiesFile. withReader(" UTF-8" ) { reader ->
12- localProperties. load(reader)
13- }
14- }
15-
16- def flutterVersionCode = localProperties. getProperty(" flutter.versionCode" )
17- if (flutterVersionCode == null ) {
18- flutterVersionCode = " 1"
19- }
20-
21- def flutterVersionName = localProperties. getProperty(" flutter.versionName" )
22- if (flutterVersionName == null ) {
23- flutterVersionName = " 1.0"
24- }
25-
26-
277// TODO: Change the appName, it will be used as app label
28- def appName = " Flutter Template"
8+ def appName = " Monstarlab Flutter Template"
299
3010// TODO: Change the applicationId for production
3111// On staging it will add .staging and on development it will add .development as suffix.
32- def applicationId = " com.example.flutter_template"
12+ def applicationId = " com.monstarlab.flutter"
13+
14+ ext {
15+ androidMinSdkVersion = 21
16+ androidCompileAndTargetSdkVersion = 34
17+ }
3318
3419
3520android {
3621 namespace = " $applicationId "
37- compileSdk = flutter . compileSdkVersion
22+ compileSdk = androidCompileAndTargetSdkVersion
3823 ndkVersion = flutter. ndkVersion
3924
4025 compileOptions {
@@ -49,11 +34,11 @@ android {
4934 defaultConfig {
5035 applicationId = " $applicationId "
5136 // You can update the following values to match your application needs.
52- // For more information, see: https://docs. flutter.dev/deployment/android#reviewing-the- gradle-build-configuration .
53- minSdk = flutter . minSdkVersion
54- targetSdk = flutter . targetSdkVersion
55- versionCode = flutterVersionCode . toInteger()
56- versionName = flutterVersionName
37+ // For more information, see: https://flutter.dev/to/review- gradle-config .
38+ minSdk = androidMinSdkVersion
39+ targetSdk = androidCompileAndTargetSdkVersion
40+ versionCode = flutter . versionCode
41+ versionName = flutter . versionName
5742 }
5843
5944 buildTypes {
0 commit comments