Files
Public/apps/native/android/app/build.gradle
T
daiyongkang 76f266645d Initial commit: 风影 OA 全栈源码(API/Web/Flutter/IM)
含 Phase 1.1 IM seq 排序、断线重连、多端已读同步与微信式语音转文字 UI。
排除 node_modules、构建产物、安装包与 .env 密钥。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 10:04:03 +00:00

69 lines
2.1 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"
}
def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
android {
namespace = "com.fysxkj.fengying_oa"
compileSdk = flutter.compileSdkVersion
// LiveKit/WebRTC and the current Android plugins require NDK 27+.
// 28.2 is installed in the build environment and is backwards compatible.
ndkVersion = "28.2.13676358"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
}
defaultConfig {
applicationId = "com.fengying.oa.mobile"
minSdkVersion = 23
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
signingConfigs {
release {
keyAlias = keystoreProperties["keyAlias"]
keyPassword = keystoreProperties["keyPassword"]
storeFile = keystoreProperties["storeFile"] ? file(keystoreProperties["storeFile"]) : null
storePassword = keystoreProperties["storePassword"]
}
}
buildTypes {
release {
signingConfig = signingConfigs.release
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
}
}
}
flutter {
source = "../.."
}
dependencies {
implementation "vivo:vpush:4.1.5.0"
implementation "com.heytap.msp:push:3.0.0"
implementation files("libs/push-internal-5.0.5.aar")
implementation "com.google.code.gson:gson:2.10.1"
implementation "com.huawei.agconnect:agconnect-core:1.9.0.300"
implementation "com.huawei.hms:push:6.13.0.300"
implementation "com.alphacephei:vosk-android:0.3.75@aar"
implementation "net.java.dev.jna:jna:5.13.0@aar"
}