mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
chore: upgrade kotlin version and deprecated code and remove unused code (#4763)
* upgrade some deprecated code * upgrade kotlin version
This commit is contained in:
parent
4cef17c9ab
commit
a33e118f10
@ -1,5 +1,3 @@
|
|||||||
import java.time.Instant
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
id("com.google.devtools.ksp")
|
id("com.google.devtools.ksp")
|
||||||
@ -65,8 +63,8 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
packagingOptions {
|
packaging {
|
||||||
exclude("lib/armeabi-v7a/*_neon.so")
|
jniLibs.excludes.add("lib/armeabi-v7a/*_neon.so")
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace = "com.github.libretube"
|
namespace = "com.github.libretube"
|
||||||
@ -127,5 +125,3 @@ dependencies {
|
|||||||
ksp(libs.room.compiler)
|
ksp(libs.room.compiler)
|
||||||
implementation(libs.room)
|
implementation(libs.room)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getUnixTime() = Instant.now().epochSecond
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
val kotlinVersion = "1.8.22"
|
val kotlinVersion = "1.9.10"
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -21,5 +21,5 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Delete>("clean") {
|
tasks.register<Delete>("clean") {
|
||||||
delete(rootProject.buildDir)
|
delete(rootProject.layout.buildDirectory)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user