Last active
December 16, 2019 08:56
-
-
Save apksherlock/05c0e0b515da8ba01869cc2fa2608a27 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | |
| plugins { | |
| id("com.android.application") | |
| kotlin("android") | |
| kotlin("android.extensions") | |
| } | |
| android { | |
| compileSdkVersion(29) | |
| defaultConfig { | |
| applicationId = "com.sxhardha.someappName" | |
| minSdkVersion(24) | |
| targetSdkVersion(29) | |
| versionCode = 1 | |
| versionName = "1.0" | |
| testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | |
| } | |
| buildTypes { | |
| getByName("release") { | |
| isMinifyEnabled = true | |
| proguardFiles( | |
| getDefaultProguardFile("proguard-android-optimize.txt"), | |
| "proguard-rules.pro" | |
| ) | |
| } | |
| } | |
| compileOptions { | |
| sourceCompatibility = JavaVersion.VERSION_1_8 | |
| targetCompatibility = JavaVersion.VERSION_1_8 | |
| } | |
| tasks { | |
| withType<KotlinCompile> { | |
| kotlinOptions.jvmTarget = "1.8" | |
| } | |
| } | |
| } | |
| dependencies { | |
| val navigationVersion = "2.1.0" | |
| val lifecycleVersion = "2.1.0" | |
| val fragmentVersion = "1.2.0-rc03" | |
| val espressoVersion = "3.2.0" | |
| implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | |
| implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${rootProject.extra.get("kotlinVersion")}") | |
| implementation("androidx.appcompat:appcompat:1.1.0") | |
| implementation("androidx.core:core-ktx:1.1.0") | |
| implementation("androidx.legacy:legacy-support-v4:1.0.0") | |
| implementation("com.google.android.material:material:1.0.0") | |
| implementation("androidx.constraintlayout:constraintlayout:1.1.3") | |
| implementation("androidx.navigation:navigation-fragment:$navigationVersion") | |
| implementation("androidx.navigation:navigation-ui:$navigationVersion") | |
| implementation("androidx.lifecycle:lifecycle-extensions:$lifecycleVersion") | |
| implementation("androidx.navigation:navigation-fragment-ktx:$navigationVersion") | |
| implementation("androidx.navigation:navigation-ui-ktx:$lifecycleVersion") | |
| implementation("com.google.android.material:material:1.2.0-alpha02") | |
| implementation("androidx.fragment:fragment:$fragmentVersion") | |
| implementation("androidx.fragment:fragment-ktx:$fragmentVersion") | |
| //test | |
| testImplementation("junit:junit:4.12") | |
| //android tests | |
| androidTestImplementation("androidx.test.espresso:espresso-core:$espressoVersion") | |
| androidTestImplementation("androidx.test.espresso:espresso-contrib:$espressoVersion") | |
| androidTestImplementation("androidx.test.espresso:espresso-intents:$espressoVersion") | |
| androidTestImplementation("androidx.test.espresso:espresso-accessibility:$espressoVersion") | |
| androidTestImplementation("androidx.test.espresso:espresso-web:$espressoVersion") | |
| androidTestImplementation("androidx.test.espresso.idling:idling-concurrent:$espressoVersion") | |
| androidTestImplementation("androidx.test:runner:1.2.0") | |
| androidTestImplementation("androidx.test:rules:1.2.0") | |
| androidTestImplementation("androidx.test.ext:junit:1.1.1") | |
| androidTestImplementation("org.mockito:mockito-android:2.24.5") | |
| debugImplementation("com.squareup.leakcanary:leakcanary-android:2.0") | |
| debugImplementation("androidx.fragment:fragment-testing:$fragmentVersion") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment