-
Notifications
You must be signed in to change notification settings - Fork 5
CASL-1784 gradle build fix #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
59d822c
f49f68f
e44b097
05b3fa4
001f0b9
e8c1f1d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| plugins { | ||
| alias(libs.plugins.kotlin.multiplatform) | ||
| } | ||
|
|
||
| description = gatherDescription() | ||
|
|
||
| kotlin { | ||
| jvm { | ||
| compilerOptions { | ||
| jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11) | ||
| } | ||
| } | ||
| js(IR) { | ||
| nodejs() | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package naksha.common.test | ||
|
|
||
| import kotlin.jvm.JvmStatic | ||
|
|
||
| object CommonTestConstants { | ||
| private const val DEFAULT_TEST_STORAGE_ID: String = "local_psql_test_storage" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I carried an understanding that use of different storageId was the problem, but I still find two storageId in use (i.e.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The understanding is correct, we need a single storageId for the whole build. Currently it’s
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, that clarifies. And I see the README is also updated to avoid this confusion. Thanks. |
||
| private const val TEST_STORAGE_ID_ENV: String = "NAKSHA_TEST_STORAGE_ID" | ||
|
|
||
| @JvmStatic | ||
| fun getTestStorageId(): String = | ||
| currentEnvironment()[TEST_STORAGE_ID_ENV]?.takeUnless { it.isBlank() } ?: DEFAULT_TEST_STORAGE_ID | ||
| } | ||
|
|
||
| internal expect fun currentEnvironment(): Map<String, String> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package naksha.common.test | ||
|
|
||
| internal actual fun currentEnvironment(): Map<String, String> = emptyMap() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| package naksha.common.test | ||
|
|
||
| internal actual fun currentEnvironment(): Map<String, String> = System.getenv() |
Uh oh!
There was an error while loading. Please reload this page.