/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.fresco.middleware

import android.net.Uri
import com.facebook.drawee.drawable.ScalingUtils.ScaleType

data class Dimensions(val w: Int, val h: Int) {
  override fun toString() = "${w}x${h}"
}

interface UriModifierInterface {
  fun modifyUri(uri: Uri, viewport: Dimensions?, scaleType: ScaleType): Uri = uri
}

object UriModifier : UriModifierInterface {
  @kotlin.jvm.JvmField var INSTANCE: UriModifierInterface = this
}

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

package com.facebook.fresco.middleware

import android.net.Uri
import com.facebook.drawee.drawable.ScalingUtils.ScaleType

data class Dimensions(val w: Int, val h: Int) {
  override fun toString() = "${w}x${h}"
}

interface UriModifierInterface {
  fun modifyUri(uri: Uri, viewport: Dimensions?, scaleType: ScaleType): Uri
}

object UriModifier : UriModifierInterface {
  @kotlin.jvm.JvmField var INSTANCE: UriModifierInterface = this

  override fun modifyUri(uri: Uri, viewport: Dimensions?, scaleType: ScaleType) = uri
}

Set up MC in ImagePipelineModule
Set up MC in ImagePipelineModule

Reviewed By: oprisnik

Differential Revision: D37347127

fbshipit-source-id: 101f78ea00105a542e88e0c15f41b6137decf9f1

facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco,facebook/fresco