poem-mobile/android/app/build.gradle
LingandRX 60acec3f52 feat: 初始化 Flutter 项目
- 添加 .gitignore 文件,配置项目忽略项
- 创建 .metadata 文件,记录项目元数据
- 编写 README.md,介绍项目基本信息
- 配置 analysis_options.yaml,设置代码分析规则
- 新增 Android 相关文件和目录,包括 Gradle 配置、资源文件等
- 新增 iOS 相关文件和目录,包括 AppFrameworkInfo.plist、Debug.xcconfig 等
2025-01-02 00:23:38 +08:00

45 lines
1.3 KiB
Groovy

plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
android {
namespace = "com.example.poem"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.poem"
// 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
}
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
}
}
}
flutter {
source = "../.."
}