Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Now generating constants for platform implementations.
- Loading branch information
Showing
30 changed files
with
717 additions
and
186 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
82 changes: 82 additions & 0 deletions
82
packages/bonsoir_android/android/src/main/kotlin/fr/skyost/bonsoir/Generated.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,82 @@ | ||
package fr.skyost.bonsoir | ||
|
||
/* | ||
* Generated file that contains some variables used by the platform channel. | ||
*/ | ||
class Generated { | ||
companion object { | ||
/** | ||
* Contains the broadcast messages. | ||
*/ | ||
public final var broadcastMessages: Map<String, String> = mapOf("broadcastStarted" to "Bonsoir service broadcast started : %s.", "broadcastNameAlreadyExists" to "Trying to broadcast a service with a name that already exists : %s (old name was %s).", "broadcastStopped" to "Bonsoir service broadcast stopped : %s.", "broadcastInitialized" to "Bonsoir service broadcast initialized : %s.", "broadcastError" to "Bonsoir service failed to broadcast : %s (error : %s).") | ||
|
||
/** | ||
* broadcastStarted | ||
*/ | ||
public final const val broadcastStarted = "broadcastStarted"; | ||
/** | ||
* broadcastNameAlreadyExists | ||
*/ | ||
public final const val broadcastNameAlreadyExists = "broadcastNameAlreadyExists"; | ||
/** | ||
* broadcastStopped | ||
*/ | ||
public final const val broadcastStopped = "broadcastStopped"; | ||
/** | ||
* broadcastInitialized | ||
*/ | ||
public final const val broadcastInitialized = "broadcastInitialized"; | ||
/** | ||
* broadcastError | ||
*/ | ||
public final const val broadcastError = "broadcastError"; | ||
|
||
|
||
/** | ||
* Contains the discovery messages. | ||
*/ | ||
public final var discoveryMessages: Map<String, String> = mapOf("discoveryStarted" to "Bonsoir discovery started : %s.", "discoveryServiceFound" to "Bonsoir has found a service : %s.", "discoveryServiceResolved" to "Bonsoir has resolved a service : %s.", "discoveryServiceResolveFailed" to "Bonsoir has failed to resolve a service : %s (error : %s).", "discoveryServiceLost" to "A Bonsoir service has been lost : %s.", "discoveryStopped" to "Bonsoir discovery stopped : %s.", "discoveryUndiscoveredServiceResolveFailed" to "Trying to resolve an undiscovered service : %s of type %s.", "discoveryTxtResolved" to "Bonsoir has found the attributes of a service : %s (new attributes are : %s).", "discoveryTxtResolveFailed" to "Bonsoir has failed to get the TXT record of a service : %s (error %s).", "discoveryError" to "Bonsoir has encountered an error during discovery : %s (error %s).") | ||
|
||
/** | ||
* discoveryStarted | ||
*/ | ||
public final const val discoveryStarted = "discoveryStarted"; | ||
/** | ||
* discoveryServiceFound | ||
*/ | ||
public final const val discoveryServiceFound = "discoveryServiceFound"; | ||
/** | ||
* discoveryServiceResolved | ||
*/ | ||
public final const val discoveryServiceResolved = "discoveryServiceResolved"; | ||
/** | ||
* discoveryServiceResolveFailed | ||
*/ | ||
public final const val discoveryServiceResolveFailed = "discoveryServiceResolveFailed"; | ||
/** | ||
* discoveryServiceLost | ||
*/ | ||
public final const val discoveryServiceLost = "discoveryServiceLost"; | ||
/** | ||
* discoveryStopped | ||
*/ | ||
public final const val discoveryStopped = "discoveryStopped"; | ||
/** | ||
* discoveryUndiscoveredServiceResolveFailed | ||
*/ | ||
public final const val discoveryUndiscoveredServiceResolveFailed = "discoveryUndiscoveredServiceResolveFailed"; | ||
/** | ||
* discoveryTxtResolved | ||
*/ | ||
public final const val discoveryTxtResolved = "discoveryTxtResolved"; | ||
/** | ||
* discoveryTxtResolveFailed | ||
*/ | ||
public final const val discoveryTxtResolveFailed = "discoveryTxtResolveFailed"; | ||
/** | ||
* discoveryError | ||
*/ | ||
public final const val discoveryError = "discoveryError"; | ||
|
||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/// Generated file that contains some variables used by the platform channel. | ||
|
||
class Generated { | ||
/// Contains the broadcast messages. | ||
static let broadcastMessages: [String: String] = ["broadcastStarted": "Bonsoir service broadcast started : %s.", "broadcastNameAlreadyExists": "Trying to broadcast a service with a name that already exists : %s (old name was %s).", "broadcastStopped": "Bonsoir service broadcast stopped : %s.", "broadcastInitialized": "Bonsoir service broadcast initialized : %s.", "broadcastError": "Bonsoir service failed to broadcast : %s (error : %s)."] | ||
|
||
/// broadcastStarted | ||
static let broadcastStarted: String = "broadcastStarted" | ||
/// broadcastNameAlreadyExists | ||
static let broadcastNameAlreadyExists: String = "broadcastNameAlreadyExists" | ||
/// broadcastStopped | ||
static let broadcastStopped: String = "broadcastStopped" | ||
/// broadcastInitialized | ||
static let broadcastInitialized: String = "broadcastInitialized" | ||
/// broadcastError | ||
static let broadcastError: String = "broadcastError" | ||
|
||
|
||
/// Contains the discovery messages. | ||
static let discoveryMessages: [String: String] = ["discoveryStarted": "Bonsoir discovery started : %s.", "discoveryServiceFound": "Bonsoir has found a service : %s.", "discoveryServiceResolved": "Bonsoir has resolved a service : %s.", "discoveryServiceResolveFailed": "Bonsoir has failed to resolve a service : %s (error : %s).", "discoveryServiceLost": "A Bonsoir service has been lost : %s.", "discoveryStopped": "Bonsoir discovery stopped : %s.", "discoveryUndiscoveredServiceResolveFailed": "Trying to resolve an undiscovered service : %s of type %s.", "discoveryTxtResolved": "Bonsoir has found the attributes of a service : %s (new attributes are : %s).", "discoveryTxtResolveFailed": "Bonsoir has failed to get the TXT record of a service : %s (error %s).", "discoveryError": "Bonsoir has encountered an error during discovery : %s (error %s)."] | ||
|
||
/// discoveryStarted | ||
static let discoveryStarted: String = "discoveryStarted" | ||
/// discoveryServiceFound | ||
static let discoveryServiceFound: String = "discoveryServiceFound" | ||
/// discoveryServiceResolved | ||
static let discoveryServiceResolved: String = "discoveryServiceResolved" | ||
/// discoveryServiceResolveFailed | ||
static let discoveryServiceResolveFailed: String = "discoveryServiceResolveFailed" | ||
/// discoveryServiceLost | ||
static let discoveryServiceLost: String = "discoveryServiceLost" | ||
/// discoveryStopped | ||
static let discoveryStopped: String = "discoveryStopped" | ||
/// discoveryUndiscoveredServiceResolveFailed | ||
static let discoveryUndiscoveredServiceResolveFailed: String = "discoveryUndiscoveredServiceResolveFailed" | ||
/// discoveryTxtResolved | ||
static let discoveryTxtResolved: String = "discoveryTxtResolved" | ||
/// discoveryTxtResolveFailed | ||
static let discoveryTxtResolveFailed: String = "discoveryTxtResolveFailed" | ||
/// discoveryError | ||
static let discoveryError: String = "discoveryError" | ||
|
||
} |
Oops, something went wrong.