2025-07-11 18:21:26 +08:00
|
|
|
|
plugins {
|
|
|
|
|
|
alias(libs.plugins.android.application)
|
|
|
|
|
|
alias(libs.plugins.kotlin.android)
|
2025-08-06 18:57:26 +08:00
|
|
|
|
alias(libs.plugins.google.gms.google.services)
|
|
|
|
|
|
alias(libs.plugins.google.firebase.crashlytics)
|
2025-07-11 18:21:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
namespace 'com.example.longyi_groundstation'
|
|
|
|
|
|
compileSdk 35
|
|
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
|
applicationId "com.example.longyi_groundstation"
|
|
|
|
|
|
minSdk 24
|
|
|
|
|
|
targetSdk 35
|
|
|
|
|
|
versionCode 1
|
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
|
|
|
|
|
|
|
ndk {
|
|
|
|
|
|
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
|
|
|
|
|
abiFilters "armeabi-v7a", "arm64-v8a"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
|
release {
|
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
|
main {
|
|
|
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
|
jvmTarget = '11'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
implementation files(fileTree(include: ['*.jar'], dir: 'libs'))
|
|
|
|
|
|
implementation libs.appcompat
|
|
|
|
|
|
implementation libs.material
|
|
|
|
|
|
implementation libs.activity
|
|
|
|
|
|
implementation libs.constraintlayout
|
|
|
|
|
|
implementation libs.core.ktx
|
2025-08-06 18:57:26 +08:00
|
|
|
|
implementation libs.firebase.crashlytics
|
2025-07-11 18:21:26 +08:00
|
|
|
|
testImplementation libs.junit
|
|
|
|
|
|
androidTestImplementation libs.ext.junit
|
|
|
|
|
|
androidTestImplementation libs.espresso.core
|
|
|
|
|
|
|
|
|
|
|
|
implementation 'io.dronefleet.mavlink:mavlink:1.1.11'
|
|
|
|
|
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
|
|
|
|
implementation 'io.github.xmaihh:serialport:2.1.1' //有用
|
|
|
|
|
|
implementation 'com.licheedev:android-serialport:2.1.5'
|
|
|
|
|
|
|
|
|
|
|
|
implementation 'com.google.android.flexbox:flexbox:3.0.0'//自动补齐布局
|
|
|
|
|
|
|
|
|
|
|
|
implementation files("libs/fpvplayer-v3.2.2.aar")
|
|
|
|
|
|
implementation files("libs/sky-ijkplayer-v1.1.aar")
|
|
|
|
|
|
implementation files("libs/rcsdk-v1.2.1.aar")
|
|
|
|
|
|
implementation files("libs/isoparser-1.1.9.jar")//用于H264封装为MP4
|
|
|
|
|
|
|
2025-09-03 15:53:49 +08:00
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
|
|
|
|
|
|
implementation 'com.squareup.okio:okio:3.2.0'
|
2025-11-12 09:23:40 +08:00
|
|
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
2025-11-18 14:47:47 +08:00
|
|
|
|
implementation(files("libs/mobile-ffmpeg.aar"))
|
2025-11-24 18:29:10 +08:00
|
|
|
|
// implementation files("libs/org.eclipse.paho.mqttv5.client-1.2.5.jar")
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-03 15:53:49 +08:00
|
|
|
|
|
2025-08-06 18:57:26 +08:00
|
|
|
|
|
2025-07-11 18:21:26 +08:00
|
|
|
|
|
|
|
|
|
|
// implementation 'com.github.licheedev.Android-SerialPort-API:serialport:2.0.0'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|