Skip to content

Wildanafian/QrCPMDecoder

Repository files navigation

QrCPMDecoder

An android library for decode encrypted raw QR CPM String into readable & useable string or model

Preparation

Step 1. Add jitpack in your root build.gradle:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	implementation 'com.github.Wildanafian:QrCPMDecoder:latest-release'
}

How to use

There are 2 types of result you can get, result in model or raw json

   QrDecoderHelper().decode("your string") { model, rawJson ->
	val dataInModel = model.data
        val dataInString = rawJson.toString()
   }