-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
246 additions
and
230 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("kotlin-android") | ||
id("com.google.devtools.ksp") | ||
} | ||
|
||
android { | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
defaultConfig { | ||
applicationId = "de.raphaelebner.roomdatabasebackup.sample" | ||
minSdk = 21 | ||
targetSdk = 34 | ||
compileSdk = 34 | ||
buildToolsVersion = "34.0.0" | ||
versionCode = 1 | ||
versionName = "1.0.3" | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
ksp { | ||
arg("room.schemaLocation", "$projectDir/schemas") | ||
arg("room.incremental", "true") | ||
arg("room.expandProjection", "true") | ||
} | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = JavaVersion.VERSION_17.toString() | ||
} | ||
namespace = "de.raphaelebner.roomdatabasebackup.sample" | ||
} | ||
|
||
dependencies { | ||
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar")))) | ||
implementation("androidx.core:core-ktx:1.12.0") | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("androidx.constraintlayout:constraintlayout:2.1.4") | ||
implementation(project(":core")) | ||
implementation("androidx.legacy:legacy-support-v4:1.0.0") | ||
testImplementation("junit:junit:4.13.2") | ||
androidTestImplementation("androidx.test.ext:junit:1.1.5") | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") | ||
|
||
//ROOM SQLite | ||
val roomVersion = "2.6.1" | ||
|
||
implementation("androidx.room:room-runtime:$roomVersion") | ||
ksp("androidx.room:room-compiler:$roomVersion") | ||
|
||
// optional - Kotlin Extensions and Coroutines support for Room | ||
implementation("androidx.room:room-ktx:$roomVersion") | ||
|
||
// optional - RxJava support for Room | ||
implementation("androidx.room:room-rxjava2:$roomVersion") | ||
|
||
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0") | ||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2") | ||
|
||
// optional - Guava support for Room, including Optional and ListenableFuture | ||
implementation("androidx.room:room-guava:$roomVersion") | ||
|
||
// Test helpers | ||
testImplementation("androidx.room:room-testing:$roomVersion") | ||
|
||
//Recyclerview Implementation | ||
implementation("androidx.recyclerview:recyclerview:1.3.2") | ||
|
||
//Material Design Implementation | ||
implementation("com.google.android.material:material:1.11.0") | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.