-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue119, issue120, issue122, issue124, and issue125 - Initial 4.x work
- Loading branch information
1 parent
de9f9c4
commit dcbad2c
Showing
40 changed files
with
215 additions
and
798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/local.properties | ||
/.idea | ||
/build | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
buildscript { | ||
project.ext { | ||
agp_version = '3.1.4' | ||
agp_version = '3.4.0' | ||
bintray_version = '1.8.4' | ||
cpd_version = '1.1' | ||
dokka_version = '0.9.17' | ||
dexcount_version = '0.8.3' | ||
jacoco_version = '0.8.2' | ||
kotlin_version = "1.2.70" | ||
maven_version = '2.0' | ||
cpd_version = '1.3' | ||
dokka_version = '0.9.18' | ||
dexcount_version = '0.8.5' | ||
jacoco_version = '0.8.3' | ||
kotlin_version = "1.3.30" | ||
maven_version = '2.1' | ||
} | ||
|
||
repositories { | ||
|
@@ -18,24 +18,32 @@ buildscript { | |
|
||
dependencies { | ||
classpath "com.android.tools.build:gradle:$agp_version" | ||
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokka_version" | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
|
||
// Static Analysis | ||
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:$dexcount_version" | ||
classpath "com.github.dcendents:android-maven-gradle-plugin:$maven_version" | ||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version" | ||
classpath "de.aaschmid:gradle-cpd-plugin:$cpd_version" | ||
|
||
|
||
// Code Coverage | ||
classpath "org.jacoco:org.jacoco.core:$jacoco_version" | ||
classpath "org.jacoco:org.jacoco.agent:$jacoco_version" | ||
classpath "org.jacoco:org.jacoco.report:$jacoco_version" | ||
|
||
// Publishing | ||
classpath "com.github.dcendents:android-maven-gradle-plugin:$maven_version" | ||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$bintray_version" | ||
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokka_version" | ||
} | ||
} | ||
|
||
plugins { | ||
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC8" | ||
id "org.jlleitschuh.gradle.ktlint" version "5.1.0" | ||
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC14" | ||
id "org.jlleitschuh.gradle.ktlint" version "7.3.0" | ||
} | ||
|
||
apply from: rootProject.file("$rootProject.projectDir/gradle/detekt.gradle") | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/versions.gradle") | ||
|
||
apply from: rootProject.file("$rootProject.projectDir/gradle/ktlint.gradle") | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/static-analysis.gradle") | ||
|
||
|
@@ -45,12 +53,16 @@ subprojects { | |
apply plugin: 'org.jetbrains.dokka-android' | ||
apply plugin: "org.jlleitschuh.gradle.ktlint" | ||
|
||
apply from: rootProject.file("$rootProject.projectDir/gradle/dokka.gradle") | ||
|
||
// Static Analysis | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/detekt.gradle") | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/cpd.gradle") | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/pmd.gradle") | ||
|
||
// Code Coverage | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/jacoco.gradle") | ||
|
||
// Publishing | ||
apply from: rootProject.file("$rootProject.projectDir/gradle/dokka.gradle") | ||
} | ||
|
||
allprojects { | ||
|
@@ -61,6 +73,8 @@ allprojects { | |
} | ||
|
||
task clean(type: Delete) { | ||
outputs.upToDateWhen { false } | ||
|
||
delete rootProject.buildDir | ||
} | ||
|
||
|
@@ -114,22 +128,18 @@ ext { | |
POM_DEVELOPER_EMAIL = "[email protected]" | ||
|
||
// Common build version details | ||
BUILD_TOOLS_VERSION = '27.0.3' | ||
MAX_SDK_VERSION = 27 | ||
BUILD_TOOLS_VERSION = '28.0.3' | ||
MAX_SDK_VERSION = 28 | ||
MIN_SDK_VERSION = 16 | ||
VERSION_CODE = 14 | ||
VERSION_NAME = "3.0.1" | ||
|
||
espresso_version = '3.0.2' | ||
junit_version = '4.12' | ||
mockito_version = '2.21.0' | ||
support_libs_version = '27.1.1' | ||
test_runner_version = '1.0.2' | ||
VERSION_NAME = "4.0.0" | ||
} | ||
|
||
task makeGoodChoices { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
|
||
dependsOn 'staticAnalysisSanityCheck', 'jacocoAllCombinedTests' | ||
doLast { | ||
println "\n#############################################" + | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
# Project-wide Gradle settings. | ||
# IDE (e.g. Android Studio) users: | ||
# Gradle settings configured through the IDE *will override* | ||
# any settings specified in this file. | ||
# For more details on how to configure your build environment visit | ||
# http://www.gradle.org/docs/current/userguide/build_environment.html | ||
# The Gradle daemon aims to improve the startup and execution time of Gradle. | ||
# When set to true the Gradle daemon is to run the build. | ||
org.gradle.daemon=true | ||
# Specifies the JVM arguments used for the daemon process. | ||
# The setting is particularly useful for tweaking memory settings. | ||
# Default value: -Xmx10248m -XX:MaxPermSize=256m | ||
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -noverify -Dfile.encoding=UTF-8 | ||
# When configured, Gradle will run in incubating parallel mode. | ||
# This option should only be used with decoupled projects. More details, visit | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects | ||
org.gradle.parallel=true | ||
# Enables new incubating mode that makes Gradle selective when configuring projects. | ||
# Only relevant projects are configured which results in faster builds for large multi-projects. | ||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:configuration_on_demand | ||
org.gradle.configureondemand=false | ||
org.gradle.jvmargs=-Xmx1g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | ||
|
||
# Android X: https://developer.android.com/topic/libraries/support-library/androidx-rn | ||
android.enableJetifier=true | ||
android.useAndroidX=true | ||
|
||
org.gradle.caching=false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
task jacocoAllCombinedTests { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
dependsOn ':wisefy:jacocoDebugCombinedTest' | ||
} | ||
|
||
task jacocoAllCombinedTestReports { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
dependsOn ':wisefy:jacocoDebugCombinedTestReport' | ||
} | ||
|
||
task jacocoAllUnitTests { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
dependsOn ':wisefy:jacocoDebugUnitTest' | ||
} | ||
|
||
task jacocoAllUnitTestReports { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
dependsOn ':wisefy:jacocoDebugUnitTestReport' | ||
} | ||
|
||
task jacocoAllAndroidTests { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
dependsOn ':wisefy:jacocoDebugAndroidTest' | ||
} | ||
|
||
task jacocoAllAndroidTestReports { | ||
group = "verification" | ||
|
||
outputs.upToDateWhen { false } | ||
dependsOn ':wisefy:jacocoDebugAndroidTestReport' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,6 @@ | ||
detekt { | ||
version = "1.0.0.RC8" | ||
|
||
profile("main") { | ||
input = "$projectDir/wisefy/src/" | ||
output = "$projectDir/wisefy/build/reports/detekt" | ||
config = "$projectDir/config/detekt-config.yml" | ||
} | ||
apply plugin: "io.gitlab.arturbosch.detekt" | ||
|
||
profile("wisefy") { | ||
input = "$projectDir/wisefy/src/" | ||
output = "$projectDir/wisefy/build/reports/detekt" | ||
} | ||
detekt { | ||
version = "$detekt_version" | ||
config = files("$project.rootDir/config/detekt-config.yml") | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.