rtc_prd/airhub_app/android/app/build.gradle.kts
repair-agent 12bb369ac1 feat: add Android one-click login with dialog mode
- Integrate ali_auth plugin as local package (previously pub dependency)
- Fix AppCompatActivity ClassNotFoundException via proguard keep rules
- Add dialog popup mode matching iOS style (white background, rounded corners)
- Fix invisible login button by adding blue GradientDrawable background
- Add Airhub logo to authorization dialog via logoImgPath
- Fix auth page not closing after login by calling quitPage() on token success
- Update .gitignore to exclude plugin examples, screenshots, docs and backups

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 18:05:36 +08:00

51 lines
1.6 KiB
Plaintext

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.airlab.airhub.airhub_app"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.airlab.airhub.airhub_app"
// 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.getByName("debug")
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
}
dependencies {
// 阿里云一键登录SDK的授权页需要 AppCompatActivity
implementation("androidx.appcompat:appcompat:1.6.1")
}
flutter {
source = "../.."
}