iosWebViewFix/example/android/app/build.gradle

73 lines
2.2 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 {
namespace 'com.pichillilorenzo.flutterwebviewexample'
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
compileSdkVersion 34
2018-09-14 00:21:51 +00:00
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"
minSdkVersion 19
targetSdkVersion 34
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
}
}
namespace 'com.pichillilorenzo.flutterwebviewexample'
lint {
disable 'InvalidPackage'
}
2018-09-14 00:21:51 +00:00
}
flutter {
source '../..'
}
dependencies {
testImplementation 'junit:junit:4.13'
2022-04-21 10:20:48 +00:00
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
2022-10-04 10:35:50 +00:00
implementation 'com.google.android.material:material:1.6.1'
implementation 'com.android.support:multidex:1.0.3'
2018-09-14 00:21:51 +00:00
}