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
/** | |
* Copyright (c) 2020-present Daniel San | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/** | |
* Log.swift | |
* Copyright (c) 2020 Daniel San <[email protected]> | |
* Created by Daniel San on 17/01/2020. | |
*/ | |
import Foundation | |
struct Log { |
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
#!/bin/sh | |
# Update WM_CLASS | |
fault_tolerance=0 | |
beta_timeout=50 | |
while true; do | |
wids=$(timeout 2 xdotool search --sync --onlyvisible --class "jetbrains-studio") | |
if [ -z "$wids" ] ; then | |
if [ $fault_tolerance -eq 0 ]; then | |
fault_tolerance=1 |
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
task loadEnv(dependsOn: ":app:build") { | |
file(rootProject.projectDir).listFiles({ | |
it.isFile() && it.name.endsWith(".env") | |
} as FileFilter).each { file -> | |
file.withInputStream { inputStream -> | |
def properties = new Properties() | |
properties.load(inputStream) | |
properties.stringPropertyNames().forEach { name -> | |
ext.setProperty(name, properties.getProperty(name)) | |
} |
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
// http://www.jayway.com/2015/03/13/producing-better-named-android-apks-with-gradle/ | |
// https://stackoverflow.com/questions/44239235/android-gradle-3-0-0-alpha2-plugin-cannot-set-the-value-of-read-only-property | |
android.applicationVariants.all { variant -> | |
def appName | |
// Check if an applicationName property is supplied; if not use the name of the parent project. | |
if (project.hasProperty("applicationName")) { | |
appName = applicationName | |
} else { | |
appName = parent.name | |
} |
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
// http://www.jayway.com/2015/03/13/producing-better-named-android-apks-with-gradle/ | |
android.applicationVariants.all { variant -> | |
def appName | |
// Check if an applicationName property is supplied; if not use the name of the parent project. | |
if (project.hasProperty("applicationName")) { | |
appName = applicationName | |
} else { | |
appName = parent.name | |
} |