hunk.code_window:   inline fun onDestroy(crossinline body: () -> Unit) {
       eventListeners[EventName.MODULE_DESTROY] = BasicEventListener(EventName.MODULE_DESTROY) { body() }
     }
     inline fun onActivityEntersForeground(crossinline body: () -> Unit) {
       eventListeners[EventName.ACTIVITY_ENTERS_FOREGROUND] = BasicEventListener(EventName.ACTIVITY_ENTERS_FOREGROUND) { body() }
     }
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit:   /**
      * Creates module's lifecycle listener that is called right after the activity is resumed.
      */
  
hunk.file_path: packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/modules/ModuleDefinitionBuilder.kt
hunk.type: add
file: // Copyright 2021-present 650 Industries. All rights reserved.
  
  /**
   An argument type that represents the `Promise` argument.
   */
  internal struct PromiseArgumentType: AnyArgumentType {
    func cast<ArgType>(_ value: ArgType) throws -> Any {
      if let value = value as? Promise {
        return value
      }
      throw Conversions.CastingError<Promise>(value: value)
    }
  
    var description: String = "Promise"
  }
  