Git Product home page Git Product logo

prefixer's Introduction

Prefixer

Prefixer is an intuitive Android library designed for developers to effortlessly visualize and modify SharedPreferences. It simplifies preference management and enhances debugging and development efficiency by providing accessible SharedPreferences manipulation directly from your app's UI.

Snapshots

All Preferences Activity Edit String/Number Preferences Edit Boolean Preferences

Features

  • Easy Initialization: Quick setup with just one line of code.
  • User-Friendly UI: Launches a new activity displaying all SharedPreferences in a clean and interactive interface.
  • Edit Preferences: Allows editing of SharedPreferences values directly from the UI with a simple long-press.
  • Seamless Integration: Easily integrates into existing Android projects without hassle.

Getting Started

Installation

To add Prefixer to your project, follow these steps:

  1. Ensure you have mavenCentral() in your project's build.gradle file:

    allprojects {
        repositories {
            ...
            mavenCentral()
        }
    }
  2. Add Prefixer dependency to your module's build.gradle file:

    dependencies {
       implementation 'dev.vishalgaur:prefixer:1.2.0'
    }

Quick Start

To utilize Prefixer in your application, adhere to these steps:

  1. Initialize Prefixer in your Activity class:

    class MyActivity : ComponentActivity() {
       override fun onCreate() {
          super.onCreate()
          val instance = Prefixer.initialize(this, "pref_file_name") // Replace "pref_file_name" with your actual preferences file name.
       }
    }
    
  2. Retrieve the launch intent for viewing and editing the SharedPreferences, then start the activity:

    val launchIntent = instance.getLaunchIntent(this)
    startActivity(launchIntent)

prefixer's People

Contributors

i-vishi avatar vishal-testbook avatar

Stargazers

 avatar Rafał Borcz avatar

Watchers

 avatar

prefixer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.