2024-07-08 16:32:04 +02:00
|
|
|
/* NewPlayer
|
|
|
|
*
|
|
|
|
* @author Christian Schabesberger
|
|
|
|
*
|
|
|
|
* Copyright (C) NewPipe e.V. 2024 <code(at)newpipe-ev.de>
|
|
|
|
*
|
|
|
|
* NewPlayer is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* NewPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with NewPlayer. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2024-07-02 11:43:51 +02:00
|
|
|
plugins {
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
alias(libs.plugins.jetbrains.kotlin.android)
|
2024-07-08 18:12:26 +02:00
|
|
|
alias(libs.plugins.kotlinAndroidKsp)
|
2024-07-08 17:45:54 +02:00
|
|
|
alias(libs.plugins.androidHilt)
|
2024-07-17 16:39:16 +02:00
|
|
|
alias(libs.plugins.kotlinParcelize)
|
|
|
|
alias(libs.plugins.composeCompiler)
|
2024-07-02 11:43:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2024-07-19 10:48:01 +02:00
|
|
|
namespace = "net.newpipe.newplayer.testapp"
|
2024-07-02 11:43:51 +02:00
|
|
|
compileSdk = 34
|
|
|
|
|
|
|
|
buildFeatures {
|
|
|
|
compose = true
|
|
|
|
}
|
|
|
|
composeOptions {
|
|
|
|
kotlinCompilerExtensionVersion = "1.5.1"
|
|
|
|
}
|
|
|
|
|
2024-07-18 12:37:32 +02:00
|
|
|
hilt {
|
|
|
|
enableExperimentalClasspathAggregation = true
|
|
|
|
}
|
|
|
|
|
2024-07-02 11:43:51 +02:00
|
|
|
defaultConfig {
|
2024-07-19 10:48:01 +02:00
|
|
|
applicationId = "net.newpipe.newplayer.testapp"
|
2024-07-02 11:43:51 +02:00
|
|
|
minSdk = 21
|
|
|
|
targetSdk = 34
|
|
|
|
versionCode = 1
|
|
|
|
versionName = "1.0"
|
|
|
|
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
2024-07-17 13:21:02 +02:00
|
|
|
vectorDrawables {
|
|
|
|
useSupportLibrary = true
|
|
|
|
}
|
2024-07-02 11:43:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
isMinifyEnabled = false
|
|
|
|
proguardFiles(
|
|
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
|
|
"proguard-rules.pro"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
2024-07-17 13:21:02 +02:00
|
|
|
packaging {
|
|
|
|
resources {
|
|
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
|
|
}
|
|
|
|
}
|
2024-07-08 16:05:37 +02:00
|
|
|
|
2024-07-02 11:43:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(libs.androidx.core.ktx)
|
|
|
|
implementation(libs.androidx.appcompat)
|
|
|
|
implementation(libs.material)
|
|
|
|
implementation(libs.androidx.activity)
|
|
|
|
implementation(libs.androidx.constraintlayout)
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
|
|
implementation(libs.androidx.material3)
|
2024-07-02 17:40:49 +02:00
|
|
|
implementation(libs.androidx.ui.tooling)
|
|
|
|
implementation(libs.androidx.material.icons.extended.android)
|
2024-07-08 16:05:37 +02:00
|
|
|
implementation(libs.androidx.media3.exoplayer)
|
|
|
|
implementation(libs.androidx.media3.ui)
|
|
|
|
implementation(libs.hilt.android)
|
|
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
2024-07-09 18:20:30 +02:00
|
|
|
implementation(libs.androidx.foundation)
|
2024-07-10 16:31:08 +02:00
|
|
|
implementation(libs.androidx.fragment.ktx)
|
2024-07-17 13:21:02 +02:00
|
|
|
implementation(libs.androidx.lifecycle.runtime.ktx)
|
|
|
|
implementation(platform(libs.androidx.compose.bom))
|
|
|
|
implementation(libs.androidx.ui)
|
|
|
|
implementation(libs.androidx.ui.graphics)
|
|
|
|
implementation(libs.androidx.ui.tooling.preview)
|
2024-07-18 14:30:02 +02:00
|
|
|
implementation(libs.androidx.hilt.navigation.compose)
|
|
|
|
|
2024-07-18 16:01:59 +02:00
|
|
|
// development impl
|
2024-07-19 10:48:01 +02:00
|
|
|
implementation(project(":new-player"))
|
2024-07-31 14:14:16 +02:00
|
|
|
implementation(libs.okhttp.android)
|
2024-07-18 16:01:59 +02:00
|
|
|
|
|
|
|
//jitpack test
|
2024-07-19 10:48:01 +02:00
|
|
|
//implementation(libs.newplayer)
|
2024-07-18 14:30:02 +02:00
|
|
|
|
|
|
|
ksp(libs.hilt.android.compiler)
|
|
|
|
ksp(libs.androidx.hilt.compiler)
|
|
|
|
|
2024-07-17 13:21:02 +02:00
|
|
|
androidTestImplementation(platform(libs.androidx.compose.bom))
|
|
|
|
androidTestImplementation(libs.androidx.ui.test.junit4)
|
2024-07-18 14:30:02 +02:00
|
|
|
androidTestImplementation(libs.androidx.junit)
|
|
|
|
androidTestImplementation(libs.androidx.espresso.core)
|
|
|
|
|
2024-07-17 13:21:02 +02:00
|
|
|
debugImplementation(libs.androidx.ui.tooling)
|
|
|
|
debugImplementation(libs.androidx.ui.test.manifest)
|
2024-07-18 14:30:02 +02:00
|
|
|
|
2024-07-02 11:43:51 +02:00
|
|
|
testImplementation(libs.junit)
|
2024-07-18 14:30:02 +02:00
|
|
|
}
|