Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Don't limit name arguments to String
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs committed Jan 29, 2020
1 parent 16fdc8e commit cf13736
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Version 1.12.1

_2020-01-29_

* Bugfix: `alias()` & set-related `get()` name arguments were limited to `String` but should be `Any`

## Version 1.12.0

_2020-01-27_
Expand Down
4 changes: 2 additions & 2 deletions Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ a repository to your project. Then add the following dependencies:

```gradle
dependencies {
implementation 'org.rewedigital.katana:katana-core:1.12.0'
implementation 'org.rewedigital.katana:katana-core:1.12.1'
// Use this artifact for Katana on Android
implementation 'org.rewedigital.katana:katana-android:1.12.0'
implementation 'org.rewedigital.katana:katana-android:1.12.1'
}
```

8 changes: 4 additions & 4 deletions android-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ android {

applicationId = "org.rewedigital.katana.android.example"
versionCode = 1
versionName = "1.12.0"
versionName = "1.12.1"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
}

dependencies {
implementation("org.rewedigital.katana:katana-android:1.12.0")
implementation("org.rewedigital.katana:katana-androidx-fragment:1.12.0")
implementation("org.rewedigital.katana:katana-androidx-viewmodel-savedstate:1.12.0")
implementation("org.rewedigital.katana:katana-android:1.12.1")
implementation("org.rewedigital.katana:katana-androidx-fragment:1.12.1")
implementation("org.rewedigital.katana:katana-androidx-viewmodel-savedstate:1.12.1")
implementation("androidx.appcompat:appcompat:1.1.0")
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.61")
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/BaseProject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fun Project.configureBase(
}

group = "org.rewedigital.katana"
version = "1.12.0"
version = "1.12.1"

tasks.withType<Jar> {
archiveBaseName.set(artifactName)
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/kotlin/org/rewedigital/katana/dsl/Dsl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ inline fun <reified T> ModuleBindingContext.eagerSingleton(
* A binding like `alias<MyInterface, MyClass>()` should be conceived as "create alias MyInterface for MyClass".
*/
inline fun <reified A, reified T : A> ModuleBindingContext.alias(
name: String? = null,
originalName: String? = null
name: Any? = null,
originalName: Any? = null
) {
factory<A>(name = name) { get<T>(name = originalName) }
}
Expand Down Expand Up @@ -197,7 +197,7 @@ inline fun <reified T> SetBindingContext<T>.singleton(
* @param V type of the value added to the set
*/
inline fun <T, reified V : T> SetBindingContext<T>.get(
name: String? = null
name: Any? = null
) = declaration(
context = this,
clazz = V::class.java,
Expand Down

0 comments on commit cf13736

Please sign in to comment.