Changeset View
Changeset View
Standalone View
Standalone View
build.gradle
- This file was copied to app/build.gradle.
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |||||
buildscript { | buildscript { | ||||
repositories { | repositories { | ||||
jcenter() | jcenter() | ||||
maven { url 'https://maven.google.com' } | maven { url 'https://maven.google.com' } | ||||
google() | google() | ||||
} | } | ||||
dependencies { | |||||
classpath 'com.android.tools.build:gradle:7.3.1' | |||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21" | |||||
} | |||||
} | |||||
ext { | ext { | ||||
androidXTestVersion = "1.4.0" | androidXTestVersion = "1.4.0" | ||||
//multidex | //multidex | ||||
multidex_version = "2.0.1" | multidex_version = "2.0.1" | ||||
//libraries versions | //libraries versions | ||||
fragment_version = "1.4.1" | fragment_version = "1.4.1" | ||||
activity_version = "1.4.0" | activity_version = "1.4.0" | ||||
appcompat_version = "1.4.1" | appcompat_version = "1.4.1" | ||||
preference_version = "1.2.0" | preference_version = "1.2.0" | ||||
work_version = "2.7.1" | work_version = "2.7.1" | ||||
acra_version = "5.7.0" | acra_version = "5.7.0" | ||||
lifecycle_version = "2.4.1" | lifecycle_version = "2.4.1" | ||||
arch_version = "2.1.0" | arch_version = "2.1.0" | ||||
room_version = "2.4.1" | room_version = "2.4.1" | ||||
//kotlin | //kotlin | ||||
kotlin_version = '1.6.0' | kotlin_version = '1.6.0' | ||||
coroutines_version = "1.5.0" | coroutines_version = "1.5.0" | ||||
} | } | ||||
dependencies { | |||||
classpath 'com.android.tools.build:gradle:4.2.2' | |||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21" | |||||
} | |||||
} | |||||
allprojects { | allprojects { | ||||
repositories { | repositories { | ||||
jcenter() | jcenter() | ||||
maven { url 'https://maven.google.com' } | maven { url 'https://maven.google.com' } | ||||
google() | google() | ||||
mavenCentral() | mavenCentral() | ||||
} | } | ||||
} | } | ||||
apply plugin: 'com.android.application' | |||||
apply plugin: 'kotlin-android' | |||||
apply plugin: 'kotlin-kapt' | |||||
android { | |||||
compileSdkVersion 31 | |||||
buildToolsVersion '30.0.3' | |||||
defaultConfig { | |||||
applicationId "it.reyboz.bustorino" | |||||
minSdkVersion 16 | |||||
targetSdkVersion 31 | |||||
versionCode 46 | |||||
versionName "1.18.4" | |||||
vectorDrawables.useSupportLibrary = true | |||||
multiDexEnabled true | |||||
javaCompileOptions { | |||||
annotationProcessorOptions { | |||||
arguments = ["room.schemaLocation": "$projectDir/assets/schemas/".toString()] | |||||
} | |||||
} | |||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | |||||
} | |||||
compileOptions { | |||||
sourceCompatibility JavaVersion.VERSION_1_8 | |||||
targetCompatibility JavaVersion.VERSION_1_8 | |||||
} | |||||
sourceSets { | |||||
androidTest.assets.srcDirs += files("$projectDir/assets/schemas/".toString()) | |||||
main { | |||||
manifest.srcFile 'AndroidManifest.xml' | |||||
java.srcDirs = ['src'] | |||||
resources.srcDirs = ['src'] | |||||
aidl.srcDirs = ['src'] | |||||
renderscript.srcDirs = ['src'] | |||||
res.srcDirs = ['res'] | |||||
assets.srcDirs = ['assets'] | |||||
} | |||||
} | |||||
buildTypes { | |||||
debug { | |||||
applicationIdSuffix ".debug" | |||||
versionNameSuffix "-dev" | |||||
} | |||||
} | |||||
lintOptions { | |||||
abortOnError false | |||||
} | |||||
repositories { | |||||
jcenter() | |||||
mavenLocal() | |||||
} | |||||
dependencies { | |||||
//new libraries | |||||
implementation "androidx.fragment:fragment-ktx:$fragment_version" | |||||
implementation "androidx.activity:activity:$activity_version" | |||||
implementation "androidx.annotation:annotation:1.3.0" | |||||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" | |||||
implementation "androidx.appcompat:appcompat:$appcompat_version" | |||||
implementation "androidx.appcompat:appcompat-resources:$appcompat_version" | |||||
implementation "androidx.preference:preference:$preference_version" | |||||
implementation "androidx.work:work-runtime:$work_version" | |||||
implementation "com.google.android.material:material:1.5.0" | |||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3' | |||||
implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0" | |||||
implementation 'org.jsoup:jsoup:1.13.1' | |||||
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1' | |||||
implementation 'com.android.volley:volley:1.2.1' | |||||
implementation 'org.osmdroid:osmdroid-android:6.1.10' | |||||
// ACRA | |||||
implementation "ch.acra:acra-mail:$acra_version" | |||||
implementation "ch.acra:acra-dialog:$acra_version" | |||||
// google transit realtime | |||||
implementation 'com.google.protobuf:protobuf-java:3.14.0' | |||||
// ViewModel | |||||
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" | |||||
// LiveData | |||||
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" | |||||
// Lifecycles only (without ViewModel or LiveData) | |||||
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" | |||||
// Legacy | |||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0' | |||||
// Room components | |||||
implementation "androidx.room:room-ktx:$room_version" | |||||
kapt "androidx.room:room-compiler:$room_version" | |||||
//multidex - we need this to build the app | |||||
implementation "androidx.multidex:multidex:$multidex_version" | |||||
implementation 'de.siegmar:fastcsv:2.0.0' | |||||
testImplementation 'junit:junit:4.12' | |||||
implementation 'junit:junit:4.12' | |||||
implementation "androidx.test.ext:junit:1.1.3" | |||||
implementation "androidx.test:core:$androidXTestVersion" | |||||
implementation "androidx.test:runner:$androidXTestVersion" | |||||
implementation "androidx.room:room-testing:$room_version" | |||||
androidTestImplementation "androidx.test.ext:junit:1.1.3" | |||||
androidTestImplementation "androidx.test:core:$androidXTestVersion" | |||||
androidTestImplementation "androidx.test:runner:$androidXTestVersion" | |||||
androidTestImplementation "androidx.test:rules:$androidXTestVersion" | |||||
androidTestImplementation "androidx.room:room-testing:$room_version" | |||||
} | |||||
} | |||||
dependencies { | |||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | |||||
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version" | |||||
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version" | |||||
implementation 'androidx.legacy:legacy-support-v4:1.0.0' | |||||
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.1' | |||||
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1' | |||||
} |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register