Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created May 17, 2025 12:05
Show Gist options
  • Select an option

  • Save flushpot1125/6574820a5edb6d48e667e01984b2be86 to your computer and use it in GitHub Desktop.

Select an option

Save flushpot1125/6574820a5edb6d48e667e01984b2be86 to your computer and use it in GitHub Desktop.
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
}
android {
namespace 'com.example.ktorserver_test'
compileSdk 35
defaultConfig {
applicationId "com.example.ktorserver_test"
minSdk 31
targetSdk 35
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '11'
}
buildFeatures {
compose true
}
viewBinding {
enabled = true
}
packagingOptions {
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/io.netty.versions.properties'
}
}
dependencies {
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.runtime.ktx
implementation libs.androidx.activity.compose
implementation platform(libs.androidx.compose.bom)
implementation libs.androidx.ui
implementation libs.androidx.ui.graphics
implementation libs.androidx.ui.tooling.preview
implementation libs.androidx.material3
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
androidTestImplementation platform(libs.androidx.compose.bom)
androidTestImplementation libs.androidx.ui.test.junit4
debugImplementation libs.androidx.ui.tooling
debugImplementation libs.androidx.ui.test.manifest
implementation('io.ktor:ktor-server-core:2.3.2') {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
}
implementation('io.ktor:ktor-server-netty:2.3.2') {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
}
implementation('io.ktor:ktor-server-html-builder:2.3.2') {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
}
implementation 'org.slf4j:slf4j-android:1.7.36'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment