Skip to content

Commit 1067055

Browse files
committed
kotlin gradle files
1 parent b99c229 commit 1067055

5 files changed

+48
-50
lines changed

app/build.gradle

-45
This file was deleted.

app/build.gradle.kts

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
plugins {
2+
id("com.android.application")
3+
kotlin("android")
4+
id("kotlin-parcelize")
5+
}
6+
7+
android {
8+
compileSdk = 30
9+
10+
defaultConfig {
11+
applicationId = "com.peterfarlow"
12+
minSdk = 28
13+
targetSdk = 30
14+
versionCode = 1
15+
versionName = "1.0"
16+
17+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
18+
}
19+
20+
buildTypes {
21+
getByName("release") {
22+
isMinifyEnabled = false
23+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
24+
}
25+
getByName("debug") {
26+
isMinifyEnabled = false
27+
}
28+
}
29+
compileOptions {
30+
sourceCompatibility(JavaVersion.VERSION_11)
31+
targetCompatibility(JavaVersion.VERSION_11)
32+
}
33+
kotlinOptions {
34+
jvmTarget = "11"
35+
}
36+
}
37+
38+
dependencies {
39+
implementation("androidx.core:core-ktx:1.6.0")
40+
implementation("androidx.appcompat:appcompat:1.3.1")
41+
implementation("com.google.android.material:material:1.4.0")
42+
testImplementation("junit:junit:4.13.2")
43+
androidTestImplementation("androidx.test.ext:junit:1.1.3")
44+
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")
45+
}

app/proguard-rules.pro

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Add project specific ProGuard rules here.
22
# You can control the set of applied configuration files using the
3-
# proguardFiles setting in build.gradle.
3+
# proguardFiles setting in build.gradle.kts.
44
#
55
# For more details, see
66
# http://developer.android.com/guide/developing/tools/proguard.html
@@ -18,4 +18,4 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile

build.gradle build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ buildscript {
99
}
1010
}
1111

12-
task clean(type: Delete) {
12+
tasks.register("clean", Delete::class) {
1313
delete(rootProject.buildDir)
1414
}

gradle.properties

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
1515
# Android operating system, and which are packaged with your app"s APK
1616
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1717
android.useAndroidX=true
18-
# Automatically convert third-party libraries to use AndroidX
19-
android.enableJetifier=true
2018
# Kotlin code style for this project: "official" or "obsolete":
2119
kotlin.code.style=official

0 commit comments

Comments
 (0)