change_app_package_name icon indicating copy to clipboard operation
change_app_package_name copied to clipboard

Fixing .kt regex

Open adrinr opened this issue 2 years ago • 0 comments

Changing the regex pattern to ensure we only replace lines starting with package . Without this, we are replacing code like the following:

class MainActivity: FlutterActivity() {
       override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)

        val applicationInfo = packageManager.getApplicationInfo(packageName, PackageManager.GET_META_DATA)
        ...
    }
}

as it will replace the line after packageManager... for the new package name

adrinr avatar Jul 21 '22 15:07 adrinr