Files
simplefileupload-android/app/build.gradle

95 lines
2.8 KiB
Groovy
Raw Permalink Normal View History

2024-10-07 22:47:30 -04:00
plugins {
id 'com.android.application'
2025-04-14 22:37:20 -04:00
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
2024-10-07 22:47:30 -04:00
}
android {
namespace 'com.mattintech.simplelogupload'
2025-04-14 22:37:20 -04:00
compileSdkVersion 36
2024-10-07 22:47:30 -04:00
defaultConfig {
applicationId "com.mattintech.simplelogupload"
minSdkVersion 30
2025-04-14 22:37:20 -04:00
targetSdkVersion 36
versionCode 2
versionName "25.12.1"
2024-10-07 22:47:30 -04:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
2025-04-14 22:37:20 -04:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
// Optional: explicitly specify Java toolchain
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
2024-10-07 22:47:30 -04:00
}
dependencies {
2025-04-14 22:37:20 -04:00
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// Core Android UI
2024-10-07 22:47:30 -04:00
implementation 'androidx.appcompat:appcompat:1.6.1'
2025-04-14 22:37:20 -04:00
implementation 'com.google.android.material:material:1.11.0'
2024-10-07 22:47:30 -04:00
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
2025-04-14 22:37:20 -04:00
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
// Networking
2024-10-07 22:47:30 -04:00
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
2025-04-14 22:37:20 -04:00
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'androidx.palette:palette:1.0.0'
// QR Code scanning
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
2025-04-14 22:37:20 -04:00
// Room
def room_version = "2.6.1"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// Lifecycle
def lifecycle_version = "2.6.2"
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
// UI Components
implementation "androidx.recyclerview:recyclerview:1.3.2"
implementation "androidx.cardview:cardview:1.0.0"
// Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
// Testing
2024-10-07 22:47:30 -04:00
testImplementation 'junit:junit:4.13.2'
2025-04-14 22:37:20 -04:00
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
// Kotlin compatibility
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version") {
because("Merged into kotlin-stdlib")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version") {
because("Merged into kotlin-stdlib")
}
}
2024-10-07 22:47:30 -04:00
}