MCPcopy Index your code
hub / github.com/Ashok-Varma/SharedPrefManager

github.com/Ashok-Varma/SharedPrefManager @1.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.0 ↗ · + Follow
82 symbols 173 edges 8 files 6 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Android Arsenal

SharedPref Manager

get sample apk from Google Play Store

What is this library about?

SharedPref Manager helps to manage your android Shared Preferences very effectively with ease

(currently under active development, expect to see new releases almost daily)

Features

  • Edit a SharedPreferences Item
  • Add a SharedPreference Item
  • Clear All SharedPreferences
  • Delete a SharedPreference Item

Download

Based on your IDE you can import library in one of the following ways

Gradle:

debugCompile 'com.ashokvarma.android:sharedpref-manager:1.1.0'
releaseCompile 'com.ashokvarma.android:sharedpref-manager-no-op:1.1.0'

If you want this in library in production also then try this :

compile 'com.ashokvarma.android:sharedpref-manager:1.1.0'

or grab via Maven:

<dependency>
  <groupId>com.ashokvarma.android</groupId>
  <artifactId>sharedpref-manager</artifactId>
  <version>1.1.0</version>
  <type>pom</type>
</dependency>

or Ivy:

<dependency org='com.ashokvarma.android' name='sharedpref-manager' rev='1.1.0'>
  <artifact name='$AID' ext='pom'></artifact>
</dependency>

or Download the latest JAR

Usage

All the Shared-Pref Names to be should be sent to SharedPrefManager. It does remaining heavy lifting.

Sample Code

SharedPrefManager
        .launchSharedPrefManager(
                context
                , new ArrayList<>(Arrays.asList(new String[]{"SHARED_PREF_1_PRIVATE", "SHARED_PREF_2_PRIVATE"}))// All your MODE_PRIVATE shared Shared Preference names, Null if None
                , new ArrayList<>(Arrays.asList(new String[]{"SP_WORLD_READ"}))//All your MODE_WORLD_READABLE Shared Preference Names, Null if None
                , new ArrayList<>(Arrays.asList(new String[]{"SP_WORLD_WRITE"}))//All your MODE_WORLD_READABLE Shared Preference Names, Null if None
         );

MODE_WORLD_READABLE, MODE_WORLD_READABLE are not supported by android system in Android N(Nougat) and above devices, If sent those will be ignored in Android N and above devices.

License

SharedPref Manager library for Android
Copyright (c) 2016 Ashok Varma (http://ashokvarma.me/).

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Other Open Source Libraries

  1. Gander : Gander is a simple in-app HTTP inspector for Android OkHttp clients. Gander intercepts and persists all HTTP requests and responses inside your application, and provides a UI for inspecting their content.
  2. SqliteManager : Sqlite Manager is a Dev Debug tool that helps to manage(Edit, Add, Clear) your android Sqlite Databases.
  3. BottomNavigation : This Library helps users to use Bottom Navigation Bar (A new pattern from google) with ease and allows ton of customizations.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

getView
called by 11
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManagerPresenter.java
clearData
called by 7
sample/src/main/java/com/ashokvarma/sharedprefmanager/sample/LauncherActivity.java
loadDataForSharedPref
called by 4
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManagerPresenter.java
refreshCurrentSharedPref
called by 3
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManagerPresenter.java
getKey
called by 3
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefItemModel.java
getValue
called by 3
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefItemModel.java
floodExtremes
called by 2
sample/src/main/java/com/ashokvarma/sharedprefmanager/sample/LauncherActivity.java
floodLongNames
called by 2
sample/src/main/java/com/ashokvarma/sharedprefmanager/sample/LauncherActivity.java

Shape

Method 72
Class 8
Interface 2

Languages

Java100%

Modules by API surface

sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManagerActivity.java20 symbols
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManagerPresenter.java19 symbols
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefAdapter.java13 symbols
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManagerView.java10 symbols
sample/src/main/java/com/ashokvarma/sharedprefmanager/sample/LauncherActivity.java10 symbols
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefItemModel.java6 symbols
sharedpref-manager/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManager.java2 symbols
sharedpref-manager-no-op/src/main/java/com/ashokvarma/sharedprefmanager/SharedPrefManager.java2 symbols

For agents

$ claude mcp add SharedPrefManager \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact