// Path: annotations/src/main/java/com/mnayef/annotations/enums/ImageSource.java
// public enum ImageSource {
//     RESOURCES, FILE, URL
// }


import com.mnayef.annotations.Image;
import com.mnayef.annotations.enums.ImageSource;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;
package com.mnayef.compiler;


/**
 * Created by Mohamed Hamdan on 2017-May-29.
 * mohamed.nayef95@gmail.com
 */
public class PicassoUtil {

    public static void bindPicasso(MethodSpec.Builder onBindViewHolder, TypeSpec.Builder viewHolder, MethodSpec.Builder builder, String getMethodName, Image field, String fieldName) {
        onBindViewHolder.addStatement("$T $NPicasso = $T.with(context)", ClassesNames.PICASSO, fieldName, ClassesNames.PICASSO);
// Path: annotations/src/main/java/com/mnayef/annotations/enums/ImageSource.java
// public enum ImageSource {
//     RESOURCES, FILE, URL
// }


// Path: compiler/src/main/java/com/mnayef/compiler/PicassoUtil.java
import com.mnayef.annotations.Image;
import com.mnayef.annotations.enums.ImageSource;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;

package com.mnayef.compiler;


/**
 * Created by Mohamed Hamdan on 2017-May-29.
 * mohamed.nayef95@gmail.com
 */
public class PicassoUtil {

    public static void bindPicasso(MethodSpec.Builder onBindViewHolder, TypeSpec.Builder viewHolder, MethodSpec.Builder builder, String getMethodName, Image field, String fieldName) {
        onBindViewHolder.addStatement("$T $NPicasso = $T.with(context)", ClassesNames.PICASSO, fieldName, ClassesNames.PICASSO);
        if (field.source() == ImageSource.FILE) {