hunk.code_window:       Method(name, arrayOf(typeOf<P0>().toAnyType(), typeOf<P1>().toAnyType(), typeOf<P2>().toAnyType(), typeOf<P3>().toAnyType(), typeOf<P4>().toAnyType(), typeOf<P5>().toAnyType(), typeOf<P6>().toAnyType(), typeOf<P7>().toAnyType())) { body(it[0] as P0, it[1] as P1, it[2] as P2, it[3] as P3, it[4] as P4, it[5] as P5, it[6] as P6, it[7] as P7) }
       }
     }
     inline fun viewManager(body: ViewManagerDefinitionBuilder.() -> Unit) {
       require(viewManagerDefinition == null) { "The module definition may have exported only one view manager." }
       val viewManagerDefinitionBuilder = ViewManagerDefinitionBuilder()
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit:   /**
      * Creates the view manager definition that scopes other view-related definitions.
      */
  
hunk.file_path: packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/modules/ModuleDefinitionBuilder.kt
hunk.type: add
file: package abi42_0_0.expo.modules.imagemanipulator.actions
  
  import android.graphics.Bitmap
  import android.graphics.Matrix
  
  class RotateAction(private val rotation: Int) : Action {
    override fun run(bitmap: Bitmap): Bitmap {
      return Bitmap.createBitmap(bitmap, 0, 0, bitmap.width, bitmap.height, rotationMatrix, true)
    }
  
    private val rotationMatrix: Matrix
      get() = Matrix().apply { postRotate(rotation.toFloat()) }
  
    companion object {
      fun fromObject(rotation: Int): RotateAction {
        return RotateAction(rotation)
      }
    }
  }
  