This file contains hidden or 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 LogInModelTest : LogInListener { | |
| private lateinit var successTask: Task<AuthResult> | |
| private lateinit var failureTask: Task<AuthResult> | |
| @Mock | |
| private lateinit val mAuth: FirebaseAuth | |
| private lateinit var logInModel: LogInModel | |
| private var logInResult = UNDEF | |
This file contains hidden or 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
| KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_RSA, "AndroidKeyStore").apply { | |
| val certBuilder = KeyGenParameterSpec.Builder(alias, KeyProperties.PURPOSE_ENCRYPT) | |
| .setKeyValidityStart(keyValidityStart) | |
| .setKeyValidityEnd(keyValidityEnd) | |
| .setCertificateSerialNumber(BigInteger.valueOf(1L)) | |
| .setCertificateSubject(X500Principal("CN=MyCompany")) | |
| .setUserAuthenticationRequired(true) | |
| if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { | |
| initialize( | |
| certBuilder |
This file contains hidden or 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
| internal class PasswordValidatorTest { | |
| private val validator = PasswordValidator() | |
| @ParameterizedTest(name = "given \"{0}\", when validating the password, then it should return {1}") | |
| @MethodSource("passwordArguments") | |
| fun `given input password, when validating it, then is should return if it is valid`( | |
| password: String, | |
| expected: Boolean | |
| ) { |
This file contains hidden or 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
| internal class PasswordValidatorTest { | |
| private val validator = PasswordValidator() | |
| @TestFactory | |
| fun `given input password, when validating it, then is should return if it is valid`() = | |
| listOf( | |
| "Test123!" to true, | |
| "#tesT12!" to true, | |
| "12Es@t123" to true, |
This file contains hidden or 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
| @NoCopy | |
| data class Password private constructor(val value: String) { | |
| companion object { | |
| fun of(value: String): Either<List<Violation>, Password> { | |
| val violations = buildList { | |
| if (value.isTooShort()) { add(Violation.PasswordTooShort(MIN_LENGTH)) } | |
| if (value.containsNoNumbers()) { add(Violation.PasswordContainsNoNumbers) } | |
| } | |
| return if (violations.isEmpty()) Password(value).right() else violations.left() | |
| } |
This file contains hidden or 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
| name: DangerJS | |
| on: [pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or 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 {danger, fail, message, warn, schedule} from 'danger' | |
| const reporter = require("danger-plugin-lint-report") | |
| // Scan ktlint reports | |
| schedule(reporter.scan({ | |
| fileMask: "**/reports/ktlint/*.xml", | |
| reportSeverity: true, | |
| requireLineModification: true, | |
| })) |
This file contains hidden or 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
| name: Create Release Branch | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| versionName: | |
| description: 'Name of version (ie 5.5.0)' | |
| required: true | |
| versionCode: | |
| description: 'Version number (50500)' | |
| required: true |
This file contains hidden or 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 ChipsView<T : Parcelable>(ctx: Context, attr: AttributeSet) : ConstraintLayout(ctx, attr) { | |
| ... | |
| private fun addSubviews() { | |
| val flow = Flow(context).apply { | |
| id = generateViewId() | |
| setWrapMode(Flow.WRAP_CHAIN) | |
| setHorizontalStyle(Flow.CHAIN_PACKED) | |
| setHorizontalAlign(Flow.HORIZONTAL_ALIGN_START) | |
| setHorizontalBias(0f) |
This file contains hidden or 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
| Ransomware Name | URL | Status | |
|---|---|---|---|
| AVADDON | http://avaddongun7rngel.onion/ | Online | |
| SODINOKIBI (REVIL) | http://dnpscnbaix6nkwvystl3yxglz7nteicqrou3t75tpcc5532cztc46qyd.onion/ | Online | |
| NEFILIM | http://hxt254aygrsziejn.onion/ | Online | |
| VFOKX (1) | http://vfokxcdzjbpehgit223vzdzwte47l3zcqtafj34qrr26htjo4uf3obid.onion/ | Online | |
| VFOKX (2) | http://746pbrxl7acvrlhzshosye3b3udk4plurpxt2pp27pojfhkkaooqiiqd.onion/ | Online | |
| MARKETO (deep) | https://marketo.cloud/ | Online | |
| MARKETO (dark) | http://g5sbltooh2okkcb2.onion/ | Online | |
| LORENZ | http://lorenzmlwpzgxq736jzseuterytjueszsvznuibanxomlpkyxk6ksoyd.onion/ | Online | |
| CONTI/RYUK | http://continewsnv5otx5kaoje7krkto2qbu3gtqef22mnr7eaxw3y6ncz3ad.onion/ | Online |