Skip to content

Commit

Permalink
Merge pull request #6 from AdamKobus/develop
Browse files Browse the repository at this point in the history
v1.0.0 release
  • Loading branch information
AdamKobus authored Feb 6, 2022
2 parents 1a13c04 + 916a973 commit ecc2e38
Show file tree
Hide file tree
Showing 12 changed files with 92 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
java-version: 1.11

- name: Run tests
run: ./gradlew testDebugUnitTest
run: ./gradlew testDebugUnitTest --stacktrace

- name: Run static analysis
run: ./gradlew ktlintCheck detekt
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ repositories {
dependencies {
// LifecycleObserverKtx
implementation "com.adamkobus:lifecycle-observer-ktx:0.0.1-SNAPSHOT"
implementation "com.adamkobus:lifecycle-observer-ktx:1.0.0-SNAPSHOT"
// LifecycleObserverKtx + LifecycleAwareViewModel + ViewParam
implementation "com.adamkobus:lifecycle-observer-viewmodel-ktx:0.0.1-SNAPSHOT"
implementation "com.adamkobus:lifecycle-observer-viewmodel-ktx:1.0.0-SNAPSHOT"
}
```

Expand Down
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ task clean(type: Delete) {
allprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
freeCompilerArgs += [
'-progressive',
"-opt-in=kotlin.RequiresOptIn"
]
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions gradle/android-setup.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ def configureAndroidProject(Project androidProject, boolean isApplication) {
}
}

buildTypes {
debug {
testCoverageEnabled true
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
Expand All @@ -47,6 +53,10 @@ def configureAndroidProject(Project androidProject, boolean isApplication) {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}

testOptions.unitTests {
returnDefaultValues = true
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/publishing-root.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ rootProject.ext["adamkobusSonatypeStagingProfileId"] = ""

rootProject.ext["snapshot"] = System.getenv().getOrDefault("MAVEN_SNAPSHOT", "true")

def VERSION_BASE = "0.0.1"
def VERSION_BASE = "1.0.0"
def VERSION_SUFFIX = ""
if (rootProject.ext["snapshot"] == "true") {
VERSION_SUFFIX = "-SNAPSHOT"
Expand Down
1 change: 1 addition & 0 deletions lifecycle-observer-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
// testing
testImplementation Libs.Test.JUnit
testImplementation Libs.Test.Mockk
testImplementation Libs.Test.CoroutinesTest
}

ext {
Expand Down
Loading

0 comments on commit ecc2e38

Please sign in to comment.