-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Handled all kotlin linting issues - Fixed file/class naming as we now have Java in our gradle - Fixe protosLib gradle file Signed-off-by: Ahmed Moussa <[email protected]>
- Loading branch information
Showing
32 changed files
with
78 additions
and
60 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 |
---|---|---|
|
@@ -144,4 +144,4 @@ tasks.withType<DokkaTask> { | |
// showStackTraces = true | ||
// } | ||
// } | ||
// } | ||
// } |
4 changes: 2 additions & 2 deletions
4
authenticate-sdk/src/androidMain/kotlin/io/iohk/atala/prism/authenticatesdk/authenticate.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,5 +1,5 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
actual fun authenticate(did: String, signature: String, originalText: String):String { | ||
return "hola"; | ||
actual fun authenticate(did: String, signature: String, originalText: String): String { | ||
return "hola" | ||
} |
4 changes: 2 additions & 2 deletions
4
...nticate-sdk/src/androidMain/kotlin/io/iohk/atala/prism/authenticatesdk/createChallenge.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,5 +1,5 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
actual fun createChallenge(expiration: Int): String { | ||
return "hola"; | ||
} | ||
return "hola" | ||
} |
2 changes: 1 addition & 1 deletion
2
authenticate-sdk/src/commonMain/kotlin/io.iohk.atala.prism.authenticatesdk/authenticate.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,3 +1,3 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
expect fun authenticate(did: String, signature: String, originalText: String):String | ||
expect fun authenticate(did: String, signature: String, originalText: String): String |
2 changes: 1 addition & 1 deletion
2
...enticate-sdk/src/commonMain/kotlin/io.iohk.atala.prism.authenticatesdk/createChallenge.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,3 +1,3 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
expect fun createChallenge(expiration: Int): String | ||
expect fun createChallenge(expiration: Int): String |
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: 2 additions & 2 deletions
4
authenticate-sdk/src/jsMain/kotlin/io.iohk.atala.prism.authenticatesdk/authenticate.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,5 +1,5 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
actual fun authenticate(did: String, signature: String, originalText: String):String { | ||
return "hola"; | ||
actual fun authenticate(did: String, signature: String, originalText: String): String { | ||
return "hola" | ||
} |
4 changes: 2 additions & 2 deletions
4
authenticate-sdk/src/jsMain/kotlin/io.iohk.atala.prism.authenticatesdk/createChallenge.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,5 +1,5 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
actual fun createChallenge(expiration: Int): String { | ||
return "hola"; | ||
} | ||
return "hola" | ||
} |
4 changes: 2 additions & 2 deletions
4
authenticate-sdk/src/jvmMain/kotlin/io/iohk/atala/prism/authenticatesdk/authenticate.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,5 +1,5 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
actual fun authenticate(did: String, signature: String, originalText: String):String { | ||
return "hola"; | ||
actual fun authenticate(did: String, signature: String, originalText: String): String { | ||
return "hola" | ||
} |
4 changes: 2 additions & 2 deletions
4
authenticate-sdk/src/jvmMain/kotlin/io/iohk/atala/prism/authenticatesdk/createChallenge.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,5 +1,5 @@ | ||
package io.iohk.atala.prism.authenticatesdk | ||
|
||
actual fun createChallenge(expiration: Int): String { | ||
return "hola"; | ||
} | ||
return "hola" | ||
} |
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 |
---|---|---|
|
@@ -235,4 +235,4 @@ tasks.withType<DokkaTask> { | |
// showStackTraces = true | ||
// } | ||
// } | ||
// } | ||
// } |
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: 4 additions & 3 deletions
7
...ohk/atala/prism/walletcore/AtalaClient.kt → ...iohk/atala/prism/walletcore/httpClient.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,8 +1,9 @@ | ||
package io.iohk.atala.prism.walletcore | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.okhttp.* | ||
import io.ktor.client.HttpClient | ||
import io.ktor.client.HttpClientConfig | ||
import io.ktor.client.engine.okhttp.OkHttp | ||
|
||
internal actual fun httpClient(config: HttpClientConfig<*>.() -> Unit) = HttpClient(OkHttp) { | ||
config(this) | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ package io.iohk.atala.prism.walletcore | |
|
||
internal expect object Platform { | ||
val OS: String | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
core-sdk/src/commonMain/kotlin/io.iohk.atala.prism.walletcore/httpClient.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.iohk.atala.prism.walletcore | ||
|
||
import io.ktor.client.HttpClient | ||
import io.ktor.client.HttpClientConfig | ||
|
||
|
||
internal expect fun httpClient(config: HttpClientConfig<*>.() -> Unit = {}): HttpClient |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ internal actual object Platform { | |
} else { | ||
"JS" | ||
} | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
...ohk/atala/prism/walletcore/AtalaClient.kt → ...iohk/atala/prism/walletcore/httpClient.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,8 +1,9 @@ | ||
package io.iohk.atala.prism.walletcore | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.js.* | ||
import io.ktor.client.HttpClient | ||
import io.ktor.client.HttpClientConfig | ||
import io.ktor.client.engine.js.Js | ||
|
||
internal actual fun httpClient(config: HttpClientConfig<*>.() -> Unit) = HttpClient(Js) { | ||
config(this) | ||
} | ||
} |
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: 4 additions & 3 deletions
7
...ohk/atala/prism/walletcore/AtalaClient.kt → ...iohk/atala/prism/walletcore/httpClient.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,8 +1,9 @@ | ||
package io.iohk.atala.prism.walletcore | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.okhttp.* | ||
import io.ktor.client.HttpClient | ||
import io.ktor.client.HttpClientConfig | ||
import io.ktor.client.engine.okhttp.OkHttp | ||
|
||
internal actual fun httpClient(config: HttpClientConfig<*>.() -> Unit) = HttpClient(OkHttp) { | ||
config(this) | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ buildscript { | |
} | ||
} | ||
|
||
|
||
rootProject.name = "wallet-sdk" | ||
include(":protosLib") | ||
include(":wallet-sdk") | ||
|
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 |
---|---|---|
|
@@ -205,4 +205,4 @@ tasks.withType<DokkaTask> { | |
// showStackTraces = true | ||
// } | ||
// } | ||
// } | ||
// } |
4 changes: 1 addition & 3 deletions
4
wallet-sdk/src/commonMain/kotlin/io.iohk.atala.prism.walletsdk/WalletSDK.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,5 +1,3 @@ | ||
package io.iohk.atala.prism.walletsdk | ||
|
||
final class WalletSDK { | ||
|
||
} | ||
final class WalletSDK |