Skip to content

Commit

Permalink
Using kotlin build scripts for #15.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamMc331 committed Jan 22, 2023
1 parent d41c2a2 commit e677e8c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
40 changes: 22 additions & 18 deletions app/build.gradle → app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
plugins {
id "com.android.application"
id "kotlin-android"
id("com.android.application")
id("kotlin-android")
}

android {
compileSdk 33
compileSdk = 33

defaultConfig {
applicationId "template.app.id"
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
applicationId = "template.app.id"
minSdk = 21
targetSdk = 33
versionCode = 1
versionName = "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
useSupportLibrary = true
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = "1.8"
}

buildFeatures {
compose true
compose = true
}

composeOptions {
kotlinCompilerExtensionVersion "1.3.0"
kotlinCompilerVersion kotlinVersion
kotlinCompilerExtensionVersion = "1.3.0"
}

packagingOptions {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand All @@ -47,7 +51,7 @@ android {
}

dependencies {
def composeBom = platform(libs.compose.bom)
val composeBom = platform(libs.compose.bom)
implementation(composeBom)
debugImplementation(composeBom)
androidTestImplementation(composeBom)
Expand Down
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# proguardFiles setting in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down

0 comments on commit e677e8c

Please sign in to comment.