1
0
Fork 0

fixed deprecated way of assignment in build.gradle

This commit is contained in:
sspanak 2025-06-16 17:22:19 +03:00 committed by Dimo Karaivanov
parent 612ab66075
commit 5f459ee3dd
2 changed files with 14 additions and 13 deletions

View file

@ -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'
} }
} }

View file

@ -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) {