|
| 1 | +def localProperties = new Properties() |
| 2 | +def localPropertiesFile = rootProject.file('local.properties') |
| 3 | +if (localPropertiesFile.exists()) { |
| 4 | + localPropertiesFile.withReader('UTF-8') { reader -> |
| 5 | + localProperties.load(reader) |
| 6 | + } |
| 7 | +} |
| 8 | + |
| 9 | +def flutterRoot = localProperties.getProperty('flutter.sdk') |
| 10 | +if (flutterRoot == null) { |
| 11 | + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") |
| 12 | +} |
| 13 | + |
| 14 | +apply plugin: 'com.android.application' |
| 15 | +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" |
| 16 | + |
| 17 | +android { |
| 18 | + compileSdkVersion 27 |
| 19 | + |
| 20 | + lintOptions { |
| 21 | + disable 'InvalidPackage' |
| 22 | + } |
| 23 | + |
| 24 | + defaultConfig { |
| 25 | + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). |
| 26 | + applicationId "com.breez.client" |
| 27 | + minSdkVersion 23 |
| 28 | + targetSdkVersion 27 |
| 29 | + multiDexEnabled true |
| 30 | + versionCode 1 |
| 31 | + versionName "1.0" |
| 32 | + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| 33 | + } |
| 34 | + |
| 35 | + buildTypes { |
| 36 | + release { |
| 37 | + // TODO: Add your own signing config for the release build. |
| 38 | + // Signing with the debug keys for now, so `flutter run --release` works. |
| 39 | + signingConfig signingConfigs.debug |
| 40 | + } |
| 41 | + } |
| 42 | + |
| 43 | + flavorDimensions "breez" |
| 44 | + productFlavors { |
| 45 | + pos { |
| 46 | + dimension "breez" |
| 47 | + applicationIdSuffix ".pos" |
| 48 | + versionNameSuffix "-pos" |
| 49 | + resValue "string", "app_name", "Breez POS" |
| 50 | + } |
| 51 | + client { |
| 52 | + dimension "breez" |
| 53 | + resValue "string", "app_name", "Breez" |
| 54 | + } |
| 55 | + } |
| 56 | +} |
| 57 | + |
| 58 | +flutter { |
| 59 | + source '../..' |
| 60 | +} |
| 61 | + |
| 62 | +dependencies { |
| 63 | + testImplementation 'junit:junit:4.12' |
| 64 | + androidTestImplementation 'com.android.support.test:runner:1.0.1' |
| 65 | + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' |
| 66 | + compile(name:'breez', ext:'aar') |
| 67 | + implementation 'com.theartofdev.edmodo:android-image-cropper:2.5.+' |
| 68 | + implementation 'com.android.support:support-v4:27.1.1' |
| 69 | + implementation 'com.android.support:appcompat-v7:27.1.1' |
| 70 | + implementation 'com.google.firebase:firebase-invites:16.0.4' |
| 71 | + compile 'com.felipecsl:gifimageview:2.1.0' |
| 72 | + compile 'commons-io:commons-io:2.4' |
| 73 | +} |
| 74 | +apply plugin: 'com.google.gms.google-services' |
0 commit comments