plugins { id "com.android.application" id "kotlin-android" } android { compileSdkVersion 30 buildToolsVersion "30.0.3" defaultConfig { applicationId "rs.tts" minSdkVersion 21 targetSdkVersion 30 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation "androidx.core:core-ktx:1.2.0" implementation "com.google.android.material:material:1.1.0" implementation "androidx.constraintlayout:constraintlayout:1.1.3" } apply plugin: "com.github.willir.rust.cargo-ndk-android" cargoNdk { module = "." } project.afterEvaluate { android.applicationVariants.all { variant -> task "run${variant.name.capitalize()}"(type: Exec, dependsOn: "install${variant.name.capitalize()}", group: "run") { commandLine = ["adb", "shell", "monkey", "-p", variant.applicationId + " 1"] doLast { println "Launching ${variant.applicationId}" } } } }