iosWebViewFix/example/android/app/build.gradle

70 lines
2.1 KiB
Groovy
Raw Normal View History

2018-09-14 00:21:51 +00:00
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
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'
}
apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
2020-06-21 22:07:12 +00:00
compileSdkVersion 30
2018-09-14 00:21:51 +00:00
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2019-11-29 15:59:18 +00:00
applicationId "com.pichillilorenzo.flutter_inappwebviewexample"
2018-09-19 02:10:00 +00:00
minSdkVersion 17
2020-06-21 22:07:12 +00:00
targetSdkVersion 30
2018-09-14 00:21:51 +00:00
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
2018-09-14 00:21:51 +00:00
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'com.android.support:multidex:1.0.3'
2018-09-14 00:21:51 +00:00
}