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
# frozen_string_literal: true | |
require 'json' | |
require 'fastlane_core' | |
require 'fileutils' | |
require_relative '../modules/shared_config_items' | |
module Fastlane | |
module Actions | |
# Action работает с отдельными Allure-результатами, генерируемыми на стороне Marathon-а и отдельных устройств. |
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
// :debug-panel --> DebugPanelViewModel.kt | |
fun getAllExperiments(): List<Experiment> { | |
return ExperimentsCollector().getAllExperiments() | |
} |
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
// :debug-panel --> ExperimentsCollector.kt | |
@ExperimentsColony | |
internal class ExperimentsCollector { | |
private val experiments = mutableListOf<Experiment>() | |
init { | |
Colonist.settle(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
// :debug-panel --> ExperimentsColony.kt | |
@Colony | |
@SelectSettlersBySuperType(Experiment::class) | |
@ProduceSettlersViaConstructor | |
@AcceptSettlersViaCallback | |
@Target(AnnotationTarget.CLASS) | |
internal annotation class ExperimentsColony |
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
// rootProject --> build.gradle.kts | |
buildscript { | |
dependencies { | |
classpath("com.joom.colonist:colonist-gradle-plugin:0.1.0-alpha9") | |
} | |
} | |
// :app --> build.gradle.kts |
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 com.android.build.gradle.BaseExtension | |
configure<BaseExtension> { | |
... | |
packagingOptions { | |
... | |
exclude("META-INF/services/ru.hh.shared.core.experiments.Experiment") | |
} |
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
// library-module/build.gradle.kts | |
... | |
dependencies { | |
if (project.hasProperty("disableIndex").not()) { | |
compileOnly(Libs.debug.classIndex) | |
kapt(Libs.debug.classIndex) | |
} | |
} |
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
// library-module/build.gradle.kts | |
... | |
dependencies { | |
compileOnly(Libs.debug.classIndex) | |
kapt(Libs.debug.classIndex) | |
} |
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 org.atteo.classindex.IndexSubclasses | |
@IndexSubclasses | |
interface Experiment { | |
val key: String | |
} |
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
// :debug-panel/DebugPanelViewModel.kt | |
fun getAllExperiments(): List<Experiment> { | |
return ServiceLoader.load(Experiment::class.java).toList() | |
} |
NewerOlder