-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- No longer use KMP setup for desktop - Upgrade dependencies - Upgrade CI versions - Re-enable UWP helper on windows - Possibly fix msstore update
- Loading branch information
1 parent
66cb75a
commit d97d3c4
Showing
28 changed files
with
205 additions
and
165 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@file:JvmName("Platform") | ||
package dev.schlaubi.tonbrett.app.desktop | ||
|
||
import dev.schlaubi.tonbrett.common.Route | ||
import java.net.URI | ||
|
||
/** | ||
* Implementations are in `src/nonWindowsMain` and `src/windowsMain` | ||
*/ | ||
object Platform : IPlatform by currentPlatform | ||
|
||
interface IPlatform { | ||
val loginType: Route.Auth.Type | ||
|
||
/** | ||
* Runs any preparation steps for authentication | ||
*/ | ||
fun prepareAuthentication(onAuth: () -> Unit) | ||
|
||
fun start(args: Array<String>) | ||
|
||
/** | ||
* Tries to launch the URI using the UWP `Launcher`. | ||
* | ||
* @param uri the [URI] to launch | ||
*/ | ||
fun launchUri(uri: URI) | ||
|
||
fun getToken(): String | ||
|
||
fun setToken(token: String) | ||
} |
3 changes: 3 additions & 0 deletions
3
...mmonMain/kotlin/TokenStorageAppContext.kt → ...src/main/kotlin/TokenStorageAppContext.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
File renamed without changes.
File renamed without changes
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.