mirror of https://github.com/BOINC/boinc.git
Get latest and re-arrange dependencies
Upgrade to gradle 7.1 Upgrade to build tool sdk to 30.0.3 Update 'com.android.tools.build:gradle' to 4.2.1 Update kotlin_version to 1.5.20
This commit is contained in:
parent
20764e0c64
commit
55fb02efb5
|
@ -80,8 +80,8 @@ preBuild.doFirst {
|
|||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion '29.0.3'
|
||||
compileSdkVersion 30
|
||||
buildToolsVersion '30.0.3'
|
||||
|
||||
buildFeatures {
|
||||
viewBinding true
|
||||
|
@ -151,51 +151,60 @@ android {
|
|||
}
|
||||
ext {
|
||||
coroutines_version = '1.4.3'
|
||||
dagger_version = '2.28.1'
|
||||
lifecycle_version = '2.2.0'
|
||||
dagger_version = '2.37'
|
||||
lifecycle_version = '2.3.1'
|
||||
powermock_version = '2.0.5'
|
||||
junit5_version = '5.7.2'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||
|
||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||
implementation 'androidx.core:core-ktx:1.3.1'
|
||||
implementation 'androidx.fragment:fragment-ktx:1.2.5'
|
||||
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
|
||||
// androidx dependencies
|
||||
implementation 'androidx.multidex:multidex:2.0.1'
|
||||
implementation 'androidx.appcompat:appcompat:1.3.0'
|
||||
implementation 'androidx.core:core-ktx:1.5.0'
|
||||
implementation 'androidx.fragment:fragment-ktx:1.3.5'
|
||||
implementation 'androidx.preference:preference-ktx:1.1.1'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
||||
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||
implementation 'androidx.viewpager2:viewpager2:1.0.0'
|
||||
|
||||
implementation 'com.github.bumptech.glide:glide:4.11.0'
|
||||
implementation 'com.google.android.material:material:1.2.1'
|
||||
implementation 'com.google.android.material:material:1.3.0'
|
||||
implementation 'com.squareup.okio:okio:2.8.0'
|
||||
implementation 'commons-io:commons-io:2.7'
|
||||
implementation 'org.apache.commons:commons-lang3:3.11'
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
|
||||
// Coroutine dependencies
|
||||
// Lifecycle dependencies
|
||||
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
|
||||
implementation "androidx.lifecycle:lifecycle-service:$lifecycle_version"
|
||||
|
||||
// Coroutine dependencies
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
|
||||
|
||||
// Dagger dependencies
|
||||
implementation "com.google.dagger:dagger:$dagger_version"
|
||||
implementation 'javax.annotation:javax.annotation-api:1.3.2'
|
||||
implementation "com.google.dagger:dagger:$dagger_version"
|
||||
annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version"
|
||||
kapt "com.google.dagger:dagger-compiler:$dagger_version"
|
||||
|
||||
// Testing dependencies
|
||||
testImplementation 'androidx.test:core:1.3.0'
|
||||
testImplementation 'com.google.guava:guava-testlib:28.2-jre'
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5_version"
|
||||
testImplementation "org.powermock:powermock-module-junit4:$powermock_version"
|
||||
testImplementation "org.powermock:powermock-api-mockito2:$powermock_version"
|
||||
testImplementation 'org.robolectric:robolectric:4.5.1'
|
||||
testImplementation "io.mockk:mockk:1.11.0"
|
||||
|
||||
// Powermock dependencies
|
||||
testImplementation "org.powermock:powermock-module-junit4:$powermock_version"
|
||||
testImplementation "org.powermock:powermock-api-mockito2:$powermock_version"
|
||||
|
||||
// Junit dependencies
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5_version"
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5_version"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5_version"
|
||||
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junit5_version"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.4.30'
|
||||
ext.kotlin_version = '1.5.20'
|
||||
repositories {
|
||||
maven {
|
||||
url 'https://maven.google.com/'
|
||||
|
@ -13,7 +13,7 @@ buildscript {
|
|||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||
classpath 'com.android.tools.build:gradle:4.2.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0'
|
||||
}
|
||||
|
|
|
@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.zip
|
||||
|
|
|
@ -19,7 +19,7 @@ cd android/BOINC
|
|||
|
||||
echo '===== BOINC Manager build start ====='
|
||||
|
||||
./gradlew clean assemble jacocoTestReportDebug
|
||||
./gradlew clean assemble jacocoTestReportDebug --warning-mode all
|
||||
|
||||
echo '===== BOINC Manager build done ====='
|
||||
|
||||
|
|
Loading…
Reference in New Issue