mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
send versionCode instead of custom flags
Since ability to grok a wordlist is a function of version, might as well have the server know about that. Requires upping versionCode prematurely, with stubbed-out release notes.
This commit is contained in:
parent
bd6bc71603
commit
565af46789
3 changed files with 17 additions and 24 deletions
|
@ -19,8 +19,8 @@
|
|||
*/
|
||||
|
||||
def INITIAL_CLIENT_VERS = 10
|
||||
def VERSION_CODE_BASE = 176
|
||||
def VERSION_NAME = '4.4.180'
|
||||
def VERSION_CODE_BASE = 177
|
||||
def VERSION_NAME = '4.4.181'
|
||||
def BUILD_INFO_NAME = "build-info.txt"
|
||||
|
||||
// Not all variants use the same BT_UUID. Those with the same talk to
|
||||
|
@ -115,7 +115,6 @@ android {
|
|||
buildConfigField "boolean", "FOR_FDROID", "false"
|
||||
buildConfigField "boolean", "HAVE_PASSWORD", "false"
|
||||
buildConfigField "boolean", "NO_NEW_RELAY", "true"
|
||||
buildConfigField "String", "DICT_FLAGS", "null"
|
||||
}
|
||||
|
||||
xw4GPlay {
|
||||
|
@ -168,7 +167,6 @@ android {
|
|||
resValue "string", "nfc_aid", "$NFC_AID_XW4d"
|
||||
externalNativeBuild.ndkBuild.cFlags += ['-DVARIANT_xw4d']
|
||||
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
||||
buildConfigField "String", "DICT_FLAGS", "\"roOK\""
|
||||
}
|
||||
|
||||
xw4dGPlay {
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>CrossWords 4.4.180 release</h2>
|
||||
<h2>CrossWords 4.4.181 release</h2>
|
||||
|
||||
<p>This release adds "dark mode"</p>
|
||||
<p>This release adds <i>PENDING</i></p>
|
||||
|
||||
<div id="survey">
|
||||
<p>Please <a href="https://www.surveymonkey.com/s/GX3XLHR">take
|
||||
|
@ -25,16 +25,7 @@
|
|||
|
||||
<h3>New with this release</h3>
|
||||
<ul>
|
||||
<li>Add "Dark" mode, off by default unless "dark theme" is
|
||||
enabled in Android Settings</li>
|
||||
<li>In App Settings, replace buttons with a popup menu</li>
|
||||
<li>Add option to share color themes (dark or light) via URLs on
|
||||
clipboard</li>
|
||||
<li>Fix bug preventing trading when 8 or 9 tiles left in pool</li>
|
||||
<li>Fix bug selecting 9th tile in 9-tile tray</li>
|
||||
<li>Fix bug not reporting deleted games when using SMS Data</li>
|
||||
<li>New translations in Chinese (Simplified), French,
|
||||
Indonesian, Portuguese, and Portuguese (Brazil)</li>
|
||||
<li><i>PENDING</i></li>
|
||||
</ul>
|
||||
|
||||
<p>(The full changelog
|
||||
|
|
|
@ -1259,10 +1259,7 @@ public class DictsDelegate extends ListDelegateBase
|
|||
// FIXME: this should pass up the language code to retrieve and
|
||||
// parse less data
|
||||
String name = null;
|
||||
String proc = String.format( "listDicts?lc=%s", m_lc );
|
||||
if ( null != BuildConfig.DICT_FLAGS ) {
|
||||
proc += "&flags=" + BuildConfig.DICT_FLAGS;
|
||||
}
|
||||
String proc = listDictsProc( m_lc );
|
||||
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
|
||||
proc );
|
||||
if ( null != conn ) {
|
||||
|
@ -1349,10 +1346,7 @@ public class DictsDelegate extends ListDelegateBase
|
|||
public Boolean doInBackground( Void... unused )
|
||||
{
|
||||
boolean success = false;
|
||||
String proc = "listDicts";
|
||||
if ( null != BuildConfig.DICT_FLAGS ) {
|
||||
proc += "?flags=" + BuildConfig.DICT_FLAGS;
|
||||
}
|
||||
String proc = listDictsProc( null );
|
||||
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
|
||||
proc );
|
||||
if ( null != conn ) {
|
||||
|
@ -1525,6 +1519,16 @@ public class DictsDelegate extends ListDelegateBase
|
|||
}
|
||||
} // class FetchListTask
|
||||
|
||||
private static String listDictsProc( String lc )
|
||||
{
|
||||
String proc = String.format( "listDicts?vc=%d",
|
||||
BuildConfig.VERSION_CODE );
|
||||
if ( null != lc ) {
|
||||
proc += String.format( "&lc=%s", lc );
|
||||
}
|
||||
return proc;
|
||||
}
|
||||
|
||||
public static void start( Delegator delegator )
|
||||
{
|
||||
delegator.addFragment( DictsFrag.newInstance( delegator ), null );
|
||||
|
|
Loading…
Reference in a new issue