fixed deprecated way of assignment in build.gradle
This commit is contained in:
parent
612ab66075
commit
5f459ee3dd
2 changed files with 14 additions and 13 deletions
|
|
@ -95,23 +95,23 @@ def getVersionString = { flavor -> return flavor == 'debug' ? getDebugVersion()
|
||||||
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace PACKAGE_NAME
|
namespace = PACKAGE_NAME
|
||||||
compileSdk 35
|
compileSdk = 35
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId PACKAGE_NAME
|
applicationId = PACKAGE_NAME
|
||||||
buildFeatures.buildConfig true
|
buildFeatures.buildConfig = true
|
||||||
minSdk 21
|
minSdk = 21
|
||||||
targetSdk 35
|
targetSdk = 35
|
||||||
versionCode getVerCode()
|
versionCode = getVerCode()
|
||||||
versionName getVerName()
|
versionName = getVerName()
|
||||||
|
|
||||||
buildConfigField 'String', 'DICTIONARY_EXTENSION', "\"${DICTIONARY_OUTPUT_EXTENSION}\""
|
buildConfigField 'String', 'DICTIONARY_EXTENSION', "\"${DICTIONARY_OUTPUT_EXTENSION}\""
|
||||||
buildConfigField 'String', 'DOCS_DIR', "\"${DOCS_DIR_NAME}\""
|
buildConfigField 'String', 'DOCS_DIR', "\"${DOCS_DIR_NAME}\""
|
||||||
buildConfigField 'String', 'DONATION_URL', "\"${getDonationUrl()}\""
|
buildConfigField 'String', 'DONATION_URL', "\"${getDonationUrl()}\""
|
||||||
|
|
||||||
// F-droid hacks
|
// F-droid hacks
|
||||||
dependenciesInfo.includeInApk false
|
dependenciesInfo.includeInApk = false
|
||||||
vectorDrawables.generatedDensities = []
|
vectorDrawables.generatedDensities = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -122,10 +122,10 @@ android {
|
||||||
release {
|
release {
|
||||||
buildConfigField 'String', 'VERSION_FULL', "\"${getVersionString('release')}\""
|
buildConfigField 'String', 'VERSION_FULL', "\"${getVersionString('release')}\""
|
||||||
|
|
||||||
debuggable false
|
debuggable = false
|
||||||
jniDebuggable false
|
jniDebuggable = false
|
||||||
minifyEnabled true
|
minifyEnabled = true
|
||||||
shrinkResources true
|
shrinkResources = true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -372,6 +372,7 @@ public abstract class TypingHandler extends KeyPadHandler {
|
||||||
protected void onAcceptSuggestionAutomatically(String word) {
|
protected void onAcceptSuggestionAutomatically(String word) {
|
||||||
mInputMode.onAcceptSuggestion(word, true);
|
mInputMode.onAcceptSuggestion(word, true);
|
||||||
autoCorrectSpace(word, false, mInputMode.getSequence().isEmpty() ? -1 : mInputMode.getSequence().charAt(0) - '0');
|
autoCorrectSpace(word, false, mInputMode.getSequence().isEmpty() ? -1 : mInputMode.getSequence().charAt(0) - '0');
|
||||||
|
mInputMode.determineNextWordTextCase(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onAcceptSuggestionsDelayed(String word) {
|
private void onAcceptSuggestionsDelayed(String word) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue