Created
May 18, 2025 06:14
-
-
Save flushpot1125/5adf3e33487a88987787dbe382291c68 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
| plugins { | |
| alias(libs.plugins.android.application) | |
| alias(libs.plugins.kotlin.android) | |
| alias(libs.plugins.kotlin.compose) | |
| } | |
| android { | |
| namespace 'com.example.videostream' | |
| compileSdk 35 | |
| defaultConfig { | |
| applicationId "com.example.videostream" | |
| 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 { // ktor利用時は追加 | |
| 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: 'io.netty', module: 'netty-transport-native-epoll' | |
| exclude group: 'io.netty', module: 'netty-transport-native-kqueue' | |
| exclude group: 'io.netty', module: 'netty-resolver-dns-native-macos' | |
| } | |
| implementation('io.ktor:ktor-server-html-builder:2.3.2') { | |
| exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8' | |
| } | |
| implementation('io.ktor:ktor-server-websockets:2.3.2') // 追加 | |
| implementation 'org.slf4j:slf4j-android:1.7.36' | |
| implementation('io.ktor:ktor-server-cio:2.3.2') | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment