Skip to content

Commit

Permalink
Remove debug codes for release
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Apr 13, 2024
1 parent 5d29191 commit 24b8251
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@ plugins {
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
}

println("TEST_SECRET.length:"+properties.get("testSecret").toString().length)
}
12 changes: 0 additions & 12 deletions convention-plugins/src/main/kotlin/root.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,11 @@ allprojects {
version = "0.0.1"
}

fun String.hash(): String {
val bytes = this.toString().toByteArray()
val md = MessageDigest.getInstance("SHA-256")
val digest = md.digest(bytes)
return digest.fold("", { str, it -> str + "%02x".format(it) })
}

nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
val username = properties.get("sonatypeUsername") as String?
val password = properties.get("sonatypePassword") as String?
println("debug for hash:" + (username + " " + password).hash())
this.username = username
this.password = password
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
Expand Down

0 comments on commit 24b8251

Please sign in to comment.