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:
Eric House 2020-11-15 16:30:13 -08:00
parent a58048e9eb
commit 5d86743857
2 changed files with 9 additions and 3 deletions

View file

@ -88,6 +88,7 @@ android {
buildConfigField "boolean", "OFFER_MQTT", "true"
buildConfigField "boolean", "NON_RELEASE", "DEBUG || !IS_TAGGED_BUILD"
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "false"
buildConfigField "boolean", "DO_MQTT_GAME_GONE", "false"
}
xw4NoSMS {
@ -140,6 +141,7 @@ android {
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
externalNativeBuild.ndkBuild.cFlags += ['-DXWFEATURE_KNOWNPLAYERS']
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "true"
buildConfigField "boolean", "DO_MQTT_GAME_GONE", "true"
}
xw4dNoSMS {
@ -160,6 +162,7 @@ android {
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
externalNativeBuild.ndkBuild.cFlags += ['-DXWFEATURE_KNOWNPLAYERS']
buildConfigField "boolean", "HAVE_KNOWN_PLAYERS", "true"
buildConfigField "boolean", "DO_MQTT_GAME_GONE", "true"
}
xw4SMS {

View file

@ -598,9 +598,12 @@ public class MQTTUtils extends Thread implements IMqttActionListener, MqttCallba
public static void handleGameGone( Context context, CommsAddrRec from, int gameID )
{
// new MQTTServiceHelper( context, from )
// .postEvent( MultiService.MultiEvent.MESSAGE_NOGAME, gameID );
Log.d( TAG, "not posting game-gone for now (gameID: %d)" , gameID );
if ( BuildConfig.DO_MQTT_GAME_GONE ) {
new MQTTServiceHelper( context, from )
.postEvent( MultiService.MultiEvent.MESSAGE_NOGAME, gameID );
} else {
Log.d( TAG, "not posting game-gone for now (gameID: %d)" , gameID );
}
}
public static void fcmConfirmed( Context context, boolean working )