-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding more stub implementation to sherlock-no-op module
- Loading branch information
Showing
5 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
sherlock-no-op/src/main/java/com/singhajit/sherlock/core/investigation/Crash.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
sherlock-no-op/src/main/java/com/singhajit/sherlock/core/investigation/DeviceInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...ock-no-op/src/main/java/com/singhajit/sherlock/core/investigation/DeviceInfoProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
sherlock-no-op/src/main/java/com/singhajit/sherlock/crashes/CrashListActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
2 changes: 1 addition & 1 deletion
2
sherlock/src/main/java/com/singhajit/sherlock/core/investigation/Pair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters