81 lines
2.3 KiB
Groovy
81 lines
2.3 KiB
Groovy
plugins {
|
|
id "com.android.application"
|
|
id "kotlin-android"
|
|
id "dev.flutter.flutter-gradle-plugin"
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.pj_supermarket_cloud"
|
|
compileSdk 35
|
|
ndkVersion = flutter.ndkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
sourceSets {
|
|
main() {
|
|
jniLibs.srcDirs = ['src/main/jniLibs']
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
applicationId = "com.example.pj_supermarket_cloud"
|
|
// You can update the following values to match your application needs.
|
|
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
|
minSdk = flutter.minSdkVersion
|
|
targetSdk = flutter.targetSdkVersion
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
ndk {
|
|
abiFilters 'arm64-v8a'
|
|
}
|
|
}
|
|
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
// TODO: Add your own signing config for the release build.
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
signingConfig = signingConfigs.debug
|
|
shrinkResources true
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
buildToolsVersion '29.0.2'
|
|
}
|
|
|
|
flutter {
|
|
source = "../.."
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// rxjava
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.9'
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
|
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
|
|
implementation 'com.tencent.bugly:crashreport:4.1.9.3'
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.10.0'
|
|
implementation 'androidx.activity:activity:1.8.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
}
|
|
|