| 1 | plugins { |
| 2 | id("com.android.library") |
| 3 | id("org.jetbrains.kotlin.android") |
| 4 | } |
| 5 | |
| 6 | android { |
| 7 | namespace = "com.plugin.admob" |
| 8 | compileSdk = 36 |
| 9 | |
| 10 | defaultConfig { |
| 11 | minSdk = 21 |
| 12 | targetSdk = 34 |
| 13 | |
| 14 | testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 15 | consumerProguardFiles("consumer-rules.pro") |
| 16 | } |
| 17 | |
| 18 | buildTypes { |
| 19 | release { |
| 20 | isMinifyEnabled = false |
| 21 | proguardFiles( |
| 22 | getDefaultProguardFile("proguard-android-optimize.txt"), |
| 23 | "proguard-rules.pro" |
| 24 | ) |
| 25 | } |
| 26 | } |
| 27 | compileOptions { |
| 28 | sourceCompatibility = JavaVersion.VERSION_1_8 |
| 29 | targetCompatibility = JavaVersion.VERSION_1_8 |
| 30 | } |
| 31 | kotlinOptions { |
| 32 | jvmTarget = "1.8" |
| 33 | freeCompilerArgs += "-Xskip-metadata-version-check" |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | dependencies { |
| 38 | // admob plugin |
| 39 | implementation("com.google.android.gms:play-services-ads:24.5.0") |
| 40 | implementation("androidx.core:core-ktx:1.17.0") |
| 41 | implementation("androidx.appcompat:appcompat:1.7.1") |
| 42 | implementation("com.google.android.material:material:1.13.0") |
| 43 | implementation("com.google.android.ump:user-messaging-platform:4.0.0") |
| 44 | testImplementation("junit:junit:4.13.2") |
| 45 | androidTestImplementation("androidx.test.ext:junit:1.3.0") |
| 46 | androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0") |
| 47 | implementation(project(":tauri-android")) |
| 48 | } |