iosWebViewFix/android/build.gradle

66 lines
1.6 KiB
Groovy
Raw Normal View History

2018-09-14 00:21:51 +00:00
group 'com.pichillilorenzo.flutter_inappbrowser'
version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
2018-09-14 00:21:51 +00:00
}
}
rootProject.allprojects {
repositories {
google()
jcenter()
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 29
2018-09-14 00:21:51 +00:00
defaultConfig {
2018-09-19 02:10:00 +00:00
minSdkVersion 17
2019-03-11 07:14:26 +00:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2018-09-19 02:10:00 +00:00
vectorDrawables.useSupportLibrary = true
2018-09-14 00:21:51 +00:00
}
lintOptions {
disable 'InvalidPackage'
}
dependencies {
implementation 'androidx.webkit:webkit:1.0.0'
implementation 'androidx.browser:browser:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.squareup.okhttp3:mockwebserver:3.11.0'
}
2018-09-14 00:21:51 +00:00
}
afterEvaluate {
def containsEmbeddingDependencies = false
for (def configuration : configurations.all) {
for (def dependency : configuration.dependencies) {
if (dependency.group == 'io.flutter' &&
dependency.name.startsWith('flutter_embedding') &&
dependency.isTransitive())
{
containsEmbeddingDependencies = true
break
}
}
}
if (!containsEmbeddingDependencies) {
android {
dependencies {
def lifecycle_version = "1.1.1"
compileOnly "android.arch.lifecycle:common-java8:$lifecycle_version"
compileOnly "android.arch.lifecycle:runtime:$lifecycle_version"
}
}
}
}