plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' } android { compileSdk = rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { applicationId "com.common.android.lib" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode rootProject.ext.versionCode versionName rootProject.ext.versionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } buildFeatures { viewBinding = true dataBinding = true } buildFeatures { compose true } composeOptions { kotlinCompilerExtensionVersion compose_version } } dependencies { implementation project(':lib_common') implementation project(':lib_ad_core') implementation project(':lib_ad_admob') implementation project(':lib_ad_csj') implementation project(':lib_ad_gromore') //compose依赖 implementation "androidx.compose.ui:ui:$compose_version" implementation 'androidx.compose.material3:material3:1.0.0-alpha01' implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1' implementation 'androidx.activity:activity-compose:1.5.1' implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1" // compose 图片加载 implementation("io.coil-kt:coil-compose:2.1.0") implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1" implementation "com.google.accompanist:accompanist-insets:0.23.1" implementation "com.google.accompanist:accompanist-insets-ui:0.23.1" implementation "com.google.accompanist:accompanist-systemuicontroller:0.23.1" implementation "androidx.navigation:navigation-compose:2.5.1" implementation "androidx.compose.runtime:runtime-livedata:1.2.0" implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1" implementation 'androidx.appcompat:appcompat:1.5.0' implementation 'com.google.android.material:material:1.6.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" }