blob: 9219041cd2599f5c7827592c37a94d076a7b17f4 [file] [log] [blame]
def flutterPluginVersion = "managed"
apply plugin: "com.android.application"
android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace = "{{androidIdentifier}}.host"
}
compileSdk = {{compileSdkVersion}}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId = "{{androidIdentifier}}.host"
minSdk = {{minSdkVersion}}
targetSdk = {{targetSdkVersion}}
versionCode = 1
versionName = "1.0"
}
buildTypes {
profile {
initWith debug
}
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
}
}
}
buildDir = new File(rootProject.projectDir, "../build/host")
dependencies {
implementation(project(":flutter"))
implementation(fileTree(dir: "libs", include: ["*.jar"]))
implementation("androidx.appcompat:appcompat:1.0.2")
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
}