-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
1 parent
ceb9e4a
commit 245b0a7
Showing
8 changed files
with
409 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="org.thoughtcrime.securesms"> | ||
|
||
<application | ||
android:name=".FlipperApplicationContext" | ||
tools:replace="android:name"/> | ||
</manifest> |
27 changes: 27 additions & 0 deletions
27
app/src/flipper/java/org/thoughtcrime/securesms/FlipperApplicationContext.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,27 @@ | ||
package org.thoughtcrime.securesms; | ||
|
||
import com.facebook.flipper.android.AndroidFlipperClient; | ||
import com.facebook.flipper.core.FlipperClient; | ||
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; | ||
import com.facebook.flipper.plugins.inspector.DescriptorMapping; | ||
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; | ||
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; | ||
import com.facebook.soloader.SoLoader; | ||
|
||
import org.thoughtcrime.securesms.database.FlipperSqlCipherAdapter; | ||
|
||
public class FlipperApplicationContext extends ApplicationContext { | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
|
||
SoLoader.init(this, false); | ||
|
||
FlipperClient client = AndroidFlipperClient.getInstance(this); | ||
client.addPlugin(new InspectorFlipperPlugin(this, DescriptorMapping.withDefaults())); | ||
client.addPlugin(new DatabasesFlipperPlugin(new FlipperSqlCipherAdapter(this))); | ||
client.addPlugin(new SharedPreferencesFlipperPlugin(this)); | ||
client.start(); | ||
} | ||
} |
Oops, something went wrong.