Skip to content

Commit

Permalink
- additional build cleanup
Browse files Browse the repository at this point in the history
- fix sample app release signing
  • Loading branch information
mikepenz committed Jan 4, 2025
1 parent fb8e585 commit a4a8591
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
16 changes: 3 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.konan.properties.Properties
import com.mikepenz.gradle.utils.readPropertyOrElse

plugins {
id("com.mikepenz.convention.android-application")
Expand All @@ -7,6 +7,7 @@ plugins {
id("androidx.navigation.safeargs.kotlin")
}

val openSourceSigningFile: String? = readPropertyOrElse("openSource.signing.file")
if (openSourceSigningFile != null) {
apply(from = openSourceSigningFile)
}
Expand Down Expand Up @@ -93,15 +94,4 @@ dependencies {
configurations.configureEach {
resolutionStrategy.force(libs.fastAdapter.core)
resolutionStrategy.force(libs.iconics.core)
}

private val openSourceSigningFile: String?
get() {
val k = "openSource.signing.file"
return Properties().also { prop ->
rootProject.file("local.properties").takeIf { it.exists() }?.let {
prop.load(it.inputStream())
}
}.getProperty(k, null) ?: if (project.hasProperty(k)) project.property(k)
?.toString() else null
}
}
5 changes: 0 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ plugins {
alias(baseLibs.plugins.mavenPublish) apply false

alias(libs.plugins.navSafeArgs) apply false
}

allprojects {
group = ext.get("GROUP")!!
version = ext.get("VERSION_NAME")!!
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
conventionPlugin = "0.1.0"
conventionPlugin = "0.1.1"
# androidx
appcompat = "1.7.0"
cardview = "1.0.0"
Expand Down

0 comments on commit a4a8591

Please sign in to comment.