Shared Preferences Viewer Plugin Setup
The Shared Preferences Viewer plugin is available for both Android and iOS.
Androidβ
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
client.addPlugin(
new SharedPreferencesFlipperPlugin(context, "my_shared_preference_file"));
iOSβ
If you want to use the Shared Preferences plugin, you need to add FlipperKit/FlipperKitUserDefaultsPlugin
to your Podfile.
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', '~>' + flipperkit_version
Initialize the plugin in the following way:
- iOS
- Swift
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:@"your_suitename"]];
import FlipperKit
client?.add(FKUserDefaultsPlugin.init(suiteName: "your_suitename"))