Skip to content

Commit

Permalink
Adding more stub implementation to sherlock-no-op module
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitsing committed Jul 4, 2017
1 parent f1bdd10 commit 9546d5e
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,48 @@
package com.singhajit.sherlock.core.investigation;

import java.util.Date;

public class Crash {
public static final String DATE_FORMAT = "EEE MMM dd kk:mm:ss z yyyy";

public Crash(String place, String reason, String stackTrace) {
}

public Crash(int id, String placeOfCrash, String reasonOfCrash, String stacktrace, String date) {
}

public DeviceInfo getDeviceInfo() {
return new DeviceInfo.Builder().build();
}

public AppInfo getAppInfo() {
return new AppInfo();
}

public void setId(int id) {
}

public Class<Crash> getType() {
return Crash.class;
}

public String getReason() {
return "";
}

public String getStackTrace() {
return "";
}

public String getPlace() {
return "";
}

public int getId() {
return 0;
}

public Date getDate() {
return new Date();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package com.singhajit.sherlock.core.investigation;

public class DeviceInfo {
private DeviceInfo() {
}

public String getManufacturer() {
return "";
}

public String getBrand() {
return "";
}

public String getName() {
return "";
}

public String getSdk() {
return "";
}

public static class Builder {
public Builder withBrand(String brand) {
return this;
}

public Builder withSDK(String sdk) {
return this;
}

public Builder withModel(String name) {
return this;
}

public Builder withManufacturer(String manufacturer) {
return this;
}

public DeviceInfo build() {
return new DeviceInfo();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.singhajit.sherlock.core.investigation;

public class DeviceInfoProvider {
public static DeviceInfo getDeviceInfo() {
return new DeviceInfo.Builder().build();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.singhajit.sherlock.crashes;

import android.app.Activity;

public class CrashListActivity extends Activity {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.singhajit.sherlock.core.investigation;

public class Pair {
class Pair {
private String key;
private String val;

Expand Down

0 comments on commit 9546d5e

Please sign in to comment.