import { File , FileType } from '@diez/prefabs' ; import { AndroidBinding } from '@diez/targets' ; import { join } from 'path' ; import { fileAssetBinder } from '../../asset-binders/file' ; import { portAssetBindingToResource , sourcesPath } from '../../utils' ; const binding = { sources : [ join ( sourcesPath , 'android' , 'bindings' , 'File.kt' ) ] , assetsBinder : async ( instance , program , output , spec , property ) => { if ( instance . type === FileType . Remote ) { output . processedComponents . delete ( spec . type ) ; } await fileAssetBinder ( instance , program , output , spec , property ) ; if ( program . hot || instance . type === FileType . Image ) { return ; } portAssetBindingToResource ( instance , output , instance . type ) ; } , } ; export = binding ;