A easy way to store secret string value data in .so file by adding plugin
Using the plugin , We can add C++ code into module build file, so that we can build 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'
}
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
}
val data = CoreClient.getData()