2.0.0-alpha-04
This is a work in progress release as new features are added/planned.
Fixes some compile exceptions.
Take a look at the https://github.com/DatL4g/Sekret/releases/tag/v2.0.0-alpha-01 release first.
Common code
This release comes with a Sekret
class that can be called from common code.
// Nullable as Desktop-JVM and Android may return null
// Native targets will never return null
// JS targets will never return null
val secretValue: String? = Sekret.getValue(key)
Plugin Configuration
sekret {
/** Configuration for generating secrets */
properties {
enabled.set(true) // Important if you wan't to keep using generated secret
packageName.set("your.package.name")
// other value changes
nativeCopy {
desktopComposeResourcesFolder // set the location for desktop targets where the native binary should be placed
androidJNIFolder // set the location for android where the native binary should be placed
}
}
}
Tasks
This release comes with new tasks to support minimal configuration.
copySekretNativeBinary
Only copies the native binaries (Desktop-JVM and Android) to the specified directoriescreateSekretNativeBinary
Compile secrets to native binariescreateAndCopySekretNativeBinary
Combination ofcreateSekretNativeBinary
andcopySekretNativeBinary
generateSekretBuildScript
Generates a build script by checking your dependant targetgenerateSekret
Generates secrets provided in properties