mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
thanks lag
This commit is contained in:
parent
69615d093e
commit
f2b5f03b96
4 changed files with 9 additions and 23 deletions
|
@ -3,7 +3,6 @@ import org.jetbrains.dokka.gradle.DokkaTask
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.net.URL
|
||||
import kotlin.io.outputStream
|
||||
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
|
@ -63,9 +62,13 @@ android {
|
|||
versionCode = 63
|
||||
versionName = "4.3.1"
|
||||
|
||||
val commitHashFile = layout.buildDirectory.file("commit-hash.txt")
|
||||
// retrieve latest commit hash
|
||||
val gitVersion = providers.exec {
|
||||
commandLine("git", "rev-parse", "--short", "HEAD")
|
||||
}.standardOutput.asText.get()
|
||||
|
||||
resValue("string", "app_version", "${defaultConfig.versionName}${versionNameSuffix ?: ""}")
|
||||
resValue("string", "commit_hash", file(commitHashFile).readText())
|
||||
resValue("string", "commit_hash", gitVersion)
|
||||
resValue("bool", "is_prerelease", "false")
|
||||
|
||||
// Reads local.properties
|
||||
|
@ -233,22 +236,6 @@ dependencies {
|
|||
implementation("androidx.work:work-runtime:2.9.0")
|
||||
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
||||
implementation("com.github.Blatzar:NiceHttp:0.4.11") // HTTP Lib
|
||||
implementation("com.github.Blatzar:NiceHttp:0.4.11") // HTTP Lib
|
||||
}
|
||||
|
||||
tasks.register<Exec>("retrieveCommitHash") {
|
||||
// task needed because configurationCache does not support parallel git commands
|
||||
group = "build"
|
||||
description = "Retrieves the commit hash."
|
||||
|
||||
doFirst {
|
||||
commandLine("git", "rev-parse", "--short", "HEAD")
|
||||
val commitOutput = layout.projectDirectory.file("commit-hash.txt")
|
||||
standardOutput = commitOutput.asFile.outputStream()
|
||||
}
|
||||
|
||||
outputs.file(layout.projectDirectory.file("commit-hash.txt"))
|
||||
mustRunAfter(tasks.assemble)
|
||||
}
|
||||
|
||||
tasks.register("androidSourcesJar", Jar::class) {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
2b7d102
|
|
@ -5,7 +5,7 @@ buildscript {
|
|||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:8.2.2")
|
||||
classpath("com.android.tools.build:gradle:8.2.1")
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.22")
|
||||
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.9.10")
|
||||
|
||||
|
@ -22,7 +22,7 @@ allprojects {
|
|||
}
|
||||
|
||||
plugins {
|
||||
id("com.google.devtools.ksp") version "1.9.22-1.0.17" apply false
|
||||
id("com.google.devtools.ksp") version "1.9.22-1.0.16" apply false
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
|
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
|||
#Fri Apr 30 17:11:15 CEST 2021
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue