This repository has been archived by the owner on May 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously we would only return a result for sql commands that were selct statements. This diff makes `DatabasePeerManager` aware of what commands are being executed and returns a result set appropriate to that command. Note: We are returning a result for all commands (including ones that do not normally contain results like CREATE TABLE). We do this so that the inspector interface will not remove the command. Closes #82
- Loading branch information
Showing
4 changed files
with
110 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
13 changes: 13 additions & 0 deletions
13
stetho/src/main/java/com/facebook/stetho/inspector/protocol/module/DatabaseConstants.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,13 @@ | ||
// Copyright 2015-present Facebook. All Rights Reserved. | ||
|
||
package com.facebook.stetho.inspector.protocol.module; | ||
|
||
import android.os.Build; | ||
|
||
public interface DatabaseConstants { | ||
|
||
/** | ||
* Minimum API version required to use the {@link Database}. | ||
*/ | ||
public static final int MIN_API_LEVEL = Build.VERSION_CODES.HONEYCOMB; | ||
} |