android-object-pascal-wrapper
android-object-pascal-wrapper copied to clipboard
Forbidden unit names
API-levels 24 and up contain units which cannot be used because they have unit names containing the reserved keyword "function".
use powershell to replace them all:
Get-ChildItem java.util.function* | Rename-Item -NewName { $.Name.Replace('java.util.function','java.util.func')} Get-ChildItem java.util.function.Function* | Rename-Item -NewName { $.Name.Replace('java.util.function','java.util.func.Func')}
$configFiles = Get-ChildItem . *.pas -rec foreach ($file in $configFiles) { (Get-Content $file.PSPath) | Foreach-Object { $_ -replace "'java.util.function", "'java.util.func" } | Set-Content $file.PSPath }