| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- plugins {
- id "com.android.application"
- id "kotlin-android"
- id "dev.flutter.flutter-gradle-plugin"
- }
- def localProperties = new Properties()
- def localPropertiesFile = rootProject.file('local.properties')
- if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
- }
- def keystoreProperties = new Properties()
- def keystorePropertiesFile = rootProject.file('key.properties')
- if (keystorePropertiesFile.exists()) {
- keystorePropertiesFile.withReader('UTF-8') { reader ->
- keystoreProperties.load(reader)
- }
- }
- def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
- if (flutterVersionCode == null) {
- flutterVersionCode = '1'
- }
- def flutterVersionName = localProperties.getProperty('flutter.versionName')
- if (flutterVersionName == null) {
- flutterVersionName = '1.0'
- }
- android {
- namespace "com.colormaprun.orienteering.app_business.app_business"
- compileSdkVersion flutter.compileSdkVersion
- // ndkVersion flutter.ndkVersion
- ndkVersion "25.1.8937393"
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- sourceSets {
- main.java.srcDirs += 'src/main/kotlin'
- }
- defaultConfig {
- applicationId "com.colormaprun.orienteering.app_business"
- minSdkVersion flutter.minSdkVersion
- targetSdkVersion flutter.targetSdkVersion
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- }
- buildFeatures {
- buildConfig = true
- }
- signingConfigs {
- release {
- keyAlias keystoreProperties['keyAlias']
- keyPassword keystoreProperties['keyPassword']
- storeFile file(keystoreProperties['storeFile'])
- storePassword keystoreProperties['storePassword']
- }
- }
- buildTypes {
- release {
- minifyEnabled true
- shrinkResources true
- signingConfig signingConfigs.release
- }
- }
- flavorDimensions = ["default"]
- productFlavors {
- dev {
- dimension "default"
- resValue "string", "app_name", "dev flavor example"
- applicationIdSuffix ".dev"
- }
- prod {
- dimension "default"
- resValue "string", "app_name", "product flavor example"
- }
- }
- }
- flutter {
- source '../..'
- }
- dependencies {}
|