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
Snackbar snackbar; | |
mBinding.searchEdit.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
hideSnackBar(); | |
} | |
}); | |
mBinding.searchEdit.setOnFocusChangeListener(new View.OnFocusChangeListener() { |
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
def getOsName(project) { | |
final String osName = System.getProperty("os.name").toLowerCase(); | |
if (osName.contains("linux")) { | |
return ("linux"); | |
} else if (osName.contains("mac os x") || osName.contains("darwin") || osName.contains("osx")) { | |
return ("macos"); | |
} else if (osName.contains("windows")) { | |
return ("windows"); | |
} else if (osName.contains("sunos") || osName.contains("solaris")) { |
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
let CFBundleShortVersionString = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as? String | |
let CFBundleVersion = Bundle.main.infoDictionary!["CFBundleVersion"] as? String | |
let CFBundleName = Bundle.main.infoDictionary!["CFBundleName"] as? String | |
print("Application Version Number: \(CFBundleShortVersionString)") | |
print("Application Build Number : \(CFBundleVersion)") | |
print("Application Name : \(CFBundleName)") |