Compare commits

..

3 Commits

Author SHA1 Message Date
renovate[bot]
2219b9598c Update kotlin monorepo to v2.2.21 2025-10-23 09:44:26 +00:00
2cce483dc8 update github_release to support environment variables 2025-05-16 12:44:14 +06:00
fe5cdbefe8 Merge pull request #143 from InsanusMokrassar/2.7.2
2.7.2
2025-02-15 21:23:58 +06:00
2 changed files with 12 additions and 4 deletions

View File

@@ -11,12 +11,20 @@ private String getCurrentVersionChangelog(String version) {
return changelogDataOS.toString().trim()
}
if (new File(projectDir, "secret.gradle").exists()) {
apply from: './secret.gradle'
def githubTokenVariableName = "GITHUB_RELEASE_TOKEN"
def githubTokenVariableFromEnv = System.getenv(githubTokenVariableName)
def secretFile = new File(projectDir, "secret.gradle")
if (secretFile.exists() || project.hasProperty(githubTokenVariableName) || (githubTokenVariableFromEnv != "" && githubTokenVariableFromEnv != null)) {
if (secretFile.exists()) {
apply from: './secret.gradle'
}
apply plugin: "com.github.breadmoirai.github-release"
def githubReleaseToken = project.hasProperty(githubTokenVariableName) ? project.property(githubTokenVariableName).toString() : githubTokenVariableFromEnv
githubRelease {
token "${project.property('GITHUB_RELEASE_TOKEN')}"
token githubReleaseToken
owner = "InsanusMokrassar"
repo = "${rootProject.name}"

View File

@@ -9,7 +9,7 @@ android.useAndroidX=true
android.enableJetifier=false
kotlin_version=2.1.10
kotlin_version=2.2.21
kotlin_coroutines_version=1.10.1
kotlin_serialization_version=1.8.0