| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- group = "com.atmob.flutter_umeng"
- version = "1.0"
- buildscript {
- repositories {
- google()
- mavenCentral()
- }
- dependencies {
- classpath("com.android.tools.build:gradle:7.3.0")
- }
- }
- rootProject.allprojects {
- repositories {
- google()
- mavenCentral()
- maven {
- credentials {
- username "$atmob_maven_username"
- password "$atmob_maven_password"
- }
- allowInsecureProtocol = true
- url "$atmob_maven_url/repository/android-group/"
- }
- }
- }
- // 加载 local.properties 文件
- def localProperties = new Properties()
- def localPropertiesFile = rootProject.file('local.properties')
- if (localPropertiesFile.exists()) {
- localPropertiesFile.withInputStream { stream ->
- localProperties.load(stream)
- }
- }
- // 读取变量
- def flutterSdk = localProperties.getProperty('flutter.sdk')
- apply plugin: "com.android.library"
- android {
- if (project.android.hasProperty("namespace")) {
- namespace = "com.atmob.flutter_umeng"
- }
- compileSdk = 34
- compileOptions {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- }
- defaultConfig {
- minSdk = 21
- }
- dependencies {
- //flutter
- compileOnly files("$flutterSdk/bin/cache/artifacts/engine/android-arm/flutter.jar")
- //AndroidX
- compileOnly "androidx.annotation:annotation:1.1.0"
- //AndroidX
- compileOnly "androidx.core:core:1.13.1"
- //友盟统计
- implementation 'com.umeng.umsdk:common:9.6.7'
- implementation 'com.umeng.umsdk:asms:1.8.0'
- implementation 'com.umeng.umsdk:apm:1.9.4'
- //渠道包信息读取
- compileOnly "extra.pack:channel:1.1.0-SNAPSHOT"
- //lifecycle
- compileOnly "androidx.lifecycle:lifecycle-process:2.6.1"
- }
- testOptions {
- unitTests.all {
- testLogging {
- events "passed", "skipped", "failed", "standardOut", "standardError"
- outputs.upToDateWhen { false }
- showStandardStreams = true
- }
- }
- }
- }
|