115 lines
4.8 KiB
Groovy
115 lines
4.8 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlinx-serialization'
|
|
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
|
|
|
|
if (file("google-services.json").exists() && file("src/debug/google-services.json").exists()) {
|
|
logger.lifecycle("Firebase Enabled")
|
|
apply plugin: 'com.google.gms.google-services'
|
|
apply plugin: 'com.google.firebase.crashlytics'
|
|
apply plugin: 'com.google.firebase.firebase-perf'
|
|
} else {
|
|
logger.lifecycle("Firebase Disabled")
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
defaultConfig {
|
|
applicationId "xyz.quaver.pupil"
|
|
minSdkVersion 16
|
|
targetSdkVersion 30
|
|
versionCode 57
|
|
versionName "5.0-beta8"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
vectorDrawables.useSupportLibrary = true
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
|
|
debuggable true
|
|
applicationIdSuffix ".debug"
|
|
versionNameSuffix "-DEBUG"
|
|
|
|
buildConfigField('Boolean', 'CENSOR', 'false')
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
ext.enableCrashlytics = false
|
|
ext.alwaysUpdateBuildId = false
|
|
}
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
|
|
buildConfigField('Boolean', 'CENSOR', 'false')
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
freeCompilerArgs += '-Xuse-experimental=kotlin.Experimental'
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
buildToolsVersion = '29.0.3'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9"
|
|
//implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:1.0.0-RC"
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
|
|
implementation 'androidx.preference:preference:1.1.1'
|
|
implementation 'androidx.gridlayout:gridlayout:1.0.0'
|
|
implementation "androidx.biometric:biometric:1.0.1"
|
|
implementation 'androidx.fragment:fragment-ktx:1.2.5'
|
|
implementation "com.daimajia.swipelayout:library:1.2.0@aar"
|
|
implementation 'com.google.android.material:material:1.3.0-alpha02'
|
|
implementation 'com.google.firebase:firebase-core:17.5.0'
|
|
implementation 'com.google.firebase:firebase-analytics:17.5.0'
|
|
implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
|
|
implementation 'com.google.firebase:firebase-perf:19.0.8'
|
|
implementation 'com.google.android.gms:play-services-oss-licenses:17.0.0'
|
|
implementation 'com.github.arimorty:floatingsearchview:2.1.1'
|
|
implementation 'com.github.clans:fab:1.6.4'
|
|
//implementation 'com.quiph.ui:recyclerviewfastscroller:0.2.1'
|
|
//noinspection GradleDependency
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.12'
|
|
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
|
implementation ("com.github.bumptech.glide:okhttp3-integration:4.11.0") {
|
|
transitive = false
|
|
}
|
|
implementation 'com.github.bumptech.glide:annotations:4.11.0'
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
|
implementation ("com.github.bumptech.glide:recyclerview-integration:4.11.0") {
|
|
transitive = false
|
|
}
|
|
implementation 'com.tbuonomo.andrui:viewpagerdotsindicator:4.1.2'
|
|
implementation 'net.rdrei.android.dirchooser:library:3.2@aar'
|
|
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
|
|
implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
|
|
//implementation 'com.andrognito.pinlockview:pinlockview:2.1.0'
|
|
implementation "ru.noties.markwon:core:3.1.0"
|
|
implementation ("xyz.quaver:libpupil:1.5") {
|
|
exclude group: 'org.jetbrains.kotlinx', module: 'kotlinx-serialization-core-jvm'
|
|
}
|
|
implementation "xyz.quaver:documentfilex:0.2.15"
|
|
testImplementation 'junit:junit:4.13'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
}
|
|
|
|
androidExtensions {
|
|
experimental = true
|
|
} |