forked from Zane96/Fairy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
112 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
* Email: [email protected] | ||
*/ | ||
|
||
@Database(entities = {LogcatItem.class, LogcatContent.class}, version = 3) | ||
@Database(entities = {LogcatItem.class, LogcatContent.class}, version = 4) | ||
public abstract class LogcatDatabase extends RoomDatabase{ | ||
private static final class SingletonHolder { | ||
private static final LogcatDatabase instance = Room.databaseBuilder(App.getInstance(), | ||
|
25 changes: 25 additions & 0 deletions
25
fairy-client/src/main/java/me/zane/fairy/repository/GrepFilter.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,25 @@ | ||
package me.zane.fairy.repository; | ||
|
||
import android.arch.lifecycle.LiveData; | ||
import android.arch.lifecycle.MutableLiveData; | ||
import android.arch.lifecycle.Transformations; | ||
|
||
import me.zane.fairy.vo.LogcatContent; | ||
|
||
/** | ||
* Grep进行过滤 | ||
* Created by Zane on 2017/11/30. | ||
* Email: [email protected] | ||
*/ | ||
|
||
public class GrepFilter { | ||
|
||
static LiveData<LogcatContent> grepData(LiveData<LogcatContent> rawData, String grep) { | ||
|
||
return Transformations.map(rawData, logcatData -> { | ||
|
||
// TODO: 2017/11/30 grep logic | ||
return new LogcatContent(0, ""); | ||
}); | ||
} | ||
} |
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
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
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