This file contains hidden or 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
appcenter distribute releases edit \ | |
--app <username_or_organization>/<application_identifier> \ | |
-r <number> \ | |
--token <TOKEN>\ | |
disabled|enabled | |
appcenter crashes upload-mappings \ | |
--mapping {mapping file} \ | |
--app <username_or_organization>/<application_identifier> \ | |
--version-name {version name}\ |
This file contains hidden or 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
fun triggerRestart(context: Activity) { | |
val intent = Intent(context, MainActivity::class.java) | |
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) | |
context.startActivity(intent) | |
if (context is Activity) { | |
(context as Activity).finish() | |
} | |
Runtime.getRuntime().exit(0) | |
} |
This file contains hidden or 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
<?php | |
include('Webhook.php'); | |
$webhook = new Webhook('<your Google project id>'); | |
$webhook->build_simpleResponse('Voice Text', "Display Text?"); | |
$webhook->build_suggestions('Suggestion 1'); | |
$webhook->build_suggestions('Suggestion 2'); |
This file contains hidden or 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
<?php | |
class Webhook { | |
public $decodedWebhook = null; | |
public $googleUserId = false; | |
// Other | |
public $hasResponded = false; | |
private $platforms = array('PLATFORM_UNSPECIFIED'); |
This file contains hidden or 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
function processMessage($update) { | |
if($update["result"]["action"] == "test.welcome"){ | |
sendMessage(array( | |
"source" => $update["result"]["source"], | |
"speech" => "Hello World!", | |
"displayText" => "Hello World!", | |
"contextOut" => array() | |
)); | |
} | |
} |