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 ExoPlayerState( | |
context: Context, | |
private val scope: CoroutineScope | |
) : ExoPlayer by ExoPlayer.Builder(context).build(), Player.Listener { | |
@get:JvmName("playing") | |
var isPlaying by mutableStateOf(false) | |
private set | |
var duration by mutableStateOf(0.seconds) | |
private set | |
var currentPosition by mutableStateOf(0.seconds) |
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
android { | |
onVariantProperties { | |
val mainOutput = outputs.single { it.outputType == VariantOutputConfiguration.OutputType.SINGLE } | |
tasks.register<CreateRenamedApk>("createRenamedApkFor${name}") { | |
this.originalApkFolder.set(artifacts.get(ArtifactType.APK)) | |
this.builtArtifactsLoader.set(artifacts.getBuiltArtifactsLoader()) | |
this.newApkFolder.set(layout.buildDirectory.dir("outputs/renamed_apk/${[email protected]}")) | |
this.versionCode.set(mainOutput.versionCode) | |
this.versionName.set(mainOutput.versionName) | |
} |