mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
remove obsolete BuildConfig variable
This commit is contained in:
parent
3a26e9a1ea
commit
bf6afb803f
2 changed files with 9 additions and 18 deletions
|
@ -103,7 +103,6 @@ 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", "true"
|
||||
buildConfigField "boolean", "FOR_FDROID", "false"
|
||||
}
|
||||
|
||||
|
|
|
@ -477,13 +477,9 @@ public class MQTTUtils extends Thread implements IMqttActionListener, MqttCallba
|
|||
|
||||
public static void gameDied( Context context, String devID, int gameID )
|
||||
{
|
||||
if ( BuildConfig.DO_MQTT_GAME_GONE ) {
|
||||
String[] topic = { devID };
|
||||
byte[] packet = XwJNI.dvc_makeMQTTNoSuchGame( gameID, topic );
|
||||
addToSendQueue( context, topic[0], packet );
|
||||
} else {
|
||||
Log.e( TAG, "gameDied() not handled" ); // fix me
|
||||
}
|
||||
String[] topic = { devID };
|
||||
byte[] packet = XwJNI.dvc_makeMQTTNoSuchGame( gameID, topic );
|
||||
addToSendQueue( context, topic[0], packet );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -606,16 +602,12 @@ public class MQTTUtils extends Thread implements IMqttActionListener, MqttCallba
|
|||
|
||||
public static void handleGameGone( Context context, CommsAddrRec from, int gameID )
|
||||
{
|
||||
if ( BuildConfig.DO_MQTT_GAME_GONE ) {
|
||||
String player = XwJNI.kplr_nameForMqttDev( from.mqtt_devID );
|
||||
ConnExpl expl = null == player ? null
|
||||
: new ConnExpl( CommsConnType.COMMS_CONN_MQTT, player );
|
||||
new MQTTServiceHelper( context, from )
|
||||
.postEvent( MultiService.MultiEvent.MESSAGE_NOGAME, gameID,
|
||||
expl );
|
||||
} else {
|
||||
Log.d( TAG, "not posting game-gone for now (gameID: %d)" , gameID );
|
||||
}
|
||||
String player = XwJNI.kplr_nameForMqttDev( from.mqtt_devID );
|
||||
ConnExpl expl = null == player ? null
|
||||
: new ConnExpl( CommsConnType.COMMS_CONN_MQTT, player );
|
||||
new MQTTServiceHelper( context, from )
|
||||
.postEvent( MultiService.MultiEvent.MESSAGE_NOGAME, gameID,
|
||||
expl );
|
||||
}
|
||||
|
||||
public static void fcmConfirmed( Context context, boolean working )
|
||||
|
|
Loading…
Reference in a new issue