chore: finish porting build .kts to .gradle
This commit is contained in:
3
build.gradle
Normal file
3
build.gradle
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
plugins {
|
||||||
|
id 'com.android.library' version '8.7.2' apply false
|
||||||
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id("com.android.library") version "8.7.2" apply false
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
kotlin.code.style=official
|
|
||||||
android.nonTransitiveRClass=true
|
android.nonTransitiveRClass=true
|
||||||
|
|||||||
41
jukebox/build.gradle
Normal file
41
jukebox/build.gradle
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
plugins {
|
||||||
|
id 'com.android.library'
|
||||||
|
}
|
||||||
|
|
||||||
|
android {
|
||||||
|
namespace 'at.lockstep.jukebox'
|
||||||
|
compileSdk 35
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdk 24
|
||||||
|
consumerProguardFiles 'consumer-rules.pro'
|
||||||
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||||||
|
}
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
|
}
|
||||||
|
testOptions {
|
||||||
|
unitTests {
|
||||||
|
includeAndroidResources = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
def room = '2.6.1'
|
||||||
|
implementation "androidx.room:room-runtime:$room"
|
||||||
|
implementation 'androidx.lifecycle:lifecycle-livedata:2.8.7'
|
||||||
|
annotationProcessor "androidx.room:room-compiler:$room"
|
||||||
|
testImplementation "androidx.room:room-testing:$room"
|
||||||
|
|
||||||
|
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
|
||||||
|
implementation 'com.squareup.retrofit2:retrofit:2.11.0'
|
||||||
|
implementation 'com.squareup.retrofit2:converter-gson:2.11.0'
|
||||||
|
implementation 'com.google.code.gson:gson:2.11.0'
|
||||||
|
|
||||||
|
testImplementation 'junit:junit:4.13.2'
|
||||||
|
testImplementation 'org.robolectric:robolectric:4.14.1'
|
||||||
|
testImplementation 'androidx.test:core:1.6.1'
|
||||||
|
}
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id("com.android.library")
|
|
||||||
}
|
|
||||||
|
|
||||||
android {
|
|
||||||
namespace = "at.lockstep.jukebox"
|
|
||||||
compileSdk = 35
|
|
||||||
|
|
||||||
defaultConfig {
|
|
||||||
minSdk = 24
|
|
||||||
consumerProguardFiles("consumer-rules.pro")
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
||||||
}
|
|
||||||
|
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
|
||||||
}
|
|
||||||
testOptions {
|
|
||||||
unitTests.isIncludeAndroidResources = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
val room = "2.6.1"
|
|
||||||
implementation("androidx.room:room-runtime:$room")
|
|
||||||
implementation("androidx.lifecycle:lifecycle-livedata:2.8.7")
|
|
||||||
annotationProcessor("androidx.room:room-compiler:$room")
|
|
||||||
testImplementation("androidx.room:room-testing:$room")
|
|
||||||
|
|
||||||
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
||||||
implementation("com.squareup.retrofit2:retrofit:2.11.0")
|
|
||||||
implementation("com.squareup.retrofit2:converter-gson:2.11.0")
|
|
||||||
implementation("com.google.code.gson:gson:2.11.0")
|
|
||||||
|
|
||||||
testImplementation("junit:junit:4.13.2")
|
|
||||||
testImplementation("org.robolectric:robolectric:4.14.1")
|
|
||||||
testImplementation("androidx.test:core:1.6.1")
|
|
||||||
}
|
|
||||||
@@ -14,5 +14,5 @@ dependencyResolutionManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "lockstep-jukebox"
|
rootProject.name = 'lockstep-jukebox'
|
||||||
include(":jukebox")
|
include ':jukebox'
|
||||||
Reference in New Issue
Block a user