-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from angelolloqui/feature/0.1.3
Feature/0.1.3
- Loading branch information
Showing
13 changed files
with
120 additions
and
47 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
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
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
27 changes: 9 additions & 18 deletions
27
Tests/SwiftKotlinFrameworkTests/Tests/KotlinTokenizer/extensions.kt
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,24 +1,15 @@ | ||
val Double.km: Double | ||
get() { | ||
return this * 1000.0 | ||
} | ||
get() = this * 1000.0 | ||
val Double.m: Double | ||
get() { | ||
return this | ||
} | ||
get() = this | ||
|
||
open fun Double.toKm() : Double { | ||
return this * 1000.0 | ||
} | ||
open fun Double.toKm() : Double = | ||
this * 1000.0 | ||
|
||
fun Double.toMeter() : Double { | ||
return this | ||
} | ||
fun Double.toMeter() : Double = | ||
this | ||
|
||
public fun Double.Companion.toKm() : Double { | ||
return this * 1000.0 | ||
} | ||
public fun Double.Companion.toKm() : Double = | ||
this * 1000.0 | ||
public val Double.Companion.m: Double | ||
get() { | ||
return this | ||
} | ||
get() = this |
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
10 changes: 6 additions & 4 deletions
10
Tests/SwiftKotlinFrameworkTests/Tests/KotlinTokenizer/lambdas.kt
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,12 +1,14 @@ | ||
userService.updateUser(picture = picture).always { | ||
this?.hasPhoto = true | ||
this.hasPhoto = true | ||
} | ||
userService.autoLinkTenant(tenantId = tenant.id).then { _ -> | ||
this?.startPayment(paymentMethod, true) | ||
this.startPayment(paymentMethod, true) | ||
}.catchError { _ -> | ||
val intent = this?.coordinator?.autoRegisterIntent(tenant = tenant, onComplete = { this?.startPayment(paymentMethod, true) }) | ||
this?.navigationManager?.show(intent, animation = .push) | ||
val intent = this.coordinator.autoRegisterIntent(tenant = tenant, onComplete = { this.startPayment(paymentMethod, true) }) | ||
this.navigationManager.show(intent, animation = .push) | ||
} | ||
item.selectCallback = { option -> | ||
presenter.selectPaymentMethod(option) | ||
} | ||
item.selectCallback?.invoke(option) | ||
item.selectCallback!!.invoke(option) |
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