-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Showing
17 changed files
with
96 additions
and
70 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 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 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
4 changes: 3 additions & 1 deletion
4
library/src/commonMain/kotlin/dev/bluefalcon/AdvertisementDataRetrievalKeys.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,6 +1,8 @@ | ||
package dev.bluefalcon | ||
|
||
enum class AdvertisementDataRetrievalKeys { | ||
LocalName, | ||
ManufacturerData, | ||
ServiceUUIDsKey, | ||
IsConnectable, | ||
} | ||
} |
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
1 change: 0 additions & 1 deletion
1
library/src/commonMain/kotlin/dev/bluefalcon/BlueFalconDelegate.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
package dev.bluefalcon | ||
|
||
expect fun log(message: String) | ||
object PrintLnLogger: Logger { | ||
override fun error(message: String, cause: Throwable?) { | ||
println("e: $message ${cause ?: ""}") | ||
} | ||
|
||
override fun warn(message: String, cause: Throwable?) { | ||
println("w: $message ${cause ?: ""}") | ||
} | ||
|
||
override fun info(message: String, cause: Throwable?) { | ||
println("i: $message ${cause ?: ""}") | ||
} | ||
|
||
override fun debug(message: String, cause: Throwable?) { | ||
println("d: $message ${cause ?: ""}") | ||
} | ||
} |
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,9 @@ | ||
package dev.bluefalcon | ||
|
||
interface Logger { | ||
fun error(message: String, cause: Throwable? = null) | ||
fun warn(message: String, cause: Throwable? = null) | ||
fun info(message: String, cause: Throwable? = null) | ||
fun debug(message: String, cause: Throwable? = null) | ||
} | ||
|
Oops, something went wrong.