增加群组通知过滤

This commit is contained in:
gem
2025-11-20 14:27:36 +08:00
parent cdc12e513c
commit a35eba1160
23 changed files with 1062 additions and 126 deletions

View File

@@ -49,6 +49,7 @@ android {
// 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
minifyEnabled true
}
}
}

View File

@@ -1,4 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<application
android:label="example"
android:name="${applicationName}"

View File

@@ -1,10 +1,54 @@
buildscript {
// 1. 修改这里:将 Kotlin 版本升级到 1.9.24 以解决 "Module was compiled with... 1.9.0" 报错
ext.kotlin_version = '1.9.24'
repositories {
// 2. 优化网络:优先使用阿里云镜像,解决下载慢/超时/握手失败问题
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
google()
mavenCentral()
}
dependencies {
// Android Gradle 插件版本 (保持您当前的 7.3.0 即可,如果报错提示不兼容再升级到 7.4.2)
classpath 'com.android.tools.build:gradle:7.3.0'
// Kotlin 插件 (这里引用了上面定义的 ext.kotlin_version)
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
// === 本地 AAR 调试配置 ===
// 启用本地调试: 取消下面这行的注释
maven { url 'file://' + projectDir.absolutePath + '/local-maven' }
// === 本地 AAR 配置结束 ===
// 3. 优化网络allprojects 也要加镜像
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
google()
mavenCentral()
}
}
// === 强制使用本地 AAR 版本 (调试时取消注释) ===
// 注意: 必须配合上面的本地 Maven 仓库一起使用
configurations.all {
resolutionStrategy {
force 'com.openim:sdkcore:1.0.15-local'
}
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
@@ -15,4 +59,4 @@ subprojects {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
}

View File

@@ -19,7 +19,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "org.jetbrains.kotlin.android" version "1.9.24" apply false
}
include ":app"