Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Commit

Permalink
README update, module org, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
afollestad committed Jan 14, 2019
1 parent 5da2966 commit 3ce6be3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 36 deletions.
7 changes: 4 additions & 3 deletions README.md
Expand Up @@ -58,8 +58,9 @@ class MyActivity : AppCompatActivity() {
isNotEmpty()
}

submitWith(R.id.submit) {
// Do something with a valid form state
submitWith(R.id.submit) { result ->
// this block is only called if form is valid.
// do something with a valid form state.
}
}
}
Expand Down Expand Up @@ -233,7 +234,7 @@ form {
// `view` here is a CompoundButton.
// `errors` here is a List<FieldError>, which can be empty to notify that there are no longer
// any validation errors.
val firstError = errors.firstOrNull()
val firstError: FieldError? = errors.firstOrNull()
// TODO: show firstError.toString() in the UI.
}
}
Expand Down
7 changes: 5 additions & 2 deletions library/build.gradle
Expand Up @@ -26,10 +26,13 @@ dependencies {
implementation 'androidx.annotation:annotation:' + versions.androidxAnnotations
implementation 'androidx.appcompat:appcompat:' + versions.androidxCore
implementation 'com.google.android.material:material:' + versions.googleMaterial

implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin

testImplementation project(':testutil')
testImplementation 'org.robolectric:robolectric:' + versions.robolectric
testImplementation 'junit:junit:' + versions.junit
testImplementation 'androidx.test:core:' + versions.androidxTest
testImplementation 'org.mockito:mockito-core:' + versions.mockito
testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:' + versions.mockitoKotlin
}

apply from: '../spotless.gradle'
2 changes: 1 addition & 1 deletion settings.gradle
@@ -1 +1 @@
include ':sample', ':library', ':testutil'
include ':sample', ':library'
1 change: 0 additions & 1 deletion testutil/.gitignore

This file was deleted.

28 changes: 0 additions & 28 deletions testutil/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion testutil/src/main/AndroidManifest.xml

This file was deleted.

0 comments on commit 3ce6be3

Please sign in to comment.