|
| 1 | +plugins { |
| 2 | + id("com.android.application") |
| 3 | + id("kotlin-android") |
| 4 | + id("com.google.devtools.ksp") |
| 5 | +} |
| 6 | + |
| 7 | +android { |
| 8 | + |
| 9 | + compileOptions { |
| 10 | + sourceCompatibility = JavaVersion.VERSION_17 |
| 11 | + targetCompatibility = JavaVersion.VERSION_17 |
| 12 | + } |
| 13 | + |
| 14 | + defaultConfig { |
| 15 | + applicationId = "de.raphaelebner.roomdatabasebackup.sample" |
| 16 | + minSdk = 21 |
| 17 | + targetSdk = 34 |
| 18 | + compileSdk = 34 |
| 19 | + buildToolsVersion = "34.0.0" |
| 20 | + versionCode = 1 |
| 21 | + versionName = "1.0.3" |
| 22 | + |
| 23 | + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" |
| 24 | + ksp { |
| 25 | + arg("room.schemaLocation", "$projectDir/schemas") |
| 26 | + arg("room.incremental", "true") |
| 27 | + arg("room.expandProjection", "true") |
| 28 | + } |
| 29 | + } |
| 30 | + |
| 31 | + buildTypes { |
| 32 | + getByName("release") { |
| 33 | + isMinifyEnabled = false |
| 34 | + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") |
| 35 | + } |
| 36 | + } |
| 37 | + |
| 38 | + buildFeatures { |
| 39 | + viewBinding = true |
| 40 | + } |
| 41 | + |
| 42 | + kotlinOptions { |
| 43 | + jvmTarget = JavaVersion.VERSION_17.toString() |
| 44 | + } |
| 45 | + namespace = "de.raphaelebner.roomdatabasebackup.sample" |
| 46 | +} |
| 47 | + |
| 48 | +dependencies { |
| 49 | + implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) |
| 50 | + implementation("androidx.core:core-ktx:1.12.0") |
| 51 | + implementation("androidx.appcompat:appcompat:1.6.1") |
| 52 | + implementation("androidx.constraintlayout:constraintlayout:2.1.4") |
| 53 | + implementation(project(":core")) |
| 54 | + implementation("androidx.legacy:legacy-support-v4:1.0.0") |
| 55 | + testImplementation("junit:junit:4.13.2") |
| 56 | + androidTestImplementation("androidx.test.ext:junit:1.1.5") |
| 57 | + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") |
| 58 | + |
| 59 | + //ROOM SQLite |
| 60 | + val roomVersion = "2.6.1" |
| 61 | + |
| 62 | + implementation("androidx.room:room-runtime:$roomVersion") |
| 63 | + ksp("androidx.room:room-compiler:$roomVersion") |
| 64 | + |
| 65 | + // optional - Kotlin Extensions and Coroutines support for Room |
| 66 | + implementation("androidx.room:room-ktx:$roomVersion") |
| 67 | + |
| 68 | + // optional - RxJava support for Room |
| 69 | + implementation("androidx.room:room-rxjava2:$roomVersion") |
| 70 | + |
| 71 | + implementation("androidx.lifecycle:lifecycle-extensions:2.2.0") |
| 72 | + implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2") |
| 73 | + |
| 74 | + // optional - Guava support for Room, including Optional and ListenableFuture |
| 75 | + implementation("androidx.room:room-guava:$roomVersion") |
| 76 | + |
| 77 | + // Test helpers |
| 78 | + testImplementation("androidx.room:room-testing:$roomVersion") |
| 79 | + |
| 80 | + //Recyclerview Implementation |
| 81 | + implementation("androidx.recyclerview:recyclerview:1.3.2") |
| 82 | + |
| 83 | + //Material Design Implementation |
| 84 | + implementation("com.google.android.material:material:1.11.0") |
| 85 | + |
| 86 | +} |
0 commit comments