mirror of
https://gitlab.shinice.net/pixeldroid/PixelDroid
synced 2024-12-23 05:27:37 +01:00
0a4d285d14
Not much actual code is changed
214 lines
7.5 KiB
Groovy
214 lines
7.5 KiB
Groovy
plugins {
|
|
id "com.cookpad.android.plugin.license-tools" version "1.2.2"
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'jacoco'
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 30
|
|
buildToolsVersion '30.0.2'
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs += ["-Xopt-in=kotlin.RequiresOptIn"]
|
|
}
|
|
defaultConfig {
|
|
applicationId "com.h.pixeldroid"
|
|
minSdkVersion 23
|
|
targetSdkVersion 30
|
|
versionCode 8
|
|
versionName "1.0.alpha7"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
testInstrumentationRunnerArguments clearPackageData: 'true'
|
|
}
|
|
lintOptions{
|
|
disable 'MissingTranslation'
|
|
}
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/java'
|
|
test.java.srcDirs += 'src/test/java'
|
|
androidTest.java.srcDirs += 'src/androidTest/java'
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
debug {
|
|
testCoverageEnabled true
|
|
}
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
testOptions {
|
|
animationsDisabled true
|
|
|
|
}
|
|
buildFeatures {
|
|
viewBinding = true
|
|
}
|
|
|
|
apply plugin: 'kotlin-kapt'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
|
/**
|
|
* AndroidX dependencies:
|
|
*/
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
implementation 'androidx.core:core-ktx:1.3.2'
|
|
implementation 'androidx.preference:preference-ktx:1.1.1'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
|
implementation "androidx.browser:browser:1.3.0"
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.2'
|
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'
|
|
implementation 'androidx.paging:paging-runtime-ktx:3.0.0-alpha11'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0'
|
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
|
|
implementation "androidx.annotation:annotation:1.1.0"
|
|
implementation 'androidx.gridlayout:gridlayout:1.0.0'
|
|
|
|
// Use the most recent version of CameraX
|
|
def cameraX_version = '1.0.0-rc01'
|
|
implementation "androidx.camera:camera-core:${cameraX_version}"
|
|
implementation "androidx.camera:camera-camera2:${cameraX_version}"
|
|
// CameraX Lifecycle library
|
|
implementation "androidx.camera:camera-lifecycle:$cameraX_version"
|
|
|
|
// CameraX View class
|
|
implementation 'androidx.camera:camera-view:1.0.0-alpha20'
|
|
|
|
def room_version = "2.3.0-alpha04"
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
kapt "androidx.room:room-compiler:$room_version"
|
|
implementation "androidx.room:room-ktx:$room_version"
|
|
|
|
/**
|
|
* End of AndroidX section
|
|
* ----------------------------------------------------------
|
|
*/
|
|
|
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
//Dagger (dependency injection)
|
|
implementation 'com.google.dagger:dagger-android:2.30.1'
|
|
implementation 'com.google.dagger:dagger-android-support:2.30.1'
|
|
// if you use the support libraries
|
|
kapt 'com.google.dagger:dagger-android-processor:2.30.1'
|
|
kapt 'com.google.dagger:dagger-compiler:2.30.1'
|
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.20'
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
implementation 'com.github.connyduck:sparkbutton:4.0.0'
|
|
|
|
|
|
implementation 'info.androidhive:imagefilters:1.0.7'
|
|
implementation 'com.github.yalantis:ucrop:2.2.6-native'
|
|
|
|
implementation("com.github.bumptech.glide:glide:4.11.0") {
|
|
exclude group: "com.android.support"
|
|
}
|
|
|
|
implementation "com.github.bumptech.glide:okhttp-integration:4.11.0"
|
|
implementation("com.github.bumptech.glide:recyclerview-integration:4.11.0") {
|
|
// Excludes the support library because it's already included by Glide.
|
|
transitive = false
|
|
}
|
|
kapt 'com.github.bumptech.glide:compiler:4.11.0'
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation "com.mikepenz:materialdrawer:8.1.8"
|
|
// Add for NavController support
|
|
implementation "com.mikepenz:materialdrawer-nav:8.1.5"
|
|
|
|
//iconics
|
|
implementation "com.mikepenz:iconics-core:5.0.3"
|
|
implementation "com.mikepenz:materialdrawer-iconics:8.1.8"
|
|
implementation "com.mikepenz:iconics-views:5.0.3"
|
|
implementation 'com.mikepenz:google-material-typeface:3.0.1.4.original-kotlin@aar'
|
|
|
|
|
|
implementation 'com.karumi:dexter:6.2.2'
|
|
|
|
implementation 'com.github.ligi.tracedroid:lib:3.0'
|
|
implementation 'com.github.ligi.tracedroid:supportemail:3.0'
|
|
|
|
|
|
/**
|
|
* Not in release, so not mentioned in licenses list
|
|
*/
|
|
|
|
// debugImplementation required vs testImplementation: https://issuetracker.google.com/issues/128612536
|
|
debugImplementation("androidx.fragment:fragment-testing:1.2.5") {
|
|
exclude group:'androidx.test', module:'monitor'
|
|
}
|
|
|
|
testImplementation 'com.github.tomakehurst:wiremock-jre8:2.27.2'
|
|
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
|
|
testImplementation 'junit:junit:4.13.1'
|
|
testImplementation "androidx.room:room-testing:$room_version"
|
|
|
|
|
|
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test:runner:1.3.0'
|
|
androidTestImplementation 'androidx.test:rules:1.3.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.3.0'
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
|
|
androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.9.0'
|
|
|
|
}
|
|
|
|
tasks.withType(Test) {
|
|
jacoco.includeNoLocationClasses = true
|
|
jacoco.excludes = ['jdk.internal.*']
|
|
}
|
|
|
|
|
|
task jacocoTestReport(type: JacocoReport, dependsOn: ['connectedDebugAndroidTest', 'testDebugUnitTest', 'createDebugCoverageReport']) {
|
|
|
|
reports {
|
|
xml.enabled = true
|
|
html.enabled = true
|
|
}
|
|
|
|
def fileFilter = ['**/R.class', '**/R$*.class', '**/BuildConfig.*', '**/Manifest*.*', '**/*Test*.*', 'android/**/*.*']
|
|
def kotlinDebugTree = fileTree(dir: "$project.buildDir/tmp/kotlin-classes/debug", excludes: fileFilter)
|
|
def mainSrc = "$project.projectDir/src/main/java"
|
|
getSourceDirectories().from(files([mainSrc]))
|
|
getClassDirectories().from(files([kotlinDebugTree]))
|
|
getExecutionData().from(fileTree(dir: project.buildDir, includes: [
|
|
|
|
'outputs/code_coverage/debugAndroidTest/connected/*coverage.ec',
|
|
|
|
'jacoco/testDebugUnitTest.exec'
|
|
|
|
]))
|
|
} |