// Path: sherlock/src/main/java/com/singhajit/sherlock/util/AppInfoUtil.java
// public class AppInfoUtil {
//   public static String getAppVersion(Context context) {
//     try {
//       return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
//     } catch (PackageManager.NameNotFoundException e) {
//       return "Not Found";
//     }
//   }
// }


import android.content.Context;
import com.singhajit.sherlock.util.AppInfoUtil;
package com.singhajit.sherlock.core.investigation;




public class DefaultAppInfoProvider implements AppInfoProvider {
  private final Context context;

  public DefaultAppInfoProvider(Context context) {
    this.context = context;
  }

  @Override
  public AppInfo getAppInfo() {
    return new AppInfo.Builder()
// Path: sherlock/src/main/java/com/singhajit/sherlock/util/AppInfoUtil.java
// public class AppInfoUtil {
//   public static String getAppVersion(Context context) {
//     try {
//       return context.getPackageManager().getPackageInfo(context.getPackageName(), 0).versionName;
//     } catch (PackageManager.NameNotFoundException e) {
//       return "Not Found";
//     }
//   }
// }


// Path: sherlock/src/main/java/com/singhajit/sherlock/core/investigation/DefaultAppInfoProvider.java
import android.content.Context;
import com.singhajit.sherlock.util.AppInfoUtil;

package com.singhajit.sherlock.core.investigation;




public class DefaultAppInfoProvider implements AppInfoProvider {
  private final Context context;

  public DefaultAppInfoProvider(Context context) {
    this.context = context;
  }

  @Override
  public AppInfo getAppInfo() {
    return new AppInfo.Builder()
        .with("Version", AppInfoUtil.getAppVersion(context))