fix android config
This commit is contained in:
@@ -31,7 +31,11 @@ if (keystorePropertiesFile.exists()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 30
|
lintOptions {
|
||||||
|
checkReleaseBuilds false
|
||||||
|
}
|
||||||
|
|
||||||
|
compileSdkVersion 31
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
@@ -89,6 +93,7 @@ flutter {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.android.support:multidex:1.0.3'
|
implementation 'com.android.support:multidex:1.0.3'
|
||||||
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.google.gms.google-services'
|
apply plugin: 'com.google.gms.google-services'
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
|
ext.kotlin_version = '1.6.10'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
@@ -7,6 +9,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.1.0'
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||||
classpath 'com.google.gms:google-services:4.3.8'
|
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) {
|
task clean(type: Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply plugin: 'com.google.gms.google-services'
|
||||||
|
|||||||
@@ -545,6 +545,8 @@
|
|||||||
"receiving.delete.confirm":"လက်ခံခြင်းကို ဖျက်မလား?",
|
"receiving.delete.confirm":"လက်ခံခြင်းကို ဖျက်မလား?",
|
||||||
"receiving.return.btn":"ပစ္စည်း ပြန်ပို့မည်",
|
"receiving.return.btn":"ပစ္စည်း ပြန်ပို့မည်",
|
||||||
"receiving.return.confirm":"ပစ္စည်းကို ပြန်ပို့မလား?",
|
"receiving.return.confirm":"ပစ္စည်းကို ပြန်ပို့မလား?",
|
||||||
|
"receiving.consignee.name":"Consignee name",
|
||||||
|
"receiving.shipper.name":"Sender name",
|
||||||
"Receiving End ================================================================":"",
|
"Receiving End ================================================================":"",
|
||||||
|
|
||||||
"Processing Start ================================================================":"",
|
"Processing Start ================================================================":"",
|
||||||
|
|||||||
@@ -28,15 +28,15 @@ class AppTranslations {
|
|||||||
get currentLanguage => locale.languageCode;
|
get currentLanguage => locale.languageCode;
|
||||||
|
|
||||||
String text(String key, {List<String>? translationVariables}) {
|
String text(String key, {List<String>? translationVariables}) {
|
||||||
String value = _localisedValues[key];
|
String? value = _localisedValues[key];
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return "$key not found";
|
return "$key not found";
|
||||||
}
|
}
|
||||||
if (translationVariables != null) {
|
if (translationVariables != null) {
|
||||||
translationVariables.asMap().forEach((i, s) {
|
translationVariables.asMap().forEach((i, s) {
|
||||||
value = value.replaceAll("{$i}", s);
|
value = value!.replaceAll("{$i}", s);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return value;
|
return value!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user