{"repo":"JavierSegoviaCordoba/kopy","free":true,"listed":false,"github":"https://github.com/JavierSegoviaCordoba/kopy","clone":"git clone https://github.com/JavierSegoviaCordoba/kopy.git","description":"Nested copies made easy in Kotlin","language":"Kotlin","stars":296,"topics":["compiler","copies","copy","deep","kotlin","plugin","deep-copies","codegen","deep-copy","k2"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Kopy Usage IntelliJ IDEA or Android Studio configuration Enable K2 compiler in the IDE settings: It is necessary to restart the IDE to do the next step. Allow third party K2 plugins: Popup the quick search with shift + shift and type Registry... , then search for: And uncheck it. Disclaimer IDE issues ⚠️ Note: If the code compiles and run in the terminal, but the IDE is failing with some error, try with a different IDE version. It is recommendable to use the latest IDEA version, including EAP ones if possible. Download Apply the plugin in the build.gradle.kts or build.gradle : As the plugin uses under the hood the Atomicfu library, the performance can be improved by applying the Atomicfu plugin. Plugin configurations The extension kopy is available to configure the plugin: Debug mode The debug option allows to enable the debug mode. It will measure the time each phase takes to be computed. It can help to benchmark any execution or find any issue. It can be false or true , being the default value false . With the reportPath option, it is possible to specify the path where the report will be saved. The default value is build/reports/kopy . [!CAUTION] It is not recommended to enable the debug mode by default, as it will increase the build time. Example Copy functions The copyFunctions option accepts the list of functions that will be generated. The default value is listOf(KopyCopyFunctions.Copy, KopyCopyFunctions.Invoke) . An empty list will generate all copy functions ( copy , ","default_branch":null,"files":null,"tree":[],"storefront":"/r/JavierSegoviaCordoba","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JavierSegoviaCordoba/kopy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}