Commit 47d6a07b authored by Izol's avatar Izol

adjust build gradle and local properties

parent e95c346e
...@@ -23,16 +23,24 @@ if (flutterVersionName == null) { ...@@ -23,16 +23,24 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
\
android { android {
compileSdkVersion flutter.compileSdkVersion compileSdkVersion 33
ndkVersion flutter.ndkVersion ndkVersion flutter.ndkVersion
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = '1.8'
...@@ -48,20 +56,28 @@ android { ...@@ -48,20 +56,28 @@ android {
// You can update the following values to match your application needs. // You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 22 minSdkVersion 22
targetSdkVersion 32 targetSdkVersion 33
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
// Sun miT2S
// ndk {
// abiFilters 'armeabi', 'armeabi-v7a'
// }
// Sun miT2Mini
ndk { ndk {
abiFilters 'arm64-v8a', 'armeabi', 'armeabi-v7a' abiFilters 'arm64-v8a', 'armeabi', 'armeabi-v7a'
} }
} }
buildTypes { buildTypes {
release { release {
// TODO: Add your own signing config for the release build. // TODO: add signing config for the release build
// Signing with the debug keys for now, so `flutter run --release` works. shrinkResources false
signingConfig signingConfigs.debug minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
multiDexEnabled true
} }
} }
} }
...@@ -71,12 +87,13 @@ flutter { ...@@ -71,12 +87,13 @@ flutter {
} }
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21"
implementation fileTree(dir: 'libs', include: ['*.jar'])
// implementation 'com.google.android.material:material:<version>' // implementation 'com.google.android.material:material:<version>'
implementation "com.google.code.gson:gson:2.8.9" implementation 'com.google.code.gson:gson:2.10.1'
implementation 'com.android.support:support-annotations:28.0.0' implementation 'com.android.support:support-annotations:28.0.0'
implementation 'androidx.annotation:annotation:1.4.0' implementation 'androidx.annotation:annotation:1.5.0'
// library mdd // library mdd
implementation(group: 'com.mdd.topup', name: 'mifare_mdd_lib', version: '0.0.11', ext: 'aar') implementation(group: 'com.mdd.topup', name: 'mifare_mdd_lib', version: '0.0.11', ext: 'aar')
...@@ -91,7 +108,7 @@ dependencies { ...@@ -91,7 +108,7 @@ dependencies {
implementation(group: 'com.mdd.payment', name: 'dcard-d8-nlibrary-release', version: '1.0.0', ext: 'aar') implementation(group: 'com.mdd.payment', name: 'dcard-d8-nlibrary-release', version: '1.0.0', ext: 'aar')
implementation project (path: ':escposprinter') implementation project (path: ':escposprinter')
implementation 'com.sunmi:printerlibrary:1.0.9' implementation 'com.sunmi:printerlibrary:1.0.19'
implementation 'com.github.danielfelgar:draw-receipt:0.1.3' implementation 'com.github.danielfelgar:draw-receipt:0.1.3'
implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:retrofit:2.9.0'
......
...@@ -2,4 +2,4 @@ sdk.dir=C:\\Users\\MDD HP\\AndroidSDK ...@@ -2,4 +2,4 @@ sdk.dir=C:\\Users\\MDD HP\\AndroidSDK
flutter.buildMode=debug flutter.buildMode=debug
flutter.versionCode=1 flutter.versionCode=1
flutter.sdk=C:\\Users\\MDD HP\\flutter flutter.sdk=C:\\Users\\MDD HP\\flutter
flutter.versionName=1.0.0 flutter.versionName=SS.3.WHO
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment