I have the case where I want to change the package structure from:
nl.komponents.kovenant.android
to
nl.komponents.kovenant.ui
the function name (successUi(…)) and it parameters remain unchanged. Is there any way I can express this in ReplaceWith
. What I’ve tried so far is the following:
ReplaceWith(“successUi(body)”, “nl.komponents.kovenant.ui”)
on the old/deprecated method name. This naturally leads to duplicate package imports and furthermore puts the body
, which is a function, within the parenthesis.
Is there any way of doing this?
The only way I can think of is by using some two phase approach where I introduce some intermediate step with a different function name to led the imports be cleaned.
The actual code is found on GitHub
Message was edited by: Mark Platvoet, updated GitHub link with actual code