Skip to content

Commit

Permalink
Dynamic pin count change
Browse files Browse the repository at this point in the history
  • Loading branch information
hanggrian committed Oct 3, 2018
1 parent b7143d8 commit 4bf2742
Show file tree
Hide file tree
Showing 10 changed files with 342 additions and 87 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
245 changes: 245 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

11 changes: 0 additions & 11 deletions buildSrc/src/dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@ fun DependencyHandler.androidx(
version: String = VERSION_ANDROIDX
): String = "androidx.$repository:$module:$version"

fun DependencyHandler.hendraanggrian(
repository: String,
module: String = repository,
version: String
): String = "com.hendraanggrian.$repository:$module:$version"

fun DependencyHandler.jakeWharton(
module: String,
version: String
): String = "com.jakewharton:$module:$version"

fun DependencyHandler.material() = "com.google.android.material:material:$VERSION_ANDROIDX"

fun DependencyHandler.junit() = "junit:junit:$VERSION_JUNIT"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/releases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const val RELEASE_USER = "hendraanggrian"
const val RELEASE_REPO = "appcompat"
const val RELEASE_GROUP = "com.$RELEASE_USER.$RELEASE_REPO"
const val RELEASE_ARTIFACT = "pinview"
const val RELEASE_VERSION = "0.1"
const val RELEASE_VERSION = "0.2"
const val RELEASE_DESC = "Android customizable PIN input view"
const val RELEASE_WEBSITE = "https://github.com/$RELEASE_USER/$RELEASE_ARTIFACT"

Expand Down
5 changes: 1 addition & 4 deletions buildSrc/src/versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ const val VERSION_ESPRESSO = "3.1.0-alpha4"
const val VERSION_RUNNER = "1.1.0-alpha4"
const val VERSION_RULES = "1.1.0-alpha4"

const val VERSION_PROCESS_PHOENIX = "2.0.0"
const val VERSION_BUNDLER = "0.2"

internal const val VERSION_TRUTH = "0.42"
internal const val VERSION_JUNIT = "4.12"
internal const val VERSION_GIT_PUBLISH = "0.3.3"
internal const val VERSION_BINTRAY_RELEASE = "0.8.1"
internal const val VERSION_BINTRAY_RELEASE = "0.8.1"
4 changes: 0 additions & 4 deletions demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,4 @@ dependencies {
implementation(androidx("appcompat"))
implementation(androidx("coordinatorlayout"))
implementation(androidx("preference"))

implementation(jakeWharton("process-phoenix", VERSION_PROCESS_PHOENIX))
implementation(hendraanggrian("bundler", version = VERSION_BUNDLER))
kapt(hendraanggrian("bundler", "bundler-compiler", VERSION_BUNDLER))
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ class DemoActivity : AppCompatActivity() {
preferences = PreferenceManager.getDefaultSharedPreferences(this)
pinView.setOnPinChangedListener(pinListener)
pinView.setOnStateChangedListener(stateListener)

stateListener.onStateChanged(pinView, false)
preferenceListener.onSharedPreferenceChanged(preferences, PREFERENCE_COUNT)
preferenceListener.onSharedPreferenceChanged(preferences, PREFERENCE_GAP)
}

override fun onResume() {
Expand Down
Loading

0 comments on commit 4bf2742

Please sign in to comment.