Programmierbeleg/app/build.gradle
2022-08-24 07:45:59 +01:00

106 lines
3.5 KiB
Groovy

buildscript {
repositories {
google()
}
dependencies {
def nav_version = "2.5.1"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
classpath "com.android.tools.lint:lint-gradle:30.2.2"
}
}
plugins {
id 'com.android.application'
id 'androidx.navigation.safeargs' version '2.5.1'
}
android {
signingConfigs {
release {
storeFile file('/home/darkkirb/teststore.jks')
storePassword '123456'
keyAlias 'key0'
keyPassword '123456'
}
}
compileSdk 33
defaultConfig {
applicationId "rs.chir.invtracker.client"
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.release
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig null
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_15
targetCompatibility JavaVersion.VERSION_15
}
buildFeatures {
viewBinding true
}
packagingOptions {
exclude '/META-INF/AL2.0'
exclude '/META-INF/LGPL2.1'
exclude '/com/sun/jna/**'
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.5.0'
implementation 'com.google.android.material:material:1.7.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation "androidx.navigation:navigation-fragment:2.5.1"
implementation "androidx.navigation:navigation-ui:2.5.1"
implementation "androidx.datastore:datastore-preferences:1.0.0"
implementation 'androidx.datastore:datastore-rxjava3:1.0.0'
implementation 'androidx.datastore:datastore-preferences-rxjava3:1.0.0'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.google.android.gms:play-services-cronet:18.0.1'
implementation 'org.chromium.net:cronet-fallback:102.5005.125'
implementation 'com.google.net.cronet:cronet-okhttp:0.1.0'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.10'
implementation project(path: ':invtracker')
implementation 'androidx.annotation:annotation:1.4.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
implementation 'androidx.preference:preference:1.2.0'
implementation 'com.google.android.gms:play-services-location:20.0.0'
implementation 'com.google.zxing:core:3.5.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'org.bouncycastle:bcprov-jdk15to18:1.71'
implementation "androidx.camera:camera-core:1.1.0"
implementation "androidx.camera:camera-camera2:1.1.0"
implementation "androidx.camera:camera-lifecycle:1.1.0"
implementation "androidx.camera:camera-view:1.1.0"
implementation 'org.osmdroid:osmdroid-android:6.1.13'
def work_version = "2.7.1"
implementation "androidx.work:work-runtime:$work_version"
implementation "androidx.work:work-rxjava3:$work_version"
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
// workaround for gradle being terrible
compileOnly "com.android.tools.build:aapt2:7.2.2-7984345"
}