fix android config

This commit is contained in:
2022-04-05 11:25:37 +06:30
parent 2b362cd8de
commit cbd8ddad08
4 changed files with 16 additions and 4 deletions

View File

@@ -31,7 +31,11 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 30
lintOptions {
checkReleaseBuilds false
}
compileSdkVersion 31
defaultConfig {
minSdkVersion 21
@@ -89,6 +93,7 @@ flutter {
dependencies {
implementation 'com.android.support:multidex:1.0.3'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
apply plugin: 'com.google.gms.google-services'

View File

@@ -1,4 +1,6 @@
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
jcenter()
@@ -7,6 +9,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath 'com.google.gms:google-services:4.3.8'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
@@ -26,3 +29,5 @@ subprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'com.google.gms.google-services'

View File

@@ -545,6 +545,8 @@
"receiving.delete.confirm":"လက်ခံခြင်းကို ဖျက်မလား?",
"receiving.return.btn":"ပစ္စည်း ပြန်ပို့မည်",
"receiving.return.confirm":"ပစ္စည်းကို ပြန်ပို့မလား?",
"receiving.consignee.name":"Consignee name",
"receiving.shipper.name":"Sender name",
"Receiving End ================================================================":"",
"Processing Start ================================================================":"",

View File

@@ -28,15 +28,15 @@ class AppTranslations {
get currentLanguage => locale.languageCode;
String text(String key, {List<String>? translationVariables}) {
String value = _localisedValues[key];
String? value = _localisedValues[key];
if (value == null) {
return "$key not found";
}
if (translationVariables != null) {
translationVariables.asMap().forEach((i, s) {
value = value.replaceAll("{$i}", s);
value = value!.replaceAll("{$i}", s);
});
}
return value;
return value!;
}
}