mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
enable mqtt game-gone message for DEBUG builds
It should be enabled for all once the dup-devid problem should be behind everybody.
This commit is contained in:
parent
a58048e9eb
commit
5d86743857
2 changed files with 9 additions and 3 deletions
|
@ -88,6 +88,7 @@ android {
|
||||||
buildConfigField "boolean", "OFFER_MQTT", "true"
|
buildConfigField "boolean", "OFFER_MQTT", "true"
|
||||||
buildConfigField "boolean", "NON_RELEASE", "DEBUG || !IS_TAGGED_BUILD"
|
buildConfigField "boolean", "NON_RELEASE", "DEBUG || !IS_TAGGED_BUILD"
|
||||||
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "false"
|
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "false"
|
||||||
|
buildConfigField "boolean", "DO_MQTT_GAME_GONE", "false"
|
||||||
}
|
}
|
||||||
|
|
||||||
xw4NoSMS {
|
xw4NoSMS {
|
||||||
|
@ -140,6 +141,7 @@ android {
|
||||||
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
||||||
externalNativeBuild.ndkBuild.cFlags += ['-DXWFEATURE_KNOWNPLAYERS']
|
externalNativeBuild.ndkBuild.cFlags += ['-DXWFEATURE_KNOWNPLAYERS']
|
||||||
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "true"
|
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "true"
|
||||||
|
buildConfigField "boolean", "DO_MQTT_GAME_GONE", "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
xw4dNoSMS {
|
xw4dNoSMS {
|
||||||
|
@ -160,6 +162,7 @@ android {
|
||||||
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
||||||
externalNativeBuild.ndkBuild.cFlags += ['-DXWFEATURE_KNOWNPLAYERS']
|
externalNativeBuild.ndkBuild.cFlags += ['-DXWFEATURE_KNOWNPLAYERS']
|
||||||
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "true"
|
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "true"
|
||||||
|
buildConfigField "boolean", "DO_MQTT_GAME_GONE", "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
xw4SMS {
|
xw4SMS {
|
||||||
|
|
|
@ -598,10 +598,13 @@ public class MQTTUtils extends Thread implements IMqttActionListener, MqttCallba
|
||||||
|
|
||||||
public static void handleGameGone( Context context, CommsAddrRec from, int gameID )
|
public static void handleGameGone( Context context, CommsAddrRec from, int gameID )
|
||||||
{
|
{
|
||||||
// new MQTTServiceHelper( context, from )
|
if ( BuildConfig.DO_MQTT_GAME_GONE ) {
|
||||||
// .postEvent( MultiService.MultiEvent.MESSAGE_NOGAME, gameID );
|
new MQTTServiceHelper( context, from )
|
||||||
|
.postEvent( MultiService.MultiEvent.MESSAGE_NOGAME, gameID );
|
||||||
|
} else {
|
||||||
Log.d( TAG, "not posting game-gone for now (gameID: %d)" , gameID );
|
Log.d( TAG, "not posting game-gone for now (gameID: %d)" , gameID );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static void fcmConfirmed( Context context, boolean working )
|
public static void fcmConfirmed( Context context, boolean working )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue