mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +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", "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 {
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue