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
SourceCode( | |
lang = "kotlin", | |
code = """ | |
«true: // True!» | |
""".trimIndent(), | |
) { | |
} |
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
#!/usr/bin/env bash | |
username= | |
password= | |
stagedRepositoryId= | |
while [ "$1" != "" ]; do | |
case $1 in | |
-u | --username) | |
shift |
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
#!/usr/bin/env bash | |
username= | |
password= | |
stagedRepositoryId= | |
while [ "$1" != "" ]; do | |
case $1 in | |
-u | --username) | |
shift |
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
#!/usr/bin/env bash | |
username= | |
password= | |
profileId= | |
description="Creating staging repository." | |
while [ "$1" != "" ]; do | |
case $1 in | |
-u | --username) |
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
class LoginActivity: AppCompatActivity(), DIAware, LoginView { | |
override val di by di() | |
val presenter: LoginPresenter by instance() | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
loginButton.setOnClickListener { | |
presenter.login(secretEditText.text) | |
} |
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
class LoginActivity: AppCompatActivity(), DIAware { | |
override val di by di() | |
// Implementation here | |
} |
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
class NVBApplication : Application(), DIAware { | |
override val di by DI.lazy { | |
import(androidXModule(this@MyApplication)) | |
import(NBVCommonModule) | |
} | |
} |
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
... | |
dependencies { | |
implementation("org.kodein.sample:nbv-common:1.0.0")) | |
implementation("'org.kodein.di:kodein-di-framework-android-x:7.0.0") | |
} | |
... |
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
import UIKit | |
import NBVCommon | |
class LoginViewController: UIViewController, LoginView { | |
@IBOutlet weak var login_secret: UITextField! | |
@IBOutlet weak var login_button: UIButton! | |
let presenter: LoginPresenter! = InjectorCommon.init().provideLoginPresenter() | |
override func viewWillAppear(_ animated: Bool) { |
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
import UIKit | |
class LoginViewController: UIViewController { | |
@IBOutlet weak var login_secret: UITextField! | |
@IBOutlet weak var login_button: UIButton! | |
// Using Kotlin/Multiplatform code here! | |
} |
NewerOlder