-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4aa5c6
commit 590febe
Showing
38 changed files
with
2,278 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.gradle/ | ||
.idea/ | ||
*.hprof | ||
|
||
build/ | ||
*/build/ | ||
*/node_modules/ | ||
*/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ kotlin { | |
} | ||
} | ||
js(IR) { | ||
moduleName = "brac-kt-api" | ||
browser { | ||
testTask { | ||
useKarma { | ||
|
@@ -39,6 +40,21 @@ kotlin { | |
useMocha {} | ||
} | ||
} | ||
compilations["main"].packageJson { | ||
customField("name" to "@thenewjavaman/brac-kt-api") | ||
customField("description" to "A Kotlin/Multiplatform interface for quantum computing") | ||
customField("homepage" to "https://github.com/TheNewJavaman/brac-kt") | ||
customField("author" to mapOf( | ||
"name" to "Gabriel Pizarro", | ||
"email" to "[email protected]", | ||
"url" to "https://javaman.net" | ||
)) | ||
customField("repository" to mapOf( | ||
"type" to "git", | ||
"url" to "https://github.com/TheNewJavaman/brac-kt" | ||
)) | ||
customField("private" to false) | ||
} | ||
binaries.executable() | ||
} | ||
sourceSets { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
brac-kt-api/src/commonMain/kotlin/net/javaman/brackt/api/util/assertions/Assertions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
@file:OptIn(ExperimentalJsExport::class) | ||
|
||
package net.javaman.brackt.api.util.assertions | ||
|
||
import kotlin.js.ExperimentalJsExport | ||
import kotlin.js.JsExport | ||
|
||
/** | ||
* Assert conditions in pure Kotlin and a clean syntax | ||
*/ | ||
@JsExport | ||
fun assert(block: () -> Boolean) { | ||
if (!block()) throw AssertionException("Assertion failed") | ||
} | ||
|
||
@JsExport | ||
class AssertionException(message: String) : Exception(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ kotlin { | |
} | ||
} | ||
js(IR) { | ||
moduleName = "brac-kt-ibmq-provider" | ||
browser { | ||
testTask { | ||
useKarma { | ||
|
@@ -41,6 +42,21 @@ kotlin { | |
useMocha {} | ||
} | ||
} | ||
compilations["main"].packageJson { | ||
customField("name" to "@thenewjavaman/brac-kt-ibmq-provider") | ||
customField("description" to "A Kotlin/Multiplatform interface for quantum computing") | ||
customField("homepage" to "https://github.com/TheNewJavaman/brac-kt") | ||
customField("author" to mapOf( | ||
"name" to "Gabriel Pizarro", | ||
"email" to "[email protected]", | ||
"url" to "https://javaman.net" | ||
)) | ||
customField("repository" to mapOf( | ||
"type" to "git", | ||
"url" to "https://github.com/TheNewJavaman/brac-kt" | ||
)) | ||
customField("private" to false) | ||
} | ||
binaries.executable() | ||
} | ||
sourceSets { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...q-provider/src/commonMain/kotlin/net/javaman/brackt/providers/ibmq/api/models/ApiToken.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.