You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
plugins {
|
|
id 'com.android.library'
|
|
id 'org.jetbrains.kotlin.android'
|
|
}
|
|
|
|
android {
|
|
namespace 'org.videolan.vlc.webserver'
|
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.ext.minSdkVersion
|
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
consumerProguardFiles "consumer-rules.pro"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
task webCopy(type: Copy) {
|
|
from '../../buildsystem/network-sharing-server/dist'
|
|
into 'assets/dist'
|
|
}
|
|
|
|
sourceSets.main {
|
|
assets.srcDirs = ['assets']
|
|
}
|
|
|
|
sourceSets.main {
|
|
assets.srcDirs = ['assets']
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '1.8'
|
|
}
|
|
}
|
|
|
|
preBuild.dependsOn(webCopy)
|
|
|
|
dependencies {
|
|
implementation project(':application:vlc-android')
|
|
implementation "io.ktor:ktor:2.1.2"
|
|
implementation "io.ktor:ktor-server-netty:2.1.2"
|
|
implementation "io.ktor:ktor-gson:1.6.8"
|
|
implementation "io.ktor:ktor-server-websockets:2.1.2"
|
|
implementation "io.ktor:ktor-server-cors:2.1.2"
|
|
implementation("io.ktor:ktor-server-auth:2.1.2")
|
|
implementation("io.ktor:ktor-server-partial-content:2.1.2")
|
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
|
}
|