Skip to content

Instantly share code, notes, and snippets.

View ychescale9's full-sized avatar
🏠
Working from home

Yang ychescale9

🏠
Working from home
View GitHub Profile
@ychescale9
ychescale9 / detekt-formatting-1.0.0.RC9-log
Created September 22, 2018 10:01
detekt-formatting RC9 crash log
This file has been truncated, but you can view the full file.
19:54:52.697 [INFO] [org.gradle.internal.nativeintegration.services.NativeServices] Initialized native services in: /Users/Yang/.gradle/native
19:54:52.865 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Executing build b54edba9-9dda-410e-83ed-7e188b430a07 in daemon client {pid=32221}
19:54:52.875 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface utun4
19:54:52.875 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a loopback interface? false
19:54:52.875 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a multicast interface? true
19:54:52.875 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding remote address /fe80:0:0:0:d3c5:30dc:9305:9214%utun4
19:54:52.875 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding remote multicast interface utun4
19:54:52.875 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface
@ychescale9
ychescale9 / build.gradle.kts
Last active June 5, 2024 22:56
Customizing APK file name with new AGP variant APIs
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)
}