/Orca

A easy way to store secret string value data in .so file by adding plugin

Primary LanguageKotlinApache License 2.0Apache-2.0

Orca.so

A easy way to store secret string value data in .so file by adding plugin

中文README

How it works?

Using the plugin , We can add C++ code into module build file, so that we can build it

How to use it?

1、 Add the following code into your project build.gradle

dependencies {
      classpath "com.occ.orca:orca.so:2.0.0-release08"
  }

2、Add plguin into app or module build.gradle

plugins {
   id 'com.android.application'
   id 'Orca.So'
}

💥💥💥For Kotlin project please add the Orca.So before kotlin-android ❗

For Kotlin Project:

plugins {
    id 'com.android.application'
    id 'Orca.So'
    id 'kotlin-android'
}

Configuration

In your app or library module build.gradle, add the follow-like configs to save key-values.

Orca.go{
        storeSet{
            "data"{
                value "123456"
            }
        }
        secretKey = "FTat46cvyia6758@243lid66wxzvwe23dgfhcfg76wsd@5as431aq1256dsaa211" //This is the default key , you must replace it
    }

Call in your project(Java or Kotlin)

val data = CoreClient.getData()